﻿:root {
    --background: #f7f9fb;
    --card-bg: #ffffff;
    --main: #5f7285;
    --light-main: #dbe3ea;
    --dark-main: #374554;
    --attention-highlight: #00b074;
    --shadow-card: 0 2px 12px rgba(55, 69, 84, 0.08);
    --border-color: color-mix(in srgb, var(--main) 15%, transparent);
    --focus-ring: color-mix(in srgb, var(--main) 18%, transparent);
    --input-bg: color-mix(in srgb, white 94%, var(--main) 6%);
    --input-border: color-mix(in srgb, var(--main) 22%, transparent);
    --divider: color-mix(in srgb, var(--main) 10%, transparent);
    --text-muted: #728191;
    scroll-behavior: smooth;
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--main);
}

a:link {
    color: var(--main);
    text-decoration: underline;
    font-size: 12px;
}

a:hover {
    color: var(--dark-main);
    text-decoration: underline;
    font-size: 12px;
}

::placeholder {
    color: var(--main);
    opacity: 0.38;
}


.eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 4px;
}

.txtlabel {
    color: var(--dark-main);
    font-size: 14px;
}

.txtlabelsmall {
    color: var(--main);
    font-size: 12px;
}

.txtattention {
    color: var(--attention-highlight);
    font-size: 14px;
    font-weight: bold;
}

.txtattentionsmall {
    color: var(--attention-highlight);
    font-size: 12px;
    font-weight: bold;
}

.txtinfo {
    color: var(--main);
    font-weight: bold;
    font-size: 14px;
}

.txtinfo12 {
    color: var(--main);
    font-weight: bold;
    font-size: 12px;
}

.txtinfosmall {
    color: var(--main);
    font-size: 10px;
    font-style: italic;
}

.fancyinfo {
    color: var(--light-main);
    font-weight: bold;
    font-size: 14px;
}

.fancyinfosmall {
    color: var(--light-main);
    font-weight: bold;
    font-size: 12px;
}

.pagetitle {
    text-align: center;
    font-size: 18px;
    color: var(--light-main);
    font-weight: bold;
}

.centertitle {
    text-align: center;
    font-size: 12px;
    color: var(--main);
    font-weight: bold;
}

.tabletitle {
    font-size: 14px;
    color: var(--main);
    font-weight: bold;
}

.tabletitle2 {
    font-size: 14px;
    color: #404040;
    font-weight: bold;
}

.fontmain {
    color: var(--attention-highlight);
    font-size: 170%;
    font-weight: bold;
}

.fontlight {
    color: var(--light-main);
}

.version {
    color: var(--attention-highlight);
    opacity: 0.65;
}

.under {
    text-decoration: underline;
    background-color: transparent;
    font-size: 100%;
    color: var(--main);
}

.upper {
    background-color: transparent;
    font-size: 100%;
    color: var(--main);
}

.balloon {
    text-align: left;
    font-size: 12px;
}


.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 20px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.topbar-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.65;
    mix-blend-mode: multiply;
    pointer-events: none;
    user-select: none;
    flex-shrink: 0;
}

.topbar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--attention-highlight);
    letter-spacing: 0.05em;
    margin: 0 0 2px;
}

.topbar-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: var(--main);
    opacity: 0.65;
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}


.user-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 11px;
}

.user-pill-label {
    color: var(--main);
    opacity: 0.65;
}

.user-pill-name {
    color: var(--attention-highlight);
    font-weight: 700;
}

.user-pill-role {
    color: var(--main);
    font-weight: 600;
    opacity: 0.85;
}

.user-pill-sep {
    color: var(--main);
    opacity: 0.3;
}


.page-header {
    padding: 28px 20px 20px;
    text-align: center;
}

.page-header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--attention-highlight);
    letter-spacing: -0.01em;
    margin: 0 0 4px;
}

.page-header-sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--main);
    opacity: 0.65;
    margin: 0;
}

.page-header-inline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--divider);
}

.page-header-inline-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-main);
    margin: 0;
    letter-spacing: -0.02em;
}

.page-header-inline-sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--main);
    margin: 4px 0 0;
    opacity: 0.75;
}

.page-body {
    padding: 28px;
}


