@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('/fonts/Montserrat/Montserrat-VariableFont_wght.woff2') format('woff2');
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ===== Scrollbar CSS ===== */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #6c757d #f1f2f3;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track {
    background: #f1f2f3;
}

*::-webkit-scrollbar-thumb {
    background-color: #6c757d;
    border-radius: 22px;
    border: 0px solid #f1f2f3;
}

/* ============ Auth page ============ */
.auth-wrap {
    min-height: calc(100vh - 56px); /* roughly navbar height */
    position: relative;
    overflow: hidden;
    background: radial-gradient(1200px 800px at 20% 10%, rgba(16,185,129,.14), transparent 60%), radial-gradient(900px 700px at 85% 20%, rgba(5,150,105,.12), transparent 55%), radial-gradient(900px 700px at 40% 90%, rgba(34,197,94,.10), transparent 55%), #0b1220;
}

.login-page .auth-wrap {
    min-height: 100vh;
}

.auth-bg-blob {
    position: absolute;
    width: 760px;
    height: 760px;
    filter: blur(22px);
    opacity: 0.18;
    fill: #10b981;
    pointer-events: none;
}

.auth-bg-blob-1 {
    left: -280px;
    top: -220px;
}

.auth-bg-blob-2 {
    right: -320px;
    bottom: -340px;
    opacity: 0.14;
    fill: #34d399;
}

.auth-card {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(14px);
}

.auth-card-inner {
    padding: 26px;
    color: rgba(255,255,255,.92);
}

.auth-card .text-muted {
    color: rgba(255,255,255,.65) !important;
}

.auth-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(16,185,129,.35), rgba(34,197,94,.18));
    border: 1px solid rgba(16,185,129,.35);
    color: #a7f3d0;
}

.auth-input .input-group-text {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.85);
}

.auth-input .form-control {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.92);
}

.auth-input .form-control::placeholder {
    color: rgba(255,255,255,.45);
}

.auth-input .form-control:focus {
    border-color: rgba(16,185,129,.55);
    box-shadow: 0 0 0 .25rem rgba(16,185,129,.15);
}

.auth-toggle {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.80);
}

.auth-toggle:hover {
    background: rgba(255,255,255,.10);
}

.auth-link {
    color: rgba(167,243,208,.92);
}

.auth-link:hover {
    color: rgba(110,231,183,.95);
}

.auth-btn {
    border: none;
    border-radius: 14px;
    padding: 12px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #06261a;
    font-weight: 700;
    background: linear-gradient(135deg, #34d399 0%, #10b981 40%, #059669 100%);
    box-shadow: 0 10px 25px rgba(16,185,129,.25);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.auth-btn:hover {
    filter: brightness(1.02);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(16,185,129,.28);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn svg {
    color: rgba(6,38,26,.85);
}

/* Make validation text readable on dark bg */
.auth-card .text-danger {
    color: #fca5a5 !important;
}






/* ===== App Shell (Layout) ===== */
.app-shell {
    background: #f1f2f3;
    min-height: 100vh;
    overflow: hidden;
}



.app-shell.login-page {
    background: radial-gradient(1200px 800px at 20% 10%, rgba(16,185,129,.14), transparent 60%), radial-gradient(900px 700px at 85% 20%, rgba(5,150,105,.12), transparent 55%), radial-gradient(900px 700px at 40% 90%, rgba(34,197,94,.10), transparent 55%), #0b1220;
    min-height: 100vh;
    overflow-x: hidden;
}

/* decorative blobs (keep your vibe) */
.app-bg-blob {
    position: absolute;
    width: 860px;
    height: 860px;
    filter: blur(22px);
    opacity: 0.16;
    fill: #10b981;
    pointer-events: none;
}

.app-bg-blob-1 {
    left: -300px;
    top: -240px;
}

.app-bg-blob-2 {
    right: -340px;
    bottom: -360px;
    opacity: 0.12;
    fill: #34d399;
}

.app-root {
    position: relative;
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar (white + clean) ===== */
.app-sidebar {
    width: 280px;
    border-right: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
}

.app-sidebar-brand {
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.app-sidebar-brand,
.app-main .app-topbar {
    height: 68px;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(0,0,0,.88);
}

    .app-brand:hover {
        color: rgba(0,0,0,.95);
    }

.app-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(16,185,129,.16), rgba(34,197,94,.08));
    border: 1px solid rgba(16,185,129,.22);
    color: #059669;
}

.app-brand-text {
    font-weight: 800;
    letter-spacing: .2px;
}

.app-nav-section {
    color: rgba(0,0,0,.45);
    font-size: .72rem;
    letter-spacing: .08em;
}

/* nav links: mostly gray, only active is emerald */
.app-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(0,0,0,.74);
    border: 1px solid transparent;
    background: transparent;
    transition: background .12s ease, border-color .12s ease;
}

.app-nav-link:hover {
    background: rgba(0,0,0,.03);
    border-color: rgba(0,0,0,.06);
    color: rgba(0,0,0,.88);
}

.app-nav-link.active {
    background: rgba(16,185,129,.10);
    border-color: rgba(16,185,129,.22);
    color: rgba(0,0,0,.92);
}

.app-nav-ico {
    width: 22px;
    display: inline-flex;
    justify-content: center;
    color: rgba(0,0,0,.45);
}

.app-nav-link.active .app-nav-ico {
    color: #059669;
}

/* user chip */
.app-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
    background: rgba(0,0,0,.02);
}

.app-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(16,185,129,.10);
    border: 1px solid rgba(16,185,129,.18);
    color: #059669;
}

