﻿
:root {
       --brand: #185FA5;
    --brand-dark: #13497f;
    --brand-tint: #E6F1FB;
    --ink: #1a1a18;
    --muted: #5f5e5a;
    --line: rgba(0, 0, 0, .10);
    --bg: #f5f5f3;
    --card: #ffffff;
    --success: #3B6D11;
    --success-tint: #EAF3DE;
    --warn: #BA7517;
    --warn-tint: #FAEEDA;
    --danger: #A32D2D;
    --danger-tint: #FCEBEB;
    --slate: #5f5e5a;
    --blue: #185FA5;
    --indigo: #534AB7;
    --violet: #534AB7;
    --teal: #0F6E56;
    --cyan: #0F6E56;
    --green: #3B6D11;
    --lime: #3B6D11;
    --amber: #BA7517;
    --orange: #BA7517;
    --red: #A32D2D;
    --js: #185FA5;
    --js-tint: #E6F1FB;
    --radius-lg: 12px;
    --radius: 10px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .03);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
   height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter',-apple-system,'Segoe UI',Roboto,sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: 14px;
}

svg {
    display: block;
}

::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #cdd6e4;
    border-radius: 8px;
}

/* Fixed to the viewport so the page (html/body) has nothing to scroll.
   html/body are overflow:hidden, but scrollIntoView(), focus() and Next.js
   route-change scrolling can still scroll them in code - the content then
   shifts up under the topbar with a gap at the bottom, and the user can't
   scroll it back. Only .content (and the sidebar nav) scroll. */
.app {
  position: fixed;
  inset: 0;
  height: 100vh;
    /* padding-top: 48px;   = shellbar ki height */
    min-height: 0;  
}

.custom-login-app {
    padding-top: 48px;
}

.sidebar {
    width: 262px;
    background: var(--card);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; /* 48px; */
    bottom: 0;
    left: 0;
    z-index: 60;
    transition: transform .25s ease;
}

.brand {
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--line);
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg,var(--brand),var(--brand-dark));
    display: grid;
    place-items: center;
    color: #fff;
    flex-shrink: 0;
}

.brand-name {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -.3px;
}

    .brand-name span {
        color: var(--brand);
    }

.role-badge {
    margin-top: 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--violet);
    background: #F1ECFE;
    padding: 4px 9px;
    border-radius: 20px;
}

    .role-badge .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--violet);
    }

.tenant {
    margin-top: 9px;
    font-size: 11.5px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

    .tenant b {
        color: var(--ink);
        font-weight: 700;
    }

.nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 10px;
}

.nav-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    color: var(--muted);
    text-transform: uppercase;
    padding: 12px 12px 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-weight: 500;
    position: relative;
    margin-bottom: 2px;
    transition: .15s;
}

    .nav-item svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .nav-item:hover {
        background: #F7F9FC;
        color: var(--ink);
    }

    .nav-item.active {
        background: var(--brand-tint);
        color: var(--brand);
        font-weight: 600;
    }

        .nav-item.active::before {
            content: '';
            position: absolute;
            left: -10px;
            top: 6px;
            bottom: 6px;
            width: 3px;
            border-radius: 3px;
            background: var(--brand);
        }

.nav-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    background: var(--brand);
    color: #fff;
    border-radius: 20px;
    padding: 1px 7px;
    min-width: 18px;
    text-align: center;
}

.userbox {
    border-top: 1px solid var(--line);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #F1ECFE;
    color: var(--violet);
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.userbox .nm {
    font-weight: 600;
    font-size: 13px;
}

.userbox .rl {
    font-size: 11.5px;
    color: var(--muted);
}

.sb-logo {
    display:none;
}

.main {
    flex: 1;
    margin-left: 262px;
    display: flex;
    flex-direction: column;
    min-width: 0;
     height: 100vh;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.topbar {
      flex-shrink: 0;
    height: 62px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 22px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.hamburger {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid var(--line);
    place-items: center;
    background: #fff;
}

.search {
    flex: 1;
    max-width: 420px;
    position: relative;
}

    .search svg {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        color: var(--muted);
    }

    .search input {
        width: 100%;
        height: 40px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 0 12px 0 36px;
        background: #fff;
        outline: none;
        transition: .15s;
    }

        .search input:focus {
            border-color: var(--brand);
            box-shadow: 0 0 0 3px var(--brand-tint);
        }

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.credit-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font-weight: 700;
    font-size: 13px;
    color: var(--ink);
}

    .credit-pill svg {
        color: var(--success);
    }

    .credit-pill .lab {
        font-weight: 500;
        color: var(--muted);
    }

.icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    display: grid;
    place-items: center;
    position: relative;
    color: var(--muted);
}

    .icon-btn:hover {
        color: var(--ink);
    }

    .icon-btn .unread {
        position: absolute;
        top: 8px;
        right: 9px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--danger);
        border: 2px solid #fff;
    }