.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 18px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.06em;
    color: #ffffff;
    background-color: var(--main);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 1px 0 var(--dark-main) inset, 0 4px 14px color-mix(in srgb, var(--main) 32%, transparent);
    transition: box-shadow 0.15s ease, transform 0.08s ease, filter 0.15s ease;
}

    .btn-primary:hover {
        filter: brightness(1.09);
        box-shadow: 0 1px 0 var(--dark-main) inset, 0 6px 18px color-mix(in srgb, var(--main) 42%, transparent);
    }

    .btn-primary:active {
        transform: translateY(1px) scale(0.99);
        box-shadow: 0 1px 0 var(--dark-main) inset, 0 2px 5px color-mix(in srgb, var(--main) 22%, transparent);
    }

    .btn-primary:disabled {
        background-color: #e0e0eb;
        color: #b3b3cc;
        box-shadow: none;
        cursor: not-allowed;
        filter: none;
    }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 18px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dark-main);
    background-color: var(--light-main);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.08s ease;
}

    .btn-secondary:hover {
        filter: brightness(0.94);
    }

    .btn-secondary:active {
        transform: translateY(1px) scale(0.99);
    }

    .btn-secondary:disabled {
        background-color: #e0e0eb;
        color: #b3b3cc;
        cursor: not-allowed;
        filter: none;
    }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 18px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--main);
    background-color: transparent;
    border: 1px solid var(--main);
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    .btn-outline:hover {
        background-color: var(--light-main);
        color: var(--dark-main);
    }

    .btn-outline:active {
        filter: brightness(0.92);
    }

    .btn-outline:disabled {
        color: #b3b3cc;
        border-color: #b3b3cc;
        cursor: not-allowed;
    }

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 18px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background-color: var(--attention-highlight);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.08s ease;
}

    .btn-danger:hover {
        filter: brightness(1.1);
    }

    .btn-danger:active {
        transform: translateY(1px) scale(0.99);
    }

    .btn-danger:disabled {
        background-color: #e0e0eb;
        color: #b3b3cc;
        cursor: not-allowed;
        filter: none;
    }

.btn-block {
    width: 100%;
    display: flex;
}

.button {
    background-color: var(--main);
    color: #ffffff;
    border-radius: 5px;
    border-width: 1px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 0;
    height: 36px;
}

    .button:hover {
        background-color: var(--light-main);
        color: var(--dark-main);
        border-color: var(--dark-main);
        border-width: 1px;
        border-radius: 5px;
        font-size: 12px;
        font-weight: bold;
        width: 100px;
        height: 36px;
    }

    .button:disabled {
        background-color: #e0e0eb;
        color: #b3b3cc;
        border-color: #b3b3cc;
        border-width: 1px;
        border-radius: 5px;
        font-size: 12px;
        font-weight: bold;
        width: 100px;
        height: 36px;
    }

.button2 {
    background-color: var(--light-main);
    color: var(--dark-main);
    border-color: var(--dark-main);
    border-width: 1px;
    border-radius: 5px;
    font-size: 12px;
    height: 36px;
    width: 140px;
    font-weight: bold;
}

    .button2:disabled {
        background-color: #e0e0eb;
        color: #b3b3cc;
        border-color: #b3b3cc;
    }

.otherbutton {
    background-color: var(--background);
    color: var(--main);
    border-color: var(--main);
    border-width: 1px;
    border-radius: 5px;
    font-size: 12px;
    height: 36px;
    width: 140px;
    font-weight: bold;
}

    .otherbutton:hover {
        background-color: var(--attention-highlight);
        color: var(--dark-main);
        border-color: var(--dark-main);
        border-width: 1px;
        border-radius: 5px;
        font-size: 12px;
        font-weight: bold;
    }

    .otherbutton:disabled {
        background-color: #e0e0eb;
        color: #b3b3cc;
        border-color: #b3b3cc;
    }

.otherbutton2 {
    background-color: var(--attention-highlight);
    color: white;
    border-color: var(--main);
    border-width: 1px;
    border-radius: 5px;
    font-size: 12px;
    height: 36px;
    width: 140px;
    font-weight: bold;
}

    .otherbutton2:hover {
        background-color: white;
        color: var(--attention-highlight);
        border-color: var(--dark-main);
        border-width: 1px;
        border-radius: 5px;
        font-size: 12px;
        font-weight: bold;
    }

