@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


.carousel-control.right, .carousel-control.left {
    background-image:none;
}

.bold-text {
    font-weight: bold;
}

.brand-success {
    background-color: #5cb85c;
}

.table-no-border {
    border: none;
}

.table-no-border > thead > tr > th,
.table-no-border > tbody > tr > th,
.table-no-border > tfoot > tr > th,
.table-no-border > thead > tr > td,
.table-no-border > tbody > tr > td,
.table-no-border > tfoot > tr > td {
    border: none;
}

.clickable{
    cursor: pointer;
}

#account{

    border: 1px solid #ccc;
    margin-top: 5px;
    padding-top:28px;
}

.menu-btn {
    padding-right:10px;
}

.cli-row {
    margin-left: 0;
    min-height: 30px;
}

.cli-row-expand {
    margin-left: 0;
    margin-right: 0;
}


.cli-btn-row {
    margin-left: 0;
    margin-right: 0;
    margin-top: 25px;
    margin-bottom: 10px;
}
.cli-edit {
    width: 300px;
}

.button-panel {
    padding-top: 5px;
    padding-bottom: 5px;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
}

.button-group .btn {
    margin-right: 5px;
    margin-bottom: 5px;
}

.angular-google-map-container {
    height: 400px;
}

.edit-disabled {
    background-color: #E0E0E0;
    color: #A0A0A0;
}

.table-borderless>thead>tr>th,
.table-borderless>tbody>tr>th,
.table-borderless>tfoot>tr>th,
.table-borderless>thead>tr>td,
.table-borderless>tbody>tr>td,
.table-borderless>tfoot>tr>td {
    border: none;
}

.table-valign-middle>thead>tr>th,
.table-valign-middle>tbody>tr>th,
.table-valign-middle>tfoot>tr>th,
.table-valign-middle>thead>tr>td,
.table-valign-middle>tbody>tr>td,
.table-valign-middle>tfoot>tr>td {
    vertical-align: middle;
}

.edit-input{
    width:100%
}

.btn-copy{
    padding-left: 5px;
    padding-right: 5px;
    padding-top:2px;
    padding-bottom: 2px;
}


.label-title {

}
.h1-title {
    margin-top: 0;

}

.label-none {
    color: #000;
    background-color: #F0F0F0;
}
.label-default[href]:hover,
.label-default[href]:focus {
    background-color: #808080;
}

.label-btn-danger {
    cursor: pointer;
}

.label-btn-danger:hover,
.label-btn-danger:focus,
.label-btn-danger:active,
.label-btn-danger.active,
.open .dropdown-toggle.label-btn-danger {
    color: #fff;
    background-color: #d2322d;
    border-color: #ac2925;
}
.label-btn-danger:active,
.label-btn-danger.active,
.open .dropdown-toggle.label-btn-danger {
    background-image: none;
}
.label-btn-danger.disabled,
.label-btn-danger[disabled],
fieldset[disabled] .label-btn-danger,
.label-btn-danger.disabled:hover,
.label-btn-danger[disabled]:hover,
fieldset[disabled] .label-btn-danger:hover,
.label-btn-danger.disabled:focus,
.label-btn-danger[disabled]:focus,
fieldset[disabled] .label-btn-danger:focus,
.label-btn-danger.disabled:active,
.label-btn-danger[disabled]:active,
fieldset[disabled] .label-btn-danger:active,
.label-btn-danger.disabled.active,
.label-btn-danger[disabled].active,
fieldset[disabled] .label-btn-danger.active {
    background-color: #d9534f;
    border-color: #d43f3a;
}
.label-btn-danger .badge {
    color: #d9534f;
    background-color: #fff;
}

.label-btn-success {
    cursor: pointer;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active,
.open .dropdown-toggle.btn-success {
    color: #fff;
    background-color: #47a447;
    border-color: #398439;
}
.btn-success:active,
.btn-success.active,
.open .dropdown-toggle.btn-success {
    background-image: none;
}
.btn-success.disabled,
.btn-success[disabled],
fieldset[disabled] .btn-success,
.btn-success.disabled:hover,
.btn-success[disabled]:hover,
fieldset[disabled] .btn-success:hover,
.btn-success.disabled:focus,
.btn-success[disabled]:focus,
fieldset[disabled] .btn-success:focus,
.btn-success.disabled:active,
.btn-success[disabled]:active,
fieldset[disabled] .btn-success:active,
.btn-success.disabled.active,
.btn-success[disabled].active,
fieldset[disabled] .btn-success.active {
    background-color: #5cb85c;
    border-color: #4cae4c;
}
.btn-success .badge {
    color: #5cb85c;
    background-color: #fff;
}


.input-huge {
    height: 44px;
    padding: 2px 8px;
    font-size: 27px;
    font-weight: bold;
    line-height: 1.66;
    border-radius: 4px;
    color: #000;
}
select.input-huge {
    height: 44px;
    line-height: 44px;
}

th.sched-hdr {
    text-align: center;
}

th.sched-day,td.sched-day {
    text-align: left;
    padding-left: 5px;
    padding-right: 5px;
}

th.sched-time,td.sched-time {
    text-align: right;
    padding-left: 5px;
    padding-right: 5px;
}

th.sched-tol,td.sched-tol {
    text-align: right;
    padding-left: 5px;
    padding-right: 5px;
}

th.hist-col-date,td.hist-col-date {
    width: 150px;

}
th.hist-col-area,td.hist-col-area {
    min-width: 150px;

    text-align:left;
}
th.hist-col-zone,td.hist-col-zone {

    text-align:center;
}
th.hist-col-oper,td.hist-col-oper {
    min-width: 80px;
    max-width: 120px;
    text-align:left;
}
th.hist-col-desc,td.hist-col-desc {

    text-align:left;
}
th.truncate-text,td.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.history-row {
    margin-right: 0;
    margin-bottom: 10px;
}

.history-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
}

.history-header h1 {
    margin: 0;
    padding: 0;
    font-size: 24px;
}

.history-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

.history-actions .btn {
    padding: 5px 10px;
}

.right-glyph-button {
    padding-right:10px;
}

.panel-collapse {
    max-height: calc(100vh - 100px);
    overflow-y: scroll;
}

.history-button {
    margin-right:10px;
    width:90px;
}

@keyframes alertFadeOut
{
    from { opacity: 1.0; }
    to { opacity: 0.0; }
}

@-webkit-keyframes alertFadeOut
{
    from { opacity: 1.0 }
    to { opacity: 0.0 }
}

.alert-fade-out
{
    animation: alertFadeOut 2s infinite;
    -webkit-animation: alertFadeOut 2s infinite;
}

.input-client-port {
    width: 118px;
}
.input-client-id {
    width: 128px;
}
.input-client-name {
    width: 220px;
}
.input-client-mobile {
    padding-left:10px;
    padding-right:10px;
}

.eqman-tab {
    padding: 10px 10px 10px 10px;
    background: #f8f8f8;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 3px 3px;
    min-height: 400px;
}

.eqman-tabset {
    margin: 0 2px;
    padding: 0 5px;
}

.eqman-tabset .nav-tabs {
    border-bottom: 1px solid #ccc;
}

.eqman-tabset .nav-tabs>li.active>a, .eqman-tabset .nav-tabs>li.active>a:hover, .eqman-tabset .nav-tabs>li.active>a:focus {
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-bottom-color: transparent;
}


.vertical-align {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.glyphicon-refresh-animate {
    -animation: spin 1s infinite linear;
    -webkit-animation: spin2 1s infinite linear;
}

@-webkit-keyframes spin2 {
    from { -webkit-transform: rotate(0deg);}
    to { -webkit-transform: rotate(360deg);}
}

@keyframes spin {
    from { transform: scale(1) rotate(0deg);}
    to { transform: scale(1) rotate(360deg);}
}


.form-control[readonly] {
    cursor: text;
    background-color: #eee;
    opacity: 1;
}

body {
    padding-top: 50px;
}

.sidebar {
    position: fixed;
    top: 50px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #e6f2f5;
    border-right: 1px solid #eee;
    font-family: 'Poppins', sans-serif;
}

.sidebar-search {
    padding: 0 15px 20px;
}

.sidebar-user p {
    text-align: center;
    margin: 10px 0;
    font-size: 1.1em;
    font-weight: bold;
    padding-top: 30px;
}

.sidebar-user .sidebar-company {
    font-size: 0.9em;
    font-weight: normal;
    color: #666;
    padding-top: 0;
    margin-top: -5px;
    font-style: italic;
}


.sidebar-search .form-control {
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.sidebar-search .form-control:focus {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.main-content {
    padding-top: 20px;
}

.nav-sidebar {
    margin-right: -21px;
    margin-bottom: 20px;
    margin-left: -20px;
    margin-top: 10px;
}

.nav-sidebar > li > a {
    padding: 10px 20px;
}

.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
    color: #fff;
    background-color: #428bca;
}

.nav-sidebar .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-top: 0;
    background-color: transparent;
    border: 0;
    box-shadow: none;
    padding-left: 20px;
}

.nav-sidebar .material-icons {
    font-size: 20px;
}

.nav-sidebar .dropdown-menu > li > a {
    padding: 5px 15px 5px 25px;
    color: #777;
}

.nav-sidebar .dropdown-menu > li > a:hover,
.nav-sidebar .dropdown-menu > li > a:focus {
    color: #fff;
    background-color: #428bca;
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        padding-bottom: 20px;
    }
    .main-content {
        margin-left: 0;
    }
}

