﻿:root {
    --navy: #102744;
    --navy2: #183b65;
    --blue: #2376e8;
    --bg: #f4f7fb;
    --line: #dce5ef;
    --text: #17253b;
    --muted: #6c7b90;
    --white: #fff
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Segoe UI,Arial,sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 14px
}

.topbar {
    height: 66px;
    background: linear-gradient(100deg,var(--navy),#153b66);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 3px 14px #10274420
}

.brand {
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: .3px
}

    .brand span {
        color: #ffb23f
    }

.hamb {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 23px;
    cursor: pointer
}

.topnav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    height: 100%;
    overflow: visible
}

.navitem {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative
}

.navbtn {
    border: 0;
    background: transparent;
    color: #edf4ff;
    padding: 13px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap
}

    .navbtn:hover, .navbtn.active {
        background: #2474d8;
        color: white
    }

.dropdown {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    min-width: 210px;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: 0 12px 28px #142b481f;
    padding: 6px;
    z-index: 50
}

.navitem.open .dropdown {
    display: block
}

.dropbtn {
    width: 100%;
    text-align: left;
    padding: 11px 12px;
    border: 0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text);
    font-size: 13px
}

    .dropbtn:hover {
        background: #edf5ff;
        color: #1265cc
    }

.user {
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.4;
    display: flex;
    align-items: center
}

    .user b {
        font-size: 13px
    }

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1c5caa;
    font-weight: 800;
    margin-right: 7px
}

.layout {
    display: flex;
    min-height: calc(100vh - 66px)
}

.sidebar {
    width: 226px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 15px 10px;
    transition: width .2s;
    overflow-x: hidden;
    overflow-y: auto
}

    .sidebar.collapsed {
        width: 0;
        padding: 0;
        border: 0
    }

.sidehead {
    font-size: 11px;
    text-transform: uppercase;
    color: #8b98aa;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 12px
}

.sidegroup {
    margin-bottom: 7px
}

.side-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 0;
    border-radius: 7px;
    background: #fff;
    color: var(--text);
    font-weight: 650;
    text-align: left;
    cursor: pointer
}

    .side-main:hover {
        background: #f1f6fc
    }

    .side-main .arrow {
        color: #8391a4
    }

.side-sub {
    display: none;
    padding: 3px 0 6px 12px
}

.sidegroup.expanded .side-sub {
    display: block
}

.side-sub button {
    display: block;
    width: 100%;
    padding: 10px 10px;
    text-align: left;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #526176;
    cursor: pointer;
    font-size: 13px
}

    .side-sub button:hover, .side-sub button.selected {
        background: #e8f2ff;
        color: #1265cc;
        font-weight: 650
    }

.main {
    min-width: 0;
    flex: 1;
    padding: 0 18px 24px
}

.tabbar {
    display: flex;
    align-items: stretch;
    gap: 4px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    padding-top: 15px;
    min-height: 62px
}

.tab {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    max-width: 230px;
    padding: 12px 13px;
    background: #eaf0f7;
    border: 1px solid #d6e0ec;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    color: #53647b;
    cursor: pointer;
    white-space: nowrap
}

    .tab.active {
        background: #fff;
        color: #1768cc;
        border-color: #cbd8e8;
        box-shadow: 0 -2px 0 #2376e8 inset;
        font-weight: 650
    }

    .tab .close {
        font-size: 18px;
        line-height: 14px;
        color: #7b8aa0;
        border-radius: 4px;
        padding: 1px 3px
    }

        .tab .close:hover {
            background: #dbe5f1;
            color: #b42318
        }

.tabplus {
    align-self: center;
    margin-left: auto;
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 22px;
    color: #3f536c;
    cursor: pointer
}

.page {
    display: none;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    padding: 23px;
    min-height: calc(100vh - 150px);
    box-shadow: 0 3px 12px #16395c05
}

    .page.active {
        display: block
    }

.pagehead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px
}

    .pagehead h1 {
        font-size: 24px;
        margin: 0 0 5px
    }

.muted {
    color: var(--muted)
}

.pill {
    display: inline-block;
    background: #e9f3ff;
    color: #1768cc;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px
}

.cards {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 15px;
    margin-bottom: 20px
}

