html,
body {
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-smoothing: antialiased;
    overflow: hidden;
}

.header {
    display: block;
    flex: 0;
    text-align: right;
    background-color: #4a4a4a;
    color: #fff;
    padding: 5px;
    z-index: 1980;
}

    .header .disableapp {
        margin: 58px 0 0 0;
        background-color: #252525;
        opacity: .5;
        position: fixed;
        padding: 0;
        z-index: 1979;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        text-align: center;
        padding: 40px;
        font-size: 30px;
    }

    .header span {
        display: inline-block;
        margin: 6px 10px;
    }

[data-status='busy'] {
    color: red;
}

.title .tag {
    background: transparent !important;
}

.active {
    background: yellow;
}

    .active:hover {
        background: yellow !important;
    }

.checkbox.checked {
    color: #00da00;
}

.search {
    width: 100%;
    font-size: 22px;
    padding: 10px 5px;
    border: none;
    border-bottom: 1px solid #efefef;
    position: fixed;
    outline: none;
    z-index: 10;
}

.list-container {
    margin-top: 55px;
}

ul li h3 .available:before,
ul li h3 .unavailable:before,
ul li h3 .away:before {
    content: "brightness_1";
    color: #00da00;
    font-family: 'Material Icons';
    font-size: 14px;
    line-height: 1.8rem;
    margin: 0;
}

ul li h3 .unavailable:before {
    color: red;
}

ul li h3 .away:before {
    color: #ffd800;
}

.columns-container {
    height: 100%;
}

.statusRed {
    background-color: #7F0000 !important;
    color: #ffffff !important;
}

.highPriority {
    color: #e90808;
}

.highPriority-text {
    animation: urgent-flash 0.8s infinite;
    font-weight: 900;
}

@keyframes urgent-flash {
    0% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 8px rgba(233, 8, 8, 0.8);
        background-color: rgba(233, 8, 8, 0.1);
    }

    25% {
        opacity: 0.4;
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(233, 8, 8, 1);
        background-color: rgba(233, 8, 8, 0.2);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
        text-shadow: 0 0 25px rgba(233, 8, 8, 1);
        background-color: rgba(233, 8, 8, 0.3);
    }

    75% {
        opacity: 0.4;
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(233, 8, 8, 1);
        background-color: rgba(233, 8, 8, 0.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 8px rgba(233, 8, 8, 0.8);
        background-color: rgba(233, 8, 8, 0.1);
    }
}

/* Flashy burst sequence for DEMO ACCOUNT */
.demoAccountPriority-text {
    animation: flashy-burst 3s infinite;
    font-style: italic;
}

@keyframes flashy-burst {
    0%, 70% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(152, 56, 255, 0.5);
        transform: scale(1);
    }

    75% {
        opacity: 0.2;
        text-shadow: 0 0 2px rgba(152, 56, 255, 0.3);
        transform: scale(0.95);
    }

    80% {
        opacity: 1;
        text-shadow: 0 0 12px rgba(152, 56, 255, 0.8);
        transform: scale(1.15);
    }

    85% {
        opacity: 0.4;
        text-shadow: 0 0 8px rgba(152, 56, 255, 0.6);
        transform: scale(1.01);
    }

    90% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(152, 56, 255, 0.9);
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(152, 56, 255, 0.5);
        transform: scale(1);
    }
}

.aftermarketOnlyPriority-text {
    animation: aftermarket-pulse 2s infinite;
    color: #ff6600;
}

@keyframes aftermarket-pulse {
    0% {
        opacity: 1;
        text-shadow: 0 0 4px rgba(255, 102, 0, 0.6);
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        text-shadow: 0 0 12px rgba(255, 102, 0, 1);
        transform: scale(1.08);
    }

    100% {
        opacity: 1;
        text-shadow: 0 0 4px rgba(255, 102, 0, 0.6);
        transform: scale(1);
    }
}

.lowPriority {
    color: #22e908;
}

.statusOrange {
    background-color: #FF6A00 !important;
    color: #ffffff !important;
}

.statusYellow {
    background-color: #FFD800 !important;
    color: #000000 !important;
    font-weight: 600;
}

.statusLightGreen {
    background-color: #7FFF8E !important;
    color: #000000 !important;
    font-weight: 600;
}

.statusGreen {
    background-color: #007F0E !important;
    color: #ffffff !important;
}

.statusBlue {
    background-color: #3855FF !important;
    color: #ffffff !important;
}

.statusLightBlue {
    background-color: #38B9FF !important;
    color: #ffffff !important;
}

.statusGray {
    background-color: #ffffff !important;
    color: #000000 !important;
}