@media screen and (max-width: 767px) {
    .table-responsive {
        width: 100%;
        margin-bottom: 15px;
        overflow-y: hidden;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        border: 1px solid #ddd;
    }
}

.custom-dropdown {
    position: relative;
    font-size: 12px;
    padding: 8px 12px;
}
.custom-dropdown .dropdown-menu {
    display: block;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 8px 12px;
}
.custom-dropdown .dropdown-menu[ng-show="true"] {
    display: block !important;
}
.custom-dropdown .dropdown-menu[ng-show="false"] {
    display: none !important;
}

.custom-dropdown .dropdown-menu li {
    padding: 8px 12px;
    text-decoration: none;
    display: block;
}
.custom-dropdown .dropdown-menu li:hover {
    background-color: #f1f1f1;
}
.caret-reversed {
    transform: rotate(180deg);
}
.sidebar-buttons {
    margin-top: 20px;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.sidebar-buttons .btn {
    margin-bottom: 10px;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 600;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: none;
    color: #fff;
}

/* Primary Button */
.sidebar-buttons .btn-primary {
    background-color: #007bff;
}

.sidebar-buttons .btn-primary:hover {
    background-color: #0056b3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Default Button */
.sidebar-buttons .btn-default {
    background-color: #6c757d;
}

.sidebar-buttons .btn-default:hover {
    background-color: #5a6268;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.panel-list {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-top: 15px;
    height: 200px;
    overflow-y: auto;
}

.panel-header {
    font-weight: bold;
    margin-bottom: 10px;
}

.panel-content {
    max-height: 150px;
    overflow-y: auto;
}

.panel-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.panel-content li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.panel-content li:last-child {
    border-bottom: none;
}


body {
    padding-top: 50px;
}

.sidebar {
    position: fixed;
    top: 50px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #e6f2f5;
    border-right: 1px solid #eee;
}

.sidebar-search {
    padding: 0 15px 20px;
}

.sidebar-search .form-control {
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.sidebar-search .form-control:focus {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.main-content {
    padding-top: 20px;
}

.nav-sidebar {
    margin-right: -21px;
    margin-bottom: 20px;
    margin-left: -20px;
    margin-top: 10px;
}

.nav-sidebar > li > a {
    padding: 10px 20px;
}

.nav-sidebar > li > a.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
    color: #fff;
    background-color: #428bca;
}

.nav-sidebar .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-top: 0;
    background-color: transparent;
    border: 0;
    box-shadow: none;
    padding-left: 20px;
}

.nav-sidebar .dropdown-menu > li > a {
    padding: 5px 15px 5px 25px;
    color: #777;
}

.nav-sidebar .dropdown-menu > li > a:hover,
.nav-sidebar .dropdown-menu > li > a:focus {
    color: #fff;
    background-color: #428bca;
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        padding-bottom: 20px;
    }
    .main-content {
        margin-left: 0;
    }
}

.custom-dropdown {
    position: relative;
}
.custom-dropdown .dropdown-menu {
    display: block;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
.custom-dropdown .dropdown-menu[ng-show="true"] {
    display: block !important;
}
.custom-dropdown .dropdown-menu[ng-show="false"] {
    display: none !important;
}

.custom-dropdown .dropdown-menu li {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.custom-dropdown .dropdown-menu li:hover {
    background-color: #f1f1f1;
}
.caret-reversed {
    transform: rotate(180deg);
}
.sidebar-buttons {
    margin-top: 20px;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.sidebar-buttons .btn {
    margin-bottom: 10px;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 600;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: none;
    color: #fff;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}


.btn-icon .material-icons {
    font-size: 20px;
}

/* Default Button */
.sidebar-buttons .btn-default {
    background-color: #6c757d;
}

.sidebar-buttons .btn-default:hover {
    background-color: #5a6268;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.panel-list {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-top: 15px;
    height: 200px;
    overflow-y: auto;
}

.panel-header {
    font-weight: bold;
    margin-bottom: 10px;
}

.panel-content {
    max-height: 150px;
    overflow-y: auto;
}

.panel-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.panel-content li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.panel-content li:last-child {
    border-bottom: none;
}


body {
    padding-top: 50px;
}

/* Base Sidebar Styling */
.sidebar {
    position: fixed;
    top: 50px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(to bottom, #f9a825, #ffcc80);
    color: #333333;
    border-right: 1px solid #eee;
    transition: transform 0.3s ease;
    width: 250px;
}

/* Main Content Wrapper */
.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s ease;
    width: calc(100% - 250px);
}

/* Responsive Adjustments */

/* Large Screens (≥1200px) */
@media (min-width: 1200px) {
    .sidebar {
        width: 300px;
    }
    .main-content {
        margin-left: 300px;
    }
    .sidebar:not(.collapsed) ~ .main-content .persistent-sidebar-toggle {
        left: 310px;
    }
}

/* Medium Screens (992px–1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .sidebar {
        width: 220px;
    }
    .main-content:not(.expanded) {
        margin-left: 250px;
    }
}

/* Small Screens (768px–991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
    }
    .panel-actions {
        margin-top: 0;
    }
    .pagination-container {
        justify-content: flex-end;
        margin-top: 0;
    }
    .panel-actions {
        margin-top: 0;
    }
    .btn-group > .btn:last-child {
        margin-right: 0;
    }
    .btn-group > .btn {
        margin-right: 5px;
    }
}

/* Extra Small Screens (<768px) */
@media (max-width: 767px) {
    .sidebar {
        width: 100%;
        position: static;
        height: auto;
    }
    .btn-icon {
        gap: 6px;
    }

    .btn-icon .material-icons {
        font-size: 18px;
    }
    .main-content {
        margin-left: 0;
    }

    .sidebar-search .form-control,
    .nav-sidebar > li > a {
        padding: 10px 15px;
        font-size: 14px;
    }
    .form-group {
        width: 100%;
        margin-right: 0;
    }
    .col-name { min-width: 150px;}
    .col-actions { width: 120px;}

    .panel-body {
        padding: 10px 5px;
    }
    .panel-title, .panel-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .panel-actions {
        margin-top: 10px;
        justify-content: flex-start;
    }

    .device-details-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .device-details-header h1 {
        margin-bottom: 10px;
    }
    .device-details-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .panel-title {
        flex-direction: column;
        align-items: flex-start;
    }
    .group-stats {
        margin-top: 5px;
    }
}

.load-btn {
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 10px;
}


.form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.form-group {
    margin-bottom: 10px;
    margin-right: 10px;
}

.form-group-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.group-info {
    flex: 1;
    margin-right: 15px;
}

/* Ensure content is scrollable on smaller screens */
body {
    overflow-x: hidden;
}

@media (max-width: 767px) {
    .sidebar-toggle {
        display: block;
        position: fixed;
        top: 60px;
        left: 10px;
        z-index: 1001;
    }
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .form-group-container, .button-group {
        flex-direction: column;
    }
    .form-group, .button-group .btn {
        width: 100%;
        margin-right: 0;
    }
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #fff;
    padding: 10px 15px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-toggle-btn:focus {
    outline: none;
}

.sidebar-toggle-btn .fa {
    transition: transform 0.3s ease;
}

.sidebar-toggle-btn:hover .fa {
    transform: scale(1.1);
}



/* Ensure Flexbox Spacer Works Correctly */
.flex-spacer {
    flex: 1 1 auto;
}

/* Adjust Sidebar Icons and Text for Smaller Screens */
@media (max-width: 991px) {
    .material-icons {
        font-size: 18px;
        margin-right: 6px;
    }
    .btn-sm {
        padding: 3px 6px;
        font-size: 12px;
    }
    .col-moncode { display: none; }
    .col-actions { width: 150px;}
}

/* Adjust Sidebar Search Icon Positioning */
.sidebar-search {
    position: relative;
}

.sidebar-search .form-control {
    padding-right: 30px;
}

.sidebar-search .material-icons.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #777;
    opacity: 0.7;
}

/* Ensure Dropdown Menus Expand Properly */
.nav-sidebar .dropdown-menu {
    position: static;
    float: none;
    background-color: #f0ad4e;
    border: none;
    box-shadow: none;
    padding-left: 15px;
}

.nav-sidebar .dropdown-menu li a {
    padding-left: 30px;
}

/* Sidebar Alerts Styling Adjustments */
.sidebar-alerts {
    padding: 15px;
    border-top: 1px solid #ddd;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff; /
}

/* Responsive Sidebar Alerts */
@media (max-width: 991px) {
    .sidebar-alerts {
        max-height: 200px;
    }
    .sidebar {
        width: 250px;
    }
    .main-content:not(.expanded) {
        margin-left: 250px;
    }
}


/* Sidebar Actions Container */
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

/* General Button Styling */
.sidebar-actions .btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    transform-origin: left center;
}

.sidebar-actions .btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.sidebar-actions .btn:hover ~ .btn {
}
.sidebar-actions .btn-settings:hover {
    background-color: #f8f9fa;
    color: #333;
}
.sidebar-actions .btn-danger:hover {
    background-color: #dc3545;
}

.sidebar-actions .btn-info:hover {
    background-color: #17a2b8;
}

.sidebar-actions .btn-dashboard:hover {
    background-color: #28a745;
}

/* Search Input Styling */
.sidebar-search {
    padding: 0 15px 20px;
}

.sidebar-search .form-control {
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.sidebar-search .form-control:focus {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Hide the search icon in light mode */
.sidebar-search .material-icons.search-icon {
    display: none;
}

/* Show the search icon in dark mode */
body.dark-mode .sidebar-search .material-icons.search-icon {
    display: inline;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--color-on-surface);
    opacity: 0.7;
}


body.dark-mode .sidebar-search input {
    padding-right: 30px;
}

/* Sidebar Navigation Styling */
.nav-sidebar {
    margin: 10px -15px 20px -15px;
}

.nav-sidebar > li > a {
    padding: 10px 15px;
}

.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
    color: #fff;
    background-color: #428bca;
}

/* Custom Dropdown Styling */
.custom-dropdown {
    position: relative;
}

.custom-dropdown .dropdown-menu {
    display: block;
    position: absolute;
    background-color: #fff;
    width: 100%;
    left: 0;
    top: 100%;
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: none;
    padding: 10px 15px;
    box-sizing: border-box;
    z-index: 1050;
    max-width: 100%;
}

.custom-dropdown .dropdown-menu li {
    padding: 0;
    margin-bottom: 5px;
}

.custom-dropdown .dropdown-menu li:last-child {
    margin-bottom: 0;
}

.custom-dropdown .dropdown-menu li a {
    padding: 10px 15px;
    color: #777;
    text-decoration: none;
    display: block;
}

.custom-dropdown .dropdown-menu li a:hover,
.custom-dropdown .dropdown-menu li a:focus {
    color: #fff;
    background-color: #428bca;
}

/* Caret Rotation */
.rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.2s;
}

.dropdown-toggle .caret {
    transition: transform 0.2s;
}

/* Archived Checkbox Styling Inside Dropdown */
.dropdown-show-archived .checkbox {
    margin: 0;
    padding: 0;
}

/* Checkbox Label Styling */
.checkbox label {
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        padding-bottom: 20px;
    }
    .main-content {
        margin-left: 0;
    }
}

/* Sidebar Version Styling */
.sidebar-version {
    margin-top: 10px;
    text-align: center;
    color: #777;
    font-size: 0.8em;
}

.sidebar-favicon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}


.sidebar-version small {
    display: block;
}

/* Default Light Mode */
body {
    background-color: #ffffff;
    color: #000000;
    transition: background-color 0.3s, color 0.3s;
}


body.dark-mode {
    --color-background: #121212;
    --color-surface: #1E1E1E;
    --color-primary: #BB86FC;
    --color-primary-variant: #3700B3;
    --color-secondary: #03DAC6;
    --color-error: #CF6679;
    --color-on-background: #E1E1E1;
    --color-on-surface: #FFFFFF;
    --color-on-primary: #000000;
    --color-on-secondary: #000000;
    --color-on-error: #000000;
    --elevation-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --elevation-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --transition-speed: 0.3s;
}


body.dark-mode {
    background-color: var(--color-background);
    color: var(--color-on-background);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

body.dark-mode .navbar {
    background-color: var(--color-surface);
    box-shadow: var(--elevation-2);
}

body.dark-mode .btn-primary {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    text-transform: uppercase;
    font-weight: 500;
    box-shadow: var(--elevation-1);
    transition: background-color 0.2s, box-shadow 0.2s;
}

body.dark-mode .btn-primary:hover,
body.dark-mode .btn-primary:focus {
    background-color: var(--color-primary-variant);
    box-shadow: var(--elevation-2);
}

body.dark-mode .btn-default {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-on-surface);
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    text-transform: uppercase;
    font-weight: 500;
    transition: background-color 0.2s;
}

body.dark-mode .btn-default:hover,
body.dark-mode .btn-default:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode a {
    color: var(--color-secondary);
    transition: color 0.2s;
}

body.dark-mode a:hover,
body.dark-mode a:focus {
    color: var(--color-primary);
    text-decoration: none;
}

/* Accordion Styles */
body.dark-mode .panel,
body.dark-mode .panel-default > .panel-heading {
    background-color: var(--color-surface);
    border: none;
    color: var(--color-on-surface);
}

body.dark-mode .panel {
    box-shadow: var(--elevation-1);
    margin-bottom: 16px;
}

body.dark-mode .panel-title {
    font-size: 16px;
    font-weight: 500;
}

body.dark-mode .panel-body {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-on-surface);
}

