@import url("root.css");
@import url("default.css");
@import url("avatar.css");
@import url("dropdown.css");
@import url("icon.css");
@import url("card.css");
@import url("input.css");
@import url("table.css");
@import url("labels.css");
@import url("button.css");
@import url("image.css");
@import url("breadcrumb.css");
@import url("pagination.css");
@import url("navtab.css");
@import url("accordion.css");
@import url("modal.css");
@import url("color.css");
@import url("border.css");
@import url("display.css");
@import url("spacing.css");
@import url("size.css");

/* Components */

@import url("progress.css");

/* Theme Toggle */
.themeToggle {
    --theme-toggle-width: 2.25em;
    --theme-toggle-height: 1.25em;
    --theme-toggle-diameter: 1em;
    --theme-toggle-offset: calc(
        (var(--theme-toggle-height) - var(--theme-toggle-diameter)) / 2
    );
    --theme-toggle-shadow: 10px;
    --theme-toggle-wider: 3em;
    --theme-toggle-light: var(--text-100);
    --theme-toggle-dark: var(--text-100);
    --theme-toggle-round: var(--bg-100);
    cursor: pointer;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}
.themeToggleBtn {
    display: inline-block;
    width: var(--theme-toggle-width);
    height: var(--theme-toggle-height);
    background-color: var(--theme-toggle-light);
    border-radius: calc(var(--theme-toggle-height) / 2);
    position: relative;
    transition: 0.3s all ease-in-out;
}
.themeToggleBtn::after {
    content: "";
    display: inline-block;
    width: var(--theme-toggle-diameter);
    height: var(--theme-toggle-diameter);
    background-color: var(--theme-toggle-round);
    border-radius: calc(var(--theme-toggle-diameter) / 2);
    position: absolute;
    top: var(--theme-toggle-offset);
    transform: translateX(var(--theme-toggle-offset));
    box-shadow: var(--theme-toggle-shadow) 0
        calc(var(--theme-toggle-shadow) * 4) rgba(0, 0, 0, 0.1);
    transition: 0.3s all ease-in-out;
}
.themeToggle.dark .themeToggleBtn {
    background-color: var(--theme-toggle-dark);
}
.themeToggle.dark .themeToggleBtn::after {
    transform: translateX(
        calc(
            var(--theme-toggle-width) - var(--theme-toggle-diameter) -
                var(--theme-toggle-offset)
        )
    );
    box-shadow: calc(var(--theme-toggle-shadow) * -1) 0
        calc(var(--theme-toggle-shadow) * 4) rgba(0, 0, 0, 0.1);
}

/* Layout */
.layout-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}
.layout-dashboard {
    padding-left: var(--sidebar-width);
}

/* Sidebar */
.sidebar-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.sidebar-container {
    padding: var(--space-sm);
    width: 100%;
    height: 100%;
}
.sidebar-content {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    background-color: var(--bg-200);
    padding: var(--space-sm);
    overflow-y: auto;
}
.sidebar-header {
    position: sticky;
    top: -10px;
    background-color: var(--bg-200);
    z-index: 9;
}
.sidebar-brand {
    width: 100%;
    display: block;
    padding: 0 24px;
}
.sidebar-brand img {
    width: 90%;
    height: 50px;
    margin-top: 5px;
    object-fit: contain;
}
.sidebar-item-wrap {
    padding: var(--space) 0;
    margin: 0;
}
.sidebar-item {
    display: block;
    margin: 0;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}
.sidebar-link span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-link:hover {
    background: var(--primary-color);
    color: var(--white-color);
}
.sidebar-link:active,
.sidebar-link:focus {
    background: var(--bg-300);
    color: var(--text-100);
}
.sidebar-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.sidebar-submenu {
    list-style: none;
    margin: 0;
    padding: var(--space-sm) var(--space);
    border-radius: var(--radius-sm);
    background-color: var(--bg-300);
}
.sidebar-submenu-item {
    margin-bottom: 0;
}
.sidebar-submenu-link {
    display: block;
    padding: var(--space-sm) 0;
}

.sidebar-toggle-mob {
    display: none;
    position: absolute;
    top: 26px;
    right: 0;
    transform: translateX(20%);
    z-index: 1000;
}

