:root {
    --navy: #1b2a6b;
    --navy-2: #142055;
    --red: #c21f2d;
    --bg: #0f1433;
    --card: #0b1029;
    --text: #e9ecff;
    --muted: #b8c0ff;
    --stroke: rgba(255,255,255,.12);
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --radius: 18px;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    /* important */
    overflow-x: hidden;
    position: relative;
    /* remove background from body itself */
    background: transparent;
}

    /* fixed background layer (won’t clip on scroll) */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: radial-gradient(1200px 600px at 20% 0%, rgba(27,42,107,.55), transparent 55%), radial-gradient(900px 500px at 90% 10%, rgba(194,31,45,.30), transparent 50%), linear-gradient(180deg, var(--bg), #070a18);
    }

a {
    color: var(--muted);
}

    a:hover {
        color: #fff;
    }

.topbar {
    background: rgba(10,14,35,.65);
    border-bottom: 1px solid var(--stroke);
    backdrop-filter: blur(10px);
}

.brandmark {
    font-weight: 800;
    letter-spacing: .3px;
}

    .brandmark .red {
        color: var(--red);
    }

    .brandmark .navy {
        color: #dbe2ff;
    }

.shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px;
}

.cardx {
    background: rgba(11,16,41,.78);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cardx-hd {
    padding: 18px 18px 12px;
    border-bottom: 1px solid var(--stroke);
}

.cardx-bd {
    padding: 18px;
}

.btnx {
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.06);
    color: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 600;
}

    .btnx:hover {
        background: rgba(255,255,255,.10);
    }

.btnx-primary {
    background: linear-gradient(135deg, var(--red), #ff4a5a);
    border-color: rgba(255,255,255,.15);
}

    .btnx-primary:hover {
        filter: brightness(1.03);
    }

.inputx, select.inputx {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.04);
    color: var(--text);
    outline: none;
}
    .inputx, select.inputx option {
        color:black;
    }
    .inputx:focus {
        border-color: rgba(255,255,255,.22);
        box-shadow: 0 0 0 4px rgba(194,31,45,.18);
    }

.tablex {
    width: 100%;
    border-collapse: collapse;
}

    .tablex th, .tablex td {
        padding: 12px 10px;
        border-bottom: 1px solid var(--stroke);
    }

    .tablex th {
        text-align: left;
        color: var(--muted);
        font-weight: 700;
    }

.pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.04);
    font-size: 12px;
}

.tabs {
    display: flex;
    gap: 10px;
}

.tablink {
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.04);
}

    .tablink.active {
        background: rgba(194,31,45,.18);
        border-color: rgba(255,255,255,.18);
        color: #fff;
    }

.small {
    font-size: 12px;
    color: var(--muted);
}
:root {
    --navy: #1b2a6b;
    --navy-2: #142055;
    --red: #c21f2d;
    --bg: #0f1433;
    --card: #0b1029;
    --text: #e9ecff;
    --muted: #b8c0ff;
    --stroke: rgba(255,255,255,.12);
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --radius: 18px;
}

a {
    color: var(--muted);
}

    a:hover {
        color: #fff;
    }

.topbar {
    background: rgba(10,14,35,.65);
    border-bottom: 1px solid var(--stroke);
    backdrop-filter: blur(10px);
}

.brandmark {
    font-weight: 800;
    letter-spacing: .3px;
}

    .brandmark .red {
        color: var(--red);
    }

    .brandmark .navy {
        color: #dbe2ff;
    }

.shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px;
}

.cardx {
    background: rgba(11,16,41,.78);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cardx-hd {
    padding: 18px 18px 12px;
    border-bottom: 1px solid var(--stroke);
}

.cardx-bd {
    padding: 18px;
}

.btnx {
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.06);
    color: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 600;
}

    .btnx:hover {
        background: rgba(255,255,255,.10);
    }

.btnx-primary {
    background: linear-gradient(135deg, var(--red), #ff4a5a);
    border-color: rgba(255,255,255,.15);
}

    .btnx-primary:hover {
        filter: brightness(1.03);
    }

.inputx, select.inputx {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.04);
    color: var(--text);
    outline: none;
}

    .inputx:focus {
        border-color: rgba(255,255,255,.22);
        box-shadow: 0 0 0 4px rgba(194,31,45,.18);
    }

.tablex {
    width: 100%;
    border-collapse: collapse;
}

    .tablex th, .tablex td {
        padding: 12px 10px;
        border-bottom: 1px solid var(--stroke);
    }

    .tablex th {
        text-align: left;
        color: var(--muted);
        font-weight: 700;
    }

.pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.04);
    font-size: 12px;
}

.tabs {
    display: flex;
    gap: 10px;
}