.accbutton {
    background-color: transparent;
    color: #404040;
    border-color: transparent;
    border-radius: 2px;
    font-size: 14px;
    height: 26px;
}

    .accbutton:hover {
        background-color: var(--light-main);
        color: var(--dark-main);
        border-color: transparent;
        border-radius: 2px;
        font-size: 14px;
        font-weight: bold;
    }

    .accbutton:disabled {
        background-color: #e0e0eb;
        color: #b3b3cc;
        border-color: transparent;
        border-radius: 2px;
        font-size: 14px;
    }



.drop {
    color: var(--dark-main);
    font-size: 14px;
    padding: 0 5px;
    border-radius: 5px;
    border-color: var(--main);
    background-color: #ffffff;
    font-weight: bold;
    height: 32px;
}

.dropdisabled {
    color: var(--dark-main);
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 0;
    border-color: transparent;
    background-color: transparent;
    font-weight: normal;
}

.txtbox {
    color: var(--dark-main);
    font-size: 14px;
    padding: 0 5px;
    border: 1px solid var(--dark-main);
    border-radius: 5px;
    background-color: #ffffff;
    font-weight: normal;
    width: 120px;
    height: 32px;
}

.follbox {
    color: #404040;
    font-size: 12px;
    border: 1px solid #707070;
    border-radius: 1px;
    background-color: #ffffff;
    font-weight: normal;
    width: 50px;
}

#tUserID:focus,
#tUserPass:focus,
#DropDownList1:focus {
    background-color: var(--background);
}

input[type='checkbox'] {
    accent-color: var(--light-main);
}

.chk input {
    width: 17px;
    height: 17px;
    color: var(--main);
}

.chk2 input {
    width: 13px;
    height: 13px;
    color: var(--main);
}

.myradio {
    display: inline-flex;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 0 2px rgba(0,0,0,0.25);
    border: 1px solid var(--dark-main);
}

.rd input {
    display: none;
}

.rd label {
    padding: 5px 20px;
    font-size: 14px;
    font-weight: bold;
    color: var(--main);
    background: var(--background);
    cursor: pointer;
    transition: background 0.1s;
}

    .rd label:not(:last-of-type) {
        border-right: 1px solid var(--dark-main);
    }

.rd input:checked + label {
    background: var(--light-main);
}

.myradioe {
    display: inline-flex;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 0 2px rgba(0,0,0,0.25);
    border: 1px solid var(--dark-main);
}

.rde input {
    display: none;
}

.rde label {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    color: var(--main);
    background: var(--background);
    cursor: pointer;
    transition: background 0.1s;
}

    .rde label:not(:last-of-type) {
        border-right: 1px solid var(--dark-main);
    }

.rde input:checked + label {
    background: var(--light-main);
}

.myradioefix {
    display: inline-flex;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 0 2px rgba(0,0,0,0.25);
    border: 1px solid var(--dark-main);
}

.rdefix input, .rdefix input:disabled {
    display: none;
}

.rdefix label {
    width: 75px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    color: var(--main);
    background: var(--background);
    cursor: pointer;
    transition: background 0.1s;
}

    .rdefix label:disabled {
        width: 80px;
        color: transparent;
    }

        .rdefix label:not(:last-of-type), .rdefix label:disabled:not(:last-of-type) {
            border-right: 1px solid var(--dark-main);
        }

.rdefix input:checked + label {
    background: var(--light-main);
}

.myradio2 {
    display: block;
    border-radius: 5px;
    box-shadow: 0 0 2px rgba(0,0,0,0.25);
    border: 1px solid var(--dark-main);
    width: 350px;
}

.rd2 input {
    display: none;
}

.rd2 label {
    display: inline-block;
    height: 28px;
    width: 348px;
    padding: 5px 10px 0;
    font-size: 12px;
    font-weight: bold;
    color: var(--main);
    background: var(--background);
    cursor: pointer;
    transition: background 0.1s;
}

    .rd2 label:not(:last-of-type) {
        border-bottom: 1px solid var(--dark-main);
    }

.rd2 input:checked + label {
    background: var(--light-main);
}

.myradio3 {
    display: block;
    border-radius: 5px;
    box-shadow: 0 0 2px rgba(0,0,0,0.25);
    border: 1px solid var(--dark-main);
    width: 122px;
}

.rd3 input {
    display: none;
}

.rd3 label {
    display: inline-block;
    height: 28px;
    width: 120px;
    padding: 5px 10px 0;
    font-size: 12px;
    font-weight: bold;
    color: var(--main);
    background: var(--background);
    cursor: pointer;
    transition: background 0.1s;
}

    .rd3 label:not(:last-of-type) {
        border-bottom: 1px solid var(--dark-main);
    }