/* Table Styles */
body.dark-mode .table-hover > tbody > tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .table > thead > tr > th,
body.dark-mode .table > tbody > tr > th,
body.dark-mode .table > tfoot > tr > th,
body.dark-mode .table > thead > tr > td,
body.dark-mode .table > tbody > tr > td,
body.dark-mode .table > tfoot > tr > td {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Form Control Styles */
body.dark-mode .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-on-surface);
    border-radius: 0;
    padding: 8px 0;
    transition: border-color 0.2s;
}

body.dark-mode .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: none;
}

/* Sidebar Styles */
body.dark-mode .sidebar {
    background-color: var(--color-surface);
    box-shadow: var(--elevation-2);
}

body.dark-mode .nav-sidebar > li > a {
    color: var(--color-on-surface);
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

body.dark-mode .nav-sidebar > .active > a,
body.dark-mode .nav-sidebar > li > a:hover,
body.dark-mode .nav-sidebar > li > a:focus {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-primary);
}

/* Material Icons in Sidebar */
.material-icons {
    font-size: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Specific Styles for Icons Inside Buttons (Light Mode) */
.sidebar-actions .btn-danger .material-icons {
    font-size: 18px;
    margin-right: 8px;
}

/* Icon Styling */
.sidebar-actions .btn .material-icons {
    font-size: 20px;
}

/* Button Variants */


.sidebar-actions .btn-settings {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ddd;
}

.sidebar-actions .btn-settings:hover {
    background-color: #f2f2f2;
    color: #000000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.sidebar-actions .btn-dashboard {
    background-color: #174c60;
    color: #ffffff;
}

.sidebar-actions .btn-dashboard:hover {
    background-color: #14505a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-actions .btn-danger {
    background-color: #60b7d4;
}

.sidebar-actions .btn-danger:hover {
    background-color: #58a4bf;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-actions .btn-info {
    background-color: #3498db;
}

.sidebar-actions .btn-info:hover {
    background-color: #2980b9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* Dark Mode Icon Styles */
body.dark-mode .material-icons {
    font-size: 20px;
    margin-right: 8px;
}

body.dark-mode .sidebar-actions .btn-danger .material-icons {
    font-size: 18px;
    margin-right: 8px;
}

/* Search Bar in Sidebar */
body.dark-mode .sidebar-search {
    position: relative;
}

body.dark-mode .sidebar-search .material-icons.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--color-on-surface);
    opacity: 0.7;
}

body.dark-mode .sidebar-search input {
    padding-right: 30px;
}

/* Dropdown in Sidebar */
body.dark-mode .custom-dropdown .caret {
    margin-left: auto;
}

body.dark-mode .custom-dropdown .rotate-180 {
    transform: rotate(180deg);
}

/* Remove default caret */
body.dark-mode .dropdown-toggle::after {
    display: none;
}

/* Report a Bug Button */
body.dark-mode .sidebar-actions .btn-danger {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .sidebar-actions .btn-danger .material-icons {
    font-size: 18px;
    margin-right: 8px;
}

/* Dropdown Styles in Dark Mode */
body.dark-mode .dropdown-menu,
body.dark-mode .custom-dropdown .dropdown-menu {
    background-color: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-on-surface);
}

body.dark-mode .dropdown-menu > li > a,
body.dark-mode .custom-dropdown .dropdown-menu li a {
    color: var(--color-on-surface);
}

body.dark-mode .dropdown-menu > li > a:hover,
body.dark-mode .dropdown-menu > li > a:focus,
body.dark-mode .custom-dropdown .dropdown-menu li a:hover,
body.dark-mode .custom-dropdown .dropdown-menu li a:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
}

/* Form Control in Dark Mode (for dropdowns) */
body.dark-mode select.form-control,
body.dark-mode .form-control {
    background-color: var(--color-surface);
    color: var(--color-on-surface);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode select.form-control:focus,
body.dark-mode .form-control:focus {
    border-color: var(--color-primary);
}

/* Table Styles in Dark Mode */
body.dark-mode .table,
body.dark-mode .table-hover > tbody > tr {
    background-color: var(--color-surface);
    color: var(--color-on-surface);
}

body.dark-mode .table > thead > tr > th,
body.dark-mode .table > tbody > tr > th,
body.dark-mode .table > tfoot > tr > th,
body.dark-mode .table > thead > tr > td,
body.dark-mode .table > tbody > tr > td,
body.dark-mode .table > tfoot > tr > td {
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .table-hover > tbody > tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Accordion Styles in Dark Mode */
body.dark-mode .panel,
body.dark-mode .panel-default > .panel-heading {
    background-color: var(--color-surface);
    color: var(--color-on-surface);
}

body.dark-mode .panel-body {
    background-color: var(--color-background);
    color: var(--color-on-background);
}

/* Specific styles for elements within accordions */
body.dark-mode .panel-body .table,
body.dark-mode .panel-body .dropdown-menu,
body.dark-mode .panel-body select.form-control,
body.dark-mode .panel-body .form-control {
    background-color: var(--color-surface);
    color: var(--color-on-surface);
}

body.dark-mode .panel-body .table > tbody > tr > td {
    color: var(--color-on-surface);
}

/* Ensure text in inputs and selects is visible */
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="number"],
body.dark-mode select,
body.dark-mode textarea {
    color: var(--color-on-surface);
    background-color: var(--color-surface);
}

/* Geo-location details specific styling */
body.dark-mode .input-group,
body.dark-mode .input-group .form-control,
body.dark-mode .input-group .input-group-addon,
body.dark-mode .input-group .input-group-btn .btn {
    background-color: var(--color-surface);
    color: var(--color-on-surface);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Additional styles for better visibility */
body.dark-mode .label,
body.dark-mode .badge {
    color: var(--color-on-primary);
}

/* Badge and Label Styles */
body.dark-mode .badge,
body.dark-mode .label {
    background-color: var(--color-secondary);
    color: var(--color-on-secondary);
    border-radius: 16px;
    padding: 4px 8px;
}

body.dark-mode .label-danger,
body.dark-mode .badge-danger {
    background-color: var(--color-error);
    color: var(--color-on-error);
}

/* Alert Styles */
body.dark-mode .alert {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-on-surface);
}

body.dark-mode .alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.2);
}