.app-user-name {
    font-weight: 700;
    color: rgba(0,0,0,.88);
    line-height: 1.1;
}

.app-user-sub {
    font-size: .85rem;
    color: rgba(0,0,0,.45) !important;
}

/* ===== Create User (memberships / roles / permissions) ===== */
.users-create-sep {
    border-top: 1px solid rgba(0,0,0,.08);
    opacity: 1;
}

.users-create-section {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    background: #fff;
    padding: 14px;
}

.users-create-title {
    font-weight: 900;
    color: rgba(0,0,0,.90);
    margin-bottom: 2px;
}

.users-tenant-card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    padding: 12px;
    background: rgba(0,0,0,.01);
    margin-top: 10px;
}

.users-tenant-body {
    display: none;
}

    .users-tenant-body.is-open {
        display: block;
    }

.users-subtitle {
    font-weight: 900;
    color: rgba(0,0,0,.85);
    margin-bottom: 8px;
}

.users-roles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.users-role-pill {
    display: flex;
    gap: 10px;
    align-items: start;
    padding: 10px 10px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    cursor: pointer;
}

.users-role-pill:hover {
    background: rgba(0,0,0,.02);
}

.users-role-name {
    font-weight: 900;
    color: rgba(0,0,0,.86);
    line-height: 1.2;
}

.users-role-desc {
    display: block;
    margin-top: 3px;
    font-size: .82rem;
    color: rgba(0,0,0,.55);
}

.users-perm-summary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.users-perm-acc .accordion-item {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 8px;
}

.users-perm-acc .accordion-button {
    background: rgba(0,0,0,.01);
    font-weight: 900;
    color: rgba(0,0,0,.86);
}

    .users-perm-acc .accordion-button:focus {
        box-shadow: 0 0 0 .25rem rgba(16,185,129,.12);
    }

.users-mod-count {
    margin-left: auto;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.users-perm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 768px) {
    .users-perm-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.users-perm-pill {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    background: #fff;
    padding: 10px 10px;
    transition: transform .08s ease, border-color .12s ease, background .12s ease;
}

.users-perm-key {
    font-weight: 900;
    color: rgba(0,0,0,.84);
    font-size: .92rem;
}

.users-perm-desc {
    margin-top: 3px;
    font-size: .82rem;
    color: rgba(0,0,0,.55);
}

/* highlighted when enabled by selected roles */
.users-perm-pill.perm-on {
    border-color: rgba(5,150,105,.22);
    background: rgba(5,150,105,.06);
}






/* ===== Main area ===== */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* topbar (white) */
.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
}

.app-page-title {
    font-weight: 800;
    color: rgba(0,0,0,.90);
    letter-spacing: .2px;
}

.app-pill {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(0,0,0,.02);
    color: rgba(0,0,0,.72);
    font-size: .9rem;
}

/* content wrapper: spacing only (dashboard applies the white “work surface”) */
.app-content {
    flex: 1;
    padding: 18px 14px;
}

@media (min-width: 992px) {
    .app-content {
        padding: 22px 24px;
    }
}

/* footer (white) */
.app-footer {
    border-top: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    margin-top: -5px;
}

/* buttons */
.app-btn-ghost {
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(255,255,255,.85);
    color: rgba(0,0,0,.78);
}

