/* backend.css */

/* =========================
   GLOBAL
========================= */

body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
}

/* =========================
   LOGIN PAGE
========================= */

.login-page{
    background:#101827;
    color:#fff;
}

.login-page .wrap{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:28px;
    box-sizing:border-box;
}

.login-page .box{
    width:100%;
    max-width:460px;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.16);
    border-radius:18px;
    padding:32px;
    box-sizing:border-box;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.login-page h1{
    margin:0 0 10px;
    font-size:30px;
}

.login-page p{
    color:#c9d4e5;
    margin:0 0 22px;
}

.login-page .field{
    margin-bottom:16px;
}

.login-page label{
    display:block;
    font-weight:700;
    margin-bottom:7px;
}

.login-page input{
    width:100%;
    height:48px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.22);
    background:rgba(255,255,255,.08);
    color:#fff;
    padding:0 14px;
    box-sizing:border-box;
    font-size:16px;
}

.login-page .btn{
    width:100%;
    height:50px;
    border:0;
    border-radius:12px;
    background:#fff;
    color:#101827;
    font-weight:800;
    font-size:16px;
    cursor:pointer;
}

.login-page .error{
    margin-bottom:16px;
    padding:12px 14px;
    border-radius:12px;
    background:rgba(180,0,0,.25);
    border:1px solid rgba(255,120,120,.35);
    color:#ffd4d4;
}

.login-page .langs{
    display:flex;
    gap:10px;
    margin-top:18px;
    justify-content:center;
}

.login-page .langs img{
    width:32px;
    border-radius:6px;
    transition:transform .15s ease, box-shadow .15s ease;
}

.login-page .langs a:hover img{
    transform:scale(1.08);
    box-shadow:0 4px 12px rgba(0,0,0,.4);
}


.backend-langs {
    display: inline-flex;
    gap: 6px;
    margin-right: 14px;
    vertical-align: middle;
}

.backend-langs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 28px;
    padding: 0 8px;
    border-radius: 7px;
    background: #f1f5f9;
    color: #111827;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.backend-langs a.active {
    background: #0f172a;
    color: #fff;
}


.backend-langs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 14px;
}

.backend-langs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 26px;
    border-radius: 6px;
    padding: 2px;
    background: transparent;
    border: 2px solid transparent;
    opacity: 0.65;
    transition: 0.15s ease;
}

.backend-langs a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.backend-langs a.active {
    opacity: 1;
    border-color: #ffffff;
    background: rgba(255,255,255,0.12);
}

.backend-langs img {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}



.login-page a,
.login-page a:visited {
    color: #ffffff;
    text-decoration: none;
}

.login-page a:hover {
    color: #dbeafe;
    text-decoration: underline;
}


.forgot-link {
    display: inline-block;
    margin-top: 14px;
    color: #dbeafe !important;
    font-weight: 600;
    text-decoration: none;
}

.forgot-link:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.login-page .btn {
    background: #101827 !important;
    color: #ffffff !important;
}

.login-page .btn {
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
}


.login-page .btn:hover {
    background: #1f2937;
}


/* =========================
   ADMIN DASHBOARD
========================= */

.admin-page{
    background:#f4f6f9;
    color:#1d2733;
}

.admin-page .top{
    background:#101827;
    color:#fff;
    padding:18px 26px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.admin-page .top a{
    color:#fff;
    text-decoration:none;
}

.admin-page .wrap{
    padding:26px;
}

.admin-page .card{
    width:100%;
    max-width:none;
    background:#fff;
    border-radius:16px;
    padding:24px;
    box-sizing:border-box;
    box-shadow:0 8px 28px rgba(0,0,0,.08);
}

.admin-page .muted{
    color:#6b7280;
}

.admin-page .grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:16px;
    margin-top:20px;
}

.admin-page .tile{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:18px;
}

.admin-page .pill{
    display:inline-block;
    background:#e8eef8;
    border-radius:999px;
    padding:6px 10px;
    margin:4px;
    font-size:13px;
}

.tile{
    display:block;
    text-decoration:none;
    color:inherit;
}


.tile:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}


.tile-alert {
    border: 2px solid #e74c3c;
    background: #fff5f5;
}

.alert-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
    margin-left: 8px;
}

.alert-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 8px;
    border-radius: 999px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}



/* =========================
   Rollen PAGE
========================= */


.role-edit-layout {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 24px;
    align-items: start;
}