body.dark-mode .alert-info {
    background-color: rgba(3, 169, 244, 0.1);
    border-color: rgba(3, 169, 244, 0.2);
}

body.dark-mode .alert-warning {
    background-color: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.2);
}

body.dark-mode .alert-danger {
    background-color: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.2);
}

/* Global Caret Rotation */
.rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.2s;
}

/* Dark Mode Modal Styling */
body.dark-mode .modal-content {
    background-color: var(--color-surface);
    color: var(--color-on-surface);
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    background-color: var(--color-surface);
    color: var(--color-on-surface);
    border-color: #444;
}

body.dark-mode .modal-title {
    color: var(--color-on-surface);
}

body.dark-mode .modal-body {
    background-color: var(--color-surface);
    color: var(--color-on-surface);
}

body.dark-mode .modal-body .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-on-surface);
}

body.dark-mode .modal-body .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .modal-body .alert {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-on-surface);
}

/* Dark Mode Buttons in Modal */
body.dark-mode .modal-footer .btn-primary {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    border: none;
    box-shadow: var(--elevation-1);
}

body.dark-mode .modal-footer .btn-primary:hover,
body.dark-mode .modal-footer .btn-primary:focus {
    background-color: var(--color-primary-variant);
    box-shadow: var(--elevation-2);
}

body.dark-mode .modal-footer .btn-default {
    background-color: #555;
    color: #fff;
    border: none;
    box-shadow: var(--elevation-1);
}

body.dark-mode .modal-footer .btn-default:hover,
body.dark-mode .modal-footer .btn-default:focus {
    background-color: #666;
    box-shadow: var(--elevation-2);
}

body.dark-mode .modal-content .material-icons {
    color: var(--color-on-surface);
    font-size: 20px;
}

body.dark-mode .modal-body .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-on-surface);
}

body.dark-mode .modal-body .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 5px var(--color-primary);
}

body.dark-mode .modal-body .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.btn-warning {
    color: #fff !important;
    background-color: #f0ad4e !important;
    border-color: #eea236 !important;
}

.btn-warning:focus,
.btn-warning.focus,
.btn-warning:hover,
.btn-warning:active,
.btn-warning.active,
.open > .dropdown-toggle.btn-warning {
    color: #fff !important;
    background-color: #ec971f !important;
    border-color: #d58512 !important;
}

/* Preserve btn-warning styles in Dark Mode */
body.dark-mode .btn-warning,
body.dark-mode .btn-warning:focus,
body.dark-mode .btn-warning.focus,
body.dark-mode .btn-warning:hover,
body.dark-mode .btn-warning:active,
body.dark-mode .btn-warning.active,
body.dark-mode .open > .dropdown-toggle.btn-warning {
    color: #fff !important;
    background-color: #f0ad4e !important;
    border-color: #eea236 !important;
}

body.dark-mode .btn-warning:hover,
body.dark-mode .btn-warning:focus,
body.dark-mode .btn-warning:active {
    background-color: #ec971f !important;
    border-color: #d58512 !important;
}


body.dark-mode .btn-warning .glyphicon {
    color: #fff !important;
}

/* Override any disabled states */
body.dark-mode .btn-warning.disabled,
body.dark-mode .btn-warning[disabled],
body.dark-mode fieldset[disabled] .btn-warning,
body.dark-mode .btn-warning.disabled:hover,
body.dark-mode .btn-warning[disabled]:hover,
body.dark-mode fieldset[disabled] .btn-warning:hover,
body.dark-mode .btn-warning.disabled:focus,
body.dark-mode .btn-warning[disabled]:focus,
body.dark-mode fieldset[disabled] .btn-warning:focus,
body.dark-mode .btn-warning.disabled.focus,
body.dark-mode .btn-warning[disabled].focus,
body.dark-mode fieldset[disabled] .btn-warning.focus {
    background-color: #f0ad4e !important;
    border-color: #eea236 !important;
    opacity: 0.65;
}

/* Sidebar Alerts Styling */
.sidebar-alerts {
    padding: 15px;
    border-top: 1px solid #ddd;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
}

.sidebar-alerts h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.sidebar-alerts .alert {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
}


.modal-body table th, .modal-body table td {
    white-space: normal;
    word-wrap: break-word;
}

.progress {
    height: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}
.progress-bar {
    float: left;
    width: 0%;
    height: 100%;
    font-size: 12px;
    line-height: 20px;
    color: #fff;
    text-align: center;
    background-color: #337ab7;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
    transition: width .6s ease;
}

.margin-bottom-10 { margin-bottom: 10px; }
.margin-top-10 { margin-top: 10px; }
.margin-left-10 { margin-left: 10px; }
.inline-input {
    display: inline-block;
    width: auto;
    margin-right: 5px;
}
.form-group { margin-right: 10px; }
.btn-group > .btn { margin-right: 5px; }
.panel-heading .btn-sm {
    margin-top: -5px;
    margin-left: 5px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
}

.btn-group .btn { margin-right: 2px;}

.pagination-sm {
    display: inline-block;
    vertical-align: middle;
}

.pagination-container {
    display: flex;
    align-items: center;
    margin: 0;
}

.pagination-container .btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    height: 30px;
}

.pagination-sm .pagination {
    margin: 0;
}

.pagination-sm .pagination > li > a,
.pagination-sm .pagination > li > span {
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1.5;
}

.pagination-sm .pagination > li > span {
    border: none;
    background-color: transparent;
}

.group-short-name {
    font-size: 0.9em;
    color: #e6e6e6;
    margin-left: 5px;
    font-weight: normal;
}

.group-stats {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin: 0;
    color: #c8e5bc;
}

.group-stats small {
    margin-right: 10px;
    font-weight: bold;
}

.group-panel {
    position: relative;
    margin-bottom: 20px;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #337ab7;
    padding: 10px;
    transition: all 0.3s ease;
}

.sticky-subheader {
    position: sticky;
    top: 42px;
    z-index: 99;
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    transition: all 0.3s ease;
}

.scrollable-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
    cursor: pointer;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.panel-actions .btn-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.panel-actions .btn,
