.flowweb-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 12px;
    line-height: 1.2;
    background: #fff;
}

.flowweb-table th {
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #ccc;
    white-space: nowrap;
}

.flowweb-table td {
    font-size: 12px;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.flowweb-table tbody tr:hover {
    background: #fafafa;
}

.flowweb-button {
    font-size: 12px !important;
    padding: 4px 8px !important;
    min-height: 26px !important;
    line-height: 1.2 !important;
    border: 1px solid #2956A4 !important;
    background: #2956A4 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block;
}

.flowweb-input,
.flowweb-select,
.flowweb-textarea {
    font-size: 12px;
    padding: 4px 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.flowweb-modal-overlay {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
}

.flowweb-modal-box {
    background: #fff;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    margin: 5vh auto;
    padding: 25px;
    border-radius: 8px;
    position: relative;
    font-size: 12px;
}

.flowweb-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

.flowweb-muted {
    color: #666;
    font-size: 12px;
}

.flowweb-page {
    max-width: 1400px;
}

.flowweb-section {
    margin-bottom: 24px;
}

.flowweb-table {
    margin-top: 10px;
}

.flowweb-button:hover {
    background: #1B3F73 !important;
    border-color: #1B3F73 !important;
}

.flowweb-table th {
    background: #f7f7f7;
}

.flowweb-table tbody tr:hover {
    background: #f5f5f5;
}



.flowweb-table th {
    background: #f7f7f7;
}

.flowweb-table tbody tr:hover {
    background: #f5f5f5;
}

.flowweb-button:hover {
    background: #1B3F73 !important;
    border-color: #1B3F73 !important;
}

.flowweb-table {
    margin-top: 10px;
}

.flowweb-toolbar {
    margin: 10px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.flowweb-table-wrap {
    overflow-x: auto;
    width: 100%;
}

.flowweb-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 12px;
    font-size: 12px;
}


.flowweb-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 12px;
    font-size: 12px;
    margin-top: 12px;
}


.flowweb-success {
    color: green;
}

.flowweb-error {
    color: #b00020;
}

.flowweb-warning {
    color: #9a6700;
}

.flowweb-search {
    width: 360px;
    max-width: 100%;
}

.flowweb-badge {
    display: inline-block;
    padding: 2px 6px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    font-size: 11px;
    line-height: 1.2;
}

.flowweb-account-tabs {
    margin: 0 0 6px 0;
    padding: 0;
    font-size: 24px;
    line-height: 1.2;
}

.entry-content > .flowweb-account-tabs:first-child {
    margin-top: 0 !important;
}

.entry-content > p:empty {
    display: none !important;
}

.entry-content > br {
    display: none !important;
}


.entry-content > p:empty + .flowweb-account-tabs {
    margin-top: 0 !important;
}

.flowweb-account-tabs {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    padding-top: 0 !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
}


/* Account tabs (Home | Antibodies | ... | Antibody Requests): fw-purple-02 */
.flowweb-account-tabs a,
.flowweb-account-tabs a:link,
.flowweb-account-tabs a:visited,
.flowweb-account-tabs a:active,
.flowweb-account-tabs a:focus {
    color: #2956A4 !important;
    -webkit-text-fill-color: #2956A4 !important;
}

.flowweb-account-tabs a:hover {
    color: #1B3F73 !important;
    -webkit-text-fill-color: #1B3F73 !important;
}

/* Account dashboard */

.flowweb-account-dashboard {
    max-width: 760px;
    margin: 6px 0 0 0;
    padding: 0;
    font-size: 14px;
}

.flowweb-account-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.flowweb-account-row label {
    width: 220px;
    min-width: 220px;
    font-size: 14px;
    font-weight: 600;
}

.flowweb-account-row input,
.flowweb-account-row select {
    width: 340px;
    max-width: 340px;
    height: 34px;
    padding: 6px 8px;
    font-size: 14px;
    line-height: 1.3;
    border: 1px solid #d5d5d5;
    border-radius: 2px;
    box-shadow: none;

    box-sizing: border-box;
}

.flowweb-account-verified {
    font-size: 13px;
    margin-left: 8px;
    color: #777;
}

.flowweb-account-actions {
    margin-left: 230px;
    margin-top: 12px;
}

.flowweb-account-dashboard button,
.flowweb-account-dashboard input[type="submit"] {
    font-size: 13px;
    padding: 7px 14px;
    min-height: 34px;
}

/* Thin grey borders for FlowWeb form fields and search bars */

.flowweb-account-dashboard input,
.flowweb-account-dashboard select,
.flowweb-input,
.flowweb-select,
.flowweb-textarea,
.flowweb-toolbar input,
.flowweb-toolbar select,
.flowweb-antibody-search input,
.flowweb-antibody-search select,
#flowweb-admin-antibody-search,
#flowweb-antibody-filter-text,
#flowweb-antibody-filter-column {
    border: 1px solid #cfcfcf !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 2px !important;
}