.role-settings-box,
.role-permissions-box,
.permission-group-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    padding: 18px;
}

.role-settings-box {
    position: sticky;
    top: 20px;
}

.permission-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.permission-group-card h4 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.permission-checks {
    display: grid;
    gap: 10px;
}

.permission-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: #f8fafc;
}

.permission-row input {
    margin-top: 3px;
}

.permission-row span {
    display: block;
}

.permission-row small {
    display: block;
    color: #6b7280;
    margin-top: 3px;
}

@media (max-width: 900px) {
    .role-edit-layout {
        grid-template-columns: 1fr;
    }

    .role-settings-box {
        position: static;
    }
}

/* Rollen/Rechte Seite breiter machen */
body.admin-page .wrap.role-page-wide {
    max-width: 1600px;
    width: calc(100% - 40px);
}

/* Layout: links Grunddaten, rechts Rechte */
.role-edit-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.role-settings-box {
    position: sticky;
    top: 20px;
}

.role-permissions-box {
    min-width: 0;
}

.permission-group-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 18px;
}

@media (max-width: 1200px) {
    .permission-group-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

@media (max-width: 800px) {
    .role-edit-layout {
        grid-template-columns: 1fr;
    }

    .permission-group-grid {
        grid-template-columns: 1fr;
    }

    .role-settings-box {
        position: static;
    }
}


/* =========================
   ADMIN USER MANAGEMENT
========================= */

.admin-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:22px;
}

.admin-head h1{
    margin:0 0 6px;
}

.admin-btn{
    display:inline-block;
    background:#101827;
    color:#fff;
    text-decoration:none;
    padding:10px 16px;
    border-radius:10px;
    font-weight:700;
    white-space:nowrap;
}

.admin-search{
    display:flex;
    gap:10px;
    margin-bottom:18px;
}

.admin-search input[type="text"]{
    flex:1;
    height:42px;
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:0 12px;
    font-size:15px;
    box-sizing:border-box;
}

.admin-search button{
    height:42px;
    border:0;
    border-radius:10px;
    background:#101827;
    color:#fff;
    padding:0 16px;
    cursor:pointer;
    font-weight:700;
}

.letters{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-bottom:20px;
}

.letters a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    height:32px;
    padding:0 8px;
    border-radius:8px;
    background:#f1f5f9;
    color:#1d2733;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
}

.letters a.active{
    background:#101827;
    color:#fff;
}

.admin-table{
    width:100%;
    border-collapse:collapse;
}

.admin-table th,
.admin-table td{
    text-align:left;
    padding:14px 12px;
    border-bottom:1px solid #e5e7eb;
    vertical-align:middle;
}

.admin-table th{
    color:#6b7280;
    font-size:13px;
    font-weight:800;
}

.admin-table small{
    color:#6b7280;
}

.actions{
    white-space:nowrap;
    text-align:right;
}

.actions a{
    display:inline-block;
    margin-left:10px;
    color:#101827;
    font-weight:700;
    text-decoration:none;
}

.status{
    display:inline-block;
    border-radius:999px;
    padding:5px 10px;
    font-size:12px;
    font-weight:800;
}

.status.active{
    background:#dcfce7;
    color:#166534;
}

.status.inactive{
    background:#fee2e2;
    color:#991b1b;
}

.pagination{
    display:flex;
    gap:6px;
    margin-top:22px;
    align-items:center;
    flex-wrap:wrap;
}

.pagination a,
.pagination span{
    min-width:34px;
    height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:#f1f5f9;
    color:#1d2733;
    text-decoration:none;
    font-weight:700;
    font-size:13px;
}

.pagination a.active{
    background:#101827;
    color:#fff;
}


.actions{
    white-space:nowrap;
    text-align:right;
}

.actions .action-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-left:8px;
    padding:7px 11px;
    border-radius:9px;
    font-size:13px;
    font-weight:800;
    text-decoration:none;
    border:1px solid transparent;
    transition:background .15s ease, border-color .15s ease, transform .15s ease;
}

.actions .action-btn:hover{
    transform:translateY(-1px);
}

.action-edit{
    background:#f8fafc;
    color:#334155;
    border-color:#cbd5e1;
}

.action-edit:hover{
    background:#e2e8f0;
}

.action-deactivate{
    background:#fff7ed;
    color:#c2410c;
    border-color:#fed7aa;
}

.action-deactivate:hover{
    background:#ffedd5;
}

.action-activate{
    background:#ecfdf5;
    color:#047857;
    border-color:#a7f3d0;
}