.panel-actions .btn-sm,
.panel-actions .btn-group > .btn {
    height: 30px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.panel-body {
    padding: 15px;
    overflow-x: auto;
}

.panel-group .panel {
    overflow: visible;
}

.panel-group .panel + .panel {
    margin-top: 20px;
}

html {
    scroll-behavior: smooth;
}

.dashboard-modal .modal-dialog {
    width: 95%;
    max-width: 1500px;
}

.dashboard-modal .modal-content {
    width: 100%;
}

.center-button {
    display: block;
    margin: 10px auto;
    width: auto; /* Adjust width to fit content */
    padding: 5px 10px; /* Reduce padding */
    font-size: 12px; /* Adjust font size */
    background-color: #174c60;
    color: #ffffff;
    border-color: #174c60;
}

.center-button:hover,
.center-button:focus {
    background-color: #14505a;
    border-color: #14505a;
}

.sidebar-toggle {
    position: fixed;
    top: 60px;
    left: 280px;
    z-index: 1030;
    transition: left 0.3s ease;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar-toggle:hover {
    background-color: #286090;
    border-color: #204d74;
}


.sidebar-collapsed .sidebar-toggle {
    left: 0;
}

.persistent-sidebar-toggle {
    position: fixed;
    top: 60px;
    left: 10px;
    width: 32px;
    height: 32px;
    background-color: #174c60;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1031;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.persistent-sidebar-toggle:hover {
    background-color: #14505a;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.sidebar:not(.collapsed) ~ .main-content .persistent-sidebar-toggle {
    left: 260px;
}

/* Show persistent toggle on all screen sizes */
.persistent-sidebar-toggle {
    display: flex;
}
.chevron-rotate {
    transform: rotate(180deg);
}

.main-content.expanded {
    margin-left: 0;
    width: 100%;
}


.sidebar.collapsed + .main-content .sidebar-toggle {
    left: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar-toggle {
        left: 0;
    }
    .sidebar {
        margin-left: -250px;
    }
    .sidebar.collapsed {
        margin-left: 0;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .sidebar-actions .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    .sidebar-actions .btn .material-icons {
        font-size: 18px;
    }
    .sidebar-actions .btn .btn-text {
        display: none;
    }
    .sidebar-actions .btn:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .mobile-sidebar-toggle {
        display: flex;
    }
}

.sidebar.collapsed {
    transform: translateX(-100%);
}


.sidebar, .main-content {
    transition: all 0.3s ease;
}

/* Dark mode adjustments */
body.dark-mode .sidebar-toggle {
    background-color: #337ab7;
    border-color: #2e6da4;
    color: #ffffff;
}

body.dark-mode .sidebar-toggle:hover {
    background-color: #286090;
    border-color: #204d74;
}

body.sidebar-collapsed .sidebar-toggle {
    left: 10px;
}

.deployment-config-section {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.device-details-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.device-details-header h1 {
    margin: 0;
    font-size: 24px;
    flex: 1;
}

.device-details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.device-details-actions .btn {
    margin-bottom: 5px;
}

.deployment-config-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table > tbody > tr > td {
    vertical-align: middle;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.col-checkbox { width: 30px; }
.col-id { width: 100px; }
.col-moncode { width: 100px; }
.col-name { min-width: 200px; }
.col-status { width: 100px; }
.col-phone { width: 120px; }
.col-actions { width: 200px; }
.col-expand { width: 30px; }

@media (max-width: 1199px) {
    .col-status, .col-phone { display: none; }
    .btn-group .btn-text { display: none; }
    .btn-group .btn { padding: 3px 6px; }

    .device-details-header h1 {
        font-size: 20px;
    }

    .device-details-actions .btn {
        padding: 3px 6px;
        font-size: 12px;
    }

    .device-details-actions .btn-text {
        display: none;
    }
    .persistent-sidebar-toggle {
        display: flex;
    }
}

.sidebar:not(.collapsed) ~ .main-content .persistent-sidebar-toggle {
    left: 260px; /* Adjust based on your sidebar width */
}

body.dark-mode .persistent-sidebar-toggle {
    background-color: #2c3e50;
}

body.dark-mode .persistent-sidebar-toggle:hover {
    background-color: #34495e;
}

.panel-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #c8e5bc;
    margin-right: 10px;
    font-weight: bold;
}


.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #66bb6a;
}

.switch input:focus + .slider {
    box-shadow: 0 0 1px #66bb6a;
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

/* Optional: Hover effects */
.switch:hover .slider {
    background-color: #aab2bd;
}

/* Flex Container for Accordion Header */
.accordion-header-container {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    position: relative;
    cursor: default;
    pointer-events: none;
}

/* Accordion Title Styling */
.accordion-title {
    display: flex;
    align-items: center;
    flex-grow: 1;
    padding: 8px 15px;
    order: 2;
    cursor: pointer;
    pointer-events: all;
    text-decoration: none !important;
    user-select: none;
}

.accordion-header-container a,
.accordion-header-container a:hover,
.accordion-header-container a:focus {
    text-decoration: none !important;
}

/* Status Indicator Styling */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

/* Deployment Name Styling */
.deployment-name {
    font-size: 0.8em;
    color: grey;
    margin-left: 5px;
}

/* Toggle Switch Container */
.accordion-toggle-switch {
    display: none;
}

.loading-spinner {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateZ(0);
}

.loading-spinner .logo-container {
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 1s ease-in-out infinite alternate;
}

.loading-spinner .company-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.fancy-spinner {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 600px;
}

.ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: spin 2s linear infinite;
}

.outer {
    border-top: 3px solid #3498db;
    box-shadow: 0 0 10px #3498db, inset 0 0 10px #3498db;
}

.inner {
    border-top: 3px solid #e74c3c;
    animation-duration: 1.5s;
    animation-direction: reverse;
    width: 80%;
    height: 80%;
    box-shadow: 0 0 10px #e74c3c, inset 0 0 10px #e74c3c;
}

.logo-container {
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 1s ease-in-out infinite alternate;
}

.company-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
    pointer-events: none;
    text-decoration: none !important;
}

@keyframes spin {
    0% { transform: rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateY(360deg) rotateZ(360deg); }
}

@keyframes pulse {
    0% { transform: scale(0.9); }
    100% { transform: scale(1.1); }
}


.talius-logo-container {
    padding: 5px 15px;
    display: flex;
    align-items: center;
    animation: slideInFromLeft 0.5s ease-out forwards;
}

.talius-logo {
    height: 25px;
    width: auto;
    max-width: 100%;
}

.talius-logo-container:focus {
    outline: none;
}

.talius-logo-container:focus-visible {
    outline: 2px solid #fff;
}


@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}


.navbar-inverse {
    background: linear-gradient(135deg, #174c60, #58b0c6);
    border: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-nav > li > a {
    color: #ffffff;
}

.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus,
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #a8e6f2;
    background-color: transparent;
}

.navbar-inverse .navbar-toggle {
    border-color: transparent;
}

.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
    background-color: transparent;
}

.navbar-inverse .navbar-toggle .icon-bar {
    background-color: #ffffff;
}

.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
    background-color: transparent;
    color: #a8e6f2;
}

.navbar-inverse .navbar-nav .dropdown-menu {
    background-color: #174c60;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.navbar-inverse .navbar-nav .dropdown-menu > li > a {
    color: #ffffff;
}

.navbar-inverse .navbar-nav .dropdown-menu > li > a:hover,
.navbar-inverse .navbar-nav .dropdown-menu > li > a:focus {
    background-color: #58b0c6;
    color: #ffffff;
}

/* Accordion Panel Styling */
.panel-group .panel {
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

/* Hover effect for accordion panels */
.panel-group .panel:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Ensure the effect works well with the existing sticky header */
.panel-heading.sticky-header {
    transition: all 0.3s ease;
}

.panel-group .panel:hover .panel-heading.sticky-header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Adjustments for dark mode */
body.dark-mode .panel-group .panel:hover {
    box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}

body.dark-mode .panel-group .panel:hover .panel-heading.sticky-header {
    box-shadow: 0 2px 5px rgba(255,255,255,0.1);
}

/* Ensure content remains above other elements when hovering */
.panel-group .panel {
    position: relative;
    z-index: 1;
}

/* Additional styling for panel and panel-heading */
.panel-group .panel {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 15px;
}


/* Dark mode adjustments for panel and panel-heading */
body.dark-mode .panel-group .panel {
    border-color: #444;
}

body.dark-mode .panel-heading {
    background-color: #333;
    border-bottom-color: #444;
}
.dark-blue-text {
    color: #00008B;
}

/* Flex container to center content */
.no-results-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}



.no-results-container .icon-container {
    margin-bottom: 20px;
}

.no-results-container .suggestion-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.no-results-container,
.uib-accordion {
    transition: all 0.3s ease-in-out;
}

/* Close Group Button Styles */
.close-group-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    margin-right: 5px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-group-btn:hover {
    background-color: #e2e6ea;
    border-color: #dcd;
}

.close-group-btn .glyphicon {
    font-size: 12px;
    color: #666;
}

.close-group-btn:hover .glyphicon {
    color: #333;
}

/* Dark mode styles */
body.dark-mode .close-group-btn {
    background-color: #2c3e50;
    border-color: #34495e;
}

body.dark-mode .close-group-btn:hover {
    background-color: #34495e;
}

body.dark-mode .close-group-btn .glyphicon {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .close-group-btn {
        width: 26px;
        height: 26px;
    }

    .close-group-btn .glyphicon {
        font-size: 10px;
    }
}

/* Position in button group */
.panel-actions .btn-group .close-group-btn {
    order: -1; /
}

.search-tooltip {
    font-size: 13px;
    padding: 8px 12px;
    line-height: 1.4;
    white-space: pre-wrap;
    max-width: 300px;
    background-color: rgba(0, 0, 0, 0.8);
}

.info-icon:hover {
    color: #337ab7;
}

/* Ensure the input padding accounts for both icons */
.sidebar-search input {
    padding-right: 60px;
}

/* Adjust search icon position */
.sidebar-search .search-icon {
    right: 10px;
}

.tooltip {
    position: absolute;
    z-index: 1070;
    display: block;
}

.tooltip-inner {
    max-width: 300px;
    padding: 8px 12px;
    color: #fff;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
}

.search-tooltip-content {
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
}

.logout-button {
    position: absolute;
    left: 8px;
    bottom: 18px;
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: transparent;
    border: 1px solid #ddd;
}

.logout-button:hover {
    background: #f0f0f0;
}

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10060 !important; /* Higher than Bootstrap modals (1050) and any other overlays */
    max-width: 90%;
    width: 350px;
    pointer-events: none; /* Allow clicks to pass through container */
}

.toast-notification {
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: white;
    animation: slideIn 0.5s ease-out;
    pointer-events: auto; /* Re-enable clicks on actual toast notifications */
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-danger {
    border-left: 4px solid #dc3545;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.company-logo-container {
    display: flex;
    align-items: center;
    height: 20px;
    margin-left: auto;
    margin-right: 15px;
    background: transparent;
    border: none;
    order: 2;
}

.company-logo {
    height: 15px;
    width: 80px;
    max-width: none;
    object-fit: contain;
    object-position: right;
}

/* Error state handling */
.company-logo[src=''] {
    display: none;
}

.company-logo-container.error {
    background-color: #f8f9fa;
}

.accordion-header-container .company-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 30px;
    margin: 0;
    padding: 3px;
    background: transparent;
    border: none;
    order: 1;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    margin-left: -5px;
    margin-right: 15px;
    position: relative;
    cursor: pointer;
    pointer-events: all;
    transition: transform 0.2s ease;
    text-decoration: none !important;
}

