.adm-shell {
    --ink: #40454f;
    --ink2: #6B7280;
    --border: #E5E2DC;
    --bg: #F8F7F4;
    --surface: #FFFFFF;
    --green: #18794E;
    --radius: 10px;
    --gap: 16px;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    background: var(--bg);
    padding: 24px;
    color: var(--ink);
}

.chat-toggle-btn {
    position: fixed;
    bottom: 80px;
    right: 30px;
    background: #8bc34a;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    z-index: 9999;
}
#chatContainer {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    z-index: 9999;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.chat-label {
    position: fixed;
    bottom: 80px;
    right: 90px;
    background: #f1f1f1;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    color: #333;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    max-width: 180px;
    z-index: 9999;
    cursor: pointer;
}
.read-status {
    margin-left: 6px;
    font-size: 12px;
    color: #ffffff;
    font-weight: bold;
}

/* Close button (top-right corner) */
.chat-close {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 12px;
    cursor: pointer;
    color: #888;
}

    .chat-close:hover {
        color: #000;
    }

/* Arrow */
.chat-label::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #f1f1f1;
}

.btn-close-chat {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

    .btn-close-chat:hover {
        opacity: 0.7;
    }


/* ============================================
   Admin Chat Panel Styles for Dashboard
   ============================================ */

.admin-chat-panel {
    display: flex;
    flex-direction: column;
    min-height: 600px;
    background: #fff;
}

/* ============================================
   Admin Header
   ============================================ */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .admin-header-left h2 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
    }

.btn-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-back:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }

.admin-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

    .stat-item i {
        font-size: 16px;
    }

/* ============================================
   List View - Pending Conversations
   ============================================ */

.admin-list-view {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

    .section-header h3 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
    }

.conversations-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.pending-conversation-item {
    padding: 16px;
    margin-bottom: 10px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

    .pending-conversation-item:hover {
        background: #f8f9fa;
        border-color: #667eea;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .pending-conversation-item.selected {
        background: #e7f3ff;
        border-color: #667eea;
        border-width: 2px;
    }

.conv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.customer-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

    .customer-name i {
        margin-right: 6px;
        color: #667eea;
    }

.conversation-time {
    font-size: 12px;
    color: #999;
}

.conv-item-preview {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conv-item-action {
    color: #999;
}

/* ============================================
   Chat View - Messages
   ============================================ */

.admin-chat-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-subheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.chat-subheader-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .chat-subheader-info strong {
        font-size: 16px;
        color: #333;
    }

.messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    max-height: 400px;
}

.message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 70%;
}


.other-message {
    background: white;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.own-message .message-header {
    flex-direction: row-reverse;
}

.message-user {
    font-weight: 600;
}

.message-time {
    opacity: 0.8;
    font-size: 0.75rem;
}

.message-body {
    word-wrap: break-word;
    line-height: 1.4;
}

.typing-indicator {
    padding: 8px 20px;
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
    background: #f8f9fa;
}

    .typing-indicator i {
        color: #667eea;
        animation: pulse 1.5s infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}


.admin-assign-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: white;
    border-left: 2px solid #e0e0e0;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    overflow-y: auto;
}

.assign-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

    .assign-panel-header h4 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
    }

.agents-list {
    padding: 15px;
}

.agent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

    .agent-item:hover {
        background: #f8f9fa;
        border-color: #667eea;
    }

.agent-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

    .status-dot.online {
        background: #28a745;
    }

    .status-dot.offline {
        background: #6c757d;
    }

.agent-info {
    flex: 1;
}

.agent-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.agent-role {
    font-size: 12px;
    color: #666;
}

/* ============================================
   Empty States
   ============================================ */

.empty-state,
.empty-messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
    text-align: center;
}

    .empty-state i,
    .empty-messages i {
        font-size: 48px;
        margin-bottom: 16px;
        opacity: 0.3;
    }

    .empty-state p,
    .empty-messages p {
        margin: 0;
        font-size: 16px;
    }

.text-muted {
    color: #999;
    font-size: 14px;
}

/* ============================================
   Badges
   ============================================ */

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}


.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-strip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #1a1a2e;
    color: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    position: relative;
    max-width: 320px
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.toast-body .t {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px
}