.action-activate:hover{
    background:#d1fae5;
}

.action-delete{
    background:#fef2f2;
    color:#b91c1c;
    border-color:#fecaca;
}

.action-delete:hover{
    background:#fee2e2;
}

.top{
    background:#101827;
    color:#fff;
    padding:18px 26px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    box-sizing:border-box;
}

.top-left,
.top-right{
    display:flex;
    align-items:center;
    gap:10px;
}

.home-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    border-radius:9px;
    background:rgba(255,255,255,.08);
    color:#fff;
    text-decoration:none;
    font-size:20px;
    font-weight:800;
}

.home-btn:hover{
    background:rgba(255,255,255,.16);
}

.top a{
    color:#fff;
    text-decoration:none;
}

.table-scroll{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

.admin-table{
    width:100%;
    min-width:780px;
    border-collapse:collapse;
}

@media (max-width:700px){

    .wrap{
        padding:14px;
    }

    .card{
        padding:22px 18px;
        border-radius:14px;
        overflow:hidden;
    }

    .admin-head{
        flex-direction:column;
        align-items:flex-start;
    }

    .admin-btn{
        width:100%;
        text-align:center;
        box-sizing:border-box;
    }

    .admin-search{
        flex-direction:column;
    }

    .admin-search input[type="text"],
    .admin-search button{
        width:100%;
    }

    .letters{
        gap:6px;
    }

    .letters a{
        min-width:44px;
    }

    .top{
        padding:14px 16px;
        align-items:flex-start;
    }

    .top-left,
    .top-right{
        flex-wrap:wrap;
    }

    .top-right{
        justify-content:flex-end;
        text-align:right;
    }

    .actions{
        white-space:normal;
    }

    .actions .action-btn{
        margin:3px;
    }
}


@media (max-width:700px){

    .table-scroll{
        overflow-x:visible;
    }

    .admin-table{
        min-width:0;
        width:100%;
    }

    .admin-table thead{
        display:none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td{
        display:block;
        width:100%;
    }

    .admin-table tr{
        background:#fff;
        border:1px solid #e5e7eb;
        border-radius:14px;
        padding:14px;
        margin-bottom:14px;
        box-sizing:border-box;
    }

    .admin-table td{
        border-bottom:0;
        padding:8px 0;
        display:flex;
        justify-content:space-between;
        gap:16px;
        text-align:right;
        word-break:break-word;
    }

    .admin-table td::before{
        content:attr(data-label);
        font-weight:800;
        color:#6b7280;
        text-align:left;
        flex:0 0 110px;
    }

    .admin-table td.actions{
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:8px;
        padding-top:14px;
    }

    .admin-table td.actions::before{
        display:none;
    }

    .actions .action-btn{
        width:100%;
        margin:0;
        box-sizing:border-box;
    }
}




.form{
    display:flex;
    flex-direction:column;
    gap:14px;
    max-width:500px;
}

.form label{
    display:flex;
    flex-direction:column;
    font-weight:700;
    gap:6px;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="number"]{
    height:42px;
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:0 12px;
    font-size:15px;
    box-sizing:border-box;
}

.checkbox{
    flex-direction:row !important;
    align-items:center;
    gap:10px;
    font-weight:600;
}

.roles{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.roles label{
    background:#f1f5f9;
    padding:8px 12px;
    border-radius:10px;
    font-weight:600;
}

.password-row{
    display:flex;
    gap:8px;
    align-items:center;
}

.password-row input{
    flex:1;
}

.small-btn{
    height:42px;
    border:1px solid #cbd5e1;
    background:#f8fafc;
    color:#334155;
    border-radius:10px;
    padding:0 12px;
    font-weight:800;
    cursor:pointer;
    white-space:nowrap;
}

.small-btn:hover{
    background:#e2e8f0;
}

.small-btn.dark{
    background:#101827;
    color:#fff;
    border-color:#101827;
}

.small-btn.dark:hover{
    background:#1f2937;
}

@media (max-width:700px){
    .password-row{
        flex-direction:column;
        align-items:stretch;
    }

    .small-btn{
        width:100%;
    }
}

.error-box{
    margin-bottom:18px;
    padding:12px 14px;
    border-radius:12px;
    background:#fee2e2;
    border:1px solid #fecaca;
    color:#991b1b;
    font-weight:700;
}


.role-badge {
    display: inline-flex;
    padding: 5px 9px;
    margin: 2px 4px 2px 0;
    border-radius: 999px;
    background: #eef2ff;
    color: #111827;
    font-size: 12px;
    font-weight: 700;
}


.permission-group-card .permission-checks {
    display: grid !important;
    gap: 10px;
}

.permission-group-grid {
    display: grid !important;
}

/* =========================
   ADMIN Category  MANAGEMENT
========================= */

.hidden-row{
    display:none !important;
}

.main-category-row{
    background:#f8fafc;
}

.main-category-row td{
    font-weight:700;
}

.subcategory-row td{
    background:#fff;
}

.category-toggle{
    width:28px;
    height:28px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    background:#fff;
    color:#101827;
    font-weight:900;
    cursor:pointer;
    margin-right:8px;
}

.category-toggle:hover{
    background:#e2e8f0;
}

.category-toggle.empty{
    display:inline-block;
    width:28px;
    height:28px;
    border:0;
    background:transparent;
    margin-right:8px;
}

.subcat-indent{
    display:inline-block;
    margin-left:34px;
    margin-right:8px;
    color:#6b7280;
}


.form select,
.form input[type="number"],
.form textarea{
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:10px 12px;
    font-size:15px;
    box-sizing:border-box;
    font-family:Arial,Helvetica,sans-serif;
}

.form select,
.form input[type="number"]{
    height:42px;
}

.form textarea{
    min-height:90px;
    resize:vertical;
}

.translation-box{
    border:1px solid #e5e7eb;
    background:#f8fafc;
    border-radius:14px;
    padding:18px;
    margin-bottom:18px;
}

.translation-box h3{
    margin:0 0 14px;
}

.category-form{
    max-width:900px;
}

.translation-accordion{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.translation-panel{
    border:1px solid #e5e7eb;
    border-radius:14px;
    overflow:hidden;
    background:#f8fafc;
}

.translation-toggle{
    width:100%;
    border:0;
    background:#f1f5f9;
    padding:14px 16px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-weight:800;
    cursor:pointer;
    color:#101827;
}

.translation-toggle:hover{
    background:#e2e8f0;
}

.translation-content{
    padding:16px;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.hidden-row{
    display:none !important;
}


.delete-card{
    max-width:720px;
}

.delete-intro{
    margin-bottom:10px;
    color:#4b5563;
}

.delete-target{
    display:inline-block;
    margin:4px 0 18px;
    padding:10px 14px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:10px;
    font-weight:800;
    color:#101827;
}

.delete-warning{
    line-height:1.5;
}

.delete-actions{
    display:flex;
    gap:10px;
    margin-top:22px;
    flex-wrap:wrap;
}

.delete-actions .action-btn{
    margin-left:0;
}

@media (max-width:700px){
    .delete-actions{
        flex-direction:column;
    }

    .delete-actions .action-btn{
        width:100%;
        box-sizing:border-box;
    }
}

.category-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: inline-block;
    vertical-align: middle;
}



/* =========================
   ADMIN COUCH  MANAGEMENT
========================= */

.coach-list-name{
    display:flex;
    align-items:center;
    gap:12px;
}

.coach-list-name img{
    width:44px;
    height:44px;
    border-radius:50%;
    object-fit:cover;
    border:1px solid #e5e7eb;
}

.image-upload-box{
    display:flex;
    flex-direction:column;
    gap:12px;
    max-width:360px;
}

.coach-preview{
    width:160px;
    height:160px;
    object-fit:cover;
    border-radius:18px;
    border:1px solid #e5e7eb;
    background:#f8fafc;
}

.cropper-wrap{
    max-width:520px;
    margin-top:14px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:12px;
}


.category-tree{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.category-group{
    border:1px solid #e5e7eb;
    border-radius:14px;
    overflow:hidden;
    background:#f8fafc;
}

.category-main-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 14px;
    background:#f1f5f9;
}

.category-main-row label{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:10px;
    margin:0;
}

.category-children{
    padding:12px 18px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:10px;
    background:#fff;
}

.category-child{
    display:flex !important;
    flex-direction:row !important;
    align-items:center;
    gap:8px;
    padding:8px 10px;
    border-radius:10px;
    background:#f8fafc;
}

.action-btn {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    background: #e9edf5;
    text-decoration: none;
    font-size: 13px;
}

.action-btn:hover {
    background: #dbe2ef;
}




/* =========================
   ADMIN Preise  MANAGEMENT
========================= */

.price-form{
    margin-bottom:24px;
}

.price-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:14px;
    align-items:end;
}

.price-checkbox{
    align-self:center;
}



/* =========================
   ADMIN Group  MANAGEMENT
========================= */


.group-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 24px;
}

.group-edit-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 18px;
}

.group-edit-section h3 {
    margin: 0 0 14px 0;
    font-size: 18px;
}

.group-form-row {
    margin-bottom: 18px;
}

.group-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.group-form-row input[type="text"] {
    width: 100%;
    max-width: 520px;
    padding: 10px 12px;
    border: 1px solid #bbb;
    border-radius: 8px;
    font-size: 15px;
}

.group-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 7px 0;
    font-weight: normal;
}