.av-menu {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: linear-gradient(135deg,#7C3AED,#1659D6);
    color: #fff;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.page-container {
        padding: 22px 24px 60px;
    max-width: 780px;
     width: 100%;
    margin: 0 auto;
}

.page-head {
      margin-bottom: 20px;
}

    .page-head h1 {
        font-size: 22px;
        font-weight: 800;
        letter-spacing: -.4px;
    }

    .page-head .sub {
        color: var(--muted);
        font-size: 13.5px;
        margin-top: 3px;
    }

.btn {
    display: inline-flex;
       align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13.5px;
    transition: .15s;
    white-space: nowrap;
}

    .btn svg {
        width: 16px;
        height: 16px;
    }

.btn-primary {
    background: var(--brand);
    color: #fff;
}

    .btn-primary:hover {
        background: var(--brand-dark);
    }

.btn-ghost {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
}

    .btn-ghost:hover {
        background: #F7F9FC;
    }

.btn-success {
    background: var(--success);
    color: #fff;
}

    .btn-success:hover {
        filter: brightness(.94);
    }

.btn-danger {
    background: var(--danger-tint);
    color: var(--danger);
}

    .btn-danger:hover {
        background: #f7d5dc;
    }

.btn-warn {
    background: var(--warn-tint);
    color: var(--warn);
}

.btn-violet {
    background: var(--violet);
    color: #fff;
}

.btn-sm {
    height: 32px;
    padding: 0 11px;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
}

.btn[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

.grid {
    display: grid;
    gap: 16px;
}

.stat-grid {
    grid-template-columns: repeat(3,1fr);
}

.chart-grid {
    grid-template-columns: 2fr 1fr;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.card-pad {
    padding: 18px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

    .card-head h3 {
        font-size: 15px;
        font-weight: 700;
    }

    .card-head .sub {
        font-size: 12px;
        color: var(--muted);
        margin-top: 2px;
    }

.stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

    .stat .lbl {
        font-size: 12.5px;
        color: var(--muted);
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 7px;
    }

        .stat .lbl .ic {
            width: 26px;
            height: 26px;
            border-radius: 8px;
            background: var(--brand-tint);
            color: var(--brand);
            display: grid;
            place-items: center;
        }

            .stat .lbl .ic svg {
                width: 15px;
                height: 15px;
            }

    .stat .num {
        font-size: 25px;
        font-weight: 800;
        letter-spacing: -.6px;
        margin-top: 10px;
    }

    .stat .foot {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 6px;
    }

.delta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

    .delta svg {
        width: 12px;
        height: 12px;
    }

    .delta.up {
        background: var(--success-tint);
        color: var(--success);
    }

    .delta.down {
        background: var(--danger-tint);
        color: var(--danger);
    }

    .delta.flat {
        background: #EEF2F7;
        color: var(--muted);
    }

.spark {
    position: absolute;
    right: 14px;
    bottom: 14px;
    opacity: .85;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

    .pill .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
    }

.p-success {
    background: var(--success-tint);
    color: var(--success);
}

.p-warn {
    background: var(--warn-tint);
    color: var(--warn);
}

.p-danger {
    background: var(--danger-tint);
    color: var(--danger);
}

.p-info {
    background: var(--brand-tint);
    color: var(--brand);
}

.p-muted {
    background: #EEF2F7;
    color: var(--muted);
}

.p-violet {
    background: #F1ECFE;
    color: var(--violet);
}

.p-teal {
    background: #DEF3F1;
    color: var(--teal);
}

.table-wrap {
    overflow-x: auto;
}

table.rtable {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

    table.rtable thead th {
        position: sticky;
        top: 0;
        background: #FBFCFE;
        text-align: left;
        font-weight: 600;
        color: var(--muted);
        font-size: 11.5px;
        letter-spacing: .3px;
        text-transform: uppercase;
        padding: 11px 16px;
        border-bottom: 1px solid var(--line);
        white-space: nowrap;
        z-index: 1;
    }

    table.rtable tbody td {
        padding: 13px 16px;
        border-bottom: 1px solid var(--line);
        vertical-align: middle;
    }

    table.rtable tbody tr {
        transition: .12s;
        cursor: pointer;
    }

        table.rtable tbody tr:hover {
            background: #F8FAFD;
        }

        table.rtable tbody tr:last-child td {
            border-bottom: none;
        }

.t-name {
    font-weight: 600;
    color: var(--ink);
}

.t-sub {
    font-size: 12px;
    color: var(--muted);
}

.cell-av {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--brand-tint);
    color: var(--brand);
    font-weight: 700;
    display: grid;
    place-items: center;
    font-size: 13px;
    flex-shrink: 0;
}

.namecell {
    display: flex;
    align-items: center;
    gap: 11px;
}

.act-menu {
    position: relative;
    text-align: right;
}

.kebab {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    color: var(--muted);
}

    .kebab:hover {
        background: #EEF2F7;
        color: var(--ink);
    }

.dropdown {
    position: absolute;
    right: 0;
    top: 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(16,30,54,.14);
    min-width: 175px;
    padding: 6px;
    z-index: 30;
    text-align: left;
}

    .dropdown button {
        display: flex;
        align-items: center;
        gap: 9px;
        width: 100%;
        padding: 8px 10px;
        border-radius: 7px;
        font-size: 13px;
        color: var(--ink);
        font-weight: 500;
    }

        .dropdown button:hover {
            background: #F4F7FB;
        }

        .dropdown button.danger {
            color: var(--danger);
        }

        .dropdown button svg {
            width: 15px;
            height: 15px;
        }

.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.inp {
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 12px;
    background: #fff;
    outline: none;
    color: var(--ink);
}

    .inp:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px var(--brand-tint);
    }

.search-mini {
    position: relative;
    flex: 1;
    max-width: 280px;
    min-width: 180px;
}

    .search-mini svg {
        position: absolute;
        left: 11px;
        top: 50%;
        transform: translateY(-50%);
        width: 15px;
        height: 15px;
        color: var(--muted);
    }

    .search-mini input {
        width: 100%;
        height: 38px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 0 12px 0 34px;
        outline: none;
    }

        .search-mini input:focus {
            border-color: var(--brand);
            box-shadow: 0 0 0 3px var(--brand-tint);
        }

.seg {
    display: inline-flex;
    background: #EEF2F7;
    border-radius: 9px;
    padding: 3px;
    flex-wrap: wrap;
}

    .seg button {
        padding: 6px 13px;
        border-radius: 7px;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--muted);
    }

        .seg button.active {
            background: #fff;
            color: var(--brand);
            box-shadow: 0 1px 3px rgba(0,0,0,.08);
        }

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--muted);
}

.empty {
    text-align: center;
    padding: 46px 20px;
    color: var(--muted);
}

    .empty svg {
        width: 42px;
        height: 42px;
        margin: 0 auto 12px;
        color: #cbd5e1;
    }

.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.42);
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: .2s;
}

    .backdrop.show {
        opacity: 1;
        pointer-events: auto;
    }

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 480px;
    max-width: 94vw;
    background: var(--bg);
    z-index: 90;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(16,30,54,.12);
}

    .drawer.show {
        transform: translateX(0);
    }

.drawer-head {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.drawer-foot {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 14px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.close-x {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: #F4F7FB;
}

    .close-x:hover {
        background: #E6EBF2;
        color: var(--ink);
    }

.modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-46%);
    width: 520px;
    max-width: 94vw;
    background: #fff;
    border-radius: var(--radius-lg);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: .2s;
    box-shadow: 0 24px 60px rgba(16,30,54,.25);
    max-height: 88vh;
    overflow-y: auto;
}

    .modal.show {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%,-50%);
    }