.rd3 input:checked + label {
    background: var(--light-main);
}

.myradio4 {
    display: block;
    border-radius: 5px;
    box-shadow: 0 0 2px rgba(0,0,0,0.25);
    border: 1px solid var(--dark-main);
    width: 200px;
}

.rd4 input {
    display: none;
}

.rd4 label {
    display: inline-block;
    height: 28px;
    width: 198px;
    padding: 5px 10px 0;
    font-size: 12px;
    font-weight: bold;
    color: var(--main);
    background: var(--background);
    cursor: pointer;
    transition: background 0.1s;
}

    .rd4 label:not(:last-of-type) {
        border-bottom: 1px solid var(--dark-main);
    }

.rd4 input:checked + label {
    background: var(--light-main);
}

.myradio5 {
    display: block;
    border-radius: 5px;
    box-shadow: 0 0 2px rgba(0,0,0,0.25);
    border: 1px solid var(--dark-main);
    width: 410px;
}

.rd5 input {
    display: none;
}

.rd5 label {
    display: inline-block;
    height: 28px;
    width: 408px;
    padding: 5px 10px 0;
    font-size: 12px;
    font-weight: bold;
    color: var(--main);
    background: var(--background);
    cursor: pointer;
    transition: background 0.1s;
}

    .rd5 label:not(:last-of-type) {
        border-bottom: 1px solid var(--dark-main);
    }

.rd5 input:checked + label {
    background: var(--light-main);
}

.switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 26px;
}

    .switch input {
        opacity: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 29px;
        width: 31px;
        left: -1px;
        bottom: -3px;
        background-color: var(--main);
        transition: .4s;
    }

input:checked + .slider {
    background-color: var(--light-main);
}

input:focus + .slider {
    box-shadow: 0 0 1px #ccc;
}

input:checked + .slider:before {
    transform: translateX(37px);
}

.slider.round {
    border-radius: 3px;
    border: 1px solid var(--dark-main);
    text-align: center;
    color: var(--dark-main);
    font-weight: bold;
    padding-top: 7px;
    font-size: 12px;
}

    .slider.round:before {
        border-radius: 3px;
        border: 1px solid var(--dark-main);
    }

.toggle {
    --width: 28px;
    --height: 20px;
    position: relative;
    display: inline-block;
    width: var(--width);
    height: var(--height);
    cursor: pointer;
    margin-left: 10px;
}

    .toggle input {
        display: none;
    }

    .toggle .labels {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        font-size: 16px;
        font-family: sans-serif;
        transition: all 0.4s ease-in-out;
        overflow: hidden;
    }

        .toggle .labels::after {
            content: attr(data-off);
            position: absolute;
            display: flex;
            justify-content: center;
            align-items: center;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            color: var(--main);
            opacity: 0.9;
            background-color: transparent;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
            transition: all 0.2s ease-in-out;
        }

        .toggle .labels::before {
            content: attr(data-on);
            position: absolute;
            display: flex;
            justify-content: center;
            align-items: center;
            top: 0;
            left: calc(var(--width) * -1);
            height: 100%;
            width: 100%;
            color: var(--main);
            opacity: 0.9;
            background-color: transparent;
            text-shadow: 1px 1px 2px rgba(255,255,255,0.1);
            transition: all 0.2s ease-in-out;
        }

    .toggle input:checked ~ .labels::after,
    .toggle input:checked ~ .labels::before {
        transform: translateX(var(--width));
    }


.card {
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--divider);
    background-color: var(--background);
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: var(--light-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-main);
    font-size: 13px;
    flex-shrink: 0;
}

.card-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 1px;
}

.card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-main);
    margin: 0;
}

.card-body {
    padding: 20px;
}

.box {
    width: 80%;
    height: 90%;
    margin: 1% auto;
    background-color: white;
    text-align: center;
    color: var(--main);
    border-radius: 1%;
    box-shadow: 10px 48px 80px -32px rgba(0,0,0,0.3);
}

.box1 {
    width: 90%;
    height: 90%;
    margin-top: 2%;
    border-radius: 5px;
    padding-top: 2%;
    box-shadow: 10px 48px 80px -32px rgba(0,0,0,0.3);
    background-color: white;
}


.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

    .status-badge::before {
        content: '';
        display: inline-block;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        flex-shrink: 0;
    }