#workOrders .list-container {
    position: relative;
}

    #workOrders .list-container div {
        margin: 5px;
    }

    #workOrders .list-container .control.is-expanded {
        padding-top: 5px;
    }

#workOrders ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#workOrders li {
    padding: 10px 20px;
    border-bottom: 1px solid #efefef;
}

    #workOrders li:hover {
        background: rgba(255, 255, 0, 0.22);
        cursor: pointer;
    }

#workOrders h1 {
    font-size: 24px;
    display: inline;
}

#workOrders .assignedTo {
    float: right;
    margin: -100px 0 0 0 !important;
    text-align: right;
    padding-right: 20px;
}

    #workOrders .assignedTo span {
        display: block;
        margin-bottom: 4px;
    }

.timeElapsed:not(:empty):before,
#workOrders .assignedUser:not(:empty):before,
#workOrders .assignedTool:not(:empty):before,
#workOrders .locationName:not(:empty):before,
#workOrders .year:not(:empty):before,
#workOrders .assignedUser:hover:after,
#workOrders .assignedTool:hover:after,
#users ul li .update-user-status:before {
    content: "face";
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    position: absolute;
    margin: -1px 0 0 -30px;
}

#workOrders .assignedUser:hover:after,
#workOrders .assignedTool:hover:after {
    content: " clear";
    color: red;
    margin-left: 10px;
}

.timeElapsed {
    font-size: 14px;
}

    .timeElapsed:not(:empty):before {
        content: " access_time";
        margin: 3px 0 0 -18px;
        font-size: 14px;
    }

#workOrders .locationName {
    padding-left: 30px;
}

#workOrders .year {
    padding-left: 45px;
}

#workOrders .locationName:not(:empty):before {
    content: "home";
    margin-left: -30px;
}

#workOrders .year:not(:empty):before {
    content: "directions_car";
    margin-left: -30px;
}

#workOrders .assignedTool:not(:empty):before {
    content: "settings_input_hdmi";
}

.material-icons.orange600 {
    color: #FB8C00;
}

.material-icons.red600 {
    color: #FF0000;
}

#workOrders .chat-status-on {
    color: yellow;
}

#workOrders .chatting {
    float: left;
    font-size: 20px;
    top: -12px;
    position: relative;
    left: 10px;
}

#workOrders h1.id {
    position: relative;
    top: 0px;
    display: inline-block;
    vertical-align: top;
}

#workOrders .status {
    padding: 3px 20px;
    border: 1px solid #ccc;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    border-radius: 20px;
    position: relative;
    top: 2px;
    display: inline-block;
    vertical-align: top;
    margin-left: 10px;
}

#workOrders .update-status {
    position: relative;
    top: 4px;
    display: inline-block;
    vertical-align: top;
    margin-left: -1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    #workOrders .update-status:hover {
        color: #3855FF;
        transform: scale(1.1);
        background-color: rgba(56, 85, 255, 0.1);
        border-radius: 3px;
        padding: 2px;
    }

.waiting-tool-info {
    font-size: 12px;
    font-weight: normal;
    margin-left: 5px;
    position: relative;
    top: -1px;
}

    .waiting-tool-info .material-icons {
        font-size: 14px;
        vertical-align: middle;
        margin-right: 2px;
        position: relative;
        top: -1px;
    }

.tool-status-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    position: relative;
    top: 4px;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5);
}

    .tool-status-dot.unavailable {
        background-color: #cc0000;
        border: 3px solid #ffffff;
        box-shadow: 0 0 0 2px #660000;
    }

    .tool-status-dot.available {
        background-color: #00cc00;
        border: 3px solid #ffffff;
        box-shadow: 0 0 0 2px #006600;
        animation: pulse-green-big 1.2s infinite;
    }

@keyframes pulse-green-big {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 2px #006600;
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
        box-shadow: 0 0 0 3px #006600, 0 0 15px rgba(0, 204, 0, 0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 2px #006600;
    }
}

@keyframes pulse-green {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.filters-responsive {
    flex-wrap: wrap !important;
    gap: 5px;
}

    .filters-responsive .control {
        margin-right: 5px !important;
        margin-bottom: 5px !important;
        flex-shrink: 1;
    }

select.status-filter-select.statusRed,
select.status-filter-select.statusOrange,
select.status-filter-select.statusGreen,
select.status-filter-select.statusBlue,
select.status-filter-select.statusLightBlue {
    background-image: url("...") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 8px) center !important;
}

/* Black arrows for light backgrounds (using your existing classes) */
select.status-filter-select.statusYellow,
select.status-filter-select.statusLightGreen {
    background-image: url("...") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 8px) center !important;
}