/* Notification */
.icon-text-flex {
    display: flex;
    align-items: center;
}
.icon-text-start {
    display: flex;
    align-items: start;
}
.icon-text-content {
    flex: 1;
    font-size: var(--font-size-sm);
    padding-top: var(--space-xs);
}
.icon-text-content p {
    flex: 1;
    font-size: var(--font-size-sm);
}
.notification-dropdown .dash-dropdown-item {
    padding: var(--space-sm) var(--space-xs);
    margin: 0 0 var(--space-xs);
    border-radius: var(--radius-sx);
}
.notification-dropdown .dash-dropdown-item .icon-text-flex {
    align-items: flex-start;
}
.notification-dropdown .dash-dropdown-item:hover {
    background-color: var(--bg-200);
}
.notification-box {
    display: block;
    width: 100%;
    border: 1px solid var(--border-100);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    line-height: 1.5;
}
.noti-status-change {
    display: flex;
    align-items: center;
    gap: var(--space);
    width: 100%;
}

/* Animation */
@keyframes slideUp {
    from {
        transform: translateY(50px);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(50px);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-50px);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideFarUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

@keyframes slideFarLeft {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideFarRight {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Login page */
.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
}
.login-form {
    width: 100%;
    max-width: 420px;
}

/* Chat Css */
.chat-wrap .card {
    height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}
.chat-wrap .card-header {
    flex-shrink: 1;
}
.chat-wrap .card-body {
    flex-grow: 1;
    overflow: auto;
}
.chat-list-item {
    margin-bottom: 16px;
}
.chat-list-item.right {
    text-align: right;
}
.chat-text {
    display: inline-flex;
    gap: 8px;
}
.chat-content {
    display: flex;
    flex-direction: column;
}
.left .chat-content {
    align-items: start;
}
.right .chat-content {
    align-items: end;
}
.chat-content p {
    background-color: var(--text-100);
    color: var(--bg-100);
    padding: var(--space-sm) var(--space);
    max-width: 360px;
    margin-bottom: var(--space-xs);
    display: inline-block;
    text-align: left;
}
.chat-content p a {
    color: var(--accent-info);
    word-break: break-all;
    display: block;
}
.chat-content p a:hover {
    text-decoration: underline;
}
.right .chat-content p {
    border-radius: var(--radius) 0 0 var(--radius);
}
.right .chat-content p:last-of-type {
    border-radius: var(--radius) 0 var(--radius) var(--radius);
}
.left .chat-content p {
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--bg-300);
    color: var(--text-100);
}
.left .chat-content p:last-of-type {
    border-radius: 0 var(--radius) var(--radius) var(--radius);
}
.img-grid {
    max-width: 360px;
    padding: var(--space-sm);
    border-radius: var(--radius);
}
.left .img-grid {
    background: var(--bg-300);
}
.right .img-grid {
    background: var(--text-100);
}
.img-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.chat-type {
    line-height: 0;
}
.chat-type .input-style {
    max-height: 120px;
    min-height: 48px;
    height: 48px;
    transition: none;
    line-height: 1.8;
}
.chat-type.input-with-icon .icon-btn {
    top: auto;
    bottom: 8px;
    transform: none;
}

/* Audio Player */

.audio-player-wrap {
    padding: var(--space-sm) var(--space);
    background: var(--bg-300);
    border-radius: var(--radius);
    text-align: left;
}
.audio-player {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space);
}
.audio-line {
    display: block;
    width: 200px;
    height: 2px;
    background: var(--text-300);
    margin-bottom: var(--space-sm);
    position: relative;
}
.audio-line:before {
    content: "";
    display: block;
    width: 20%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: var(--accent-info);
}
.audio-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.right .audio-player-wrap {
    background: var(--text-100);
    color: var(--bg-100);
}

.chat-file-wrap {
    padding: var(--space-sm);
    background: var(--bg-300);
    border-radius: var(--radius);
    text-align: left;
}
.chat-file {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 200px;
}
.right .chat-file-wrap {
    background: var(--text-100);
    color: var(--bg-100);
}

.day-divider {
    display: flex;
    align-items: center;
    gap: var(--space);
    font-size: var(--font-size-sm);
    color: var(--text-300);
    padding: var(--space) 0;
}
.day-divider:before,
.day-divider:after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: var(--border-100);
}

.employee-list span + span {
    margin-left: -16px;
}