.badge-initialized {
    background-color: color-mix(in srgb, #728191 16%, transparent);
    color: #4a5866;
}

    .badge-initialized::before {
        background-color: #728191;
    }

.badge-screened {
    background-color: color-mix(in srgb, #a0b0bf 18%, transparent);
    color: #5f7285;
}

    .badge-screened::before {
        background-color: #a0b0bf;
    }

.badge-enrolled {
    background-color: color-mix(in srgb, #2a9d5c 15%, transparent);
    color: #1d6e3f;
}

    .badge-enrolled::before {
        background-color: #2a9d5c;
    }

.badge-randomized {
    background-color: color-mix(in srgb, #5f7285 18%, transparent);
    color: var(--dark-main);
}

    .badge-randomized::before {
        background-color: var(--main);
    }

.badge-failed {
    background-color: color-mix(in srgb, #ff4d00 13%, transparent);
    color: #c23900;
}

    .badge-failed::before {
        background-color: #ff4d00;
    }

.outcome-banner {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.outcome-success {
    background-color: color-mix(in srgb, #2a9d5c 12%, transparent);
    color: #1d6e3f;
    border: 1px solid color-mix(in srgb, #2a9d5c 28%, transparent);
}

.outcome-error {
    background-color: color-mix(in srgb, #ff4d00 10%, transparent);
    color: #c23900;
    border: 1px solid color-mix(in srgb, #ff4d00 25%, transparent);
}

.outcome-info {
    background-color: color-mix(in srgb, var(--main) 10%, transparent);
    color: var(--dark-main);
    border: 1px solid var(--border-color);
}

/* Legacy badge */
.badge {
    background-color: #00cccc;
    color: white;
    padding: 4px 8px;
    text-align: center;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.grid-header th {
    background-color: var(--background) !important;
    color: var(--text-muted) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid var(--divider) !important;
    white-space: nowrap;
    text-align: center;
}

.grid-row td {
    background-color: var(--card-bg);
    color: var(--main);
    border-bottom: 1px solid var(--divider);
    padding: 11px 14px;
    font-size: 12px;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
}

.grid-alt-row td {
    background-color: var(--background);
    color: var(--main);
    border-bottom: 1px solid var(--divider);
    padding: 11px 14px;
    font-size: 12px;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
}

.grid-selected-row td {
    background-color: var(--light-main) !important;
    color: var(--dark-main) !important;
    font-weight: 600 !important;
    padding: 11px 14px;
    font-size: 12px;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid var(--divider);
}

.grid-footer {
    background-color: var(--card-bg);
    color: var(--main);
}

.grid-row td a,
.grid-alt-row td a,
.grid-selected-row td a {
    font-size: 11px;
    font-weight: 700;
    color: var(--main);
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 3px 10px;
    cursor: pointer;
    transition: background-color 0.12s ease;
}

    .grid-row td a:hover,
    .grid-alt-row td a:hover {
        background-color: var(--light-main);
        color: var(--dark-main);
    }

.cell-code {
    font-weight: 700;
    color: var(--dark-main);
}


.mrg {
    padding-left: 20px;
}

.backs {
    background-color: var(--background);
}

.cntr {
    padding: 10px 5px;
}

.item1 {
    float: left;
    padding: 15px;
}

.grid-container {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-gap: 20px;
}

.grid-container1 {
    display: grid;
    grid-template-columns: min-content min-content min-content;
    grid-gap: 20px;
}

.headerrow {
    width: 665px;
    height: 28px;
    text-align: center;
    font-size: 14px;
    color: var(--main);
    border: 1px solid var(--main);
}

.bord {
    border-style: solid;
    border-width: 1px;
    border-color: var(--main);
    border-collapse: collapse;
}

.stt {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid var(--light-main);
    background: #f2f2f2 url("toparrow.png") center no-repeat;
    box-shadow: 0 0.25rem 0.5rem 0 gray;
    opacity: 0.7;
}



#accordionPlusMinus .accordion-button {
    flex-direction: row-reverse;
    justify-content: start;
    margin-left: 0;
    margin-right: 15px;
}

    #accordionPlusMinus .accordion-button:not(.collapsed) {
        color: #000;
        background-color: #fff;
    }

        #accordionPlusMinus .accordion-button:not(.collapsed)::after {
            margin-left: 0;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 2'%3E%3Cpath fill='none' stroke='%23eb3039' stroke-linecap='round' stroke-width='2' d='M8 1H1m7 0h7'/%3E%3C/svg%3E");
            transform-origin: 50% 25%;
        }

    #accordionPlusMinus .accordion-button::after {
        width: 1.25rem;
        height: 1.25rem;
        content: "";
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 1v7m0 7V8m0 0H1m7 0h7' stroke='%2308521d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
        justify-content: start;
        margin-left: 0;
        margin-right: 15px;
    }

.progressbar-wrapper, .progressbar2-wrapper {
    background: transparent;
    width: 75%;
    padding-top: 5px;
    padding-bottom: 5px;
}

.progressbar li, .progressbar2 li {
    list-style-type: none;
    width: 7%;
    float: left;
    font-size: 12px;
    position: relative;
    text-align: center;
    color: var(--main);
}

    .progressbar li:before, .progressbar2 li:before {
        width: 30px;
        height: 30px;
        line-height: 25px;
        border: 2px solid #e0e5e5;
        display: block;
        text-align: center;
        margin: 0 auto 3px;
        border-radius: 50%;
        position: relative;
        z-index: 2;
        background: #fff url(user.svg) no-repeat center center;
        background-size: 60%;
    }

    .progressbar li:after, .progressbar2 li:after {
        width: 100%;
        height: 2px;
        content: '';
        position: absolute;
        background-color: #e0e5e5;
        top: 15px;
        left: -50%;
        z-index: 0;
    }

    .progressbar li:first-child:after, .progressbar2 li:first-child:after {
        content: none;
    }

    .progressbar li.active, .progressbar2 li.active {
        color: var(--main);
        font-weight: bold;
    }

        .progressbar li.active:before, .progressbar2 li.active:before {
            border-color: var(--main);
            background: #b2efef url(user.svg) no-repeat center center;
            background-size: 60%;
        }

        .progressbar li.active + li:after, .progressbar2 li.active + li:after {
            background-color: #b2efef;
        }

.progressbar {
    counter-reset: step;
}

.progressbar2 {
    counter-reset: step -1;
}

    .progressbar li:before, .progressbar2 li:before {
        content: counter(step);
        counter-increment: step;
    }

.treeNode {
    color: #ffffff;
    font: 16px Arial, sans-serif;
}

.rootNode {
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    border-bottom: 1px solid white;
    background-color: var(--light-main);
    padding: 10px;
}

.leafNode {
    padding: 10px;
    font-weight: bold;
    color: #404040;
}

.bulletlinks {
    color: #404040;
    padding-left: 25px;
    line-height: 30px;
}


@media screen and (max-width: 300px) {
    #container {
        width: 280px;
        height: auto;
        background-size: 100%;
    }

    #passes {
        float: none;
        width: auto;
        margin: 0;
    }

    #content {
        float: none;
        width: auto;
        margin: 0;
    }
}

.center-card {
    display: inline-block;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 22px 26px 20px;
    min-width: 420px;
}

.center-card-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--main);
    opacity: 0.55;
    margin-bottom: 10px;
}

.center-select-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .center-select-wrap .drop {
        flex: 1;
        min-width: 420px;
        border: 1px solid var(--input-border);
        background-color: var(--input-bg);
    }

        .center-select-wrap .drop:focus {
            outline: none;
            border-color: var(--main);
            box-shadow: 0 0 0 3px var(--focus-ring);
        }

.center-hint {
    display: block;
    margin-top: 8px;
    font-size: 10.5px;
    color: var(--main);
    opacity: 0.5;
}

.recruitment-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 12px 24px 12px;
    margin-top: 65px;
}

.recruitment-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.recruitment-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-main);
    margin: 0 0 3px;
}