.app-btn-ghost:hover {
    background: rgba(0,0,0,.03);
    color: rgba(0,0,0,.90);
}

.app-btn-icon {
    border-radius: 12px;
    background: rgba(255,255,255,.85);
    color: rgba(0,0,0,.80);
}

.app-btn-icon:hover {
    background: rgba(0,0,0,.03);
    color: rgba(0,0,0,.92);
}

#notifCount {
    width: 24px;
    height: 24px;
    padding: 0 !important;
    top: 5px !important;
    left: 80% !important;
    aspect-ratio: 1/1 !important;
}

#notifCountInner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* offcanvas (mobile nav) stays consistent and readable */
.app-offcanvas {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    color: rgba(0,0,0,.88);
}

.notif-canvas .offcanvas-header {
    border-bottom: 1px solid rgba(0,0,0,.08);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* =========================================================
   DASHBOARD (WHITE WORK SURFACE)
   ========================================================= */

/* Make the dashboard area a white "workspace card" */
.app-content {
    background: #ffffff;
    border-radius: 8px;
    margin: 14px;
    padding: 18px !important;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

@media (min-width: 992px) {
    .app-content {
        margin: 18px;
        padding: 22px !important;
    }
}

.dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    background: #fff;
}

.kpi-card {
    padding: 14px 14px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    background: #fff;
}

.kpi-label {
    font-size: .85rem;
    color: rgba(0,0,0,.55);
    margin-bottom: 6px;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: rgba(0,0,0,.90);
    line-height: 1.1;
}

/* only important numbers accented */
.kpi-accent {
    color: #059669;
}

.kpi-sub {
    margin-top: 6px;
    font-size: .85rem;
}

.panel-card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.panel-head {
    padding: 14px 14px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.panel-title {
    font-weight: 800;
    color: rgba(0,0,0,.90);
}

.panel-body {
    padding: 14px 14px;
}

.empty-state {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(5,150,105,.05);
    border: 1px solid rgba(5,150,105,.12);
}

.empty-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #059669;
    margin-top: 6px;
}

.system-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.system-row + .system-row {
    border-top: 1px dashed rgba(0,0,0,.10);
}




/* Users page polish */
/* ===== Users page polish (safe, scoped) ===== */
.users-head .text-muted {
    font-size: .95rem;
}

/* Users search */
.users-searchbar {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 420px;
}

.users-searchbox {
    position: relative;
    width: 100%;
}

.users-search-input {
    padding: 10px 42px 10px 34px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(255,255,255,.92);
    transition: box-shadow .12s ease, border-color .12s ease, transform .12s ease;
}

.users-search-input:focus {
    border-color: rgba(5,150,105,.35);
    box-shadow: 0 0 0 .25rem rgba(16,185,129,.12);
}

.users-search-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0,0,0,.45);
    pointer-events: none;
}

.users-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    color: rgba(0,0,0,.45);
    text-decoration: none;
    transition: background .12s ease, color .12s ease;
}

.users-search-clear:hover {
    background: rgba(0,0,0,.06);
    color: rgba(0,0,0,.75);
}

.users-tabs.nav-tabs {
    border-bottom: 1px solid rgba(0,0,0,.08);
    gap: 4px;
}

.users-tabs .nav-link {
    border: 0;
    color: rgba(0,0,0,.65);
    font-weight: 800;
    border-radius: 12px 12px 0 0;
    padding: .65rem .9rem;
}

    .users-tabs .nav-link:hover {
        color: rgba(0,0,0,.85);
        background: rgba(0,0,0,.02);
    }

    .users-tabs .nav-link.active {
        color: rgba(0,0,0,.92);
        border-bottom: 2px solid #059669;
        background: transparent;
    }

.users-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    color: rgba(0,0,0,.72);
    background: rgba(0,0,0,.05);
}

.users-badge-soft {
    font-weight: 700;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(0,0,0,.02);
    color: rgba(0,0,0,.75);
    border-radius: 999px;
    padding: 8px 10px;
}

.users-badge-admin {
    border: 1px solid rgba(5,150,105,.25);
    background: rgba(5,150,105,.08);
    color: #047857;
    border-radius: 999px;
    font-weight: 800;
}

.users-table thead th {
    color: rgba(0,0,0,.55);
    font-weight: 800;
    background: rgba(0,0,0,.02);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.users-table tbody td {
    vertical-align: middle;
    border-top: 1px solid rgba(0,0,0,.06);
}

.users-avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    font-weight: 900;
    color: #065f46;
    background: rgba(16,185,129,.14);
    border: 1px solid rgba(16,185,129,.22);
    flex: 0 0 auto;
}