.toast-body .m {
    font-size: 12px;
    opacity: .75
}

.toast-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: .6;
    font-size: 16px;
    line-height: 1
}

    .toast-close:hover {
        opacity: 1
    }

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .admin-stats {
        width: 100%;
        justify-content: space-between;
    }

    .message {
        max-width: 85%;
    }

    .admin-assign-panel {
        max-width: 100%;
    }
}

/* ============================================
   Scrollbar Styling
   ============================================ */

.conversations-container::-webkit-scrollbar,
.messages-list::-webkit-scrollbar,
.agents-list::-webkit-scrollbar {
    width: 6px;
}

.conversations-container::-webkit-scrollbar-track,
.messages-list::-webkit-scrollbar-track,
.agents-list::-webkit-scrollbar-track {
    background: transparent;
}

.conversations-container::-webkit-scrollbar-thumb,
.messages-list::-webkit-scrollbar-thumb,
.agents-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

    .conversations-container::-webkit-scrollbar-thumb:hover,
    .messages-list::-webkit-scrollbar-thumb:hover,
    .agents-list::-webkit-scrollbar-thumb:hover {
        background: #aaa;
    }


/* ============================================
   Chat Panel Styles with Footer Navigation
   ============================================ */

/* Centers the button container */
.new-conversation-area {
    display: flex;
    justify-content: center; /* ? Centers horizontally */
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
}

/* Dark blue button like image 2 */
.btn-new-conversation {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #8bc34a; /* Dark blue */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
}

.new-conversation-area{
    display:flex;
}

