﻿/* =========================================================
   DjimanBo - Chat / Notifications UI
   File: Skanweb/wwwroot/css/skan-chat.css
   Load after skan-item-filters.css
   ========================================================= */

.chat-page-shell,
.notification-page-shell {
    width: 100%;
    min-height: calc(100vh - 160px);
}

.chat-list-panel,
.chat-panel,
.notification-panel {
    width: 100%;
    border: 1px solid rgba(0, 61, 89, .08);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 22px 50px rgba(0, 61, 89, .08);
    box-sizing: border-box;
}

.chat-list-panel,
.notification-panel {
    padding: 30px;
}

.chat-page-shell .item-filter-simple-field.search,
.notification-page-shell .item-filter-simple-field.search {
    width: min(520px, 42vw) !important;
    flex: 0 1 520px !important;
    margin-left: auto !important;
}

/* =========================================================
   Chat list
   ========================================================= */

.chat-list-stack {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.chat-row {
    width: 100%;
    min-height: 76px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 84, 140, .10);
    border-radius: 22px;
    background: #ffffff;
    color: #102033;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 61, 89, .04);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

    .chat-row:hover {
        transform: translateY(-1px);
        border-color: rgba(15, 84, 140, .22);
        background: #fbfdff;
        box-shadow: 0 16px 34px rgba(0, 61, 89, .075);
    }

    .chat-row.unread {
        border-color: rgba(0, 93, 117, .20);
        background: linear-gradient(135deg, #ffffff 0%, #f4fbfd 100%);
    }

.chat-avatar {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #005164 0%, #006e64 100%);
    color: #ffffff;
    font-size: .88rem;
    font-weight: 950;
    letter-spacing: .03em;
    box-shadow: 0 10px 24px rgba(0, 81, 100, .18);
}

    .chat-avatar.small {
        width: 42px;
        height: 42px;
        font-size: .8rem;
    }

.chat-row-main {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.chat-row-title {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .chat-row-title strong {
        min-width: 0;
        overflow: hidden;
        color: #172033;
        font-size: .98rem;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .chat-row-title small {
        flex: 0 0 auto;
        color: #718096;
        font-size: .78rem;
        font-weight: 780;
    }

.chat-row-preview {
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    font-size: .86rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-row.unread .chat-row-preview,
.chat-row.unread .chat-row-title strong {
    color: #003d59;
}

.chat-badge {
    min-width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: #005164;
    color: #ffffff;
    font-size: .76rem;
    font-weight: 950;
}

/* =========================================================
   Chat detail
   ========================================================= */

.chat-panel {
    min-height: calc(100vh - 210px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 61, 89, .08);
    background: linear-gradient(135deg, #ffffff 0%, #f5fbfc 100%);
}

.chat-back,
.chat-refresh,
.notif-mini-btn {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(15, 84, 140, .12);
    border-radius: 999px;
    background: #ffffff;
    color: #00405f;
    cursor: pointer;
}

    .chat-back:hover,
    .chat-refresh:hover,
    .notif-mini-btn:hover {
        background: #eef7fb;
    }

.chat-title-block {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .chat-title-block h2 {
        margin: 0;
        color: #172033;
        font-size: 1.05rem;
        font-weight: 950;
    }

    .chat-title-block p {
        margin: 3px 0 0;
        color: #64748b;
        font-size: .78rem;
        font-weight: 720;
    }

.chat-messages {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    overflow-y: auto;
    background: #f7fafc;
}

.chat-bubble {
    width: fit-content;
    max-width: min(620px, 72%);
    padding: 11px 13px 8px;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(0, 61, 89, .055);
}

    .chat-bubble p {
        margin: 0;
        color: #172033;
        font-size: .92rem;
        font-weight: 650;
        line-height: 1.45;
        white-space: pre-wrap;
    }

    .chat-bubble small {
        display: block;
        margin-top: 5px;
        color: rgba(23, 32, 51, .58);
        font-size: .68rem;
        font-weight: 750;
        text-align: right;
    }

    .chat-bubble.mine {
        align-self: flex-end;
        border-bottom-right-radius: 6px;
        background: #dff3f1;
    }

    .chat-bubble.theirs {
        align-self: flex-start;
        border-bottom-left-radius: 6px;
        background: #ffffff;
    }

.chat-empty {
    align-self: center;
    margin: auto;
    background: transparent !important;
    box-shadow: none !important;
}

.chat-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid rgba(0, 61, 89, .08);
    background: #ffffff;
}

    .chat-compose textarea {
        width: 100%;
        min-height: 46px;
        max-height: 130px;
        padding: 13px 16px;
        border: 1px solid rgba(15, 84, 140, .14);
        border-radius: 999px;
        outline: none;
        resize: none;
        color: #172033;
        font-size: .92rem;
        font-weight: 650;
        box-sizing: border-box;
    }

        .chat-compose textarea:focus {
            border-color: rgba(15, 84, 140, .30);
            box-shadow: 0 0 0 4px rgba(15, 84, 140, .06);
        }

.chat-send {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #005164 0%, #006e64 100%);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 81, 100, .18);
}

    .chat-send:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

/* =========================================================
   Notifications
   ========================================================= */

.notif-segment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(15, 84, 140, .11);
    border-radius: 999px;
    background: #f6fafc;
}

    .notif-segment button {
        height: 32px;
        padding: 0 14px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #64748b;
        font-size: .78rem;
        font-weight: 850;
        cursor: pointer;
    }

        .notif-segment button.active {
            background: #005164;
            color: #ffffff;
            box-shadow: 0 10px 18px rgba(0, 81, 100, .16);
        }

.notif-refresh {
    width: fit-content !important;
    margin-left: auto !important;
}

.notif-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.notif-stack {
    display: grid;
    gap: 10px;
}

.notif-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(15, 84, 140, .10);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 61, 89, .04);
}

    .notif-card.unread {
        border-color: rgba(0, 93, 117, .20);
        background: linear-gradient(135deg, #ffffff 0%, #f4fbfd 100%);
    }

.notif-icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: #eaf4f8;
    color: #005164;
}

.notif-body {
    min-width: 0;
}

.notif-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    .notif-title-row h3 {
        margin: 0;
        color: #172033;
        font-size: .95rem;
        font-weight: 950;
    }

    .notif-title-row small {
        flex: 0 0 auto;
        color: #718096;
        font-size: .74rem;
        font-weight: 780;
    }

.notif-body p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: .86rem;
    font-weight: 650;
    line-height: 1.45;
}

.notif-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

    .notif-meta span,
    .notif-meta strong {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        padding: 0 10px;
        border-radius: 999px;
        font-size: .72rem;
        font-weight: 850;
    }

    .notif-meta span {
        background: #f1f5f9;
        color: #475569;
    }

    .notif-meta strong {
        background: #dcfce7;
        color: #166534;
    }

.notif-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notif-open-btn {
    height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: #005164;
    color: #ffffff;
    font-size: .78rem;
    font-weight: 900;
    cursor: pointer;
}

/* =========================================================
   Skeletons
   ========================================================= */

.chat-row.skeleton,
.notif-card.skeleton,
.chat-bubble.skeleton {
    pointer-events: none;
}

    .chat-row.skeleton span,
    .chat-row.skeleton b,
    .chat-row.skeleton em,
    .notif-card.skeleton span,
    .notif-card.skeleton div,
    .notif-card.skeleton em,
    .chat-bubble.skeleton span {
        display: block;
        min-height: 14px;
        border-radius: 999px;
        background: linear-gradient(90deg, #eef3f7 0%, #f8fafc 50%, #eef3f7 100%);
        background-size: 200% 100%;
        animation: skChatShimmer 1.3s infinite linear;
    }

    .chat-row.skeleton > span {
        width: 48px;
        height: 48px;
        border-radius: 999px;
    }

    .chat-row.skeleton b {
        width: 40%;
    }

    .chat-row.skeleton em {
        width: 70%;
        margin-top: 8px;
    }

.chat-bubble.skeleton {
    width: 280px;
    height: 52px;
}

@keyframes skChatShimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

@media (max-width: 720px) {
    .chat-list-panel,
    .notification-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .chat-page-shell .item-filter-simple-field.search,
    .notification-page-shell .item-filter-simple-field.search {
        width: 100% !important;
        flex: 1 1 100% !important;
        margin-left: 0 !important;
    }

    .chat-row,
    .notif-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .chat-badge,
    .notif-card-actions {
        grid-column: 2;
        justify-self: start;
    }

    .chat-bubble {
        max-width: 88%;
    }
}


/*new*/
/* =========================================================
   DjimanBo - WhatsApp-style chat split layout
   File: Skanweb/wwwroot/css/skan-chat.css
   Load after skan-item-filters.css
   ========================================================= */

.chat-wa-shell {
    width: 100%;
    height: calc(100vh - 190px);
    min-height: 640px;
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(0, 61, 89, .10);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 61, 89, .10);
}

.chat-wa-sidebar {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    border-right: 1px solid rgba(0, 61, 89, .10);
    background: #ffffff;
}

.chat-wa-sidebar-head {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(0, 61, 89, .06);
}

    .chat-wa-sidebar-head span {
        display: block;
        margin-bottom: 4px;
        color: #0f548c;
        font-size: .72rem;
        font-weight: 950;
        letter-spacing: .16em;
        text-transform: uppercase;
    }

    .chat-wa-sidebar-head h2 {
        margin: 0;
        color: #172033;
        font-size: 1.3rem;
        font-weight: 950;
    }

.chat-icon-btn,
.chat-back,
.chat-refresh,
.notif-mini-btn {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(15, 84, 140, .12);
    border-radius: 999px;
    background: #ffffff;
    color: #00405f;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 61, 89, .045);
}

    .chat-icon-btn:hover,
    .chat-back:hover,
    .chat-refresh:hover,
    .notif-mini-btn:hover {
        background: #eef7fb;
    }

.chat-wa-search {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 14px 12px;
    padding: 0 14px;
    border: 1px solid rgba(15, 84, 140, .10);
    border-radius: 999px;
    background: #f6f9fc;
    box-sizing: border-box;
}

    .chat-wa-search i {
        color: #64748b;
    }

    .chat-wa-search input {
        flex: 1 1 auto;
        min-width: 0;
        height: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        color: #172033;
        font-size: .9rem;
        font-weight: 720;
    }

    .chat-wa-search button {
        width: 24px;
        height: 24px;
        display: inline-grid;
        place-items: center;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #64748b;
        cursor: pointer;
    }

.chat-wa-list {
    min-height: 0;
    overflow-y: auto;
    padding: 0 8px 14px;
}

.chat-wa-row {
    width: 100%;
    min-height: 76px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #102033;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    transition: background .16s ease;
}

    .chat-wa-row:hover,
    .chat-wa-row.active {
        background: #eef5f8;
    }

    .chat-wa-row.unread .chat-wa-preview,
    .chat-wa-row.unread .chat-wa-row-title strong {
        color: #003d59;
        font-weight: 950;
    }

.chat-avatar {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #005164 0%, #006e64 100%);
    color: #ffffff;
    font-size: .88rem;
    font-weight: 950;
    letter-spacing: .03em;
    box-shadow: 0 10px 24px rgba(0, 81, 100, .18);
    object-fit: cover;
}

    .chat-avatar.small {
        width: 44px;
        height: 44px;
        font-size: .8rem;
    }

.chat-wa-row-main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.chat-wa-row-title {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .chat-wa-row-title strong {
        min-width: 0;
        overflow: hidden;
        color: #172033;
        font-size: .94rem;
        font-weight: 880;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .chat-wa-row-title small {
        flex: 0 0 auto;
        color: #718096;
        font-size: .72rem;
        font-weight: 780;
    }

.chat-wa-preview {
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    font-size: .82rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-badge {
    min-width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: #005164;
    color: #ffffff;
    font-size: .72rem;
    font-weight: 950;
}

.chat-wa-main {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: #f5f8fa;
    position: relative;
}

    .chat-wa-main.empty {
        grid-template-rows: minmax(0, 1fr);
    }

.chat-wa-header {
    position: sticky;
    top: 0;
    z-index: 5;
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 61, 89, .08);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

.chat-title-block {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .chat-title-block h2 {
        margin: 0;
        overflow: hidden;
        color: #172033;
        font-size: 1.02rem;
        font-weight: 950;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .chat-title-block p {
        margin: 3px 0 0;
        color: #64748b;
        font-size: .77rem;
        font-weight: 720;
    }

.chat-alert {
    margin: 10px 16px 0 !important;
}

.chat-wa-messages {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px;
    overflow-y: auto;
    background: #f5f8fa;
}

    .chat-wa-messages::before {
        content: "";
        position: absolute;
        inset: 74px 0 74px;
        pointer-events: none;
        opacity: .32;
        background-image: radial-gradient(circle at 1px 1px, rgba(0, 61, 89, .16) 1px, transparent 0);
        background-size: 22px 22px;
    }

.chat-bubble {
    position: relative;
    z-index: 1;
    width: fit-content;
    max-width: min(620px, 72%);
    padding: 11px 13px 8px;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(0, 61, 89, .055);
}

    .chat-bubble p {
        margin: 0;
        color: #172033;
        font-size: .92rem;
        font-weight: 650;
        line-height: 1.45;
        white-space: pre-wrap;
    }

    .chat-bubble small {
        display: block;
        margin-top: 5px;
        color: rgba(23, 32, 51, .58);
        font-size: .68rem;
        font-weight: 750;
        text-align: right;
    }

    .chat-bubble.mine {
        align-self: flex-end;
        border-bottom-right-radius: 6px;
        background: #dff3f1;
    }

    .chat-bubble.theirs {
        align-self: flex-start;
        border-bottom-left-radius: 6px;
        background: #ffffff;
    }

.chat-wa-compose {
    position: sticky;
    bottom: 0;
    z-index: 6;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid rgba(0, 61, 89, .08);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

    .chat-wa-compose textarea {
        width: 100%;
        min-height: 50px;
        max-height: 130px;
        padding: 14px 18px;
        border: 1px solid rgba(15, 84, 140, .16);
        border-radius: 999px;
        outline: none;
        resize: none;
        color: #172033;
        font-size: .92rem;
        font-weight: 650;
        box-sizing: border-box;
    }

        .chat-wa-compose textarea:focus {
            border-color: rgba(15, 84, 140, .35);
            box-shadow: 0 0 0 4px rgba(15, 84, 140, .06);
        }

.chat-send {
    width: 50px;
    height: 50px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #005164 0%, #006e64 100%);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 81, 100, .18);
}

    .chat-send:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.chat-wa-welcome,
.chat-wa-empty-messages,
.chat-wa-empty-list {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 28px;
    text-align: center;
    color: #64748b;
}

    .chat-wa-welcome div,
    .chat-wa-empty-messages i,
    .chat-wa-empty-list i {
        width: 62px;
        height: 62px;
        display: inline-grid;
        place-items: center;
        border-radius: 22px;
        background: #eaf4f8;
        color: #005164;
        font-size: 1.3rem;
    }

    .chat-wa-welcome h2,
    .chat-wa-empty-messages strong,
    .chat-wa-empty-list strong {
        margin: 0;
        color: #172033;
        font-size: 1.1rem;
        font-weight: 950;
    }

.mobile-only {
    display: none;
}

/* Keep legacy selectors safe */
.chat-page-shell,
.notification-page-shell {
    width: 100%;
    min-height: calc(100vh - 160px);
}

.notification-panel {
    width: 100%;
    padding: 30px;
    border: 1px solid rgba(0, 61, 89, .08);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 22px 50px rgba(0, 61, 89, .08);
    box-sizing: border-box;
}

.notification-page-shell .item-filter-simple-field.search {
    width: min(520px, 42vw) !important;
    flex: 0 1 520px !important;
    margin-left: auto !important;
}

.notif-segment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(15, 84, 140, .11);
    border-radius: 999px;
    background: #f6fafc;
}

    .notif-segment button {
        height: 32px;
        padding: 0 14px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #64748b;
        font-size: .78rem;
        font-weight: 850;
        cursor: pointer;
    }

        .notif-segment button.active {
            background: #005164;
            color: #ffffff;
            box-shadow: 0 10px 18px rgba(0, 81, 100, .16);
        }

.notif-stack {
    display: grid;
    gap: 10px;
}

.notif-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(15, 84, 140, .10);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 61, 89, .04);
}

    .notif-card.unread {
        border-color: rgba(0, 93, 117, .20);
        background: linear-gradient(135deg, #ffffff 0%, #f4fbfd 100%);
    }

.notif-icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: #eaf4f8;
    color: #005164;
}

.notif-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    .notif-title-row h3 {
        margin: 0;
        color: #172033;
        font-size: .95rem;
        font-weight: 950;
    }

    .notif-title-row small {
        flex: 0 0 auto;
        color: #718096;
        font-size: .74rem;
        font-weight: 780;
    }

.notif-body p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: .86rem;
    font-weight: 650;
    line-height: 1.45;
}

.notif-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

    .notif-meta span,
    .notif-meta strong {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        padding: 0 10px;
        border-radius: 999px;
        font-size: .72rem;
        font-weight: 850;
    }

    .notif-meta span {
        background: #f1f5f9;
        color: #475569;
    }

    .notif-meta strong {
        background: #dcfce7;
        color: #166534;
    }

.notif-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notif-open-btn {
    height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: #005164;
    color: #ffffff;
    font-size: .78rem;
    font-weight: 900;
    cursor: pointer;
}

.chat-wa-row.skeleton,
.notif-card.skeleton,
.chat-bubble.skeleton {
    pointer-events: none;
}

    .chat-wa-row.skeleton span,
    .chat-wa-row.skeleton b,
    .chat-wa-row.skeleton em,
    .notif-card.skeleton span,
    .notif-card.skeleton div,
    .notif-card.skeleton em,
    .chat-bubble.skeleton span {
        display: block;
        min-height: 14px;
        border-radius: 999px;
        background: linear-gradient(90deg, #eef3f7 0%, #f8fafc 50%, #eef3f7 100%);
        background-size: 200% 100%;
        animation: skChatShimmer 1.3s infinite linear;
    }

    .chat-wa-row.skeleton > span {
        width: 48px;
        height: 48px;
        border-radius: 999px;
    }

.chat-bubble.skeleton {
    width: 280px;
    height: 52px;
}

@keyframes skChatShimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

@media (max-width: 980px) {
    .chat-wa-shell {
        height: calc(100vh - 140px);
        min-height: 620px;
        grid-template-columns: 1fr;
    }

    .chat-wa-sidebar.has-selected {
        display: none;
    }

    .chat-wa-main.empty {
        display: none;
    }

    .mobile-only {
        display: inline-grid;
    }
}

@media (max-width: 720px) {
    .chat-wa-shell {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .chat-bubble {
        max-width: 88%;
    }

    .notification-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .notification-page-shell .item-filter-simple-field.search {
        width: 100% !important;
        flex: 1 1 100% !important;
        margin-left: 0 !important;
    }

    .notif-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .notif-card-actions {
        grid-column: 2;
        justify-self: start;
    }
}


/*new2*/

/* =========================================================
   DjimanBo - Chat fixed screen height patch
   File: Skanweb/wwwroot/css/skan-chat.css

   Goal:
   - the chat module itself must not make the page scroll
   - left conversation list scrolls only inside its list area
   - right message area scrolls only inside messages area
   - header and composer stay fixed inside the chat panel
   ========================================================= */

/* Desktop authenticated shell: prevent the page content from scrolling because of chat */
@media (min-width: 981px) {
    .sk-app-content:has(.chat-wa-shell) {
        overflow: hidden !important;
        padding-bottom: 0 !important;
    }
}

.chat-wa-shell {
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100dvh - 185px) !important;
    max-height: calc(100dvh - 185px) !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 390px minmax(0, 1fr) !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 61, 89, .10) !important;
    border-radius: 28px !important;
    background: #ffffff !important;
    box-shadow: 0 24px 60px rgba(0, 61, 89, .10) !important;
    box-sizing: border-box !important;
}

.chat-wa-sidebar {
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    overflow: hidden !important;
    border-right: 1px solid rgba(0, 61, 89, .10) !important;
    background: #ffffff !important;
}

.chat-wa-sidebar-head,
.chat-wa-search {
    flex: 0 0 auto !important;
}

.chat-wa-list {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding: 0 8px 14px !important;
}

.chat-wa-main {
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    overflow: hidden !important;
    background: #f5f8fa !important;
    position: relative !important;
}

    .chat-wa-main.empty {
        grid-template-rows: minmax(0, 1fr) !important;
    }

.chat-wa-header {
    position: relative !important;
    top: auto !important;
    z-index: 5 !important;
    flex: 0 0 auto !important;
    min-height: 74px !important;
}

.chat-wa-messages {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding: 20px 22px !important;
    background: #f5f8fa !important;
}

    .chat-wa-messages::before {
        inset: 74px 0 74px !important;
    }

.chat-wa-compose {
    position: relative !important;
    bottom: auto !important;
    z-index: 6 !important;
    flex: 0 0 auto !important;
    min-height: 78px !important;
    box-sizing: border-box !important;
}

/* Keep old page wrapper from adding height/scroll around the chat */
.chat-page-shell {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
}

/* Responsive: single panel still fits screen */
@media (max-width: 980px) {
    .chat-wa-shell {
        height: calc(100dvh - 125px) !important;
        max-height: calc(100dvh - 125px) !important;
        min-height: 0 !important;
        grid-template-columns: 1fr !important;
        border-radius: 22px !important;
    }

    .chat-wa-sidebar.has-selected {
        display: none !important;
    }

    .chat-wa-main.empty {
        display: none !important;
    }
}

@media (max-width: 720px) {
    .chat-wa-shell {
        height: calc(100dvh - 100px) !important;
        max-height: calc(100dvh - 100px) !important;
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
    }

    .chat-wa-header {
        min-height: 68px !important;
        padding: 12px 14px !important;
    }

    .chat-wa-compose {
        min-height: 72px !important;
        padding: 11px 12px !important;
    }

    .chat-wa-messages {
        padding: 14px 12px !important;
    }
}