.modal-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-head h3 {
        font-size: 16px;
        font-weight: 700;
    }

.modal-body {
    padding: 20px;
}

.modal-foot {
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.field {
    margin-bottom: 15px;
}

    .field label {
        display: block;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--ink);
        margin-bottom: 6px;
    }

    .field input, .field select, .field textarea {
        width: 100%;
            height: 48px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 0 12px;
        outline: none;
        background: #fff;
    }

    .field textarea {
        height: auto;
        padding: 10px 12px;
        min-height: 84px;
        resize: vertical;
    }

        .field input:focus, .field select:focus, .field textarea:focus {
            border-color: var(--brand);
            box-shadow: 0 0 0 3px var(--brand-tint);
        }

.toggle {
    width: 42px;
    height: 24px;
    border-radius: 20px;
    background: #CBD5E1;
    position: relative;
    transition: .18s;
    flex-shrink: 0;
    cursor: pointer;
}

    .toggle::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff;
        transition: .18s;
        box-shadow: 0 1px 3px rgba(0,0,0,.2);
    }

    .toggle.on {
        background: var(--success);
    }

        .toggle.on::after {
            left: 20px;
        }

.tog-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

    .tog-row:last-child {
        border-bottom: none;
    }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chipx {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    cursor: pointer;
    transition: .15s;
}

    .chipx.on {
        background: var(--brand-tint);
        border-color: var(--brand);
        color: var(--brand);
    }

.dropzone {
    border: 1.5px dashed var(--line);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    color: var(--muted);
    background: #FBFCFE;
}

    .dropzone svg {
        width: 26px;
        height: 26px;
        margin: 0 auto 8px;
        color: var(--brand);
    }

.kv {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

    .kv:last-child {
        border-bottom: none;
    }

    .kv .k {
        color: var(--muted);
    }

    .kv .v {
        font-weight: 600;
        text-align: right;
    }

.sec-title {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--muted);
    margin: 18px 0 8px;
}

/* stepper */
.stepper {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}

.stp {
    display: flex;
    align-items: center;
    gap: 9px;
}

    .stp .cir {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-weight: 700;
        font-size: 13px;
        background: #EEF2F7;
        color: var(--muted);
        flex-shrink: 0;
    }

    .stp.active .cir {
        background: var(--brand);
        color: #fff;
    }

    .stp.done .cir {
        background: var(--success);
        color: #fff;
    }

    .stp .stl {
        font-weight: 600;
        font-size: 13px;
        color: var(--muted);
        white-space: nowrap;
    }

    .stp.active .stl, .stp.done .stl {
        color: var(--ink);
    }

.stp-line {
    height: 2px;
    background: var(--line);
    flex: 1;
    margin: 0 12px;
    min-width: 20px;
}

    .stp-line.done {
        background: var(--success);
    }

/* usage */
.usage {
    margin-bottom: 16px;
}

    .usage .ut {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        margin-bottom: 6px;
    }

.ubar {
    height: 9px;
    border-radius: 8px;
    background: #EEF2F7;
    overflow: hidden;
}

    .ubar > i {
        display: block;
        height: 100%;
        border-radius: 8px;
        background: var(--brand);
        transition: width .4s;
    }

        .ubar > i.warn {
            background: var(--warn);
        }

        .ubar > i.danger {
            background: var(--danger);
        }

.progress {
    height: 8px;
    border-radius: 8px;
    background: #EEF2F7;
    overflow: hidden;
}

    .progress > i {
        display: block;
        height: 100%;
        border-radius: 8px;
        background: var(--success);
    }

.target-row {
    margin-bottom: 15px;
}

    .target-row .tr-top {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        margin-bottom: 6px;
    }

.rank {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #EEF2F7;
    color: var(--muted);
    font-weight: 800;
    display: grid;
    place-items: center;
    font-size: 12px;
}

    .rank.g1 {
        background: #FCEFC9;
        color: #B7791F;
    }

    .rank.g2 {
        background: #E7ECF2;
        color: #64748B;
    }

    .rank.g3 {
        background: #F7E4D5;
        color: #C2620F;
    }

/* candidate cards */
.cand-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
}

.blur {
    filter: blur(5px);
    user-select: none;
}

.lockchip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

.vbadge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--success-tint);
    color: var(--success);
}

    .vbadge svg {
        width: 13px;
    }

/* mode cards */
.mode-card {
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    background: #fff;
    position: relative;
}

    .mode-card.active {
        border-color: var(--brand);
        box-shadow: 0 0 0 1px var(--brand);
    }

    .mode-card .ribbon {
        position: absolute;
        top: 14px;
        right: 14px;
        font-size: 10.5px;
        font-weight: 700;
        background: var(--brand);
        color: #fff;
        padding: 3px 9px;
        border-radius: 20px;
    }

.matchbox {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
}