.chat-panel {
    display: flex;
    flex-direction: column;
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

/* ============================================
   Chat Header
   ============================================ */

.chat-header {
    padding: 10px 15px;
    background: linear-gradient(135deg, #a0cb66 0%, #228b22 100%);
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

    .chat-header h3 {
        margin: 0;
        font-size: 1.3rem;
        font-weight: 600;
    }

    .chat-header select {
        width: 150px;
        padding: 8px 12px;
        border: none;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        font-size: 14px;
    }

        .chat-header select option {
            background: white;
            color: #333;
        }

/* ============================================
   Conversations List (Home View)
   ============================================ */

.conversations-list {
    flex: 1;
    overflow-y: auto;
    background: #f8f9fa;
}

.conversation-item {
    display: flex;
    gap: 12px;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s ease;
    background: white;
}

    .conversation-item:hover {
        background: #f0f0f0;
    }

.conversation-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, #a0cb66 0%, #228b22 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.conversation-preview {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-badge {
    background: #dc3545;
    color: white;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 500;
    min-width: 15px;
    text-align: center;
}

/* ============================================
   Chat Main Content (Conversation View)
   ============================================ */

.chat-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 70%;
}

.own-message {
    background: linear-gradient(135deg, #198754 0%, #8bc34a 100%);
    color: white;
    margin-left: auto;
    text-align: right;
    border-bottom-right-radius: 4px;
}

.other-message {
    background: white;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.own-message .message-header {
    flex-direction: row-reverse;
}

.message-user {
    font-weight: 600;
}

.message-time {
    opacity: 0.8;
    font-size: 0.75rem;
}

.message-body {
    word-wrap: break-word;
    line-height: 1.4;
}

.system-message {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin: 15px 0;
    font-style: italic;
}

.typing-indicator {
    padding: 8px 20px;
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
    background: #f8f9fa;
}

/* ============================================
   Message Input
   ============================================ */

.message-input {
    display: flex;
    gap: 12px;
    padding: 10px 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

    .message-input input {
        flex: 1;
        padding: 12px 16px;
        border: 1px solid #ddd;
        border-radius: 24px;
        font-size: 14px;
        outline: none;
        transition: border-color 0.2s ease;
    }

        .message-input input:focus {
            border-color: #689F38;
        }



    .message-input button {
        padding: 10px 20px;
        border: none;
        border-radius: 24px;
/*        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
*/        color: white;
        font-weight: 500;
        cursor: pointer;
        transition: transform 0.2s ease;
        white-space: nowrap;
    }

        .message-input button:hover {
            transform: translateY(-2px);
        }

        .message-input button i {
            margin-right: 6px;
        }



/* ============================================
   Footer Navigation
   ============================================ */

.footer-area {
    background: white;
    border-top: 2px solid #e0e0e0;
    padding: 0;
}

.footer-buttons {
    display: flex;
    height: 70px;
}

.footer-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    background: white;
    color: #6c757d;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

    .footer-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: transparent;
        transition: background 0.3s ease;
    }

    .footer-btn:hover {
        background: #f8f9fa;
        color: #228b22;
    }

    .footer-btn.active {
        color: #8bc34a;
        font-weight: 600;
    }

       /* .footer-btn.active::before {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }*/

    .footer-btn i {
        font-size: 22px;
    }

    .footer-btn span {
        font-size: 12px;
        font-weight: 500;
    }

    /* Add animation to active button */
    .footer-btn.active i {
        animation: bounce 0.5s ease;
    }

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ============================================
   Scrollbar Styling
   ============================================ */

.messages-list::-webkit-scrollbar,
.conversations-list::-webkit-scrollbar {
    width: 6px;
}

.messages-list::-webkit-scrollbar-track,
.conversations-list::-webkit-scrollbar-track {
    background: transparent;
}

.messages-list::-webkit-scrollbar-thumb,
.conversations-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

    .messages-list::-webkit-scrollbar-thumb:hover,
    .conversations-list::-webkit-scrollbar-thumb:hover {
        background: #aaa;
    }

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .chat-panel {
        height: 100vh;
        border-radius: 0;
    }

    .chat-header h3 {
        font-size: 1.1rem;
    }

    .chat-header select {
        width: 120px;
        font-size: 12px;
    }

    .message {
        max-width: 85%;
    }

    .footer-buttons {
        height: 60px;
    }

    .footer-btn i {
        font-size: 20px;
    }

    .footer-btn span {
        font-size: 11px;
    }
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

    .empty-state i {
        font-size: 64px;
        margin-bottom: 16px;
        opacity: 0.3;
    }

    .empty-state p {
        margin: 0;
        font-size: 16px;
    }

/*#chatContainer {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    z-index: 9999;
}*/

.adm-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    margin-bottom: var(--gap);
}

@media (max-width: 900px) {
    .adm-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .adm-stats {
        grid-template-columns: 1fr;
    }
}

.adm-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.adm-stat-label {
    font-size: 12px;
    color: var(--ink2);
}

.adm-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.adm-stat-delta {
    font-size: 11px;
    color: var(--green);
}

// Chart grid
.adm-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
    margin-bottom: var(--gap);
}

.adm-span2 {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .adm-charts {
        grid-template-columns: 1fr;
    }

    .adm-span2 {
        grid-column: span 1;
    }
}

.adm-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.adm-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 14px;
    letter-spacing: 0.01em;
}

// Bottom grid
.adm-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
    margin-bottom: var(--gap);
}

@media (max-width: 768px) {
    .adm-bottom {
        grid-template-columns: 1fr;
    }
}

// Product list
.adm-product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.adm-product-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

    .adm-product-item:last-child {
        border-bottom: none;
    }

.adm-product-rank {
    font-size: 11px;
    color: var(--ink2);
    width: 20px;
    flex-shrink: 0;
}

.adm-product-name {
    flex: 1;
    font-weight: 500;
}

.adm-product-units {
    font-size: 11px;
    color: var(--ink2);
}

.adm-product-rev {
    font-weight: 600;
    font-size: 13px;
}

// Summary bar
.adm-summary {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--ink);
    border-radius: var(--radius);
    padding: 20px 28px;
    flex-wrap: wrap;
}

.adm-summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.adm-summary-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.adm-summary-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

    .adm-summary-value.green {
        color: #6EE7A0;
    }

.adm-btn {
    margin-left: auto;
    padding: 10px 20px;
    background: #6EE7A0;
    color: var(--ink);
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
}

    .adm-btn:hover {
        background: #4ADE80;
    }



.s-Administration-LanguageDialog > .size {
    width: 450px;
}

.s-Administration-LanguageDialog .caption {
    width: 120px;
}

.s-Administration-RoleDialog > .size {
    width: 450px;
}

.s-Administration-RoleDialog .caption {
    width: 120px;
}