@media only screen and (min-width: 992px) {
    /* Sidebar Minimize */
    .layout-wrap.open {
        --sidebar-width: 80px;
    }
    .layout-wrap.open .sidebar-link span {
        display: none;
    }
    .layout-wrap.open .sidebar-link span + i {
        display: none;
    }
    .layout-wrap.open .sidebar-brand {
        padding: 0;
    }

    .layout-wrap.open .sidebar-wrap,
    .layout-wrap.open .sidebar-content {
        overflow: unset;
    }
    .layout-wrap.open .sidebar-item {
        position: relative;
    }
    .layout-wrap.open .sidebar-item .sidebar-submenu {
        display: none;
        position: absolute;
        left: 100%;
        top: 0;
        width: auto;
        min-width: 150px;
        border: 1px solid var(--border-100);
        box-shadow: var(--shadow-sm);
        background: var(--bg-100);
        max-height: 600px;
        overflow: auto;
        border-radius: var(--radius-md);
        padding: var(--space-sm);
    }
    .layout-wrap.open .sidebar-item:hover .sidebar-submenu {
        display: block;
    }
    .layout-wrap.open .sidebar-submenu-link {
        padding: var(--space-sm) var(--space);
        border-radius: var(--radius-sm);
    }
    .layout-wrap.open .sidebar-submenu-link:hover {
        background-color: var(--bg-200);
        color: var(--text-100);
    }

    .sidebar-toggle-btn.open i {
        transform: rotate(180deg);
    }
}
@media only screen and (max-width: 991px) {
    .layout-dashboard {
        padding-left: 0;
    }
    .sidebar-wrap {
        overflow: unset;
        position: relative;
    }
    .sidebar-content {
        background-color: var(--bg-100);
        box-shadow: 8px 0 25px rgba(0, 0, 0, 0.25);
        border: 1px solid var(--border-100);
    }
    .layout-wrap .layout-sidebar {
        transform: translateX(-110%);
    }
    .layout-wrap.open .layout-sidebar {
        transform: none;
    }
    .sidebar-toggle-mob {
        display: block;
    }
    .sidebar-toggle-btn i {
        transform: rotate(180deg);
    }
    .sidebar-toggle-btn.open i {
        transform: unset;
    }
}

/* tooltip for lift list page */
.custom-tooltip {
    position: relative;
    display: inline-block;
}
/* .icon-stack i {
    margin-right: 4px;
    font-size: 18px;
} */

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 110px;
    background: #222;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 4px 6px;
    position: absolute;
    z-index: 10;
    bottom: -32%; /* show above by default */
    left: -70%;
    transform: translateX(-30%);
    transition: opacity 0.2s ease;
    font-size: 8px;
    line-height: 1.1em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 80%;
    margin-left: 4px;
    border-width: 4px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-link {
    color: var(--accent-info);
    text-decoration: none;
    display: block;
    margin-top: 2px;
}
.tooltip-link:hover {
    text-decoration: underline;
}
.battery-fs {
    font-size: var(--space-md);
}
.alert-fs {
    font-size: var(--font-size-h5);
}
.text-font {
    font-size: 11px;
}
.clientLabel {
    font-size: var(--font-size-p);
    font-weight: var(--font-weight-regular);
    color: var(--text-200);
    width: 130px;
    flex-shrink: 0;
}
.client-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space);
}
.clientValue {
    flex: 1;
    word-break: break-word;
    white-space: normal;
}
.dot-icon {
    background-color: var(--bg-200);
}
.pointer {
    cursor: pointer;
}