.matchcell {
    background: #FBFCFE;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
}

    .matchcell .ml {
        font-size: 12px;
        color: var(--muted);
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .matchcell .mn {
        font-size: 24px;
        font-weight: 800;
        margin-top: 6px;
        letter-spacing: -.5px;
    }

.notif-pop {
    position: absolute;
    right: 74px;
    top: 56px;
    width: 360px;
    max-width: 92vw;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 48px rgba(16,30,54,.18);
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: .18s;
}

    .notif-pop.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .notif-pop .nh {
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .notif-pop .nh h4 {
            font-size: 14px;
            font-weight: 700;
        }

.notif-list {
    max-height: 380px;
    overflow-y: auto;
}

.notif-item {
      display: flex;
    gap: 13px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 11px;
    background: #fff;
}
.notif-item.unread {
    border-color: var(--brand);
    background: var(--brand-tint);
}
  
.ni-ic {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

    .ni-ic svg {
        width: 17px;
    }

.notif-item .nt {
    font-size: 13px;
    font-weight: 600;
}

.notif-item .nm {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
}

.notif-item .ng {
    font-size: 11px;
    color: #9aa7b8;
    margin-top: 4px;
}

.av-pop {
    position: absolute;
    right: 22px;
    top: 56px;
    width: 230px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 40px rgba(16,30,54,.16);
    z-index: 70;
    padding: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: .18s;
}

    .av-pop.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .av-pop .uhead {
        padding: 10px 12px;
        border-bottom: 1px solid var(--line);
        margin-bottom: 6px;
    }

    .av-pop .custom-dropdown-menu-link {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 9px 12px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        color: var(--ink);
    }

        .av-pop .custom-dropdown-menu-link:hover {
            background: #F4F7FB;
        }

        .av-pop .custom-dropdown-menu-link svg {
            width: 16px;
        }

.toast-wrap {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #0F172A;
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    font-size: 13.5px;
    font-weight: 500;
    min-width: 260px;
    animation: tin .3s ease;
}

    .toast .ti {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        flex-shrink: 0;
    }

    .toast.success .ti {
        background: var(--success);
    }

    .toast.error .ti {
        background: var(--danger);
    }

    .toast.info .ti {
        background: var(--brand);
    }

    .toast svg {
        width: 15px;
        color: #fff;
    }

@keyframes tin {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Pages that need a 2:1 split (e.g. an agenda/list next to a sidebar card)
   use this instead of an inline grid-template-columns override - an inline
   style always wins over the .row-2 mobile media query below (inline beats
   stylesheet regardless of breakpoint), which was forcing a two-column grid
   wider than the viewport on phones and causing horizontal scroll. */
.row-2-wide {
    grid-template-columns: 2fr 1fr;
}

.row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.muted {
    color: var(--muted);
}

.mt8 {
    margin-top: 8px;
}

.mt12 {
    margin-top: 12px;
}

.mt16 {
    margin-top: 16px;
}

.flex {
    display: flex;
    align-items: center;
    gap: 10px;
}


.gap6 {
    gap: 6px;
}

.wrap {
    flex-wrap: wrap;
}

.bignum {
    font-size: 22px;
    font-weight: 800;
}

@media (max-width:800px) {
    .stat-grid

{
    grid-template-columns: repeat(2,1fr);
}

.chart-grid, .cand-grid, .row-2, .row-3, .matchbox {
    grid-template-columns: 1fr!important;
}

.card-head{
     flex-direction: column;
         align-items: flex-start;
         gap:10px;
}

}

@media(max-width:900px) {
    .sidebar

{
    transform: translateX(-100%);
}

.sidebar.open {
    transform: translateX(0);
}

.main {
    margin-left: 0;
}

.hamburger {
    display: grid;
}

.content {
    padding: 18px 16px 50px;
}

.credit-pill .lab {
    display: none;
}

}

@media(max-width:768px) {
    table .rtable thead;

{
    display: none;
}

table.rtable, table.rtable tbody, table.rtable tr, table.rtable td {
    display: block;
    width: 100%;
}

    table.rtable tbody tr {
        border: 1px solid var(--line);
        border-radius: var(--radius);
        margin-bottom: 12px;
        padding: 6px 4px;
        background: #fff;
    }

    table.rtable tbody td {
        border: none;
        padding: 9px 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
        text-align: right;
    }

        table.rtable tbody td::before {
            content: attr(data-label);
            font-weight: 600;
            color: var(--muted);
            font-size: 11.5px;
            text-transform: uppercase;
            letter-spacing: .3px;
            text-align: left;
        }

        table.rtable tbody td.namecell {
            justify-content: flex-start;
            text-align: left;
        }

            table.rtable tbody td.namecell::before {
                display: none;
            }

.act-menu {
    justify-content: flex-end;
}

.stat-grid {
    grid-template-columns: 1fr;
}

.page-head h1 {
    font-size: 19px;
}

.notif-pop {
    right: 10px;
}

.stp .stl {
    display: none;
}

}

.notif-grid {
    display: grid;
    grid-template-columns: minmax(0,1.5fr) minmax(0,1fr);
    gap: 16px;
    align-items: start;
}

@media(max-width:980px) {
    .notif-grid;

{
    grid-template-columns: 1fr;
}

}

.notif-sticky {
    position: sticky;
    top: 14px;
}

.mt0 {
    margin-top: 0;
}

.notif-aud {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-tint);
    border: 1px solid #cfdcfb;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12.5px;
}

.notif-aud-n {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 12px;
    flex: 0 0 auto;
}

.nch-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
}

@media(max-width:560px) {
    .nch-grid;

{
    grid-template-columns: 1fr 1fr;
}

}

.nch {
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 11px;
    cursor: pointer;
    font-size: 13px;
}

    .nch input {
        display: none;
    }

.nch-rate {
    font-size: 10.5px;
    color: var(--muted);
}

.nsched {
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 13px;
    cursor: pointer;
    font-size: 13px;
}

    .nsched.on {
        border-color: var(--brand);
        background: var(--brand-tint);
    }

    .nsched input {
        display: none;
    }

    .nsched .muted {
        font-size: 11px;
    }

.notif-vars {
    background: var(--bg);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 6px;
}

.notif-vars-t {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}

.notif-vars-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    font-family: monospace;
}

    .notif-vars-list span {
        background: #fff;
        border: 1px solid var(--line);
        padding: 3px 8px;
        border-radius: 6px;
        color: var(--brand);
    }

.prev-app {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid #7C3AED;
    border-radius: 10px;
    padding: 11px 13px;
    margin-bottom: 12px;
}

.prev-app-h {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.prev-app-ic {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #7C3AED;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
}

.prev-wa-h {
    background: #075E54;
    color: #fff;
    border-radius: 10px 10px 0 0;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.prev-wa-ic {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 10px;
}

.prev-wa-b {
    background: #ECE5DD;
    padding: 12px;
    border-radius: 0 0 10px 10px;
    margin-bottom: 12px;
}

.prev-wa-bubble {
    background: #DCF8C6;
    border-radius: 8px;
    padding: 9px 11px;
    color: #222;
    font-size: 12.5px;
    line-height: 1.45;
}

.prev-sms {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.prev-email {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 12px;
    margin-bottom: 12px;
}

.fbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}

.fchip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-tint,#EAF1FE);
    color: var(--brand,#1659D6);
    border-radius: 20px;
    padding: 4px 6px 4px 12px;
    font-size: 12px;
    font-weight: 600;
}

    .fchip button {
        border: none;
        background: rgba(22,89,214,.14);
        color: var(--brand,#1659D6);
        border-radius: 50%;
        width: 18px;
        height: 18px;
        display: grid;
        place-items: center;
        cursor: pointer;
        padding: 0;
    }

.fadd {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .fadd .inp {
        height: 36px;
    }

.selbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--brand-tint,#EAF1FE);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 500;
}

.ck {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.ckcell {
    width: 38px;
    text-align: center;
}

/* ===================== UI POLISH OVERLAY (v1.13) ===================== */
.backdrop {
    background: rgba(15,23,42,.46)!important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.modal {
    width: 600px!important;
    max-width: 94vw!important;
    border-radius: 18px!important;
    border: 1px solid rgba(226,232,240,.9)!important;
    box-shadow: 0 30px 80px -22px rgba(15,30,60,.45),0 10px 28px -12px rgba(15,30,60,.18)!important;
}

    .modal.lg {
        width: 720px!important;
    }

.modal-head {
    padding: 18px 22px!important;
    border-bottom: 1px solid var(--line,#E6EBF2)!important;
}

    .modal-head h3 {
        font-size: 17px!important;
        font-weight: 800!important;
        letter-spacing: -.01em!important;
    }

.modal-body {
    padding: 20px 22px!important;
}

.modal-foot {
    padding: 14px 22px!important;
    border-top: 1px solid var(--line,#E6EBF2)!important;
    background: #FBFCFE;
}

.close-x {
    border-radius: 10px!important;
    width: 32px!important;
    height: 32px!important;
    transition: background .15s;
}

    .close-x:hover {
        background: var(--bg,#EEF2F7)!important;
    }

.rtable thead th, table thead th {
    font-size: 10.5px!important;
    text-transform: uppercase!important;
    letter-spacing: .08em!important;
    color: var(--muted,#5B6B82)!important;
    font-weight: 700!important;
    padding: 12px 16px!important;
    border-bottom: 1px solid var(--line,#E6EBF2)!important;
    background: transparent!important;
}

.rtable td, .rtable tbody td {
    padding: 13px 16px!important;
    vertical-align: middle;
}

.rtable tbody tr {
    transition: background .12s;
}

    .rtable tbody tr:hover {
        background: rgba(22,89,214,.045)!important;
    }

.card {
    border: 1px solid var(--line,#E6EBF2)!important;
    border-radius: 14px!important;
    box-shadow: 0 1px 2px rgba(15,30,60,.04),0 10px 26px -18px rgba(15,30,60,.16)!important;
}

.card-head {
    padding: 15px 18px!important;
    border-bottom: 1px solid var(--line,#E6EBF2)!important;
}

    .card-head h3 {
        font-size: 14.5px!important;
        font-weight: 700!important;
        letter-spacing: -.005em!important;
    }

.card-pad {
    padding: 16px 18px;
}

.field label {
    font-weight: 600!important;
    font-size: 12.5px!important;
    color: var(--ink,#0F172A)!important;
    margin-bottom: 6px!important;
    display: block;
}

.inp, .field input, .field select, .field textarea, .search-mini input {
    border-radius: 10px!important;
    border: 1px solid var(--line,#E6EBF2)!important;
    font-size: 13.5px!important;
}

    .inp:focus, .field input:focus, .field select:focus, .field textarea:focus, .search-mini input:focus {
        border-color: var(--brand,#1659D6)!important;
        box-shadow: 0 0 0 3px var(--brand-tint,#EAF1FE)!important;
    }

input::placeholder, textarea::placeholder {
    color: #9AA7B8;
}

.btn {
    border-radius: 10px!important;
    font-weight: 600!important;
}

.btn-primary {
    box-shadow: 0 2px 6px -1px rgba(22,89,214,.38),0 1px 2px rgba(22,89,214,.18)!important;
}

    .btn-primary:hover {
        filter: brightness(1.06);
    }

.btn-ghost:hover {
    background: var(--bg,#F4F7FB)!important;
}

.sec-title {
    text-transform: uppercase!important;
    letter-spacing: .06em!important;
    font-size: 11.5px!important;
    color: var(--muted,#5B6B82)!important;
    font-weight: 700!important;
    margin: 18px 0 9px!important;
}

.stat {
    border-radius: 14px!important;
    box-shadow: 0 1px 2px rgba(15,30,60,.04),0 12px 28px -20px rgba(15,30,60,.2)!important;
    transition: transform .14s,box-shadow .14s;
}

    .stat:hover {
        transform: translateY(-2px);
        box-shadow: 0 1px 2px rgba(15,30,60,.05),0 18px 34px -20px rgba(15,30,60,.28)!important;
    }

.page-head h1 {
    font-size: 22px!important;
    font-weight: 800!important;
    letter-spacing: -.02em!important;
}

.pill {
    border-radius: 7px!important;
    font-weight: 600!important;
}

.toolbar {
    padding: 12px 16px!important;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-thumb {
    background: #D3DCE8;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

    *::-webkit-scrollbar-thumb:hover {
        background: #B6C2D6;
        background-clip: content-box;
    }

.nstep {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    font-weight: 700;
    margin: 20px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .nstep:first-child {
        margin-top: 4px;
    }

    .nstep .tag {
        margin-left: auto;
        text-transform: none;
        letter-spacing: 0;
        font-weight: 600;
        font-size: 11px;
        background: var(--bg);
        border: 1px solid var(--line);
        color: var(--muted);
        border-radius: 20px;
        padding: 2px 10px;
    }

.nrow:last-child {
    border-bottom: none!important;
}

.dz {
    display: block;
    border: 1.5px dashed var(--line);
    border-radius: 13px;
    padding: 22px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s,background .15s;
    background: #fff;
}

    .dz:hover {
        border-color: var(--brand);
        background: var(--brand-tint);
    }

.dz-ic {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--brand-tint);
    color: var(--brand);
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    margin: 2px 0 16px;
}
.trust {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--success);
    background: var(--success-tint);
    padding: 4px 10px;
    border-radius: 20px;
}

.cc-sel {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    cursor: pointer;
    background: #fff;
    font-weight: 600;
    font-size: 15px;
}
.cc-sel .fl {
    font-size: 21px;
    line-height: 1;
}
.cc-sel .cd {
    margin-left: auto;
    color: var(--muted);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ph-wrap {
    display: flex;
    gap: 8px;
}

.ph-code {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 0 13px;
    font-weight: 800;
    background: #FBFCFE;
    white-space: nowrap;
    font-size: 15px;
}

.btn-lg {
    height: 52px;
    font-size: 15.5px;
}

.btn-block {
    width: 100%;
}

.btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
}

.soc-proof {
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    margin-top: 14px;
    line-height: 1.5;
}
.reg-skip {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-top: 13px;
    cursor: pointer;
}

.shellbar {
    height: 48px;
    flex-shrink: 0;
    background: #0F172A;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
     position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

#stage {
    display: none;
    flex-direction: column;
    /*height: 100vh;*/
}

.sb-viewing {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #C7D2E3;
    margin-left: 6px;
}

.sb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.sb-role {
    color: #fff;
    font-weight: 700;
}

.sb-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sb-switch {
    position: relative;
}
.sb-btn {
   height: 42px;
    padding: 0 12px 0 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: #293347;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.sb-btn svg {
    width: 15px;
    height: 15px;
}

.role-switcher {
    position: relative;
    display: inline-block;
    font-family: Inter, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
}


/* =========================
   TRIGGER
========================= */

.role-trigger {
    height: 42px;
    padding: 0 12px 0 9px;

    display: flex;
    align-items: center;
    gap: 8px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;

    background: #293347;
    color: #fff;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    transition: .2s ease;
}

.role-trigger:hover,
.role-trigger.active {
    background: #344057;
}


/* Switch icon */

.switch-icon {
    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;
    background: rgba(255,255,255,.08);
}

.switch-icon svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Chevron */

.trigger-arrow {
    width: 13px;
    height: 13px;

    margin-left: 3px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform .2s ease;
}

.role-trigger.active .trigger-arrow {
    transform: rotate(180deg);
}


/* =========================
   DROPDOWN
========================= */

.role-menu {
    position: absolute;

    top: calc(100% + 9px);
    right: 0;

    width: 290px;
    padding: 8px;

    background: #fff;

    border: 1px solid #e8ebf0;
    border-radius: 15px;

    box-shadow:
        0 20px 50px rgba(15,23,42,.16),
        0 4px 12px rgba(15,23,42,.06);

    z-index: 9999;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-6px) scale(.98);
    transform-origin: top right;

    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease;
}

.role-menu.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0) scale(1);
}


/* =========================
   HEADER
========================= */

.role-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 8px 10px 9px;
}

.role-menu-label {
    color: #747b87;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .8px;
}

.role-menu-current {
    padding: 3px 7px;

    border-radius: 5px;

    background: #f4f6f8;

    color: #7b818b;

    font-size: 10px;
    font-weight: 600;
}


/* =========================
   OPTIONS
========================= */

.role-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.role-option {
    width: 100%;
    min-height: 49px;

    padding: 7px 9px;

    display: flex;
    align-items: center;
    gap: 11px;

    border: 0;
    border-radius: 10px;

    background: transparent;

    text-align: left;

    cursor: pointer;

    transition: background .18s ease;
}

.role-option:hover {
    background: #f6f8fa;
}

.role-option.selected {
    background: #f1f5f9;
}


/* =========================
   ROLE DOT
========================= */

.role-color {
    width: 9px;
    height: 9px;

    flex: 0 0 9px;

    border-radius: 50%;
}

.role-color.platform {
    background: #1769aa;
}

.role-color.manager {
    background: #16806b;
}

.role-color.agency {
    background: #554bc1;
}

.role-color.recruiter {
    background: #3d8fd9;
}

.role-color.seeker {
    background: #3c751d;
}


/* =========================
   ROLE TEXT
========================= */

.role-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 2px;
}

.role-content strong {
    color: #20242a;

    font-size: 13px;
    line-height: 17px;
    font-weight: 600;
}

.role-content small {
    color: #8a9099;

    font-size: 10px;
    line-height: 13px;
}


/* =========================
   CHECK
========================= */

.selected-icon {
    width: 21px;
    height: 21px;

    margin-left: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e5ebf1;
}

.selected-icon svg {
    width: 12px;
    height: 12px;

    fill: none;
    stroke: #344054;
    stroke-width: 2.3;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================
   FOOTER
========================= */

.role-menu-footer {
    margin-top: 6px;
    padding: 7px 2px 2px;

    border-top: 1px solid #e7e9ed;
}

.login-back {
    width: 100%;
    height: 38px;

    padding: 0 9px;

    display: flex;
    align-items: center;
    gap: 10px;

    border: 0;
    border-radius: 9px;

    background: transparent;

    color: #252a31;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;
    text-align: left;
}

.login-back:hover {
    background: #f6f8fa;
}

.back-icon {
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.back-icon svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: #525a65;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 575px) {

    .role-menu {
        width: 275px;
        right: -5px;
    }

    .role-content small {
        display: none;
    }

    .role-option {
        min-height: 44px;
    }
}

.exit-icon {
        width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, .08);
}

.custom-dropdown {
    position: relative;
    display: inline-block;
    width: auto;
}

.custom-dropdown-btn {
      /* min-width: 64px; */
    /* height: 48px; */
    /* padding: 0 14px; */
    /* display: flex; */
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* background: #fff; */
    /* border: 1px solid #2563eb; */
    /* border-radius: 10px; */
    /* color: #1d2433; */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s ease;
}

.custom-dropdown-btn:hover,
.custom-dropdown.active .custom-dropdown-btn {
    border-color: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .10);
}

.custom-dropdown-arrow {
    flex-shrink: 0;
    transition: transform .25s ease;
}

.custom-dropdown.active .custom-dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
       position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;

       width: 230px;
    min-width: 230px;

    padding: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.10);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all .2s ease;

    z-index: 9999;
}

.custom-dropdown.active .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown-item {
    width: 100%;
    padding: 10px 12px;

    display: block;
    text-align: left;

    background: transparent;
    border: 0;
    border-radius: 7px;

    color: #333;
    font-size: 14px;
    cursor: pointer;

    transition: all .2s ease;
}

.custom-dropdown-item:hover {
    background: #f1f5ff;
    color: #2563eb;
}

.uhead {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}

/*.av-pop button {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}*/

.av-pop button svg {
    width: 17px;
}

.custom-notification.active .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.notif-pop {
      position: absolute;
    right:0;
    top: 54px;
    width: 360px;
}

/* Notification wrapper ko positioning chahiye */
.custom-notification {
    position: relative;
}

/* Open state — sab kuch force override */
.custom-dropdown-menu.dd-open,
.av-pop.dd-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;   /* ye hi missing tha */
    transform: translateY(0) !important;
}

.notif-pop .nlist {
    max-height: 360px;
    overflow-y: auto;
    padding: 10px;
}

.page-container-project {
        padding: 24px 30px 60px;
    max-width: 1260px;
    width: 100%;
    margin: 0 auto;
}
@media (max-width: 820px){

   .nch-grid{grid-template-columns: repeat(2,1fr);}
}

/* ===== Mobile / chhoti screen: dropdown screen ke center me ===== */
@media (max-width: 576px) {

    /* parent ko relative se hata do taaki menu viewport ke hisaab se khule */
    .custom-dropdown,
    .custom-notification {
        position: static;
    }

    .custom-dropdown-menu,
    .notif-pop {
        position: fixed;
        top: 70px;                      /* topbar ki height ke hisaab se adjust karo */
        left: 50%;
        right: auto;
        width: calc(100vw - 24px);      /* dono side 12px gap */
        min-width: 0;
        max-width: 360px;
        transform: translate(-50%, -6px);   /* center + closed animation */
    }

    /* Profile menu thoda chhota */
    .av-pop:not(.notif-pop) {
        max-width: 300px;
    }

    /* Open state: center wala translateX bana rahe */
    .custom-dropdown.active .custom-dropdown-menu,
    .custom-notification.active .custom-dropdown-menu,
    .custom-dropdown-menu.dd-open,
    .av-pop.dd-open {
        transform: translate(-50%, 0) !important;
    }

    /* Notification list screen se bahar na jaye */
    .notif-pop .nlist {
        max-height: calc(100vh - 160px);
    }
}

  /* ================================================================
     REUSABLE DROPDOWN  — copy .dropdown block + <script> to reuse
     ================================================================ */
  .dropdown-tbl { position:relative; display:inline-block; }

  /* the ⋯ trigger button */
  .dropdown__trigger {
    display:inline-flex; align-items:center; justify-content:center;
    width:34px; height:34px; padding:0;
    background:transparent; border:none; border-radius:8px;
    color:var(--text-muted); cursor:pointer; font-size:20px; line-height:1;
    transition:background .15s ease;
  }
  .dropdown__trigger:hover { background:var(--hover); }
  .dropdown__trigger:focus-visible { outline:2px solid var(--ring); outline-offset:2px; }
  .dropdown[data-open="true"] .dropdown__trigger { background:var(--hover); }

  /* the menu */
  .dropdown__menu {
    position:absolute; right:0; top:calc(65% + 4px);
    min-width:190px; padding:6px;
    background:#fff; border:1px solid rgba(0,0,0,.10);
    border-radius:var(--radius); box-shadow:0 8px 28px rgba(16,30,54,.14);
    z-index:50;
    /* hidden state */
    opacity:0; transform:translateY(-6px) scale(.98);
    pointer-events:none; transform-origin:top right;
    transition:opacity .14s ease, transform .14s ease;
  }
  .dropdown-tbl[data-open="true"] .dropdown__menu {
    opacity:1; transform:translateY(0) scale(1); pointer-events:auto;
  }
  /* left-aligned variant */
  .dropdown-tbl[data-align="left"] .dropdown__menu {
    right:auto; left:0; transform-origin:top left;
  }

  .dropdown__item {
    display:flex; align-items:center; gap:10px;
    width:100%; padding:9px 10px;
    background:none; border:none; border-radius:7px;
    color:var(--text); font-size:14px; text-align:left; cursor:pointer;
    text-decoration:none;
    transition:background .12s ease;
  }
  .dropdown__item:hover,
  .dropdown__item:focus-visible { background:var(--hover); outline:none; }
  .dropdown__item svg { width:17px; height:17px; flex-shrink:0; }
  .dropdown__item--danger { color:var(--danger); }
  .dropdown__item--danger:hover,
  .dropdown__item--danger:focus-visible { background:var(--danger-hover); }
  .dropdown__divider { height:1px; background:var(--border); margin:6px 4px; }

  @media (prefers-reduced-motion: reduce) {
    .dropdown__menu, .dropdown__trigger { transition:none; }
  }

    /* ---------- blur backdrop ---------- */
  .backdrop{position:fixed;inset:0;background:rgba(15,23,42,.30);
      -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
      opacity:0;pointer-events:none;transition:opacity .25s ease;z-index:100;}
  .backdrop.open{opacity:1;pointer-events:auto;}

  /* ---------- side popup ---------- */
  .popup{position:fixed;top:0;right:0;height:100%;width:480px;max-width:92vw;background:#f5f5f3;
      box-shadow:var(--shadow);transform:translateX(100%);transition:transform .28s cubic-bezier(.4,0,.2,1);
      z-index:101;display:flex;flex-direction:column;}
  .popup.open{transform:translateX(0);}

  .popup__head{padding:22px 24px;border-bottom:1px solid var(--border);
      display:flex;align-items:center;justify-content:space-between;}
  .popup__head h2{font-size:18px;font-weight:700;margin:0;}
  .popup__close{width:32px;height:32px;border:none;border-radius:8px;background:var(--hover);color:var(--muted);
      font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;}
  .popup__close:hover{background:var(--border);color:var(--text);}

  .popup__body{padding:22px 24px;overflow-y:auto;flex:1;color:var(--muted);font-size:14px;line-height:1.6;}
  .popup__body p{margin:0 0 14px;}

  .popup__foot{padding:16px 24px;border-top:1px solid var(--border);display:flex;gap:12px;}
 
  /*.btn:hover{background:var(--hover);}*/
  .btn.primary{background:var(--accent);color:#fff;border-color:transparent;}
  .btn.primary:hover{background:var(--accent-hover);}

  @media (prefers-reduced-motion:reduce){.popup,.backdrop{transition:none;}}

  .btn-primary {
    background: var(--brand) !important;
    box-shadow: none !important;
    color: #fff !important;
}

  .btn-warn {
    background: var(--warn-tint);
    color: var(--warn);
}

  /* Toast styles moved to src/app/globals.css - ToastHost.tsx is mounted
     globally in the root layout now, so its CSS has to be global too. */

  .btn-sm {
    height: 32px;
    padding: 0 11px;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
}
  .btn-ghost {
    border: 1px solid var(--line) !important;
    background: #fff !important;
}

 /* ============================================================
     REUSABLE POPUP COMPONENT (naye class names)
     .popup-overlay          : overlay + centering (hidden by default)
     .popup-overlay.active   : shows the popup
     .popup-box              : white box
     .popup-top / -heading / -x
     .popup-content
     .popup-bottom
     .popup-sm / -md / -lg   : width variants
     ============================================================ */

  .popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 999;
    background: rgba(17, 24, 39, .4);   /* thoda halka kiya taaki blur dikhe */
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);  /* Safari support */
  }
  .popup-overlay.active { display: flex; }

  .popup-box {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    animation: popup-in .16s ease;
    overflow: hidden;
  }
  @keyframes popup-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* width variants */
  .popup-sm .popup-box { max-width: 400px; }
  .popup-md .popup-box { max-width: 560px; }
  .popup-lg .popup-box { max-width: 720px; }

  .popup-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 14px;
    border-bottom: 1px solid #eef0f2;
  }
  .popup-heading {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
  }
  .popup-x {
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .12s ease, color .12s ease;
  }
  .popup-x:hover { background: #e5e7eb; color: #111827; }

  .popup-content { padding: 20px 24px; }

  .popup-bottom {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 22px;
  }

  /* ---- Shared form + button styles (naye names) ---- */
  .form-row { margin-bottom: 16px; }
  .form-row:last-child { margin-bottom: 0; }
  .form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
  }
  .form-row input,
  .form-row select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    background: #fff;
  }
  .form-row input:focus,
  .form-row select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
  }
  .form-note { color: #6b7280; font-size: 13px; margin: 4px 0 0; }

  .pop-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .12s ease, border-color .12s ease;
  }
  .pop-btn-blue  { background: #2563eb; color: #fff; }
  .pop-btn-blue:hover  { background: #1d4ed8; }
  .pop-btn-white { background: #fff; color: #374151; border-color: #d1d5db; }
  .pop-btn-white:hover { background: #f9fafb; }
  .pop-btn-red   { background: #dc2626; color: #fff; }
  .pop-btn-red:hover   { background: #b91c1c; }

.dropdown-tbl .dropdown__item {
font-size: 13px;
    color: var(--ink);
}

.dropdown-tbl .dropdown__item svg {
    width: 15px;
    height: 15px;
}

.popup-bottom {
    background: var(--bg) !important;
    border-color: var(--line) !important;
}

/* .popup-content {
    max-height:400px;
    overflow-y:scroll;
} */
.popup-box {
    max-height: 90vh;
    overflow-y: auto;
}

/* ============================================================
     REUSABLE TOGGLE SWITCH
     .switch-card        : bordered card row (label + switch)
     .switch-label       : text on the left
     .switch             : the toggle itself (label wraps a checkbox)
     .switch input       : hidden checkbox (real state)
     .switch-slider      : the visible track + knob
     .switch--sm / --lg  : size variants
     ============================================================ */

  .switch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 360px;
    max-width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
  }
  .switch-label {
    font-size: 15px;
    font-weight: 600;
  }

  /* The switch */
  .switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    cursor: pointer;
  }
  .switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  .switch-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background .2s ease;
  }
  .switch-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,.25);
    transition: transform .2s ease;
  }
  /* ON state */
  .switch input:checked + .switch-slider {
    background: #1d5fa8;              /* blue jaise image me */
  }
  .switch input:checked + .switch-slider::before {
    transform: translateX(20px);
  }
  /* focus ring (keyboard) */
  .switch input:focus-visible + .switch-slider {
    box-shadow: 0 0 0 3px rgba(37,99,235,.3);
  }
  /* disabled */
  .switch input:disabled + .switch-slider {
    opacity: .5;
    cursor: not-allowed;
  }

  /* size: small */
  .switch--sm .switch-slider { width: 36px; height: 20px; }
  .switch--sm .switch-slider::before { width: 16px; height: 16px; }
  .switch--sm input:checked + .switch-slider::before { transform: translateX(16px); }

  /* size: large */
  .switch--lg .switch-slider { width: 54px; height: 30px; }
  .switch--lg .switch-slider::before { width: 26px; height: 26px; }
  .switch--lg input:checked + .switch-slider::before { transform: translateX(24px); }

  .demo-note { color:#6b7280; font-size:13px; }

   .tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--group-bg);
    border-radius: 12px;
  }

  .tab {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 9px;
    background: transparent;
    color: var(--tab-inactive-text);
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  }

  .tab:hover { color: var(--tab-active-text); }

  .tab.active {
    background: var(--tab-active-bg);
    color: var(--tab-active-text);
    box-shadow: var(--shadow);
  }

  .tab:focus-visible {
    box-shadow: var(--shadow), 0 0 0 2px var(--tab-active-text);
  }

  .panel {
    display: none;
    width: 100%;
    max-width: 100%;
    padding:0;
    animation: fade 0.2s ease;
  }

  .panel.active { display: block; }

  @keyframes fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .panel h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
  }

  .task-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}
  .t-type {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
  .tt {
    font-weight: 600;
    font-size: 13.5px;
}
  .tmeta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .tmeta span {
        display:flex;
        column-gap:5px;
    }

/* Desktop tables: .namecell (avatar + name) used display:flex on the <td>,
   which stops it acting as a table cell - it no longer stretches to the row
   height, so its border sat at a different height from the rest of the row.
   Keep it a real table cell and lay out avatar + text inline instead.
   (<=768px the rtable turns into cards and every td is flex anyway.) */
@media (min-width: 769px) {
    table.rtable td.namecell {
        display: table-cell;
        vertical-align: middle;
    }
    /* Avatar / category icon: stays a grid so its letter or image is centred. */
    table.rtable td.namecell > .cell-av,
    table.rtable td.namecell > .cat-ic-lg {
        display: inline-grid;
        vertical-align: middle;
        margin-right: 11px;
    }
    table.rtable td.namecell > :not(.cell-av):not(.cat-ic-lg) {
        display: inline-block;
        vertical-align: middle;
        max-width: calc(100% - 46px);
    }
    table.rtable td.namecell > :only-child {
        max-width: none;
    }
}