.s-Administration-UserDialog > .size {
    width: 650px;
}

.s-Administration-UserDialog .caption {
    width: 150px;
}

.s-Administration-UserDialog .s-PropertyGrid .categories {
    height: 450px;
}

.s-TranslationGrid input.custom-text {
    width: 100%;
    height: 23px;
    padding: 0 3px;
}

.s-UserPermissionDialog > .size,
.s-RolePermissionDialog > .size,
.s-UserRoleDialog > .size {
    min-width: 670px;
    width: 670px;
    min-height: 450px;
    height: 450px;
}

.s-UserPermissionDialog .s-DataGrid,
.s-RolePermissionDialog .s-DataGrid,
.s-UserRoleDialog .s-DataGrid {
    height: 100%;
}

.s-UserPermissionDialog .ui-dialog-content,
.s-RolePermissionDialog .ui-dialog-content,
.s-UserRoleDialog .ui-dialog-content {
    padding: 8px;
}

.s-PermissionCheckEditor .check-box {
    background-image: url(../serenity/images/tick-empty.png);
    background-position: center center;
    width: 22px;
    height: 22px;
    margin: 0;
}

    .s-PermissionCheckEditor .check-box.checked {
        background-image: url(../serenity/images/tick-green.png);
        background-position: center center;
    }

        .s-PermissionCheckEditor .check-box.checked.revoke {
            background-image: url(../serenity/images/tick-red.png);
            background-position: center center;
        }

    .s-PermissionCheckEditor .check-box.partial {
        opacity: 0.8;
    }

    .s-PermissionCheckEditor .check-box.checked.partial {
        background-image: url(images/tick-green-partial.png);
    }

    .s-PermissionCheckEditor .check-box.checked.revoke.partial {
        background-image: url(images/tick-red-partial.png);
    }

.s-PermissionCheckEditor .effective-permission {
    cursor: default;
    padding-left: 22px;
    background-image: url(../serenity/images/check2.png);
    background-repeat: no-repeat;
    background-position: left center;
}

    .s-PermissionCheckEditor .effective-permission.partial {
        background-image: url(../serenity/images/checkbox-null.png);
    }

    .s-PermissionCheckEditor .effective-permission.deny {
        background-image: url(../serenity/images/slash.png);
    }

