/* css/gruppierungen.css */

.simpbook-gruppierungen-wrap {
    max-width: 1200px;
}

.simpbook-gruppierungen-wrap .view-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    justify-content: flex-start;
}

/* Badge für Anzahl */
.simpbook-badge {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Desktop Tabelle */
.desktop-gruppierungen-tabelle {
    display: block;
}

.gruppierungen-haupttabelle th,
.gruppierungen-haupttabelle td {
    vertical-align: middle;
}

.kategorie-row-clickable:hover {
    background-color: #f0f6fc !important;
}

.kategorie-row-clickable td:last-child {
    cursor: default;
}

/* Mobile Karten */
.mobile-gruppierungen-karten {
    display: none;
}

.gruppierung-karte {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.gruppierung-karte-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.gruppierung-karte-header h3 {
    margin: 0;
    font-size: 16px;
}

.gruppierung-beschreibung {
    color: #646970;
    font-size: 13px;
    margin: 0 0 15px 0;
}

.gruppierung-karte-actions {
    display: flex;
    gap: 10px;
}

/* Modal Styles */
.simpbook-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simpbook-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.simpbook-modal-content {
    position: relative;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.simpbook-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #dcdcde;
}

.simpbook-modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.simpbook-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #646970;
    padding: 0;
    line-height: 1;
}

.simpbook-modal-close:hover {
    color: #135e96;
}

.simpbook-modal-body {
    padding: 20px;
}

.simpbook-form-group {
    margin-bottom: 15px;
}

.simpbook-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.simpbook-form-group .required {
    color: #dc3232;
}

.simpbook-form-group input[type="text"],
.simpbook-form-group input[type="number"],
.simpbook-form-group textarea {
    width: 100%;
}

.simpbook-form-group .description {
    color: #646970;
    font-size: 12px;
    margin-top: 5px;
}

.simpbook-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #dcdcde;
    background: #f6f7f7;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .desktop-gruppierungen-tabelle {
        display: none;
    }
    
    .mobile-gruppierungen-karten {
        display: block;
    }
    
    .simpbook-modal-content {
        width: 95%;
        margin: 10px;
    }
}

/* PWA-specific styles */
body.simpbook-pwa-mode .simpbook-gruppierungen-wrap {
    padding: 10px;
}

body.simpbook-pwa-mode .simpbook-modal-content {
    width: 95%;
    max-width: none;
}