/* Fault code tooltip new */
.icon-stack {
    display: flex;
    gap: 8px;
}
.fault-icon-wrapper {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}
.fault-tooltip {
    position: absolute;
    bottom: 125%;
    left: 10%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    padding: 6px;
    border-radius: 6px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

/* Tooltip arrow */
.fault-tooltip::after {
    content: "";
    position: absolute;
    top: 96%;
    left: 11%;
    transform: translateX(-58%);
    border-width: 6px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

/* Show on hover */
.fault-icon-wrapper:hover .fault-tooltip {
    opacity: 1;
    visibility: visible;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tabs {
    display: flex;
    gap: var(--space);
}
.tab-btn {
    background: none;
    border: none;
    padding: 6px 10px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-100);
    border-bottom: 1px solid transparent;
}
.tab-btn.active {
    color: var(--text-100);
    border-bottom: 1px solid var(--text-100);
}
.tab-btn-new {
    background: none;
    border: none;
    padding: 6px 10px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    color: var(--text-100);
    border-bottom: 1px solid transparent;
}
.tab-btn-new.active {
    color: var(--text-100);
    border-bottom: 1px solid var(--text-100);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.tab-content-new {
    display: none;
}
.tab-content-new.active {
    display: block;
}
.desc-col {
    width: 300px;
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
}
.filter-toggle {
    cursor: pointer;
    margin-left: 3px;
}
.filter-dropdown {
    display: none;
    position: absolute;
    top: 28px;
    right: 0;
    width: 220px;
    background: var(--text-200);
    border: 1px solid var(--bg-400);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 10px;
    z-index: 1000;
}
.filter-options {
    max-height: 150px;
    overflow-y: auto;
}
.filter-options label {
    display: block;
    font-size: var(--font-size-12);
    margin-bottom: 4px;
    cursor: pointer;
    color: var(--text-100);
}
.filter-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.btn-cancel,
.btn-new-cancel {
    background: var(--bg-300);
    border: 1px solid var(--bg-300);
    padding: 4px 10px;
    cursor: pointer;
}
.btn-apply,
.btn-new-apply {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 4px 10px;
    cursor: pointer;
}

/* DATE FILTER DROPDOWN */
.filter-dropdown {
    position: absolute;
    top: 42px;
    right: 0;
    width: 220px;
    background: var(--bg-100);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 14px;
    z-index: 1000;
    display: none;
    font-family: "Inter", sans-serif;
}
/* Header */
.filter-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-100);
    margin-bottom: 12px;
}
/* Inputs wrapper */
.filter-options-date {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* Label */
.filter-options-date label {
    font-size: var(--font-size-12);
    font-weight: var(--font-weight-medium);
    color: #555;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}
.timeframe-select{
    background-color: var(--bg-300) !important;
    color: var(--text-100) !important;
}
/* Date input */
.filter-date-input {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--text-200);
    font-size: 12px;
    transition: all 0.2s ease;
    background: var(--text-300);
}
.filter-date-input:focus {
    outline: none;
    border-color: var(--accent-info);
    background: var(--bg-100);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}
.date-picker-dropdown {
    position: relative;
    display: inline-block;
}
.date-picker-panel {
    display: none;
    position: absolute;
    top: 35px;
    right: 0;
    width: 220px;
    background: var(--bg-100);
    border: 1px solid var(--bg-200);
    padding: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    z-index: 1000;
}
.date-picker-panel h6 {
    margin-bottom: 10px;
}
.date-picker-panel label {
    font-size: var(--font-size-12);
    margin-top: 6px;
    display: block;
}
.date-picker-panel input[type="date"] {
    width: 100%;
    margin-bottom: 10px;
}
.date-picker-actions {
    display: flex;
    justify-content: space-between;
    gap: var(--space-xs);
}
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Style the loading overlay */

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: var(--text-300);
    font-weight: var(--font-weight-bold);
    z-index: 1;
}
.canvas-container {
    position: relative;
    background-color: var(--bg-200);
}
#lift-tooltip {
    background: var(--bg-100);
    border: 1px solid var(--bg-200);
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    pointer-events: auto;
    min-height: 100px; /* default height */
}