.status-filter-select option.statusRed,
.status-filter-select option.statusOrange,
.status-filter-select option.statusYellow,
.status-filter-select option.statusLightGreen,
.status-filter-select option.statusGreen,
.status-filter-select option.statusBlue,
.status-filter-select option.statusLightBlue,
.status-filter-select option.statusGray {
    /* Colors are inherited from existing status classes */
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state-content {
    max-width: 300px;
    margin: 0 auto;
}

.empty-state-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.empty-state h3 {
    margin-bottom: 8px;
    color: #333;
}

.empty-state p {
    margin-bottom: 16px;
    font-size: 14px;
}

.button.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-filter-select option:disabled {
    color: #999;
    background-color: #f5f5f5;
}

@media (max-width: 1200px) {
    .filters-responsive .control {
        flex-basis: auto;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .filters-responsive {
        flex-direction: column;
    }

        .filters-responsive .control {
            width: 100%;
            margin-right: 0 !important;
        }
}

#users ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    #users ul li {
        padding: 10px 20px;
        border-bottom: 1px solid #efefef;
    }

        #users ul li:hover {
            background: rgba(255, 255, 0, 0.22);
            cursor: pointer;
        }

        #users ul li .subtitle {
            margin-left: 33px;
        }

        #users ul li .status {
            position: relative;
        }

            #users ul li .status .change-status .is-pulled-right,
            #tools ul li .status .change-status .is-pulled-right {
                text-align: right !important;
            }

        #users ul li .id {
            margin: 0;
        }

        #users ul li .email {
            margin-left: 20px;
        }

        #users ul li .update-user-status {
            float: right;
            font-size: 12px;
        }

            #users ul li .update-user-status:before {
                content: "autorenew";
                font-size: 17px;
                margin: 1px -19px;
            }

#tools ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    #tools ul li {
        padding: 10px 20px;
        border-bottom: 1px solid #efefef;
    }

        #tools ul li:hover {
            background: rgba(255, 255, 0, 0.22);
            cursor: pointer;
        }

        #tools ul li .subtitle {
            margin-left: 33px;
        }

        #tools ul li .id {
            margin: 0;
        }

#container {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    -o-flex-direction: column;
    flex-direction: column;
    height: 100%;
    margin: 0;
}

    #container .row {
        -webkit-flex: 2;
        -moz-flex: 2;
        -ms-flex: 2;
        -o-flex: 2;
        flex: 2;
        display: -webkit-flex;
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: flex;
    }

    #container #workOrders {
        position: relative;
        -webkit-flex: 1 1 10%;
        -moz-flex: 1 1 10%;
        -ms-flex: 1 1 10%;
        -o-flex: 1 1 10%;
        flex: 1 1 10%;
        overflow-y: auto;
        overflow-x: hidden;
        min-height: 0;
        height: 93%;
    }

    #container #users {
        position: relative;
        -webkit-flex: 1 1;
        -moz-flex: 1 1;
        -ms-flex: 1 1;
        -o-flex: 1 1;
        flex: 1 1;
        overflow-y: auto;
        overflow-x: hidden;
        height: 93%;
    }

    #container #tools {
        position: relative;
        -webkit-flex: 0 0 25%;
        -moz-flex: 0 0 25%;
        -ms-flex: 0 0 25%;
        -o-flex: 0 0 25%;
        flex: 0 0 25%;
        overflow-y: auto;
        overflow-x: hidden;
        height: 93%;
    }

/* Statuses List modal */
#content #statusesList {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 410px;
    overflow-y: auto;
    flex: 1;
}

    #content #statusesList li {
        padding: 6px 10px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #eee;
    }

        #content #statusesList li:hover {
            cursor: pointer !important;
            background: rgba(255, 255, 0, 0.22);
        }

/* alertify */
.alertify-notifier .ajs-message.ajs-success {
    text-shadow: none;
}

.ajs-message .material-icons {
    display: block;
    font-size: 30px;
    margin-bottom: 10px;
}

#modal {
    width: 100%;
    height: 100%;
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    top: 0;
    left: 0;
    z-index: 11;
    margin: 0 !important;
}

    #modal #content {
        max-height: calc(100% - 100px);
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%);
        z-index: 990;
        background: #fff;
        width: 310px;
        border: none;
        border-radius: 3px;
        padding: 15px 20px;
        display: flex;
        flex-direction: column;
    }

        #modal #content hr {
            margin: 3px 0;
        }

        #modal #content .title {
            margin-bottom: 5px;
        }

.custom-wait-time {
    margin-left: 5px;
}

.classWO {
    position: relative;
}

.interface-bar {
    position: absolute;
    left: 0;
    top: 8px;
    height: 120px;
}

.interface-green {
    border-left: 5px solid green;
}

.interface-blue {
    border-left: 5px solid blue;
}