.recruitment-sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.8;
    margin: 0;
}

.recruitment-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 0;
}

.recruitment-metric {
    background-color: var(--background);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.recruitment-metric-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-main);
}

.recruitment-metric-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.recruitment-chart-section {
    margin-top: 16px;
    border-top: 1px solid var(--divider);
    padding-top: 14px;
}

.recruitment-legend {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.recruitment-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text-muted);
}

.recruitment-legend-line {
    display: inline-block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    flex-shrink: 0;
}

.recruitment-legend-screened {
    background-color: #bb2525;
}

.recruitment-legend-enrolled {
    background: repeating-linear-gradient( to right, #141e46 0px, #141e46 6px, transparent 6px, transparent 9px );
    height: 2px;
}


.recruitment-chart-wrap {
    position: relative;
    width: 100%;
    height: 200px;
}

@media (max-width: 640px) {
    .center-card {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .center-select-wrap .drop {
        min-width: 0;
        width: 100%;
    }

    .recruitment-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .recruitment-chart-section {
        display: none;
    }
}


.dose-list {
    display: flex;
    flex-direction: column;
}

.dose-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--divider);
    transition: background-color 0.12s ease;
}

    .dose-item:last-child {
        border-bottom: none;
    }

    .dose-item:hover {
        background-color: color-mix(in srgb, var(--light-main) 25%, transparent);
    }