/* groups style */
.dashboard-cards {
    width: 100%;
}
.dashboard-card {
    flex: 0 0 calc((100% - 64px) / 5);
    height: 160px;
    background: var(--bg-100);
    border: 1px solid var(--border-100);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    padding: 25px;
    box-sizing: border-box;
}
.dashboard-card:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.card-content-wrapper {
    width: 100%;
}
.group-card-text {
    color: var(--text-200);
    font-size: var(--font-size);
    margin: 0 0 5px;
    white-space: nowrap;
}
.card-number {
    color: var(--text-100);
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-bold);
    margin: 0;
}
.group-card-icon {
    width: var(--avatar-width-md);
    height: var(--avatar-width-md);
    border-radius: 50%;
}
.group-icon-font{
    font-size: 24px;
}
.info-alert {
    width: 99%;
    padding: 22px 25px;
    background: var(--bg-info-alert);
    border: 1px solid var(--border-info-alert);
    border-radius: var(--radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    color: var(--text-info-alert);
}
.danger-alert {
    width: 99%;
    padding: 22px 25px;
    background: var(--bg-label-danger);
    border: 1px solid var(--border-danger);
    border-radius: var(--radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    color: var(--text-danger);
}
.alert-icon {
    width: 22px;
    height: 22px;
}
.alert-content {
    font-size: var(--font-size-p);
    font-weight: var(--font-weight-regular);
    /* line-height: var(--font-size-h6); */
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
}

.accordion-inner {
    padding: 20px 24px;
    border-top: 1px solid var(--border-100);
    color: #6b7280;
    width: 100%;
    box-sizing: border-box;
}

/* Open state */
.card-accordian {
    background: var(--bg-100);
    color: #111827;
    border: 1px solid var(--border-100);
    border-radius: var(--radius-12);
    padding: 12px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.card-btn-accordian {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.card-content-accordian {
    padding: 12px 24px;
    font-family: "Inter", sans-serif;
}
.card-content-accordian:focus-visible {
    outline: none;
}
/* Left Section */
.left-section {
    min-width: 0;
}
.bg-none{background-color: transparent !important;}
.arrow-accordian {
    font-size: var(--font-size-h3);
    color: #9ca3af;
    line-height: 1;
    font-weight: var(--font-weight-semibold);
}
.status-dot {
    border-radius: 50%;
    flex-shrink: 0;
}
.info-accordian {
    min-width: 0;
}
.title-accordian {
    font-size: var(--font-size-h6);
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-100);
}
.company-accordian {
    margin: 4px 0 0;
    font-size: var(--font-size-12);
    color: var(--text-200);
}
/* Badge */
.badge-accordian {
    padding: 2px 8px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-sm);
}
.badge-warning {
    color: var(--accent-warning);
    background: var(--bg-label-warning);
    border: 1px solid var(--border-warning);
}
.badge-danger {
    color: var(--accent-danger);
    background: var(--bg-label-danger);
    border: 1px solid var(--border-danger-2);
}
.badge-success {
    color: var(--accent-success);
    background: var(--bg-label-success);
    border: 1px solid var(--border-success);
}
/* Stats */
.stat {
    text-align: right;
}
.stat span {
    display: block;
    font-size: var(--font-size-12);
    color: var(--text-200);
}
.stat strong {
    display: block;
    margin-top: 3px;
    font-size: var(--font-size-p);
    font-weight: var(--font-weight-semibold);
    color: var(--text-100);
}
.fault-color {
    color: var(--accent-warning) !important;
}
.card-accordian.active .accordion-content {
    max-height: none;
}
.card-accordian.active .arrow-accordian {
    transform: rotate(90deg);
}
.arrow-accordian {
    transition: transform 0.3s ease;
}
.lift-group-title {
    display: block;
    font-size: var(--font-size-p);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space);
}
.lift-skeleton-card {
    background: var(--bg-100);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.skeleton-lift {
    background: linear-gradient(
        90deg,
        #eeeeee 25%,
        #f5f5f5 50%,
        #eeeeee 75%
    );

    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 6px;
}
.skeleton-title {
    width: 60%;
    height: 18px;
    margin-bottom: 15px;
}
.skeleton-text {
    width: 90%;
    height: 12px;
    margin-bottom: 10px;
}
.skeleton-small {
    width: 50%;
    height: 12px;
}
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Lift Cards Grid */
.lift-card-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space);
    width: 100%;
}
/* Card */
.lift-card {
    background: var(--bg-100);
    border: 1px solid var(--border-100);
    border-radius: var(--radius-14);
    padding: var(--space);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.rm-text {
    margin: 4px 0 0;
    font-size: var(--font-size-12);
    color: var(--text-200);
}
.online-badge {
    font-size: var(--font-size-12);
    padding: 4px 10px;
    /* border: 1px solid var(--border-success); */
    border-radius: var(--radius-sm);
    /* color: var(--accent-success); */
}
.online-badge-success {
    border: 1px solid var(--border-success);
    color: var(--accent-success);
}
.online-badge-warning {
    border: 1px solid var(--border-warning);
    color: var(--accent-warning);
}
.online-badge-danger {
    border: 1px solid var(--border-danger);
    color: var(--accent-danger);
}
.offline-badge{
    font-size: var(--font-size-12);
    padding: 4px 10px;
    border: 1px solid var(--border-danger);
    border-radius: var(--radius-sm);
    color: var(--accent-danger);
}

/* Stats */
.lift-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12);
    margin-top: var(--space);
}

.lift-stat {
    background: var(--bg-200);
    border-radius: var(--radius-12);
    text-align: center;
    padding: 10px 5px;
}

.lift-stat label {
    display: block;
    font-size: var(--font-size-12);
    color: var(--text-200);
    margin-top: var( --space-xs);
}

.lift-stat strong {
    display: block;
    font-size: var(--font-size-p);
    margin-top: var(--space-xxs);
    color:var(--text-100);
}

/* Footer */
.fault-badge {
    font-size: var(--font-size-12);
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    color: var(--accent-warning);
    border: 1px solid var(--border-warning);
}