.bg-yellow-gradient {
    background: #f39c12 !important;
    background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #f39c12), color-stop(1, #f7bc60)) !important;
    background: -moz-linear-gradient(center bottom, #f39c12 0%, #f7bc60 100%) !important;
    background: -o-linear-gradient(#f7bc60, #f39c12) !important;
    color: #fff;
}

.inline-image img {
    height: 28px;
}

.s-sidebar-tenant-logo {
    width: 30px;
    height: 30px;
    background-color: #ccc;
}

.refresh-button-custom {
    font-size: 13px;
    background-color: #c5d4fc !important;
    color: #28aaee;
    border: none;
    padding: 1px 5px;
    cursor: pointer;
    border-radius: 12px;
}

    .refresh-button-custom:hover {
        background-color: #b7d5bd !important;
        color: #3EC959;
    }

.d3-label-value-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}



.select-all-button-custome {
    min-width: 110px;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    font-size: 0.875rem;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #f0f0f0;
    color: #333;
    margin-right: 20px;
    transition: all 0.3s ease;
}

    .select-all-button-custome:hover {
        background-color: #007bff;
        color: white;
    }

    /* Button icon adjustment */
    .select-all-button-custome i {
        margin-right: 5px;
    }

/* Responsive for small screens */
@media (max-width: 768px) {
    .select-all-button-custome {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

.mgtvScreenBody {
    background-color: rgb(38, 38, 38);
    color: white;
    font-family: Arial, sans-serif;
    /* overflow: hidden;
        width: 100vw;*/
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #000;
    border-bottom: 2px solid #e96500;
}

.mgtvScreenPOTable {
    width: 100%;
    margin-top: 20px;
    color: white;
}

    .mgtvScreenPOTable thead th {
        background-color: #e96500;
        text-align: center;
        vertical-align: middle;
    }

    .mgtvScreenPOTable tbody td {
        background-color: rgb(64, 64, 64);
        vertical-align: middle;
        text-align: left;
        color: #ffff;
        max-width: 26vw;
        font-weight: 500;
    }

.brand-label {
    display: block;
    font-size: 0.95rem;
    color: #ccc;
}

.order-Progress {
    height: 25px;
    /*background-color: #444;*/
    background-color: #A4A5A8;
    border-radius: 10px;
}

.order-Progress-bar {
    height: 25px;
    background-color: #00ff00;
    border-radius: 10px;
}

.zeroDays {
    color: #ff0000fc;
}

@media screen and (max-width: 768px) {
    .mgtvScreenPOTable {
        font-size: 0.75rem;
    }
}

.text-overflow-container {
    width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mgtvScreenPOTable td {
    border-right: 1.3px solid #857d7d !important;
    padding: 0.5rem 1rem !important;
}

.priority-label {
    padding: 0.25em 0.6em;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
}

    .priority-label.high {
        background-color: #dc3545;
        color: #fff;
    }

    .priority-label.medium {
        background-color: #ffc107;
        color: #212529;
    }

    .priority-label.low {
        background-color: #28a745;
        color: #fff;
    }

.mpm-text {
    text-align: left !important;
}

.mpm-number {
    text-align: right !important;
}

.mpm-center {
    text-align: center !important;
    min-width: 80px;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
    display: flex;
    justify-content: center; /* Center the loader horizontally */
    align-items: center; /* Center the loader vertically */
    z-index: 9999; /* Ensure the loader is on top */
    display: none; /* Hidden by default */
}

/* Optional: You can add an animation or fade effect for showing/hiding */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.loader-container.show {
    display: flex;
    animation: fadeIn 0.5s ease-in-out;
}

.no-height {
    height: 0 !important;
}

.thumb-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: scale-down;
    object-position: top center;
    display: inline-block;
}

.custom-action-redis .text-center .btn:hover {
    opacity: 0.8;
}

.send-email-button {
    background-color: #5bc0de;
    color: blue;
}

.slick-cell.cell-disable {
    background-color: #e0e0e0;
    color: #333;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 1;
    font-weight: 500;
    padding-left: 6px;
}

.custom-style-closing-header .slick-header-columns {
    background-color: #34495e;
}

.custom-style-closing-header .slick-header-column {
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
    color: #ffff;
}

.custom-SavClosing {
    display: flex;
    justify-content: flex-end;
}

.style-Close-Process {
    color: #0090d9;
    font-weight: 500;
}

.custom-hide-vx .vx {
    display: none !important;
}

.card-header-color {
    background: linear-gradient(135deg, #66bb6a 0%, #7cb342 100%) !important;
}
.form-control-custom {
    border-radius: 0.375rem !important;
}
.text-green {
    color: #2e7d32 !important;
}
.form-check-input:checked {
    background-color: #2e7d32;
    border-color: #2e7d32;
}
.alert-info {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}
@keyframes swing {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }

    50% {
        transform: translateX(10px) rotate(3deg);
    }
}

@media (max-width: 768px) {
    .left-section, .right-section {
        padding: 40px 30px;
    }

    h2 {
        font-size: 1.6rem;
    }

    .chair {
        width: 150px;
        height: 140px;
    }

    .chair-back {
        width: 140px;
        height: 100px;
        top: -50px;
    }

    .pendant-light {
        width: 60px;
        height: 60px;
    }
}
.carousel-indicators [data-bs-target] {
    background-color: #8bc34a !important;
}

.notif-wrapper {
    position: relative;
}

.notif-btn {
    position: relative;
}

.notif-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    background: #E24B4A;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #fff;
    padding: 0 3px;
}

.notif-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #fff;
    border: 0.5px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    z-index: 999;
    display: none;
}

    .notif-panel.open {
        display: block;
    }

.notif-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 10px;
    border-bottom: 0.5px solid #eee;
    font-size: 14px;
    font-weight: 500;
}

.mark-all-btn {
    font-size: 12px;
    color: #178DD0;
    background: none;
    border: none;
    cursor: pointer;
}