.highPriority-text {
    font-weight: bolder;
    color: #e90808;
    margin-top: 10px;
    margin-right: 40px;
    right: 0px;
    position: absolute;
}

.lowPriority-text {
    font-weight: bolder;
    color: #22e908;
    margin-top: 10px;
    margin-right: 40px;
    right: 0px;
    position: absolute;
}

.demoAccountPriority-text {
    font-weight: bolder;
    color: #9838ff;
    margin-top: 10px;
    margin-right: 40px;
    right: 0px;
    position: absolute;
}

.aftermarketOnlyPriority-text {
    font-weight: bolder;
    color: #ff6600;
    margin-top: 10px;
    margin-right: 40px;
    right: 0px;
    position: absolute;
}

.status-colour-indicator {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 10px;
    flex-shrink: 0;
    display: inline-block;
}

#close {
    position: absolute !important;
    top: 8px;
    right: 8px;
    border: none !important;
    background: transparent !important;
    font-size: 24px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    font-weight: bold;
    line-height: 1;
}

    #close:hover {
        background-color: #f0f0f0 !important;
        border-radius: 50%;
        color: #333;
    }

.statusGray {
    background-color: #95a5a6;
    color: #ffffff;
}
/* Waiting On Tool Selection */
#modal #content.expanded {
    width: 620px;
    max-width: 90vw;
}

#modal #content .modal-body {
    display: flex;
    gap: 1px;
}

#modal #content .statuses-section {
    flex: 1;
    min-width: 260px;
}

#modal #content .tools-section {
    flex: 1;
    min-width: 270px;
    border-left: 1px solid #eee;
    padding-left: 0;
}

    #modal #content .tools-section h4 {
        margin-top: 0;
        margin-bottom: 2px;
        padding-left: 5px;
        font-size: 16px;
        font-weight: 600 !important;
        color: #333;
    }

/* Tool search input */
#modal #content .tool-search-container {
    position: relative;
    margin-bottom: 2px;
}

#modal #content .clear-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    padding: 4px;
    border-radius: 3px;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

    #modal #content .clear-search-btn:hover {
        background-color: #f0f0f0;
        color: #333;
    }

.search-highlight {
    background-color: #ffff00;
    font-weight: bold;
    padding: 1px 2px;
    border-radius: 2px;
}

#modal #content .tool-search {
    width: 100%;
    padding: 8px 40px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

    #modal #content .tool-search:focus {
        border-color: #3855FF;
        box-shadow: 0 0 0 2px rgba(56, 85, 255, 0.1);
    }

/* Tool filter buttons */
#modal #content .tool-filters {
    margin-bottom: 15px;
    display: flex;
    gap: 4px;
}

#modal #content .tool-filter-btn {
    padding: 4px 12px;
    margin-right: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}

#modal #content .no-tools-message {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    border-bottom: none;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tool filter selected state */
#modal #content .tool-filter-btn.active {
    background: #00da00 !important;
    color: white !important;
    border-color: #007F0E !important;
}

    /* Tool filter hover state for the active filter */
    #modal #content .tool-filter-btn.active:hover {
        background: ##03b603 !important;
        color: white !important;
        border-color: #007F0E !important;
    }

/* Hover state for non-active buttons */
#modal #content .tool-filter-btn:hover:not(.active) {
    background: #dedede !important;
    border-color: #bbb !important;
}

/* Tools list */
#modal #content .tools-list {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    flex-direction: column;
}

    #modal #content .tools-list .tool-item {
        padding-left: 3px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #eee;
        cursor: pointer;
        transition: background-color 0.2s;
        margin: 0 !important;
    }

    #modal #content .tools-list .tool-details {
        flex: 1;
        margin: 0 !important; /* Override #workOrders .list-container div margin */
    }

    #modal #content .tools-list .tool-item:hover {
        background: rgba(255, 255, 0, 0.22);
    }

    #modal #content .tools-list .tool-item:last-child {
        border-bottom: none;
    }

    #modal #content .tools-list .tool-status-indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin-right: 10px;
        flex-shrink: 0;
    }

        #modal #content .tools-list .tool-status-indicator.available {
            background-color: #00da00;
        }

        #modal #content .tools-list .tool-status-indicator.unavailable {
            background-color: red;
        }

    #modal #content .tools-list .tool-details {
        flex: 1;
    }

    #modal #content .tools-list .tool-name {
        font-weight: 500;
        color: #333;
        margin: 0 !important;
    }

    #modal #content .tools-list .tool-serial {
        font-size: 12px;
        color: #666;
        margin: 0 !important;
    }

.status-chevron {
    margin-left: auto;
    color: #666;
    font-size: 16px;
}