.group-checkbox input {
    width: 16px;
    height: 16px;
}

.group-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.group-empty {
    color: #777;
    font-style: italic;
    margin: 8px 0;
}

@media (max-width: 800px) {
    .group-edit-grid {
        grid-template-columns: 1fr;
    }
}

.group-admin-section,
.group-coach-section {
    margin-top: 22px;
}

.group-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.group-user-row:hover {
    background: #f8fafc;
}

.group-user-row input {
    width: 16px;
    height: 16px;
}

.group-user-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.group-user-main strong {
    font-size: 14px;
}

.group-user-main small {
    color: #667085;
    font-size: 12px;
}

.coach-assignment-row { cursor: default; }
.coach-assignment-row > .coach-check { cursor: pointer; }
.coach-transfer-options {
    display: grid;
    gap: 6px;
    min-width: 250px;
    padding-left: 12px;
    border-left: 1px solid #e2e8f0;
}
.coach-transfer-options label {
    display: grid;
    gap: 4px;
    color: #475467;
    font-size: 11px;
    font-weight: 700;
}
.coach-transfer-options select,
.coach-transfer-options input {
    width: 100%;
    height: 34px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    padding: 5px 8px;
    color: #101828;
}
.transfer-custom-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.transfer-custom-values[hidden] { display: none; }