.flowweb-dt-controls {
    margin: 12px 0 8px 0;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
}

.flowweb-dt-controls input,
.flowweb-dt-controls select,
.flowweb-dt-bottom select {
    min-height: 28px;
    padding: 3px 6px;
    font-size: 12px;
}

.flowweb-dt-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
    font-size: 12px;
}

.dt-paging-button {
    margin: 0 2px;
    font-size: 12px;
}

/* Buttons in the account / login / register forms (Verify, Save changes,
   Create account, Log In, Resend): fw-purple-02, darker on hover */
.flowweb-account-dashboard button,
.flowweb-account-dashboard input[type="submit"],
.flowweb-auth-form button,
.flowweb-auth-form input[type="submit"],
#flowweb_loginform input[type="submit"] {
    background: #2956A4 !important;
    border: 1px solid #2956A4 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.flowweb-account-dashboard button:hover,
.flowweb-account-dashboard input[type="submit"]:hover,
.flowweb-auth-form button:hover,
.flowweb-auth-form input[type="submit"]:hover,
#flowweb_loginform input[type="submit"]:hover {
    background: #1B3F73 !important;
    border-color: #1B3F73 !important;
}

/* "Keep me informed about FlowWeb updates" opt-in (sign-up form + Account
   page): small fw-purple-02 box, white tick when on. The account form's
   generic input size (340 x 34 px) must not apply to it. */
input[type="checkbox"][name="receive_updates"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    flex: 0 0 16px;
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    height: 16px !important;
    padding: 0 !important;
    margin: 0 8px 0 0 !important;
    border: 1.5px solid #2956A4 !important;
    border-radius: 3px !important;
    background: #ffffff no-repeat center / 12px 12px !important;
    box-shadow: none !important;
    vertical-align: -3px;
    cursor: pointer;
}

input[type="checkbox"][name="receive_updates"]:checked {
    background-color: #2956A4 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

input[type="checkbox"][name="receive_updates"]:focus-visible {
    outline: 2px solid #85A6D6 !important;
    outline-offset: 2px;
}

/* Account page: the opt-in text is not a field label -- normal weight, lined
   up under the input fields (220 px label + 10 px gap) */
.flowweb-account-row label:has(> input[name="receive_updates"]) {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-width: 0;
    margin-left: 230px;
    font-weight: normal;
    cursor: pointer;
}

/* ==========================================================================
   Antibody request form ([flowweb_antibody_request], FlowWeb FTS): same look
   as the Account page -- label left (220 px), field right (340 px), thin grey
   borders, fw-purple-02 section headings, checkboxes and button.
   ========================================================================== */
.flowweb-fts-request {
    max-width: 760px;
    margin: 6px 0 0 0;
    font-size: 14px;
}
.flowweb-fts-request h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2956A4;
    margin: 0 0 8px 0;
}
.flowweb-fts-request p {
    font-size: 14px;
    line-height: 1.5;
}
.flowweb-fts-request h3 {
    font-size: 14px;
    font-weight: 700;
    color: #2956A4;
    margin: 2.6em 0 6px 0;      /* an empty row above each section */
}
.flowweb-fts-request .flowweb-muted {
    font-size: 13px;
    margin: 0 0 10px 0;
}
.flowweb-fts-form p {
    margin: 0 0 8px 0;
}

/* field rows: the label's own text left, its field right (the <br> between
   them is not needed in this layout) */