.users-email {
    font-weight: 800;
    color: rgba(0,0,0,.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
}

.users-name {
    color: rgba(0,0,0,.75);
}

.users-meta {
    font-size: .82rem;
    color: rgba(0,0,0,.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
}

.users-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .82rem;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(0,0,0,.02);
    color: rgba(0,0,0,.72);
}

    .users-status::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: rgba(0,0,0,.25);
    }

.users-status-active {
    border-color: rgba(5,150,105,.22);
    background: rgba(5,150,105,.06);
    color: #047857;
}

    .users-status-active::before {
        background: #059669;
    }

.users-status-disabled {
    border-color: rgba(220,38,38,.22);
    background: rgba(220,38,38,.06);
    color: #b91c1c;
}

    .users-status-disabled::before {
        background: #dc2626;
    }

.users-status-muted {
    border-color: rgba(0,0,0,.10);
    background: rgba(0,0,0,.02);
    color: rgba(0,0,0,.62);
}

.users-empty {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(5,150,105,.05);
    border: 1px solid rgba(5,150,105,.12);
}

.users-empty-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #059669;
    margin-top: 6px;
}





/* Tenants page - reuse users styles */
.tenants-mod-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 768px) {
    .tenants-mod-grid {
        grid-template-columns: 1fr 1fr;
    }
}



/* Roles page - reuse users styles */
.roles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 768px) {
    .roles-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.role-pill {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px 10px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
}

.role-pill:hover {
    background: rgba(0,0,0,.02);
}

.role-pill .role-name {
    font-weight: 900;
    color: rgba(0,0,0,.86);
    line-height: 1.2;
}

.role-pill .role-desc {
    display: block;
    margin-top: 3px;
    font-size: .82rem;
    color: rgba(0,0,0,.55);
}

.perm-check-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 768px) {
    .perm-check-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.perm-check {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    background: #fff;
    padding: 10px 10px;
    cursor: pointer;
}

.perm-check:hover {
    background: rgba(0,0,0,.02);
}


.text-end .table-action-btn,
.text-end .table-action-btn svg,
.text-end .table-action-btn svg * {
    transition: .2s ease;
}

.text-end .table-action-btn:hover {
    background-color: rgba(16,185,129,.10);
}

.text-end .table-action-btn:hover svg,
.text-end .table-action-btn:hover svg * {
    fill: #059669;
    stroke: #059669;
}

.text-end .table-action-btn.danger:hover {
    background-color: rgba(196,16,16,.10);
}

.text-end .table-action-btn.danger svg * {
    fill: #c40606;
}

.text-end .table-action-btn.danger:hover svg * {
    fill: #c41010;
    stroke: none;
}



/* ==========================
   Notifications Offcanvas
   ========================== */

.notif-canvas {
  width: min(450px, 92vw);
  background: transparent;
  border-radius: 12px;
  color: rgba(0,0,0,.88);
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: #fafafa;
}

.notif-head-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.notif-title {
  font-weight: 600;
  letter-spacing: .2px;
  color: rgba(0,0,0,.92);
  line-height: 1.1;
}

.notif-subtitle {
  font-size: .85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.notif-markall {
  border-radius: 999px;
}

.notif-body {
  padding: 12px 12px;
  background: transparent;
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-empty {
  padding: 10px 6px;
}

/* item card */
.notif-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  border-radius: 14px;
  color: rgba(0, 0, 0, .92);
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}

.notif-item-main {
  gap: 4px;
  min-width: 0;
}

.notif-item-title {
  font-weight: 900;
  color: rgba(0,0,0,.90);
  line-height: 1.15;
}

.notif-item-body {
  font-size: .9rem;
  color: rgba(0,0,0,.68);
  word-break: break-word;
}

.notif-item-meta {
  font-size: .78rem;
  color: rgba(0,0,0,.45);
}

.notif-mark-read {
  flex: 0 0 auto;
}

/* make sure offcanvas always sits above your blurred layout */
.notif-canvas.offcanvas { z-index: 1085; }
.notif-canvas.offcanvas-end {
    border: none !important;
}
.notif-canvas .offcanvas-body {
    background: #fff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}




/*CRM BOARD*/
.deal-card {
    cursor: grab;
    transition: transform .08s ease, box-shadow .12s ease;
}

.deal-card:active {
    cursor: grabbing;
}

.deal-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
}



.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 10px 10px;
  color: inherit;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}

.nav-group-caret {
  display: inline-flex;
  transition: transform .18s ease;
  opacity: .7;
}

.nav-group.is-open .nav-group-caret {
  transform: rotate(90deg);
}

.nav-group-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-2px);
  transition: max-height .22s ease, opacity .18s ease, transform .18s ease;
}