.metric {
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 19px;
    background: linear-gradient(130deg,#f0f8ff,#fff)
}

    .metric:nth-child(2) {
        background: linear-gradient(130deg,#effbf5,#fff)
    }

    .metric:nth-child(3) {
        background: linear-gradient(130deg,#fff7e9,#fff)
    }

    .metric:nth-child(4) {
        background: linear-gradient(130deg,#f5f0ff,#fff)
    }

    .metric .label {
        color: #617187
    }

    .metric .value {
        font-size: 25px;
        font-weight: 750;
        margin: 9px 0
    }

    .metric .trend {
        color: #11945d;
        font-size: 12px
    }

.grid2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 17px;
    margin-bottom: 20px
}

.panel {
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 18px;
    min-width: 0
}

    .panel h3 {
        margin: 0 0 17px;
        font-size: 16px
    }

.bar-chart {
    height: 210px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    border-bottom: 1px solid #cbd7e4;
    padding: 15px 5px 0;
    background: repeating-linear-gradient(to bottom,transparent 0,transparent 51px,#e9eef5 52px)
}

.barpair {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 100%;
    position: relative
}

.bar {
    width: 35%;
    max-width: 24px;
    border-radius: 4px 4px 0 0;
    background: #3985ee
}

    .bar.green {
        background: #31b77b
    }

.month {
    position: absolute;
    bottom: -22px;
    font-size: 11px;
    color: #617187
}

.chart-foot {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #617187
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    background: #3985ee
}

    .dot.green {
        background: #31b77b
    }

.stockrows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.stockitem {
    background: #f7f9fc;
    padding: 12px;
    border-radius: 8px
}

    .stockitem b {
        display: block;
        font-size: 18px;
        margin-top: 5px
    }

.tablewrap {
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px
}

th, td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #e8edf4;
    font-size: 13px
}

th {
    background: #f4f7fb;
    color: #526176;
    font-weight: 650
}

tbody tr:hover {
    background: #f8fbff
}

.status {
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    background: #e3f8ed;
    color: #13834e
}

    .status.pending {
        background: #fff0d5;
        color: #a86100
    }

.formgrid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 17px;
    max-width: 800px
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    color: #526176
}

.field input, .field select, .field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccd7e4;
    border-radius: 7px;
    font: inherit;
    background: #fff
}

.actions {
    display: flex;
    gap: 9px;
    margin-top: 20px
}

.btn {
    border: 1px solid #ccd7e4;
    background: #fff;
    border-radius: 7px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    color: #42536a
}

    .btn.primary {
        background: #2376e8;
        color: #fff;
        border-color: #2376e8
    }

.empty {
    padding: 40px;
    text-align: center;
    color: #718096
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #183b65;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 5px 20px #0002;
    display: none;
    z-index: 100
}





/* ===== Additions for ASP.NET pages ===== */
.inner {
    padding: 18px
}

.formgrid {
    max-width: 980px;
    grid-template-columns: repeat(3,minmax(0,1fr))
}

.filters {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px
}

.alert {
    padding: 11px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-weight: 600
}

    .alert.ok {
        background: #e3f8ed;
        color: #13834e
    }

    .alert.err {
        background: #fde8e8;
        color: #b42318
    }

.btn.sm {
    padding: 6px 11px;
    font-size: 12px;
    margin-right: 4px;
    text-decoration: none;
    display: inline-block
}

.btn.danger {
    color: #b42318;
    border-color: #f1c0c0
}

.val {
    color: #b42318;
    font-size: 12px;
    display: block;
    margin-top: 3px
}

.panel + .panel {
    margin-top: 18px
}

.pager table {
    min-width: 0;
    width: auto;
    margin: 10px auto 0
}

.pager td {
    border: 0;
    padding: 3px
}

.pager a, .pager span {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    text-decoration: none;
    color: #42536a
}

.pager span {
    background: #2376e8;
    color: #fff;
    border-color: #2376e8
}

.count {
    color: var(--muted);
    font-size: 12px;
    margin: 0 0 10px
}

.r {
    text-align: right
}

@media(max-width:900px) {
    .formgrid, .filters {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:600px) {
    .formgrid, .filters {
        grid-template-columns: 1fr
    }
}

@media print {
    .noprint {
        display: none !important
    }

    body {
        background: #fff
    }

    .panel {
        border: 0
    }
}

/* ===== Login ===== */
.loginbody {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg,#102744,#1d4f86)
}

.logincard {
    width: 380px;
    max-width: 92vw;
    background: #fff;
    border-radius: 14px;
    padding: 32px 30px;
    box-shadow: 0 20px 50px #0004
}

    .logincard .brand {
        color: var(--navy);
        text-align: center;
        margin-bottom: 4px
    }

    .logincard .sub {
        text-align: center;
        color: var(--muted);
        margin-bottom: 22px
    }

    .logincard .field {
        margin-bottom: 15px
    }

    .logincard .btn.primary {
        width: 100%;
        padding: 12px;
        font-size: 15px
    }

/* ===== Master page (anchor based menu/tabs) ===== */
a.dropbtn {
    display: block;
    text-decoration: none
}

.side-sub a {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: left;
    border-radius: 6px;
    color: #526176;
    font-size: 13px;
    text-decoration: none
}

    .side-sub a:hover, .side-sub a.selected {
        background: #e8f2ff;
        color: #1265cc;
        font-weight: 650
    }

a.tab {
    text-decoration: none
}

.logout {
    color: #ffb23f;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    text-decoration: underline
}

.formgrid {
    max-width: 1000px
}

.logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #fff;
    vertical-align: middle
}

.logo-ph {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #e9f3ff;
    color: #1768cc;
    font-weight: 800
}

.logo-prev {
    display: block;
    max-height: 70px;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 4px;
    background: #fff
}

.chk {
    margin-top: 6px;
    display: block
}

@media print {
    .topbar, .sidebar, .tabbar {
        display: none !important
    }

    .page {
        border: 0;
        padding: 0
    }
}

/* ===== Dynamic menu (anchors) ===== */
a.navbtn {
    text-decoration: none;
    display: inline-block
}

.navbtn .caret {
    font-size: 10px;
    opacity: .8
}

.navitem.current > .navbtn, a.navbtn.selected {
    background: #ffffff1f;
    color: #fff
}

a.dropbtn.selected {
    background: #e8f2ff;
    color: #1265cc;
    font-weight: 650
}

a.side-link {
    display: block;
    padding: 12px;
    margin-bottom: 7px;
    border-radius: 7px;
    color: var(--text);
    font-weight: 650;
    text-decoration: none
}

    a.side-link:hover, a.side-link.selected {
        background: #e8f2ff;
        color: #1265cc
    }

.uinfo {
    display: flex;
    flex-direction: column;
    line-height: 1.35
}

    .uinfo small {
        color: #c9d8ee;
        font-size: 12px
    }

.user .logout {
    color: #ffb23f;
    text-decoration: underline;
    font-size: 12px
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #0a1a3070;
    z-index: 35
}

    .overlay.show {
        display: block
    }

.hamb {
    padding: 6px 8px;
    border-radius: 7px
}

    .hamb:hover {
        background: #ffffff1f
    }

/* form hints */
.hint {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px
}

.field select:disabled, .field input:disabled {
    background: #f1f4f8;
    color: #8a98ab
}

/* Menu Set */
.menuset {
    max-width: 760px
}

.mgroup {
    margin: 16px 0 6px;
    padding: 8px 12px;
    background: #f4f7fb;
    border-radius: 7px;
    font-weight: 700;
    color: #35465e
}

.mrow {
    padding: 7px 12px;
    border-bottom: 1px solid #eef2f7
}

    .mrow.lvl1 {
        padding-left: 30px
    }

    .mrow label {
        display: inline;
        font-weight: 500;
        margin-left: 6px;
        cursor: pointer
    }

    .mrow input[type=checkbox] {
        width: auto;
        margin-right: 4px;
        vertical-align: middle
    }

.mtag {
    color: var(--muted);
    font-size: 12px;
    margin-left: 6px
}

.alert {
    display: block
}

/* ===== Login extras ===== */
.pwwrap {
    position: relative
}

    .pwwrap input {
        padding-right: 62px
    }

.pwtoggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--blue);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    padding: 6px 8px
}

