.groups-header {
    margin-bottom: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 5px solid #3c8dbc;
}

.groups-header .lead {
    color: var(--oe-muted-color);
    margin-bottom: 15px;
    font-size: var(--oe-lead-size);
    font-weight: 500;
}

.groups-controls {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.nestable-lists {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Nestable.js modernization */
.dd-handle {
    display: block;
    height: auto;
    margin: 5px 0;
    padding: 12px 15px;
    color: var(--oe-base-color);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #e9ecef;
    background: #fff;
    border-radius: 6px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.dd-handle:hover {
    color: #3c8dbc;
    background: #e7f3ff;
    border-color: #3c8dbc;
    box-shadow: 0 2px 5px rgba(60, 141, 188, 0.1);
}

.dd-item > button {
    display: block;
    position: relative;
    cursor: pointer;
    float: left;
    width: 25px;
    height: 20px;
    margin: 12px 0 0 5px;
    padding: 0;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    border: 0;
    background: transparent;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    font-weight: bold;
}

.dd-item > button:before {
    content: '\f0da'; /* fa-caret-right */
    font-family: 'FontAwesome';
    display: block;
    position: absolute;
    width: 100%;
    text-align: center;
    text-indent: 0;
    color: #95a5a6;
    font-size: 16px;
}

.dd-item > button[data-action="collapse"]:before {
    content: '\f0d7'; /* fa-caret-down */
}

.dd-placeholder,
.dd-empty {
    margin: 5px 0;
    padding: 0;
    min-height: 30px;
    background: #f2fbff;
    border: 1px dashed #3c8dbc;
    box-sizing: border-box;
    border-radius: 6px;
}

.group-name {
    font-size: var(--oe-h5-size);
    display: inline-block;
    cursor: pointer;
}

.actions {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.actions:hover {
    opacity: 1;
}

.actions i {
    margin-left: 10px;
    font-size: 16px;
    cursor: pointer;
}

/* .viewGroup:hover { color: #3c8dbc; } */
.addGroup:hover { color: #00a65a; }
.removeGroup:hover { color: #dd4b39; }

/* Filter select modernization */
.labelFilter {
    font-weight: 600;
    color: #495057;
    padding-top: 8px;
}

.groups-container {
    padding-top: 20px;
    background-color: #f9f9f9;
}

/* Edit Switch styling */
.edit-mode-container {
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    background: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

.edit-mode-label {
    margin-bottom: 0;
    margin-right: 12px;
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    line-height: 1;
}

.edit-group {
    display: flex;
    align-items: center;
}
.onoffswitch {
    position: relative; width: 60px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
    margin-bottom: 0;
}
.onoffswitch-checkbox {
    display: none !important;
}
.onoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #E3E3E3; border-radius: 20px;
    margin-bottom: 0;
}
.onoffswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}
.onoffswitch-inner:before, .onoffswitch-inner:after {
    display: block; float: left; width: 50%; height: 20px; padding: 0; line-height: 20px;
    font-size: 10px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    box-sizing: border-box;
}
.onoffswitch-inner:before {
    content: "ON";
    padding-left: 10px;
    background-color: #3C8DBC; color: #FFFFFF;
}
.onoffswitch-inner:after {
    content: "OFF";
    padding-right: 12px;
    background-color: #EEEEEE; color: #999999;
    text-align: right;
}
.onoffswitch-switch {
    display: block; width: 14px; margin: 3px;
    background: #FFFFFF;
    position: absolute; top: 0; bottom: 0;
    right: 38px;
    border: 2px solid #E3E3E3; border-radius: 20px;
    transition: all 0.3s ease-in 0s; 
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0px; 
}

.midhead {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.selected{
    background-color: #fef4cd !important;
}
table#individual{cursor: pointer;}
.tipso{cursor: pointer;}
.popover{width: 500px;}
.toggle{margin: 0!important;}
.actions{display: none;}


.editbtn{margin-left: 20px;font-weight: bold; }

.select2-container--default {
    width: 100% !important;
}
.nopadding {
    padding: 0 !important;
    margin: 0 !important;
}
/*.top-buffer10{margin-top: 10px;}*/
.labelFilter{margin-top: 5px;text-align: right;}
.onoffswitch-inner:before {
    padding-left: 12px !important;
}
.onoffswitch-inner:after {
    padding-right: 12px !important;
}