@media (max-width: 1100px) {
    .coach-assignment-row { align-items: flex-start; flex-wrap: wrap; }
    .coach-transfer-options { width: 100%; margin-left: 28px; border-left: 0; padding: 8px 0 0; }
}

.coach-filter-form {
    display: flex;
    gap: 10px;
    margin: 14px 0;
    align-items: center;
}

.coach-filter-form input[type="text"] {
    width: 320px;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #bbb;
    border-radius: 8px;
}

.coach-list {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.letters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.letters a {
    padding: 6px 9px;
    border-radius: 7px;
    background: #f1f5f9;
    text-decoration: none;
    color: #111827;
    font-size: 13px;
}

.letters a.active {
    background: #0f172a;
    color: #fff;
}


.coach-filter-form .coach-search-input,
input.coach-search-input {
    width: 100% !important;
    max-width: 520px !important;
    height: 40px !important;
    padding: 10px 12px !important;
    font-size: 15px !important;
    line-height: 20px !important;
    border: 1px solid #bbb !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}



/*    COUCH ZEITEN */


.availability-form {
    margin-top: 20px;
}

.availability-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.availability-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
}

.availability-grid input,
.availability-grid select {
    padding: 10px 12px;
    border: 1px solid #d6d9df;
    border-radius: 10px;
    font-size: 15px;
}

.availability-checkbox {
    flex-direction: row !important;
    align-items: center;
    padding-bottom: 10px;
}

.availability-table {
    margin-top: 24px;
}

.status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status.active {
    background: #e8f7ee;
    color: #18713a;
}

.status.inactive {
    background: #f2f3f5;
    color: #666;
}

@media (max-width: 760px) {
    .availability-grid {
        grid-template-columns: 1fr;
    }

    .availability-checkbox {
        padding-bottom: 0;
    }
}

.bookingCards {
    display: grid;
    gap: 22px;
    margin-top: 24px;
}

.bookingCardItem {
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.bookingCardTop {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf1f7;
}

.bookingCardGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.bookingLabel {
    font-size: 13px;
    font-weight: 800;
    color: #667085;
    margin-bottom: 6px;
}

.bookingValue {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.bookingExpert {
    font-size: 20px;
}

.bookingSmall {
    font-size: 13px;
    color: #667085;
    margin-top: 4px;
}

.bookingDateBox {
    margin-top: 20px;
}

.bookingDateBlock {
    background: #f8fafc;
    border: 1px solid #e5edf6;
    border-radius: 16px;
    padding: 16px;
}

.bookingMessageBox {
    margin-top: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 16px;
}

.bookingMessageText {
    color: #7c2d12;
    font-weight: 600;
    line-height: 1.5;
}

.bookingActions {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.bookingActionForm textarea {
    width: 100%;
    min-height: 90px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px;
    font-size: 15px;
    resize: vertical;
    margin-bottom: 14px;
}

.bookingActionForm input[type="datetime-local"] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px;
    font-size: 15px;
}

.bookingButtonRow {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bookingDecisionHint {
    display: grid;
    gap: 4px;
    margin: 10px 0 12px;
    padding: 11px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #24446b;
    font-size: 13px;
    line-height: 1.45;
}

.bookingDecisionHint strong { color: #173f7a; }

.bookingDecisionOr {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 2px 0 16px;
    color: #64748b;
    font-size: 13px;
}

.bookingDecisionOr::before,
.bookingDecisionOr::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dbe3ee;
}

.bookingDecisionOr span {
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.bookingDecisionOr p { margin: 0; }
.bookingDecisionOr.compact { margin: 18px 0; }

.bookingFinalDecline {
    padding: 16px;
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fff8f8;
}

.bookingFinalDecline p { margin: 7px 0 12px; color: #7f1d1d; font-size: 14px; line-height: 1.45; }
.bookingFinalDecline textarea { width: 100%; min-height: 76px; margin: 0 0 12px; padding: 12px; border: 1px solid #fecaca; border-radius: 12px; font: inherit; resize: vertical; }
.bookingDangerButton { border-color: #ef9a9a; color: #991b1b; }

.bookingPrimaryButton,
.bookingSecondaryButton {
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 900;
    cursor: pointer;
    border: none;
}

.bookingPrimaryButton {
    background: #111827;
    color: #ffffff;
}

.bookingSecondaryButton {
    background: #ffffff;
    color: #111827;
    border: 1px solid #cbd5e1;
}

.bookingCounterBox {
    margin-top: 20px;
    background: #f8fafc;
    border: 1px solid #e5edf6;
    border-radius: 16px;
    padding: 16px;
}

.bookingStatus {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    background: #eef2ff;
    color: #3730a3;
}

.bookingStatus-pending_coach {
    background: #fff7ed;
    color: #9a3412;
}

.bookingStatus-counter_proposed {
    background: #eff6ff;
    color: #1d4ed8;
}

.bookingStatus-confirmed {
    background: #ecfdf3;
    color: #166534;
}

.bookingStatus-declined,
.bookingStatus-cancelled {
    background: #fef2f2;
    color: #991b1b;
}

@media (max-width: 760px) {
    .bookingCardTop,
    .bookingCardGrid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bookingButtonRow {
        flex-direction: column;
    }

    .bookingPrimaryButton,
    .bookingSecondaryButton {
        width: 100%;
    }
}

.coachDateTimeLabel {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 12px;
}

.coachDateTimeFields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.coachDateTimeLabel input[type="datetime-local"],
.coachDateTimeLabel input[type="date"],
.coachDateTimeLabel input[type="time"] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px;
    font-size: 15px;
    background: #ffffff;
}

.coachTimeZoneHint,
.bookingTimeZoneNote {
    display: block;
    margin-top: 2px;
}

@media (max-width: 560px) {
    .coachDateTimeFields { grid-template-columns: 1fr; gap: 0; }
}

.proposalInlineForm textarea {
    width: 100%;
    max-width: 760px;
    min-height: 86px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px;
    font-size: 14px;
    resize: vertical;
    margin-top: 12px;
    margin-bottom: 12px;
}

.bookingProposalList {
    margin-top: 20px;
    display: grid;
    gap: 14px;
}

.bookingProposalItem {
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    padding: 16px;
    background: #ffffff;
}

.bookingProposal-pending {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.bookingProposal-superseded {
    background: #f8fafc;
    opacity: 0.65;
}

.bookingProposal-accepted {
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.bookingProposal-declined {
    background: #fef2f2;
    border-color: #fecaca;
    opacity: 0.8;
}


/* BOOKINGS COUCH */

.coach-bookings-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px 60px;
}

.booking-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 22px 0;
}

.booking-tab {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
    border-radius: 12px;
    padding: 10px 14px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.booking-tab.active {
    background: #172033;
    color: #fff;
    border-color: #172033;
}

.booking-filter-form select {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
}

.booking-list {
    display: grid;
    gap: 14px;
}

.booking-section-title {
    margin: 0 0 12px;
    color: #172033;
    font-size: 19px;
}

.booking-history {
    margin-top: 18px;
    border: 1px solid #dce3ee;
    border-radius: 14px;
    background: #f8fafc;
}

.booking-history > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 15px;
    color: #344054;
    cursor: pointer;
    font-weight: 750;
    list-style: none;
}

.booking-history > summary::-webkit-details-marker { display: none; }
.booking-history > summary::before { content: '›'; color: #2d6df6; font-size: 24px; line-height: 1; transition: transform .15s ease; }
.booking-history[open] > summary::before { transform: rotate(90deg); }
.booking-history > summary small { margin-left: auto; min-width: 24px; padding: 3px 8px; border-radius: 99px; color: #2d6df6; background: #e8f0ff; text-align: center; font-size: 12px; }
.booking-history-list { padding: 0 14px 14px; }

.booking-card {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .05);
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.booking-service-title {
    font-size: 18px;
    font-weight: 700;
}

.booking-customer {
    color: #667085;
    margin-top: 4px;
}

.booking-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.booking-meta-box {
    background: #f9fafb;
    border-radius: 14px;
    padding: 12px;
}

.booking-meta-label {
    font-size: 12px;
    color: #667085;
    margin-bottom: 4px;
}

.booking-meta-value {
    font-weight: 700;
}

.booking-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.booking-status-confirmed {
    background: #ecfdf3;
    color: #027a48;
}

.booking-status-completed {
    background: #eff8ff;
    color: #175cd3;
}

.booking-status-cancelled {
    background: #fff1f3;
    color: #c01048;
}

.booking-status-declined {
    background: #fff7ed;
    color: #c2410c;
}

.booking-message {
    margin-top: 14px;
    color: #344054;
    background: #f9fafb;
    border-radius: 14px;
    padding: 12px;
    line-height: 1.5;
}

.empty-state {
    padding: 28px;
    text-align: center;
    color: #667085;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
}

.calendar-title {
    font-size: 20px;
}

.booking-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #e4e7ec;
    gap: 1px;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    overflow: hidden;
}

.booking-calendar-day-name,
.booking-calendar-day {
    background: #fff;
    padding: 10px;
}

.booking-calendar-day-name {
    background: #f9fafb;
    font-weight: 800;
    color: #475467;
    text-align: center;
}

.booking-calendar-day {
    min-height: 110px;
}

.booking-calendar-day.muted {
    background: #f8fafc;
    color: #98a2b3;
}

.booking-calendar-day-number {
    font-weight: 800;
    margin-bottom: 8px;
}

.booking-calendar-item {
    display: block;
    margin-top: 6px;
    padding: 7px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.35;
}

.booking-calendar-item strong {
    display: block;
}

@media (max-width: 820px) {
    .booking-meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .booking-calendar {
        display: block;
        border-radius: 14px;
    }

    .booking-calendar-day-name {
        display: none;
    }

    .booking-calendar-day {
        min-height: auto;
        border-bottom: 1px solid #e4e7ec;
    }

    .booking-calendar-day.muted {
        display: none;
    }

    .calendar-nav {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .booking-card-header {
        display: block;
    }

    .booking-status {
        margin-top: 10px;
    }

    .booking-meta-grid {
        grid-template-columns: 1fr;
    }
}

.coach-bookings-page {
    width: 100%;
}

.coach-bookings-page .card {
    width: 100%;
}


/* Admin Bookings */

/* ADMIN BOOKINGS */

.adminBookingsFilters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
    align-items: center;
}

.adminBookingsFilters input,
.adminBookingsFilters select {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
}

.adminBookingsList {
    display: grid;
    gap: 14px;
}

.adminBookingCard {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .05);
}

.adminBookingTop {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.adminBookingTitle {
    font-size: 18px;
    font-weight: 800;
    color: #101828;
}

.adminBookingSub {
    color: #667085;
    margin-top: 4px;
}

.adminBookingGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.adminBookingGrid > div {
    background: #f9fafb;
    border-radius: 14px;
    padding: 12px;
}

.adminBookingMessages {
    margin-top: 14px;
    background: #f9fafb;
    border-radius: 14px;
    padding: 12px;
    color: #344054;
    line-height: 1.5;
    display: grid;
    gap: 8px;
}

.adminBookingProposals {
    margin-top: 14px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    padding: 12px;
    background: #fff;
}

.adminBookingProposals summary {
    cursor: pointer;
    font-weight: 800;
    color: #101828;
}

.adminBookingProposalItem {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #f9fafb;
    border-left: 4px solid #d0d5dd;
}

.adminBookingProposal-accepted {
    border-left-color: #12b76a;
}

.adminBookingProposal-pending {
    border-left-color: #f79009;
}

.adminBookingProposal-declined {
    border-left-color: #f04438;
}

.adminBookingProposal-superseded {
    border-left-color: #98a2b3;
}

.adminBookingProposalMessage {
    margin-top: 8px;
    color: #344054;
}

@media (max-width: 820px) {
    .adminBookingTop {
        display: block;
    }

    .adminBookingTop .booking-status {
        margin-top: 10px;
    }

    .adminBookingGrid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .adminBookingsFilters {
        display: block;
    }

    .adminBookingsFilters input,
    .adminBookingsFilters select,
    .adminBookingsFilters button {
        width: 100%;
        margin-bottom: 8px;
    }

    .adminBookingGrid {
        grid-template-columns: 1fr;
    }
}

/* ADMIN PAGINATION */

.adminPagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 22px;
}

.adminPageLink,
.adminPageDots {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
}

.adminPageLink {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
}

.adminPageLink:hover {
    background: #f9fafb;
}

.adminPageLink.active {
    background: #172033;
    border-color: #172033;
    color: #fff;
}

.adminPageDots {
    color: #667085;
}

.admin-alert{margin:14px 0;padding:12px 14px;border-radius:10px;border:1px solid #d6dfeb;background:#f5f8fc;color:#26364d}.admin-alert.success{background:#eaf8ef;border-color:#bfe8ce;color:#17663a}.admin-alert.error{background:#fff0f0;border-color:#f0c2c2;color:#a12626}.admin-alert.info{background:#eef5ff;border-color:#c9daf5;color:#264d83}.coach-current-group{font-weight:700;color:#285fae!important}.coach-current-group.unassigned{color:#a12626!important}.group-request-panel{margin:18px 0;padding:18px;border:1px solid #dce4ef;border-radius:14px;background:#f8fafc}.group-request-panel h2{margin:0 0 6px}.group-request-list{display:grid;gap:12px;margin-top:14px}.group-request-row{display:grid;grid-template-columns:minmax(260px,1fr) minmax(360px,1.2fr);gap:16px;padding:14px;border:1px solid #dce4ef;border-radius:11px;background:#fff}.group-request-row small{display:block;color:#667085;margin-top:3px}.group-request-row p{margin:8px 0 0}.group-request-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-content:start}.group-request-actions select,.group-request-actions input{grid-column:1/-1;width:100%;box-sizing:border-box;padding:9px;border:1px solid #cfd7e3;border-radius:8px}.status.pending{background:#fff4d8;color:#855b00}@media(max-width:800px){.group-request-row{grid-template-columns:1fr}.group-request-actions{grid-template-columns:1fr}.group-request-actions select,.group-request-actions input{grid-column:auto}}
.group-history-panel{margin-top:26px;padding-top:22px;border-top:1px solid #dce4ef}.group-history-panel h2{margin-bottom:5px}.group-history-table{overflow-x:auto}.group-history-table table{min-width:760px}.group-history-table small{display:block;color:#667085;margin-top:3px}
.coach-unassigned-filter{display:inline-flex!important;align-items:center;justify-content:center;text-decoration:none;background:#fff1f1!important;color:#a12626!important;border:1px solid #efb4b4!important}.coach-unassigned-filter.active{background:#b42318!important;color:#fff!important;border-color:#b42318!important}.group-user-row.coach-unassigned-row{background:#fff1f1;border-left:5px solid #d92d20}.group-user-row.coach-unassigned-row:hover{background:#ffe7e7}.group-user-row.coach-unassigned-row .group-user-main strong{color:#9f1c14}
.request-custom-commission{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}.request-custom-commission[hidden]{display:none}.request-custom-commission label{display:grid;gap:4px;font-size:12px;font-weight:700;color:#475467}.request-custom-commission input{grid-column:auto!important}
.credit-head .btn,.contract-head .btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:9px;background:#172033;color:#fff;font-weight:800;text-decoration:none;white-space:nowrap}.credit-head .btn:hover,.contract-head .btn:hover{background:#285fae;color:#fff}