/* Button */
.view-btn {
    width: 100%;
    margin-top: 16px;
    height: 34px;
    cursor: pointer;
}
.lift-details-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}
/* Common Card */
.sync-card,
.timeline-card {
    background: var(--bg-100);
    border: 1px solid var(--border-100);
    border-radius: var(--radius-14);
    padding: var(--space-lg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.sync-card h3,
.timeline-card h3 {
    margin: 0 0 28px;
    font-size: var(--font-size-h6);
    font-weight: var(--font-weight-bold);
}
/* Synchronization */
.aligned-badge {
    border: 1px solid var(--border-success);
    border-radius: var(--radius-sm);
    color: var(--accent-success);
    padding: 2px 8px;
    font-size: var(--font-size-12);
}
.deviating-badge {
    border: 1px solid var(--bg-label-danger);
    border-radius: var(--radius-sm);
    color: var(--accent-danger);
    padding: 2px 8px;
    font-size: var(--font-size-12);
    font-weight: var(--font-weight-semibold);
}
.line {
    position: absolute;
    top: 50%;
    left: var(--space);
    right: var(--space);
    border-top: 3px dashed var(--accent-info);
}
.lift-height-item {
    z-index: 1;
    text-align: center;
}
.lift-height-item strong {
    display: block;
    margin-bottom: var(--space-md);
    font-size: var(--font-size-p);
}
.lift-height-item span {
    color: var(--text-200);
    font-size: var(--font-size-12);
}
.chart-legends {
    font-size: var(--font-size-12);
    color: var(--text-200);
}
/* Timeline */
.timeline {
    position: relative;
    max-height: 350px;
    overflow-y: scroll;
    cursor: pointer;
}
.timeline::-webkit-scrollbar {
    width: 2px;
}
.timeline::-webkit-scrollbar-track {
    background: transparent;
}
.timeline::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: var(--radius-sm);
    min-height: 20px;
}
/* Any timeline item hover */
.timeline:has(.timeline-item:hover)::-webkit-scrollbar-thumb {
    background: var(--text-300);
}
.timeline:has(.timeline-item:hover)::-webkit-scrollbar-track {
    background: var(--bg-300);
}
.timeline:has(.timeline-item:hover)::-webkit-scrollbar-thumb:hover {
    background: var(--text-200);
}

.timeline:before {
    content: "";
    position: absolute;
    left: 14px;
    top: 10px;
    bottom: 0;
    width: 1px;
    background: var(--border-100);
}
.timeline-item {
    display: flex;
    gap: 14px;
    margin-bottom: var(--space);
    position: relative;
}
.timeline-icon {
    width: var(--space-xl);
    height: var(--space-xl);
    border-radius: 50%;
    background: var(--bg-100);
    border: 1px solid var(--border-100);
    z-index: 1;
}
.timeline-item strong {
    display: block;
    font-size: var(--font-size-p);
}
.timeline-item small {
    display: block;
    color: var(--text-200);
    margin-top: 3px;
    font-size: var(--font-size-12);
}
.group-detail-card {
    margin-top: var(--space-md);
    background: var(--bg-100);
    border: 1px solid var(--border-100);
    border-radius: var( --radius-14);
    padding: var(--space-lg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
/* Details */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space);
}
.detail-item {
    background: var(--bg-200);
    border-radius: var(--radius-12);
    padding: var(--space-12);
    border: 1px solid var(--border-100);
}
.detail-item span {
    display: block;
    font-size: var(--font-size-12);
    color: var(--text-200);
    margin-bottom: 5px;
}
.detail-item strong {
    font-size: var(--font-size-h6);
    font-weight: var(--font-weight-bold);
    color: var(--text-100);
}
/* Footer */
.view-group-btn {
    height: var(--space-xxl);
    font-size: var(--font-size-p);
    font-weight: var(--font-weight-medium);
    padding: 6px 18px;
    cursor: pointer;
}
.status-big-dot{
    width:var(--space);
    height:var(--space);
    min-width:var(--space);
    border-radius:50%;
    margin-top:6px;
}
.group-title{
    font-size:var(--font-size-h4);
    font-weight:var(--font-weight-bold);
    color:var(--text-100);
    line-height:1.2;
}
.group-overview-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(180px,1fr));
    gap:var(--space);
}
.group-overview-card{
    min-height:185px;
    background:var(--bg-100);
    border:1px solid var(--bg-300);
    border-radius:var(--radius);
    box-shadow:0 2px 8px rgba(15,23,42,.08);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:var(--space-lg);
    text-align:center;
    transition:.25s;
}
.group-overview-card:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.group-overview-title{
    font-size:var(--font-size-p);
    color:var(--text-200);
    margin-bottom:6px;
}
.group-overview-value{
    font-size:var(--font-size-h5);
    font-weight:var(--font-weight-bold);
    color:var(--text-100);
    line-height:1.2;
}
.group-overview-subtitle{
    margin-top:var(--space-sm);
    font-size:var(--font-size-p);
    color:var(--text-200);
}
.group-overview-badge{
    margin-top:10px;
    padding:5px 12px;
    border-radius:var(--radius-sm);
    border:1px solid var(--border-warning);
    color:var(--accent-warning);
    font-size:var(--font-size-12);
    font-weight:var(--font-weight-semibold);
}
/* Current group card */
.current-group-card {
    background: var(--bg-info-alert);
    border: 1px solid var(--border-info-alert);
    border-radius: var(--radius-14);
    padding: 22px 24px;
    box-shadow: 0 2px 6px var(--bg-400);
}
.not-group-card {
    background: var(--bg-200);
    border: 1px solid var(--border-100);
    border-radius: var(--radius-14);
    padding: 24px;
    box-shadow: 0 2px 6px var(--bg-400);
}
/* Header */
.current-group-header {
    margin: 0;
    font-size: var(--font-size-h6);
    font-weight: var(--font-weight-semibold);
    color: var(--text-100);
}
.group-icon {
    color: var(--accent-info);
    font-size: var(--font-size-h6);
}
/* Lift Tags */
.lift-tags {
    gap: var(--space-sm);
}
.lift-tags span {
    background: var(--bg-100);
    border: 1px solid var(--border-100);
    border-radius: var(--radius-sm);
    padding: 4px 12px;
    font-size: var(--font-size-12);
    font-weight: var(--font-weight-regular);
    color: var(--text-200);
}
.error-text{
    font-size:var(--font-size-12);
}
.input-label span {
    color: var(--accent-danger);
    font-size: var(--font-size-12);
    margin-left: var(--space-xxs);
}
.text-capital {
    text-transform: capitalize;
}
.line-height-1-5{
    line-height: 1.5;
}