.notif-list {
    max-height: 320px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 0.5px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.12s;
    position: relative;
}

    .notif-item.unread {
        background: rgba(55,138,221,0.04);
    }

        .notif-item.unread::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: #378ADD;
            border-radius: 0 2px 2px 0;
        }

    .notif-item:hover {
        background: #f8f8f8;
    }

.notif-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-text p {
    font-size: 13px;
    margin: 0 0 2px;
    line-height: 1.45;
}

.notif-text time {
    font-size: 11px;
    color: #888;
}

.notif-unread-dot {
    width: 7px;
    height: 7px;
    background: #378ADD;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.notif-footer {
    padding: 10px 16px;
    text-align: center;
    border-top: 0.5px solid #eee;
}

    .notif-footer a {
        font-size: 13px;
        color: #178DD0;
        text-decoration: none;
    }

@keyframes ring {
    0%,100% {
        transform: rotate(0)
    }

    20% {
        transform: rotate(-15deg)
    }

    60% {
        transform: rotate(12deg)
    }

    80% {
        transform: rotate(-8deg)
    }
}

.notif-btn:hover .bell-svg {
    animation: ring 0.4s ease;
}

.notification-widget {
    position: relative;
}

.notification-bell {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-green) !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: space-between;
    position: relative;
    transition: background .2s;
}

    .notification-bell:hover {
        background: var(--primary-green-dark) !important;
    }

    .notification-bell i {
        color: #fff;
        font-size: 16px;
    }

.notification-count {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    overflow: hidden;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.notification-header {
    padding: 18px 20px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

    .notification-header h4 {
        font-size: 15px;
        font-weight: 600;
        color: #111;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.notif-new-badge {
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
}

.notification-header .btn-link {
    font-size: 12px;
    color: #6366f1;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    border: none;
    background: none;
    cursor: pointer;
    transition: background .15s;
}

    .notification-header .btn-link:hover {
        background: #f0f0ff;
    }

.notifications-list {
    max-height: 340px;
    overflow-y: auto;
}

    .notifications-list::-webkit-scrollbar {
        width: 4px;
    }

    .notifications-list::-webkit-scrollbar-thumb {
        background: #e0e0e0;
        border-radius: 4px;
    }

.notif-section-label {
    font-size: 11px;
    font-weight: 600;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 10px 20px 6px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f8f8f8;
    transition: background .15s;
    position: relative;
}

    .notification-item:hover {
        background: #fafafa;
    }

    .notification-item.unread {
        background: #fafbff;
    }

        .notification-item.unread::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: #6366f1;
            border-radius: 0 2px 2px 0;
        }

.notification-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .notification-icon.type-info {
        background: #eff6ff;
    }

        .notification-icon.type-info i {
            color: #6366f1;
        }

    .notification-icon.type-success {
        background: #f0fdf4;
    }

        .notification-icon.type-success i {
            color: #16a34a;
        }

    .notification-icon.type-warning {
        background: #fffbeb;
    }

        .notification-icon.type-warning i {
            color: #d97706;
        }

    .notification-icon.type-error {
        background: #fef2f2;
    }

        .notification-icon.type-error i {
            color: #dc2626;
        }

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin-bottom: 3px;
}

.notification-message {
    font-size: 12px;
    color: #666;
    line-height: 1.45;
    margin-bottom: 5px;
}

.notification-time {
    font-size: 11px;
    color: #aaa;
}

.notification-badge {
    flex-shrink: 0;
    margin-top: 4px;
}

    .notification-badge .badge {
        width: 7px;
        height: 7px;
        background: #6366f1;
        border-radius: 50%;
        display: block;
        padding: 0;
    }