.accordion-header-container .company-logo-container:hover {
    transform: scale(1.05);
    text-decoration: none !important;
}

.accordion-header-container .company-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 24px;
    object-fit: contain;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: transform 0.2s ease;
    margin-right: 10px;
}

.accordion-header-container .company-logo[src=''] {
    display: none;
}

.accordion-header-container .company-logo-container.error {
    display: none;
}

.accordion-header-container .company-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Prevent any unwanted flexbox behavior */
.accordion-header-container {
    gap: 5px;
    align-items: center;
}

.accordion-header-container .company-logo[src*="ACH.png"] {
    transform: scale(1.4) translateX(-5px);
}

.accordion-header-container .company-logo[src*="SAMS.png"] {
    transform: scale(1.2) translateX(-5px);
}

.accordion-header-container .company-logo[src*="talius-hsc.png"] {
    transform: scale(1.2) translateX(-5px);
}

.accordion-header-container .company-logo[src*="essence.png"] {
    transform: scale(1.2) translateX(-5px);
}

.accordion-header-container .company-logo[src*="stjohn.png"] {
    transform: scale(1.1) translateX(-5px);
}

.accordion-header-container .company-logo[src*="sjog.png"] {
    transform: scale(1.1) translateX(-5px);
}

.accordion-header-container .company-logo[src*="lenlease.png"] {
    transform: scale(1.1) translateX(-5px);
}

.accordion-header-container .company-logo[src*="ADT.png"] {
    transform: scale(1.1) translateX(-5px);
}

.accordion-header-container .company-logo[src*="walmsley.png"] {
    transform: scale(1.1) translateX(-5px);
}

.accordion-header-container .company-logo[src*="sawtell.png"] {
    transform: scale(1.2) translateX(-5px);
}

.accordion-header-container .company-logo[src*="INS.png"] {
    transform: scale(1.2) translateX(-5px);
}

.panel-group .panel-heading {
    cursor: default !important;
    text-decoration: none !important;
}

.panel-group .panel-heading a,
.panel-group .panel-heading a:hover,
.panel-group .panel-heading a:focus,
.panel-group .panel-title > a,
.panel-group .panel-title > a:hover,
.panel-group .panel-title > a:focus,
.accordion-toggle,
.accordion-toggle:hover,
.accordion-toggle:focus {
    text-decoration: none !important;
    cursor: default !important;
}

.dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-online {
    background-color: #28a745;
}

.dot-offline {
    background-color: #dc3545;
}

.modal-content {
    position: relative;
    resize: both;
    overflow: auto;
    min-width: 500px;
    min-height: 300px;
    max-width: 100%;
    max-height: 100%;
    border: 1px solid #ddd;
}