.loginlinks {
    text-align: center;
    margin-top: 18px;
    font-size: 13px
}

    .loginlinks a {
        color: var(--blue);
        text-decoration: none
    }

        .loginlinks a:hover {
            text-decoration: underline
        }

.logincard .alert {
    margin-bottom: 16px;
    font-size: 13px
}

/* ===== Responsive ===== */
@media(max-width:1100px) {
    .topbar {
        gap: 12px;
        padding: 0 14px
    }

    .topnav {
        display: none
    }
    /* menu sidebar drawer me milta hai */
    .user {
        margin-left: auto
    }

    .sidebar {
        position: fixed;
        top: 66px;
        bottom: 0;
        left: 0;
        z-index: 40;
        width: 250px;
        padding: 15px 10px;
        border-right: 1px solid var(--line);
        transform: translateX(-102%);
        transition: transform .2s;
        box-shadow: 6px 0 24px #10274422
    }

        .sidebar.open {
            transform: none
        }

        .sidebar.collapsed {
            width: 250px;
            padding: 15px 10px;
            border-right: 1px solid var(--line)
        }

    .cards {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .grid2 {
        grid-template-columns: 1fr
    }
}

@media(max-width:700px) {
    .brand {
        font-size: 17px
    }

    .topbar {
        height: 58px;
        padding: 0 10px;
        gap: 8px
    }

    .sidebar {
        top: 58px
    }

    .layout {
        min-height: calc(100vh - 58px)
    }

    .uinfo b {
        display: none
    }

    .avatar {
        margin-right: 6px
    }

    .main {
        padding: 0 8px 15px
    }

    .page {
        padding: 15px
    }

    .cards {
        grid-template-columns: 1fr 1fr;
        gap: 8px
    }

    .metric {
        padding: 12px
    }

        .metric .value {
            font-size: 19px
        }

    .formgrid {
        grid-template-columns: 1fr
    }

    .tab {
        min-width: 120px;
        padding: 10px
    }

    .pagehead {
        flex-wrap: wrap
    }

        .pagehead h1 {
            font-size: 21px
        }
}

@media(max-width:420px) {
    .brand {
        font-size: 15px
    }

    .uinfo small {
        font-size: 11px
    }

    .cards {
        grid-template-columns: 1fr
    }
}


/* =====================================================================
   UPDATE: full width forms, hidden side toggle, clock, user block,
   tab "Close all", searchable dropdown, party block-reason design
   ===================================================================== */

/* ---- form poori width ---- */
.formgrid {
    max-width: none;
    width: 100%;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr))
}