.nav-group.is-open .nav-group-body {
  max-height: 1000px; /* big enough */
  opacity: 1;
  transform: translateY(0);
}

/* optional: little spacing between groups */
.nav-group { margin-top: 8px; }


.btn.btn-primary.btn-sm,
.col-12 .btn.btn-primary,
.panel-head .btn.btn-primary {
    border-radius: 8px !important;
    padding: .4rem .95rem;
    border-color: rgba(5, 150, 105, .22);
    background: rgba(5, 150, 105, .06);
    color: #047857;
    font-weight: 700;
    font-size: 0.875rem;
}

.btn.btn-primary.btn-sm:hover,
.col-12 .btn.btn-primary:hover,
.panel-head .btn.btn-primary:hover {
    background: rgba(5, 150, 105, .16);
}

.btn.btn-primary.btn-sm:focus,
.col-12 .btn.btn-primary:focus,
.form-select:focus,
.panel-head .btn.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(5, 150, 105, .1) !important;
    border-color: rgba(5, 150, 105, .22) !important;
}

.col-12 .btn.btn-outline-secondary,
.users-head .btn.btn-outline-secondary,
.panel-head .btn.btn-outline-secondary {
    border-radius: 8px !important;
    padding: .4rem .95rem;
    border-color: rgba(101, 101, 101, .22);
    background: rgba(101, 101, 101, .06);
    color: #3d3d3d;
    font-weight: 700;
    font-size: 0.875rem
}

.col-12 .btn.btn-outline-secondary:hover,
.users-head .btn.btn-outline-secondary:hover,
.panel-head .btn.btn-outline-secondary:hover {
    background: rgba(101, 101, 101, .16);
}

.col-12 .btn.btn-outline-secondary:focus,
.users-head .btn.btn-outline-secondary:focus,
.panel-head .btn.btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.25rem rgba(101, 101, 101, .1) !important;
}

.form-check-input:checked {
    background-color: rgba(5, 150, 105, 0.55);
    border-color: rgba(5, 150, 105, .85);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(5, 150, 105, .1) !important;
    border-color: rgba(5, 150, 105, .22) !important;
}


/* Soft / classic badge palette (transparent bg + 1px border) */
.text-bg-danger{
  color: #7f1d1d !important;
  background-color: rgba(220, 53, 69, .12) !important;   /* bootstrap danger-ish */
  border: 1px solid rgba(220, 53, 69, .28) !important;
}

.text-bg-warning{
  color: #7a4b00 !important;
  background-color: rgba(255, 193, 7, .16) !important;   /* bootstrap warning-ish */
  border: 1px solid rgba(255, 193, 7, .32) !important;
}

.text-bg-info{
  color: #0b4f5f !important;
  background-color: rgba(13, 202, 240, .14) !important;  /* bootstrap info-ish */
  border: 1px solid rgba(13, 202, 240, .30) !important;
}

.text-bg-secondary{
  color: rgba(33, 37, 41, .80) !important;
  background-color: rgba(108, 117, 125, .12) !important; /* bootstrap secondary-ish */
  border: 1px solid rgba(108, 117, 125, .28) !important;
}

.text-bg-success{
  color: #14532d !important;
  background-color: rgba(25, 135, 84, .12) !important;   /* bootstrap success-ish */
  border: 1px solid rgba(25, 135, 84, .28) !important;
}

/* optional: make them feel "badge-like" and crisp */
.badge.text-bg-danger,
.badge.text-bg-warning,
.badge.text-bg-info,
.badge.text-bg-secondary,
.badge.text-bg-success{
  font-weight: 600;
  letter-spacing: .2px;
  padding: .3rem 0.5rem;
}

.qr-code-modal-holder::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: rgba(0,0,0,0.1);
    pointer-events: none;
}

.qr-code-modal {
    max-height: 50svh;
    overflow-y: auto;
}

.app-sidebar .app-nav {
    height: calc(100vh - 235px);
    overflow-y: auto;
}