.glyphicon-refresh-animate {
    animation: spin .7s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s infinite linear;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.log-container {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 10px;
}
.modal-body .panel {
    margin-bottom: 15px;
}
.table > tbody > tr > td {
    vertical-align: middle;
}
.glyphicon-refresh-animate {
    animation: spin .7s infinite linear;
    -webkit-animation: spin2 .7s infinite linear;
}

@-webkit-keyframes spin2 {
    from { -webkit-transform: rotate(0deg);}
    to { -webkit-transform: rotate(360deg);}
}

@keyframes spin {
    from { transform: scale(1) rotate(0deg);}
    to { transform: scale(1) rotate(360deg);}
}
td[style*="cursor: copy"] {
    position: relative;
}

td[style*="cursor: copy"]:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

td[style*="cursor: copy"]:hover::after {
    content: "Click to copy";
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1000;
}

td[style*="cursor: copy"]:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.glyphicon-copy {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.glyphicon-copy:hover {
    opacity: 1;
}

th .glyphicon-copy {
    font-size: 12px;
    color: #666;
}

th .glyphicon-copy:hover {
    color: #333;
}
.copy-icon {
    font-size: 12px;
    color: #666;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    margin-left: 5px;
    vertical-align: middle;
}

.copy-icon:hover {
    opacity: 1;
    color: #333;
}

.col-id {
    text-align: left !important;
}

th {
    white-space: nowrap;
    padding: 8px !important;
}

.table > thead > tr > th {
    vertical-align: middle;
}
.user-management-container {
    display: flex;
    height: 75vh;
    background: #f8f9fa;
}

.user-sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dee2e6;
    background: white;
}

.search-container {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-input {
    padding-left: 32px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.user-list {
    flex: 1;
    overflow-y: auto;
}

.user-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.user-item:hover {
    background-color: #f8f9fa;
}

.user-item.selected {
    background-color: #e8f0fe;
    border-left: 3px solid #1a73e8;
}

.user-item-content {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a73e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 12px;
    font-weight: 500;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status {
    margin-left: 8px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #dc3545;
}

.user-status.online .status-indicator {
    background-color: #28a745;
}

.create-user-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #dee2e6;
}

.user-details-panel {
    flex: 1;
    background: #f8f9fa;
    overflow-y: auto;
    padding: 20px;
}

.user-profile {
    max-width: 900px;
    margin: 0 auto;
}

.profile-header {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #1a73e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    font-weight: 500;
}

.profile-title {
    flex: 1;
}

.profile-title h4 {
    margin: 0 0 4px 0;
}

.profile-status {
    font-size: 14px;
    color: #dc3545;
}

.profile-status.online {
    color: #28a745;
}

.profile-actions {
    display: flex;
    gap: 8px;
}

.profile-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.profile-section {
    padding: 24px;
    border-bottom: 1px solid #dee2e6;
}

.profile-section:last-child {
    border-bottom: none;
}

.section-title {
    margin: 0 0 16px 0;
    color: #1a73e8;
    font-size: 16px;
    font-weight: 500;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.info-item div {
    font-size: 14px;
    color: #333;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    background: #dc3545;
    color: white;
}

.status-badge.active {
    background: #28a745;
}

.no-selection {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.no-selection-content {
    text-align: center;
}

.no-selection-content i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #dee2e6;
}

.modal-content {
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    font-size: 20px;
    font-weight: 500;
}
.spin {
    animation: spin 1s infinite linear;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.modal-body {
    position: relative;
    min-height: 200px;
}
.p-4 {
    padding: 1.5rem;
}
.mt-2 {
    margin-top: 0.5rem;
}
.device-type-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
}

.qr-container {
    margin: 20px auto;
    padding: 15px;
    background: white;
    border-radius: 4px;
    display: inline-block;
}

.modal-body {
    padding: 20px;
}
.progress-bar-success {
    background-color: #5cb85c !important;
}
.progress-bar-warning {
    background-color: #f0ad4e !important;
}
.progress-bar-danger {
    background-color: #d9534f !important;
}
.progress {
    background-color: #f5f5f5;
    margin-bottom: 0;
}
.panel-config-container {
    padding: 15px;
}

.config-sections .panel {
    margin-bottom: 20px;
}

.config-sections .panel-title {
    font-size: 16px;
    font-weight: 500;
}

.form-horizontal .control-label {
    text-align: left;
    padding-top: 7px;
}

.mt-4 {
    margin-top: 20px;
}

.spin {
    animation: spin 1s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.tiny-modal {
    font-size: 0.8em !important;
}

.tiny-modal .swal2-title {
    font-size: 1.2em !important;
    padding: 0.5em !important;
}

.tiny-modal .swal2-actions {
    margin-top: 0.5em !important;
}

.tiny-modal .swal2-styled {
    padding: 0.5em 1em !important;
    font-size: 0.9em !important;
}
/* Event History Modal Base Structure */
.event-history-modal {
    display: flex;
    flex-direction: column;
    height: 90vh;
    min-height: 400px;
    max-height: 90vh;
}

.event-history-modal .modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-history-modal .modal-header {
    background: linear-gradient(to right, #174c60, #58b0c6);
    color: white;
    padding: 20px;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    flex-shrink: 0;
}

.event-history-modal .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.event-history-modal .title-section {
    display: flex;
    flex-direction: column;
}

.event-history-modal .modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.event-history-modal .modal-title .glyphicon {
    font-size: 20px;
}

.event-history-modal .subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

.event-history-modal .modal-body {
    flex: 1;
    overflow-y: hidden;
    padding: 0;
    position: relative;
    background: #fff;
}

.event-history-modal .table-container {
    height: 100%;
    overflow-y: auto;
    position: relative;
}

/* Table Header Styles */
.event-history-modal .table-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
}

.event-history-modal .table {
    margin-bottom: 0;
}

/* Event Row Styles */
.event-history-modal .event-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.event-history-modal .event-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.event-history-modal .event-item.expanded {
    background-color: #f8f9fa;
}

/* Event Details Section */
.event-history-modal .event-details {
    padding: 15px;
    background: #f9f9f9;
    margin: 0;
    border-top: 1px solid #eee;
}

.event-history-modal .event-message {
    font-family: monospace;
    white-space: pre-wrap;
    margin: 0;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* Status Indicators */
.event-history-modal .event-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-history-modal .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Button Styling */
.event-history-modal .history-actions .btn-group {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.event-history-modal .history-actions .btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    transition: all 0.2s ease;
    text-shadow: none;
    min-width: 80px;
    color: #fff;
    height: 28px;
}

.event-history-modal .history-actions .btn .btn-text {
    font-size: 12px;
}

.event-history-modal .history-actions .btn .glyphicon {
    font-size: 12px;
}

.event-history-modal .history-actions .btn-warning {
    background-color: #f0ad4e;
}

.event-history-modal .history-actions .btn-info {
    background-color: #5bc0de;
}

.event-history-modal .history-actions .btn-success {
    background-color: #5cb85c;
}

.event-history-modal .history-actions .btn-primary {
    background-color: #337ab7;
}

.event-history-modal .history-actions .btn.active {
    background-color: #31b0d5;
}

/* Search Filters */
.event-history-modal .search-filters input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Loading State */
.event-history-modal .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Table Cell Styles */
.event-history-modal td {
    vertical-align: middle;
    padding: 8px;
}

.event-history-modal th {
    padding: 12px 8px;
    font-weight: 600;
    white-space: nowrap;
    background-color: #f8f9fa;
}

/* Footer Styling */
.event-history-modal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 15px;
    background: #f8f9fa;
}

/* Animation */
.event-history-modal .glyphicon-refresh-animate {
    animation: spin .7s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Copy Success Animation */
.event-history-modal .copy-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .event-history-modal .header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .event-history-modal .history-actions .btn-text {
        display: none;
    }

    .event-history-modal .history-actions .btn {
        min-width: auto;
        padding: 8px;
    }

    .event-history-modal td {
        padding: 6px;
    }
}
.event-history-modal .json-message {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #333;
    max-height: 400px;
    overflow-y: auto;
}

.event-history-modal .json-message::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.event-history-modal .json-message::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.event-history-modal .json-message::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.event-history-modal .json-message::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body.dark-mode .event-history-modal .json-message {
    background-color: #1e1e1e;
    border-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .event-history-modal .json-message::-webkit-scrollbar-track {
    background: #2d2d2d;
}

body.dark-mode .event-history-modal .json-message::-webkit-scrollbar-thumb {
    background: #666;
}

body.dark-mode .event-history-modal .json-message::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.custom-event-history-modal .modal-dialog {
    width: 95%;
    max-width: 1400px;
    margin: 30px auto;
}

.custom-event-history-modal .modal-content {
    min-height: 90vh;
}
.col-creation-date {
    min-width: 100px;
}

.extra-wide-modal .modal-dialog {
    width: 98%;
    max-width: 1600px;
}

/* User Profile Dropdown in Navbar */
.navbar-user-dropdown {
    padding: 10px 15px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1051;
}

.navbar-inverse .navbar-nav > li.navbar-user-dropdown > a {
    padding-right: 0;
}

/* Make sure form elements have proper spacing */
.navbar-form.navbar-right {
    margin-right: 15px; /* Reduced from 70px to bring elements closer to the user avatar */
}

@media (max-width: 768px) {
    .navbar-user-dropdown {
        position: relative;
        right: auto;
        top: auto;
    }
    
    .navbar-form.navbar-right {
        margin-right: 15px;
    }
}

.navbar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a73e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.navbar-user-avatar:hover {
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.3);
}

.navbar-profile-dropdown {
    position: absolute;
    top: 100%;
    right: 15px;
    background-color: white;
    border-radius: 8px;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    overflow: hidden;
}

.navbar-profile-header {
    padding: 16px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.navbar-profile-info {
    display: flex;
    align-items: center;
}

.navbar-profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a73e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    margin-right: 12px;
}

.navbar-profile-details {
    flex: 1;
}

.navbar-profile-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.navbar-profile-level {
    font-size: 12px;
    color: #666;
}

.navbar-profile-company {
    font-size: 11px;
    color: #999;
    font-style: italic;
    margin-top: 2px;
}

.navbar-profile-menu {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.navbar-profile-menu li {
    padding: 0;
}

.navbar-profile-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.navbar-profile-menu li a:hover {
    background-color: #f8f9fa;
}

.navbar-profile-menu li a .menu-icon {
    margin-right: 12px;
    opacity: 0.7;
    font-size: 18px;
}

.navbar-profile-menu li a .menu-text {
    flex: 1;
}

.navbar-profile-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 4px 0;
}

/* Dark mode styles */
body.dark-mode .navbar-profile-dropdown {
    background-color: #2c2c2c;
    border: 1px solid #444;
}

body.dark-mode .navbar-profile-header {
    background-color: #333;
    border-bottom: 1px solid #444;
}

body.dark-mode .navbar-profile-name {
    color: #fff;
}

body.dark-mode .navbar-profile-level {
    color: #bbb;
}

body.dark-mode .navbar-profile-menu li a {
    color: #fff;
}

body.dark-mode .navbar-profile-menu li a:hover {
    background-color: #444;
}

body.dark-mode .navbar-profile-divider {
    background-color: #444;
}
/* Add these styles to your CSS */
.optional-section {
    margin-top: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.glyphicon-refresh-animate {
    animation: spin 1s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.text-danger {
    color: #a94442;
}
/* Maintenance Events Modal - Account Grouping Styles */
.maintenance-account-groups .account-group {
    transition: all 0.2s ease;
}

.maintenance-account-groups .account-group:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.maintenance-account-groups .account-header {
    transition: background-color 0.2s ease;
}

.maintenance-account-groups .account-header:hover {
    background-color: #e9ecef !important;
}

.maintenance-account-groups .account-events {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 1000px;
        overflow: visible;
    }
}

/* Event row highlighting based on severity */
.maintenance-account-groups tr[style*="border-left: 3px solid #d9534f"] {
    background-color: rgba(217, 83, 79, 0.02);
}

.maintenance-account-groups tr[style*="border-left: 3px solid #f0ad4e"] {
    background-color: rgba(240, 173, 78, 0.02);
}

.maintenance-account-groups tr[style*="border-left: 3px solid #5cb85c"] {
    background-color: rgba(92, 184, 92, 0.02);
}
/* Custom Maintenance Modal - Extra Large Size */
.custom-maintenance-modal .modal-dialog {
    width: 98%;
    max-width: 1600px;
    margin: 20px auto;
}

.custom-maintenance-modal .modal-content {
    min-height: 95vh;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

/* Fix the modal body scrolling */
.custom-maintenance-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    max-height: none !important; /* Override any inline styles */
    padding: 20px;
}

/* Ensure the modal header and footer don't scroll */
.custom-maintenance-modal .modal-header {
    flex-shrink: 0;
}

.custom-maintenance-modal .modal-footer {
    flex-shrink: 0;
}

/* Remove any height restrictions from the template */
.custom-maintenance-modal .modal-body > div {
    max-height: none !important;
    overflow: visible !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-maintenance-modal .modal-dialog {
        width: 100%;
        margin: 0;
    }
    
    .custom-maintenance-modal .modal-content {
        min-height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
}
.filtering-note {
    margin-top: 15px;
}

.filtering-note .alert {
    margin-bottom: 0;
    padding: 10px 15px;
    font-size: 13px;
}

.filtering-note .alert strong {
    font-weight: 600;
}
.maintenance-account-groups tr.info {
    background-color: #e6f3ff !important;
}
.maintenance-account-groups tr.info:hover {
    background-color: #d4e9ff !important;
}

/* Age indicator badges in the summary */
.age-indicator .badge {
    margin-left: 5px;
    font-size: 11px;
    padding: 4px 8px;
}

/* Color guide in legend */
.panel-heading .badge {
    padding: 3px 6px;
    font-size: 10px;
}

/* Account group styling */
.maintenance-account-groups .account-group {
    transition: all 0.3s ease;
}

.maintenance-account-groups .account-header:hover {
    background-color: #e9ecef !important;
}

/* Event row hover effect */
.maintenance-account-groups tbody tr:hover {
    background-color: #f5f5f5;
}

/* Days badge styling */
.maintenance-account-groups .badge {
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

/* Filter controls styling */
.form-group label {
    font-weight: 600;
    color: #495057;
}

/* Button group spacing */
.btn-group-sm .btn {
    margin-right: 5px;
}

/* Loading animation */
.glyphicon-refresh-animate {
    animation: spin 2s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Summary panel styling */
.panel-info .panel-heading {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

/* Offline indicator */
.label-default {
    background-color: #6c757d;
}

/* Custom scrollbar for event lists */
.account-events {
    max-height: 400px;
    overflow-y: auto;
}

.account-events::-webkit-scrollbar {
    width: 8px;
}

.account-events::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.account-events::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.account-events::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Days filter input group */
.input-group-addon {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    padding: 6px 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-dialog {
        width: 95%;
        margin: 10px auto;
    }
    
    .col-md-3, .col-md-5 {
        margin-bottom: 10px;
    }
    
    .btn-group-sm {
        display: flex;
        flex-wrap: wrap;
    }
    
    .btn-group-sm .btn {
        margin-bottom: 5px;
    }
}
.panel-info .panel-heading .maintenance-legend,
.panel-info .panel-heading .maintenance-legend * {
    cursor: auto !important;
}

@keyframes pulse {
    0% {
        background-color: #d9534f;
    }
    50% {
        background-color: #c9302c;
    }
    100% {
        background-color: #d9534f;
    }
}

/* Flat Table Styles for Maintenance Modal */
.maintenance-flat-table {
    width: 100%;
    overflow-x: auto;
}

.maintenance-events-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.maintenance-events-table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 10px 8px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.maintenance-events-table tbody tr {
    transition: background-color 0.2s ease;
}

.maintenance-events-table tbody tr:hover {
    background-color: #f5f5f5;
}

.maintenance-events-table tbody tr.offline-row {
    background-color: rgba(108, 117, 125, 0.05);
}

.maintenance-events-table tbody td {
    padding: 8px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

/* Event Icon Styles */
.event-icon {
    font-size: 18px;
    display: inline-block;
    width: 20px;
    text-align: center;
}

/* Ensure Font Awesome icons display properly */
.maintenance-events-table .fas {
    font-size: 16px;
    width: auto;
}

/* Days Badge Styles */
.maintenance-events-table .badge {
    font-size: 11px;
    padding: 3px 6px;
    font-weight: bold;
}

/* Timestamp Cell Styles */
.timestamp-cell {
    line-height: 1.2;
}

.timestamp-time {
    font-size: 11px;
    color: #6c757d;
}

/* Account Cell Styles */
.account-cell {
    line-height: 1.2;
}

.account-name {
    font-size: 11px;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Description Cell Styles */
.description-cell {
    line-height: 1.3;
}

.device-info {
    font-size: 11px;
    color: #6c757d;
    margin-top: 2px;
}

/* Recent Activity Styles */
.recent-activity {
    line-height: 1.2;
}

.activity-date {
    font-size: 12px;
    font-weight: 500;
}

.activity-desc {
    font-size: 11px;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Action Buttons Styles */
.action-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 2px 6px;
    font-size: 11px;
}

/* Battery Status Label */
.battery-status-label {
    font-size: 11px;
    padding: 3px 6px;
    display: inline-block;
}

/* Responsive Table Adjustments */
@media (max-width: 1200px) {
    .maintenance-events-table {
        font-size: 12px;
    }
    
    .event-icon {
        font-size: 16px;
    }
    
    .maintenance-events-table tbody td {
        padding: 6px;
    }
}

@media (max-width: 768px) {
    .maintenance-flat-table {
        overflow-x: scroll;
    }
    
    .maintenance-events-table {
        min-width: 1000px;
    }
}

/* Battery progress bar styling */
.progress {
    background-color: #ddd;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}

.progress-bar {
    transition: width 0.6s ease;
    font-weight: bold;
    line-height: 20px;
}

/* Power failure table styling */
.table > tbody > tr.danger > td {
    background-color: #f2dede;
}

.table > tbody > tr.warning > td {
    background-color: #fcf8e3;
}

/* Battery status label */
.label-lg {
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

/* Flash icon animation for critical batteries */
@keyframes flash-blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.3;
    }
}

/* Recent Activity Badge for Orphaned Events */
.recent-activity-badge {
    background-color: #5bc0de !important;
    color: #fff !important;
    font-size: 10px !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
    display: inline-block !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    transition: all 0.2s ease !important;
}

.recent-activity-badge:hover {
    background-color: #46b8da !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}

.recent-activity-badge .glyphicon {
    font-size: 9px !important;
    margin-right: 4px !important;
}

/* RBAC Badge Styles - Modern Minimal Design */
/* Old rbac-badge styles removed - replaced with modern user-badge system */

/* RBAC Filter Container Styles */
.rbac-filters {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.rbac-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.rbac-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin: 0;
    line-height: 1.2;
}

.rbac-input, .rbac-select {
    height: 34px;
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
}

.rbac-input:focus, .rbac-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Filter Toggles Styles */
.rbac-filter-toggles {
    display: flex;
    gap: 20px;
    align-items: center;
    height: 34px; /* Match the height of form controls */
}

.rbac-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.rbac-toggle input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    flex-shrink: 0;
}

.rbac-toggle input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m13.854 3.646-7.5 7.5a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6 10.086l7.146-7.14a.5.5 0 0 1 .708.708z'/%3e%3c/svg%3e");
}

.rbac-toggle-label {
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    user-select: none;
    line-height: 1;
    margin: 0;
}

/* Loading states for action buttons */
.rbac-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.rbac-action-btn .fa-spinner {
    color: #dc2626 !important;
}

.btn:disabled .fa-spinner {
    color: #dc3545 !important;
}

/* Organization Tree Styling */
.org-summary {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 3px;
}

.org-summary h4 {
    margin: 0 0 15px 0;
    color: #495057;
}

.org-summary-card {
    background: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 3px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.org-summary-card.active {
    border-color: #007bff;
    background: #e7f3ff;
}

.org-summary-card strong {
    display: block;
    margin-bottom: 5px;
    color: #495057;
}

.org-summary-card .badge {
    background: #007bff;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.organization-tree {
    margin-top: 20px;
}

.organization-section {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.org-header {
    background: #f5f5f5;
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
}

.org-header i.fa {
    margin-right: 10px;
    width: 12px;
}

.org-title {
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.user-count {
    color: #6c757d;
    font-weight: normal;
    margin-left: 8px;
    font-size: 14px;
}

.org-title .btn {
    margin-left: 10px;
}

.org-users {
    padding: 15px;
    background: white;
}

.no-users {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
}

.user-hierarchy-card {
    background: white;
    border: 1px solid #e9ecef;
    margin-bottom: 10px;
    border-radius: 3px;
}

.user-hierarchy-card .user-card {
    padding: 15px;
    position: relative;
}

.hierarchy-line {
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #ddd;
}

.expand-toggle {
    float: left;
    margin-right: 10px;
    cursor: pointer;
    width: 20px;
    text-align: center;
}

.expand-spacer {
    float: left;
    width: 20px;
    margin-right: 10px;
}

.child-users {
    border-left: 1px solid #eee;
    margin-left: 15px;
}

.user-info {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    font-weight: 600;
    color: white;
    background: #007bff;
}

.avatar-initials {
    font-size: 14px;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-details h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.user-meta span {
    padding: 3px 8px;
    background: #f8f9fa;
    border-radius: 3px;
    font-size: 12px;
    color: #495057;
    border: 1px solid #e9ecef;
}

.user-type {
    background: #e7f3ff !important;
    color: #0056b3 !important;
    font-weight: 500;
}

.security-level {
    background: #fff3cd !important;
    color: #856404 !important;
}

.user-email {
    background: #f0f9ff !important;
    color: #0284c7 !important;
}

.badge-secondary {
    background: #6c757d !important;
    color: white !important;
}

.badge-warning {
    background: #ffc107 !important;
    color: #212529 !important;
}

.user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.user-actions select {
    min-width: 200px;
}

.user-actions .btn {
    white-space: nowrap;
}

.user-access {
    padding-top: 10px;
    border-top: 1px solid #f1f3f4;
    color: #6c757d;
    font-size: 12px;
}

.org-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.org-empty-state .empty-icon {
    margin-bottom: 20px;
}

.org-empty-state .empty-message {
    font-size: 16px;
    font-style: italic;
    margin: 0;
}

/* Legacy Migration Styles */
.legacy-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.legacy-header {
    margin-bottom: 30px;
}

.legacy-header h4 {
    color: #2d3748;
    margin-bottom: 10px;
}

.legacy-description {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
}

.legacy-stats .badge {
    background-color: #3182ce;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
}

.legacy-migration-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legacy-migration-table th {
    background-color: #f7fafc;
    color: #2d3748;
    font-weight: 600;
    border: none;
    padding: 12px;
}

.legacy-user-row {
    border-bottom: 1px solid #e2e8f0;
}

.legacy-user-row:hover {
    background-color: #f8fafc;
}

.legacy-user-info {
    display: flex;
    align-items: center;
    padding: 15px 12px;
}

.legacy-user-info .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    margin-right: 12px;
    background-color: #6c757d;
}

.legacy-user-info .user-details h5 {
    margin: 0 0 4px 0;
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
}

.legacy-user-info .user-meta {
    font-size: 12px;
    color: #64748b;
}

.legacy-user-info .user-meta .user-email {
    margin-right: 8px;
}

.legacy-access {
    padding: 12px;
}

.legacy-access-details .access-item {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-size: 13px;
    color: #4a5568;
}

.legacy-access-details .access-item i {
    margin-right: 6px;
    width: 14px;
    color: #718096;
}

.legacy-access-details .no-access {
    color: #d69e2e;
    font-size: 13px;
}

.legacy-access-details .broad-access {
    color: #38a169;
    font-size: 13px;
    font-weight: 500;
}

/* User role labels now use Semantic UI .ui.label classes for modern, clean design */

.suggested-rbac {
    padding: 12px;
}

.rbac-preview .rbac-item {
    margin-bottom: 4px;
    font-size: 13px;
    color: #4a5568;
}

.rbac-preview .rbac-item strong {
    color: #2d3748;
}

.migration-actions {
    padding: 12px;
    text-align: center;
}

.legacy-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.legacy-empty-state .empty-icon {
    margin-bottom: 20px;
}

.legacy-empty-state h4 {
    color: #38a169;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .org-summary .col-md-4 {
        margin-bottom: 10px;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-avatar {
        margin-bottom: 10px;
    }
    
    .user-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .user-actions select {
        min-width: auto;
        width: 100%;
        margin-bottom: 8px;
    }

    .legacy-migration-table {
        font-size: 12px;
    }
    
    .legacy-user-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .legacy-user-info .user-avatar {
        margin-bottom: 8px;
    }
}









/* Environment Badge - Clean and minimal styling */
.env-badge {
    display: inline-block;
    padding: 3px 8px;
    margin-left: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 3px;
    vertical-align: middle;
}

.env-badge-dev {
    background-color: #3498db;
    color: #ffffff;
}

.env-badge-demo {
    background-color: #f39c12;
    color: #ffffff;
}