.menuset {
    max-width: none
}

/* ---- toggleSide (hamburger) + sidebar: desktop par hide ---- */
.hamb {
    display: none
}

@media(min-width:1101px) {
    .sidebar, .sidebar.collapsed {
        display: none
    }
}

@media(max-width:1100px) {
    .hamb {
        display: inline-block
    }
}

/* ---- topbar: clock + user ---- */
.clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
    white-space: nowrap;
    padding: 0 14px;
    border-left: 1px solid #ffffff2e;
    border-right: 1px solid #ffffff2e
}

    .clock b {
        font-size: 16px;
        font-weight: 700;
        letter-spacing: .5px;
        font-variant-numeric: tabular-nums
    }

    .clock small {
        font-size: 11px;
        color: #c9d8ee
    }

.user {
    gap: 10px
}

    .user .avatar {
        width: 40px;
        height: 40px;
        margin: 0;
        font-size: 14px;
        background: linear-gradient(135deg,#ffd37a,#ffb23f);
        color: #102744
    }

.uinfo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.2
}

    .uinfo b {
        font-size: 14px;
        font-weight: 700;
        color: #fff
    }

    .uinfo small {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 11px
    }

.role {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    background: #ffffff22;
    color: #e6efff;
    font-size: 11px;
    font-weight: 600
}

.user a.logout {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid #ffb23f;
    border-radius: 20px;
    color: #ffb23f;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none
}

    .user a.logout:hover {
        background: #ffb23f;
        color: #102744
    }

@media(max-width:1100px) {
    .clock {
        margin-left: auto;
        border-left: 0
    }

    .user {
        margin-left: 0
    }
}

@media(max-width:700px) {
    .clock small, .uinfo small .role {
        display: none
    }

    .clock {
        padding: 0 8px;
        border: 0
    }

        .clock b {
            font-size: 13px
        }
}

/* ---- tabs: Refresh / Close all ---- */
.tabtools {
    display: flex;
    align-items: center;
    gap: 6px;
    align-self: center;
    margin-left: auto;
    padding-left: 10px;
    position: sticky;
    right: 0;
    flex-shrink: 0;
    background: var(--bg)
}