.dose-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background-color: var(--light-main);
    color: var(--dark-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

    .dose-item-icon.dose-icon-done {
        background-color: color-mix(in srgb, #2a9d5c 18%, transparent);
        color: #1d6e3f;
    }

    .dose-item-icon.dose-icon-blocked {
        background-color: color-mix(in srgb, #ff4d00 14%, transparent);
        color: #c23900;
    }

.dose-item-main {
    flex: 1;
    min-width: 0;
}

.dose-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-main);
    margin: 0 0 2px;
}

.dose-item-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

.dose-item-status {
    flex-shrink: 0;
}

.dose-item-action {
    flex-shrink: 0;
}

.dose-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--main);
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

    .dose-edit-btn:hover:not(:disabled) {
        background-color: var(--main);
        color: #ffffff;
        border-color: var(--main);
    }

    .dose-edit-btn:disabled {
        color: color-mix(in srgb, var(--main) 30%, white);
        border-color: var(--border-color);
        cursor: not-allowed;
    }

.page-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-actions-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--main);
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.12s ease, color 0.12s ease;
}

    .icon-btn:hover {
        background-color: var(--light-main);
        color: var(--dark-main);
    }


.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--divider);
    flex-wrap: wrap;
}

    .field-row:last-child {
        border-bottom: none;
    }

.field-row-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 240px;
}

.field-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--main);
    flex-shrink: 0;
    min-width: 190px;
}

.field-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 3px;
    background-color: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.field-ctrl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--main);
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
}

    .field-ctrl-btn:hover {
        background-color: var(--light-main);
        color: var(--dark-main);
    }

.field-ctrl-btn-query {
    position: relative;
}

    .field-ctrl-btn-query.has-query::after {
        content: '';
        position: absolute;
        top: 3px;
        right: 3px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: #ff4d00;
        border: 1.5px solid var(--card-bg);
    }

.field-sdv-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    cursor: pointer;
    border-radius: 6px;
}

    .field-sdv-toggle input {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        cursor: pointer;
    }

.field-sdv-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background-color: transparent;
    color: var(--text-muted);
    transition: background-color 0.15s ease, color 0.15s ease;
    pointer-events: none;
}

    .field-sdv-slider::before {
        font-family: "FontAwesome";
        content: "\f040";
        font-size: 11px;
    }

.field-sdv-toggle input:checked ~ .field-sdv-slider {
    background-color: color-mix(in srgb, #2a9d5c 16%, transparent);
    color: #1d6e3f;
}

    .field-sdv-toggle input:checked ~ .field-sdv-slider::before {
        content: "\f023";
    }

.field-sdv-toggle input:disabled ~ .field-sdv-slider {
    opacity: 0.35;
    cursor: not-allowed;
}

.field-modal-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-main);
}

.field-modal-body {
    font-size: 12px;
    color: var(--main);
    line-height: 1.7;
}

.summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--divider);
}

    .summary-row:last-child {
        border-bottom: none;
    }

.summary-row-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--main);
}

.summary-row-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-main);
}

    .summary-row-value.summary-emphasis {
        color: var(--attention-highlight);
        font-size: 15px;
    }

.checklist-card {
    padding: 18px 20px;
}

.checklist-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark-main);
    margin: 0 0 12px;
    letter-spacing: 0.02em;
}

.checklist-steps {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .checklist-steps li {
        font-size: 12px;
        color: var(--main);
        line-height: 1.6;
    }

.protocol-pending-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background-color: color-mix(in srgb, #e8ac18 14%, transparent);
    border: 1px solid color-mix(in srgb, #e8ac18 35%, transparent);
    color: #8a6300;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 20px;
}

    .protocol-pending-banner i {
        font-size: 14px;
        flex-shrink: 0;
    }