.password-input-wrapper {
    position: relative;
}
.password-input-wrapper .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}
/* Responsive */
@media (max-width: 1100px) {
    .dashboard-card {
        flex-basis: calc((100% - 48px) / 4);
    }
}
/* Tablet */
@media (max-width: 900px) {
    .dashboard-card {
        flex-basis: calc((100% - 32px) / 3);
    }
}
/* Mobile */
@media (max-width: 600px) {
    .dashboard-card {
        flex-basis: calc((100% - 16px) / 2);
    }
}
/* Small mobile */
@media (max-width: 400px) {
    .dashboard-card {
        flex-basis: 100%;
    }
}
@media (max-width: 900px) {
    .card-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats {
        width: 100%;
        justify-content: space-between;
    }
}
@media (max-width: 1100px) {
    .lift-card-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .lift-card-wrapper {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1200px) {
    .lift-card-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 768px) {
    .lift-card-wrapper {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 900px) {
    .lift-details-section {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width:1200px){
    .group-overview-grid{
        grid-template-columns:repeat(3,1fr);
    }
}
@media (max-width:768px){
    .group-overview-grid{
        grid-template-columns:repeat(2,1fr);
    }
}
@media (max-width:480px){
    .group-overview-grid{
        grid-template-columns:1fr;
    }
}
@media (max-width: 900px), (max-height: 641px) {
    .accordion-inner {
        height: 100vh;
        overflow-y: auto;
    }
}
@media (max-width: 600px) {
    .group-stats-section {
        display: none !important;
    }
}

.battery-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
/* Light theme */
.battery-red {
    background-color: var(--bg-label-danger);
    color: var(--accent-danger);
}
.battery-orange {
    background-color: var(--bg-label-warning);
    color: var(--accent-warning);
}
.battery-green {
    background-color: var(--bg-label-success);
    color: var(--accent-success);
}
.battery-default {
    background-color: var(--bg-300);
    color: var(--text-200);
}
.group-sync-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    cursor: pointer;
}
.group-sync-status i {
    font-size: 18px;
}
.sync-status-text {
    font-size: 12px;
}
@media (max-width: 768px) {
    .group-sync-status {
        gap: 0;
        width: 28px;
        justify-content: center;
    }
    .sync-status-text {
        display: none;
    }
    .group-sync-status i {
        font-size: 18px;
    }
}
/* Responsive Select Dropdown */
.select-responsive-up .select-menu {
    width: 260px;
    max-height: 300px;
    overflow-y: auto;
}
/* Open dropdown upward */
.select-responsive-up.open-up .select-menu {
    top: auto;
    bottom: calc(100% + 5px);
}
/* Search box fixed while scrolling */
.select-responsive-up .select-menu .input-group {
    position: sticky;
    top: 0;
    background: var(--dropdown-bg);
    z-index: 2;
}
/* Responsive width */
@media(max-width:768px){

    .select-responsive-up .select-menu {
        width: 100%;
        min-width: 220px;
        max-width: 300px;
    }
}

.metric-tabs {
    display:flex;
    gap:var(--space-sm);
    flex-wrap:wrap;
}
.metric-tab {
    padding:6px 12px;
    border-radius:10px;
    border:1px solid var(--bg-400);
    background:var(--bg-100);
    cursor:pointer;
    color:var(--text-100);
}
.metric-tab.active {
    background:var(--accent-info);
    color: var(--bg-100);
}
.parameter-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap:var(--space);
}
.lift-metric-card {
    padding:15px;
    border-radius:var(--radius-12);
    background:var(--bg-200);
    box-shadow: var(--shadow-sm);
}
.metric-value {
    font-size:var(--font-size-12);
    font-weight:var(--font-weight-bold);
    margin:10px 0;
}
.progress-bg {
    height:8px;
    background:var(--bg-300);
    border-radius:var(--radius-sm);
}
.progress-fill {
    height:100%;
    background:var(--accent-info);
    border-radius:var(--radius-sm);
}
@media(max-width:576px){
.metric-tab{width:100%;}
}
.sync-box{
    max-height: 350px;
    overflow-y: scroll;
}
#group-action-dropdown {
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}
.card-btn-accordian:hover #group-action-dropdown {
    opacity: 1;
    visibility: visible;
}
.truck-container {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.truck-stage {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform .3s ease;
    transform-origin: center center;
}
.truck-image {
    width: 100%;
    height: 100%;
    object-fit: contain;

    transform-origin: center center;
    transition: transform 0.3s ease;
}
.truck-image.flip {
    transform:scaleX(-1);
}
.truck-image.rotate-left {
    transform:rotate(-90deg);
}
.truck-image.rotate-right {
    transform:rotate(90deg);
}
.lift-position {
    position: absolute;
    z-index: 5;
}
.lift-label {
    padding: 10px;
    border: 1px solid var(--border-100);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: var(--font-size-p);
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
    background-color: var(--bg-label-info);
}
/* 8 Lift - Rotated View */
.truck-container.layout-8.rotated .lift-label {
    width: 94px;
    height: 70px;
    padding: 6px 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
}
.truck-container.layout-8.rotated .lift-label br {
    display: none;
}
.truck-container.layout-8.rotated .lift-label {
    white-space: normal;
    word-break: break-all;
}
.pagination-btn {
    min-width: var(--avatar-width-xs);
    height: var(--avatar-width-xs);
    padding: 0 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-100);
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-family);
    color: var(--text-100);
}
.pagination-btn.active {
    background: var(--accent-info);
    color: var(--bg-100);
    border-color: var(--accent-info);
}
.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pagination-dots {
    min-width: var(--avatar-width-xs);
    height: var(--avatar-width-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-100);
}
/* Synchronization Visual Graph */
.sync-area-chart {
    width: 100%;
    height: 250px;
    position: relative;
}
.sync-area-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}
.sync-area-grid {
    stroke: var(--border-100);
    stroke-width: 1;
}
.sync-area-axis-label {
    font-size: 11px;
    fill: var(--text-100);
}
.sync-area-fill {
    fill: rgba(32, 174, 229, 0.12);
}
.sync-area-line {
    fill: none;
    stroke: var(--accent-info);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sync-area-point {
    fill: var(--accent-info);
    stroke: var(--bg-100);
    stroke-width: 3;
}
.sync-area-point.deviating {
    fill: var(--accent-danger);
}
.sync-area-value {
    font-size: var(--font-size-12);
    font-weight: var(--font-weight-semibold);
    fill: var(--text-100);
}
.sync-area-value.deviating {
    fill: var(--accent-danger);
}
.sync-area-lift-label {
    font-size: 11px;
    fill: var(--text-200);
}
.sync-area-group-line {
    stroke: var(--accent-info);
    stroke-width: 2;
    stroke-dasharray: 7 5;
}
.sync-area-group-label {
    font-size: var(--font-size-12);
    font-weight: var(--font-weight-semibold);
    fill: var(--accent-info);
}
.sync-line-empty {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-200);
    font-size: var(--font-size-p);
}