.flowweb-fts-form p > label:not([style]):not(.flowweb-fts-toggle) {
    display: grid;
    grid-template-columns: 220px 340px;
    column-gap: 10px;
    align-items: start;
    font-size: 14px;
    font-weight: normal;
}
/* '**': field names bold and black; a short hint in grey under the name */
.flowweb-fts-form .flowweb-fts-name {
    display: block;
    font-weight: 700;
    color: #000;
    padding-top: 7px;           /* level with the text in the 34 px field */
    line-height: 1.35;
}
.flowweb-fts-form .flowweb-fts-hint {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    font-weight: normal;
    color: #666;
}
/* a longer explanation under a field (institutional email) */
.flowweb-fts-form .flowweb-fts-help {
    margin: -2px 0 10px 230px;
    max-width: 530px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #666;
}
.flowweb-fts-form p > label br,
.flowweb-fts-form p > br {
    display: none;
}
.flowweb-fts-form input[type="text"],
.flowweb-fts-form input[type="email"],
.flowweb-fts-form input[type="password"],
.flowweb-fts-form select,
.flowweb-fts-form textarea {
    width: 100%;
    max-width: 340px;
    height: 34px;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.3;
    border: 1px solid #d5d5d5 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    box-sizing: border-box;
}
.flowweb-fts-form textarea {
    height: 74px;
    min-height: 74px;
}

/* "I would like to receive": label left, the options next to each other */
.flowweb-fts-form p:has(> .flowweb-fts-label) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 10px;
    row-gap: 4px;
}
.flowweb-fts-form .flowweb-fts-label {
    flex: 0 0 220px;
    padding-top: 0;
}
/* the offer options and the consent: same (small) size as the rest */
.flowweb-fts-form input[type="radio"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    flex: 0 0 14px;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1.5px solid #2956A4 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: none !important;
    cursor: pointer;
}
.flowweb-fts-form input[type="radio"]:checked {
    background: radial-gradient(circle, #2956A4 0 3.5px, #ffffff 4px) !important;
}
.flowweb-fts-form p:has(> .flowweb-fts-label) > label[style] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.flowweb-fts-form p > label[style] {
    font-size: 14px;
}

/* checkbox rows (account, updates, consent) and the button: under the fields */
.flowweb-fts-form p > label[style],
.flowweb-fts-form p > label.flowweb-fts-toggle {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    margin-left: 230px;
    font-weight: normal;
    line-height: 1.4;
}
.flowweb-fts-form p:has(> .flowweb-fts-label) > label[style] {
    margin-left: 0;          /* the offer options sit next to their label */
    align-items: center;
}
.flowweb-fts-form p:has(> button) {
    margin-left: 230px;
    margin-top: 14px;
}
.flowweb-fts-form button.flowweb-button {
    font-size: 13px !important;
    padding: 7px 14px !important;
    min-height: 34px !important;
    border-radius: 4px !important;
}

/* checkboxes: small fw-purple-02 box, white tick when on */
.flowweb-fts-form input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    flex: 0 0 16px;
    width: 16px !important;
    height: 16px !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    border: 1.5px solid #2956A4 !important;
    border-radius: 3px !important;
    background: #ffffff no-repeat center / 12px 12px !important;
    cursor: pointer;
}
.flowweb-fts-form input[type="checkbox"]:checked {
    background-color: #2956A4 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

/* messages (sent / confirmed / errors) */
.flowweb-fts-request .flowweb-notice {
    padding: 10px 12px;
    margin: 0 0 12px 0;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: #f5f5f5;
    font-size: 14px;
}
.flowweb-fts-request .flowweb-notice-ok {
    background: #eaf6ee;
    border-color: #279E5A;
    color: #1d6b3f;
}
.flowweb-fts-request .flowweb-notice-error {
    background: #fdecec;
    border-color: #b00020;
    color: #8a1020;
}
.flowweb-fts-request .flowweb-notice ul {
    margin: 4px 0 0 18px;
}

/* small screens: label above its field again */
@media (max-width: 640px) {
    .flowweb-fts-form p > label:not([style]):not(.flowweb-fts-toggle) {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }
    .flowweb-fts-form .flowweb-fts-label {
        flex-basis: 100%;
    }
    .flowweb-fts-form p > label[style],
    .flowweb-fts-form p > label.flowweb-fts-toggle,
    .flowweb-fts-form p:has(> button),
    .flowweb-fts-form .flowweb-fts-help {
        margin-left: 0;
    }
    .flowweb-fts-form .flowweb-fts-name {
        padding-top: 0;
    }
}
