﻿.sh-activity-pastdue > .ui-btn:not(:hover):not(.app-selected):not(.ui-btn-active),
.sh-activity-pastdue > .ui-btn:not(:hover):not(.app-selected):not(.ui-btn-active) .app-frozen-spacer {
    /* change this property */
    background-color: #ff0000 !important;
}

.sh-activity-duetoday > .ui-btn:not(:hover):not(.app-selected):not(.ui-btn-active),
.sh-activity-duetoday > .ui-btn:not(:hover):not(.app-selected):not(.ui-btn-active) .app-frozen-spacer {
    /* change this property */
    background-color: #ffd800 !important;

}

.sh-activity-notdue > .ui-btn:not(:hover):not(.app-selected):not(.ui-btn-active),
.sh-activity-notdue > .ui-btn:not(:hover):not(.app-selected):not(.ui-btn-active) .app-frozen-spacer {
    /* change this property */
    background-color: #ffffff !important;
}

.sh-activity-done > .ui-btn:not(:hover):not(.app-selected):not(.ui-btn-active),
.sh-activity-done > .ui-btn:not(:hover):not(.app-selected):not(.ui-btn-active) .app-frozen-spacer {
    /* change this property */
    background-color: #29d92c !important;
}

.sh-lowclosing > .ui-btn:not(:hover):not(.app-selected):not(.ui-btn-active),
.sh-lowclosing > .ui-btn:not(:hover):not(.app-selected):not(.ui-btn-active) .app-frozen-spacer {
    /* change this property */
    background-color: #d7bde2 !important;
    /* color: white; */
}

.sh-mediumclosing > .ui-btn:not(:hover):not(.app-selected):not(.ui-btn-active),
.sh-mediumclosing > .ui-btn:not(:hover):not(.app-selected):not(.ui-btn-active) .app-frozen-spacer {
    /* change this property */
    background-color: #ffd800 !important;
}

.sh-highclosing > .ui-btn:not(:hover):not(.app-selected):not(.ui-btn-active),
.sh-highclosing > .ui-btn:not(:hover):not(.app-selected):not(.ui-btn-active) .app-frozen-spacer {
    /* change this property */
    background-color: #29d92c !important;
}

.app-event-color-2 {
    background-color: #FF0000;
}

.app-event-color-3 {
    background-color: #00ff21;
}


.app-event-color-4 {
    background-color: #ffd800;
}

span.app-control-inner.app-field-data.app-field-data-rtf.app-text-multiline{
    color: black!important;
}

.SHMinWidth {
    min-width: 0%;
}

/* Hide the magnifying-glass search icon everywhere.
   Covers two distinct mechanisms in Touch UI:
   1) grid/list search bars rendered as a .material-icon-search element
   2) search inputs (lookup popups, edit-form lookups) that render the glass
      via a ::after pseudo-element with content:"search" (daf/touch.css). */
.material-icon-search,
.app-bar-search .material-icon-search,
.app-icon.material-icon-search,
i[data-icon="material-icon-search"] {
    display: none !important;
}

.ui-input-search::after,
.ui-icon-search::after,
.app-btn-search::after {
    content: "" !important;
    display: none !important;
}

/* Rounded corners for login box and modal dialogs */
.app-page-modal {
    border-radius: 12px !important;
    overflow: hidden !important;
}

#chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    #chatbot-button:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    #chatbot-button svg {
        width: 28px;
        height: 28px;
        fill: white;
    }

#chatbot-window {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    overflow: hidden;
}

    #chatbot-window.open {
        display: flex;
        animation: slideUp 0.3s ease;
    }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    #chatbot-header h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

    #chatbot-header p {
        margin: 4px 0 0 0;
        font-size: 12px;
        opacity: 0.9;
    }

#chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 24px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

    #chatbot-close:hover {
        opacity: 1;
    }

#chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
}

    .chat-message.user {
        flex-direction: row-reverse;
    }

.chat-message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-message.bot .chat-message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
}

.chat-message.user .chat-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.chat-message.bot .chat-message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.chat-message.user .chat-message-avatar {
    background: #e9ecef;
    color: #495057;
}

.typing-indicator {
    display: none;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    width: fit-content;
}

    .typing-indicator.active {
        display: block;
    }

    .typing-indicator span {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #667eea;
        margin: 0 2px;
        animation: bounce 1.4s infinite;
    }

        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes bounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-8px);
    }
}

#chatbot-input-area {
    border-top: 1px solid #e9ecef;
    padding: 16px;
    background: white;
    display: flex;
    gap: 10px;
}

#chatbot-input {
    flex: 1;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

    #chatbot-input:focus {
        border-color: #667eea;
    }

#chatbot-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

    #chatbot-send:hover:not(:disabled) {
        transform: scale(1.05);
    }

    #chatbot-send:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    #chatbot-send svg {
        width: 18px;
        height: 18px;
        fill: white;
    }

@media (max-width: 768px) {
    #chatbot-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
    }
}