.notification-footer {
    padding: 14px 20px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

    .notification-footer a {
        font-size: 13px;
        color: #6366f1;
        font-weight: 500;
        text-decoration: none;
    }

        .notification-footer a:hover {
            text-decoration: underline;
        }

.no-notifications {
    padding: 40px 20px;
    text-align: center;
    color: #bbb;
}

    .no-notifications i {
        font-size: 32px;
        margin-bottom: 10px;
        display: block;
        opacity: .4;
    }

    .no-notifications p {
        font-size: 13px;
    }

.toast-notification {
    position: fixed;
    top: 80px; 
    right: 24px;
    width: 320px;
    z-index: 99999;
    background: #1a1a2e;
    color: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    animation: slideIn .3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-header {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .toast-header i {
        color: #fff;
        font-size: 14px;
    }

.toast-body {
    flex: 1;
}

    .toast-body strong {
        font-size: 13px;
        font-weight: 600;
        display: block;
        margin-bottom: 2px;
    }

    .toast-body span {
        font-size: 12px;
        opacity: .75;
    }

.toast-progress {
    height: 3px;
    background: #6366f1;
    border-radius: 2px;
    margin-top: 8px;
    animation: shrink 5s linear forwards;
}

@keyframes shrink {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.toast-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: .5;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}

    .toast-close:hover {
        opacity: 1;
    }


.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap
}

.filter-tab {
    background: none;
    border: 1px solid #e5e5e5;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all .15s
}

    .filter-tab:hover {
        border-color: #6366f1;
        color: #6366f1
    }

    .filter-tab.active {
        background: #6366f1;
        border-color: #6366f1;
        color: #fff
    }

.filter-sep {
    flex: 1
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 6px 12px
}

    .search-box input {
        border: none;
        outline: none;
        font-size: 13px;
        color: #333;
        width: 180px;
        background: transparent
    }

    .search-box svg {
        color: #aaa
    }

.notif-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #efefef;
    overflow: hidden;
    margin-bottom: 8px
}

.notif-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background .15s;
    position: relative;
    border-bottom: 1px solid #f5f5f5
}

    .notif-row:last-child {
        border-bottom: none
    }

    .notif-row:hover {
        background: #fafafa
    }

    .notif-row.unread {
        background: #fafbff
    }

        .notif-row.unread::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: #6366f1;
            border-radius: 0 2px 2px 0
        }

.ni-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

    .ni-icon.info {
        background: #eff6ff
    }

    .ni-icon.success {
        background: #f0fdf4
    }

    .ni-icon.warning {
        background: #fffbeb
    }

    .ni-icon.error {
        background: #fef2f2
    }

.ni-main {
    flex: 1;
    min-width: 0
}

.ni-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px
}

.ni-title {
    font-size: 14px;
    font-weight: 600;
    color: #111
}

.ni-type-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px
}

    .ni-type-badge.info {
        background: #eff6ff;
        color: #6366f1
    }

    .ni-type-badge.success {
        background: #f0fdf4;
        color: #16a34a
    }

    .ni-type-badge.warning {
        background: #fffbeb;
        color: #d97706
    }

    .ni-type-badge.error {
        background: #fef2f2;
        color: #dc2626
    }

.ni-msg {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 6px
}

.ni-meta {
    display: flex;
    align-items: center;
    gap: 12px
}

.ni-time {
    font-size: 11px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 4px
}

.ni-ref {
    font-size: 11px;
    color: #6366f1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px
}

    .ni-ref:hover {
        text-decoration: underline
    }

.ni-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0
}

.ni-dot {
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%
}

.ni-read-btn {
    background: none;
    border: none;
    font-size: 11px;
    color: #aaa;
    cursor: pointer;
    padding: 0
}

    .ni-read-btn:hover {
        color: #6366f1
    }

.ni-del-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ddd;
    padding: 0
}

    .ni-del-btn:hover {
        color: #e74c3c
    }

.section-date {
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 14px 20px 8px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5
}

.empty-state {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #efefef;
    padding: 60px 20px;
    text-align: center;
    color: #bbb
}

    .empty-state svg {
        margin-bottom: 14px;
        opacity: .3
    }

    .empty-state p {
        font-size: 14px;
        color: #999
    }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 1.5rem
}

.pg-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all .15s
}

    .pg-btn:hover, .pg-btn.active {
        background: #6366f1;
        border-color: #6366f1;
        color: #fff
    }

    .pg-btn:disabled {
        opacity: .4;
        cursor: not-allowed
    }

.stats-row {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
    margin-bottom: 1.5rem
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #efefef;
    padding: 14px 16px;
    text-align: center
}

.stat-num {
    font-size: 22px;
    font-weight: 600;
    color: #111;
    margin-bottom: 2px
}

.stat-lbl {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .05em
}

.stat-card.unread .stat-num {
    color: #6366f1
}