.tabbtn {
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #42536a;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap
}

    .tabbtn:hover {
        background: #edf5ff;
        color: #1265cc
    }

    .tabbtn.danger {
        border-color: #f1c0c0;
        color: #b42318
    }

        .tabbtn.danger:hover {
            background: #fde8e8;
            color: #b42318
        }

/* ---- tab panes (har tab = iframe, switch par reload nahi) ---- */
.layout {
    height: calc(100vh - 66px);
    min-height: 0
}

.main {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 12px
}

.tabbar {
    flex-shrink: 0
}

.panes {
    flex: 1;
    min-height: 0;
    position: relative
}

.pane {
    display: none;
    height: 100%
}

    .pane.active {
        display: block
    }

.pane.page {
    min-height: 0;
    overflow: auto
}

.pane iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #fff
}

@media(max-width:700px) {
    .layout {
        height: calc(100vh - 58px)
    }
}

/* ---- page tab (iframe) ke andar: sirf content ---- */
body.embed {
    background: #fff
}

    body.embed .layout {
        height: auto;
        display: block
    }

    body.embed .main {
        display: block;
        height: auto;
        padding: 0
    }

    body.embed .page.embedpage {
        display: block;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 0;
        padding: 18px 20px 24px
    }

/* ---- searchable dropdown ---- */
.ssw {
    position: relative
}

.ss-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid #ccd7e4;
    border-radius: 7px;
    background: #fff;
    font: inherit;
    color: var(--text);
    text-align: left;
    cursor: pointer
}

    .ss-btn:focus, .ssw.open .ss-btn {
        outline: 0;
        border-color: var(--blue);
        box-shadow: 0 0 0 3px #2376e826
    }

    .ss-btn.placeholder .ss-label {
        color: #8a98ab
    }

    .ss-btn:disabled {
        background: #f1f4f8;
        cursor: not-allowed
    }

.ss-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.ss-caret {
    color: #8391a4;
    font-size: 11px
}

.ss-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 60;
    background: #fff;
    border: 1px solid #ccd7e4;
    border-radius: 9px;
    box-shadow: 0 12px 28px #142b4824;
    padding: 8px
}

.ssw.open .ss-panel {
    display: block
}

.field .ss-search {
    padding: 9px 10px;
    margin-bottom: 6px
}

.ss-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 230px;
    overflow-y: auto
}

    .ss-list li {
        padding: 8px 10px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 13px
    }

        .ss-list li:hover, .ss-list li.hot {
            background: #edf5ff;
            color: #1265cc
        }

        .ss-list li.sel {
            font-weight: 700;
            color: #1265cc
        }

        .ss-list li.ph {
            color: #8a98ab
        }

        .ss-list li.none {
            color: #8a98ab;
            cursor: default;
            text-align: center
        }

            .ss-list li.none:hover {
                background: transparent;
                color: #8a98ab
            }

/* ---- Party Master: block reason + row actions + popup ---- */
.blk {
    min-width: 150px;
    max-width: 230px
}

.blk-reason {
    margin-top: 5px;
    padding: 5px 8px;
    background: #fff5f5;
    border-left: 3px solid #e5484d;
    border-radius: 4px;
    color: #8f2a2a;
    font-size: 12px;
    line-height: 1.35;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.rowactions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap
}

    .rowactions .btn.sm {
        margin: 0
    }

.btn.sm.warn {
    color: #b45309;
    border-color: #f3c78a;
    background: #fff7ed
}

.btn.sm.ok {
    color: #166534;
    border-color: #9fd8b0;
    background: #f0fdf4
}

.pm-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #10274488;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px
}

.pm-box {
    background: #fff;
    border-radius: 12px;
    padding: 22px 24px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 18px 50px #10274444
}

    .pm-box h3 {
        margin: 0 0 4px;
        font-size: 18px
    }

    .pm-box .field {
        margin-top: 14px
    }

        .pm-box .field input {
            width: 100%
        }

    .pm-box .actions {
        justify-content: flex-end
    }

.btn.danger.solid {
    background: #d92d20;
    border-color: #d92d20;
    color: #fff
}

/* ---- report summary ---- */
.summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px
}

    .summary .chip {
        padding: 6px 12px;
        border-radius: 20px;
        background: #f4f7fb;
        border: 1px solid var(--line);
        font-size: 12px;
        color: #42536a
    }

        .summary .chip b {
            color: var(--text)
        }