.tablink {
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.04);
}

    .tablink.active {
        background: rgba(194,31,45,.18);
        border-color: rgba(255,255,255,.18);
        color: #fff;
    }

.small {
    font-size: 12px;
    color: var(--muted);
}
:root {
    --navy: #1b2a6b;
    --red: #c21f2d;
    --bg: #0f1433;
    --text: #e9ecff;
    --muted: #b8c0ff;
    --stroke: rgba(255,255,255,.12);
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --radius: 18px;
}

.shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px
}

.main {
    padding-top: 18px
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(10,14,35,.65);
    border-bottom: 1px solid var(--stroke);
    backdrop-filter: blur(10px);
}

.topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.brand {
    font-weight: 800;
    letter-spacing: .3px;
    font-size: 18px
}

.brand-red {
    color: var(--red)
}

.brand-light {
    color: #dbe2ff
}

.tabs {
    display: flex;
    gap: 10px
}

.tablink {
    text-decoration: none;
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.04);
}

    .tablink.active {
        color: #fff;
        background: rgba(194,31,45,.18);
        border-color: rgba(255,255,255,.18)
    }

.cardx {
    background: rgba(11,16,41,.78);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cardx-hd {
    padding: 18px;
    border-bottom: 1px solid var(--stroke)
}

.cardx-bd {
    padding: 18px
}

.h1 {
    margin: 0;
    font-size: 28px
}

.sub {
    margin-top: 6px;
    color: var(--muted)
}

.muted {
    color: var(--muted);
    font-size: 13px
}

.formgrid {
    display: grid;
    gap: 12px
}

.field {
    display: grid;
    gap: 6px
}

.label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700
}

.hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted)
}

.inputx, select.inputx {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.04);
    color: var(--text);
    outline: none;
}

    .inputx:focus {
        border-color: rgba(255,255,255,.22);
        box-shadow: 0 0 0 4px rgba(194,31,45,.18)
    }

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap
}

.btnx {
    display: inline-block;
    text-decoration: none;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.06);
    color: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 700;
}

    .btnx:hover {
        background: rgba(255,255,255,.10)
    }

.btnx-primary {
    background: linear-gradient(135deg, var(--red), #ff4a5a);
    border-color: rgba(255,255,255,.15)
}

.pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.04);
    font-size: 12px;
    margin-bottom: 12px;
}

.pill-ok {
    background: rgba(0,255,140,.10)
}

.pill-warn {
    background: rgba(255,180,0,.10)
}

.hd-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap
}

.filter {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 320px
}

.tablewrap {
    overflow: auto
}

.tablex {
    width: 100%;
    border-collapse: collapse
}

    .tablex th, .tablex td {
        padding: 12px 10px;
        border-bottom: 1px solid var(--stroke)
    }

    .tablex th {
        text-align: left;
        color: var(--muted);
        font-weight: 800;
        font-size: 12px
    }

.col-check {
    width: 44px
}

.col-action {
    width: 140px
}

@@media (max-width: 640px) {
    .filter {
        min-width: unset;
        width: 100%
    }
}
.tabs2 {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tab2 {
    text-decoration: none;
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.04);
}

    .tab2.active {
        color: #fff;
        background: rgba(194,31,45,.18);
        border-color: rgba(255,255,255,.18);
    }

.filecell {
    word-break: break-all;
}
.progwrap {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.progbar {
    height: 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.05);
    overflow: hidden;
}

.progfill {
    height: 100%;
    background: linear-gradient(135deg, var(--red), #ff4a5a);
    width: 0%;
    transition: width .12s linear;
}
.btnx-sm {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 12px;
}

.col-thumb {
    width: 120px;
}

.thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.04);
    cursor: pointer;
}

.imgov {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(6px);
    padding: 18px;
}

.imgov-img {
    max-width: 96vw;
    max-height: 92vh;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.imgov-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}
/* Larger checkboxes */
.row-check {
    width: 20px;
    height: 20px;
}

@media (max-width: 640px) {
    .row-check {
        width: 28px;
        height: 28px;
        transform: translateY(2px);
    }
}

/* More options overlay (centered, especially for mobile) */
.mopt-ov {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(6px);
}

.mopt-card {
    width: min(520px, 92vw);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(11,16,41,.92);
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    overflow: hidden;
}

.mopt-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.mopt-title {
    font-weight: 900;
}

.mopt-x {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.mopt-list {
    padding: 10px;
    display: grid;
    gap: 8px;
}

.mopt-item {
    text-align: left;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

    .mopt-item:hover {
        background: rgba(255,255,255,.09);
    }

.mopt-danger {
    background: rgba(194,31,45,.18);
    border-color: rgba(194,31,45,.35);
}

.mopt-sep {
    height: 1px;
    background: rgba(255,255,255,.10);
    margin: 6px 0;
}
