/* collections – NMO design language */

:root {
    --clct-teal:       #007B8F;
    --clct-teal-light: #74C2BE;
    --clct-teal-pale:  #e9f1f2;
    --clct-teal-border:#99ccc8;
    --clct-bg:         #EBF1F2;
    --clct-text:       #404040;
    --clct-text-muted: #787878;
    --clct-white:      #ffffff;
    --clct-btn-hover:  #005f70;
    --clct-row-alt:    #e9f1f2;
    --clct-row-hover:  #d4eaeb;
}

/* ─── Login page ─────────────────────────────────────────────────────────── */

.clct_login {
    display: flex;
    gap: 0;
    width: 100%;
    /* border-top: 2px solid var(--clct-teal-border); */
    /* border-bottom: 2px solid var(--clct-teal-border); */
    margin: 40px 0;
    padding: 20px 0;
    justify-content: center;
}

.clct_login_1 {
    width: 400px;
    flex-shrink: 0;
    padding: 40px;
    border-inline-end: 1px solid var(--clct-teal-border);
}

.clct_login_2 {
    padding: 40px;
    /* flex: 1; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 400px;
}

.clct_login_1 h2,
.clct_login_2 h2 {
    color: var(--clct-text);
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 20px;
}

/* ─── Forms ──────────────────────────────────────────────────────────────── */

.clct_form input[type="text"],
.clct_form input[type="email"],
.clct_form select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background-color: var(--clct-white);
    border: 1px solid var(--clct-teal-border);
    border-radius: 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--clct-text);
    margin-bottom: 12px;
    position: relative;
    z-index: 5;
    transition: border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    text-align: start;
}

.clct_form input[type="text"]:focus,
.clct_form input[type="email"]:focus,
.clct_form select:focus {
    outline: none;
    border-color: var(--clct-teal);
}

.clct_form input::placeholder,
.clct_form textarea::placeholder {
    color: var(--clct-text-muted);
    font-weight: 300;
}

.clct_form select {
    padding: 0 14px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23404040' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

/* Register form – 3-column row */
.clct_firld3_outer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 0;
}

.clct_firld1 {
    width: 100%;
    margin-bottom: 0;
}

.clct_register_form {
    max-width: 600px;
}

/* Checkbox */
.clct_form .nl_checkbox_label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}

.clct_form .nl_checkbox_label span {
    color: var(--clct-text);
    font-size: 16px;
    line-height: 1.4;
}

.clct_form .nl_checkbox_label input[type="checkbox"] {
    display: none;
}

.clct_form .nl_checkbox {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 1px solid var(--clct-teal-border);
    background: var(--clct-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.clct_form .nl_checkbox svg {
    font-size: 12px;
    color: var(--clct-white);
    display: none;
}

.clct_form input[type="checkbox"]:checked ~ .nl_checkbox svg {
    display: block;
}

.clct_form input[type="checkbox"]:checked ~ .nl_checkbox {
    background: var(--clct-teal);
    border-color: var(--clct-teal);
}

.clct_form input[type="checkbox"]:checked ~ .nl_checkbox i {
    display: block;
}

/* Buttons */
.clct_btn,
.clct_form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--clct-teal);
    color: var(--clct-white);
    height: 44px;
    padding: 0 28px;
    border: none;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-radius: 0;
}

.clct_btn:hover,
.clct_form button:hover {
    background-color: var(--clct-btn-hover);
}

.clct_btn_exp_csv {
    background-color: var(--clct-teal-light);
    color: var(--clct-text);
}

.clct_btn_exp_csv:hover {
    background-color: #5aada9;
}

.clct_btn_log_out {
    margin-inline-end: 16px;
}

/* Error / message */
.clct_error {
    font-size: 14px;
    color: #c0392b;
    margin-top: 4px;
}

#rep_msg {
    font-size: 15px;
    min-height: 22px;
    margin-bottom: 12px;
}

#rep_msg.redtext {
    color: #c0392b;
}

/* "Other" type-of-usage */
.type_of_usage_other_outer {
    display: none;
}
.type_of_usage_other_outer.active {
    display: block;
}

/* Marked (validation) */
.clct_form input.marked,
.clct_form select.marked {
    border-color: #c0392b;
}

/* ─── Search form ────────────────────────────────────────────────────────── */

.clct_search_greeting,
.clct_search {
    width: 100%;
    padding: 20px 40px;
}

.clct_search_group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border: 0;
}

.clct_search_group_1 {
    width: 175px;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1.4;
    color: var(--clct-text);
    border: 0;
}

.clct_search_group_2 {
    flex: 1;
    position: relative;
    background-color: var(--clct-white);
}

.clct_search_group_2.clct_search_group_2_date {
    background-color: transparent;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.clct_search_group_2_in {
    flex: 1;
    background-color: var(--clct-white);
    max-width: 264px;
    position: relative;
}

.clct_search_group_2_bg {
    background-color: transparent;
}

.clct_form .clct_search_group input[type="text"],
.clct_form .clct_search_group input[type="email"] {
    margin-bottom: 0;
    height: 44px;
    font-size: 16px;
    font-weight: 400;
    position: relative;
}

.clct_clear {
    font-size: 14px;
    color: var(--clct-text-muted);
    margin-inline-start: 20px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    line-height: 44px;
    height: 44px;
    display: inline-block;
}

.clct_clear:hover {
    color: var(--clct-teal);
}

/* Arrow indicator for autocomplete fields */
.clct_arrow_select {
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background-color: var(--clct-white);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-inline-end: 10px;
    z-index: 7;
    pointer-events: none;
    right: 12px;
    height: 50%;
    top: 12px;
}

.clct_arrow_select img {
    width: 14px;
}

/* ─── Autocomplete dropdown ──────────────────────────────────────────────── */

.fieldAutocompleteBox {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    width: 100%;
    min-width: 180px;
    z-index: 50;
    display: none;
}

.fieldAutocompleteBox.active {
    display: block;
}

.scroll-pane {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.fieldAutocompleteBoxIn2 {
    background-color: var(--clct-white);
    border: 1px solid var(--clct-teal-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fieldAutocompleteBoxIn {
    padding: 6px 0;
    width: 100%;
}

.fieldAutocompleteBoxIn a {
    display: block;
    font-size: 15px;
    padding: 8px 14px;
    color: var(--clct-text);
    text-decoration: none;
    line-height: 1.3;
}

.fieldAutocompleteBoxIn a:hover,
.fieldAutocompleteBoxIn a:focus {
    background-color: var(--clct-teal-pale);
    color: var(--clct-teal);
}

/* Scrollbar */
.scroll-pane::-webkit-scrollbar { width: 6px; }
.scroll-pane::-webkit-scrollbar-track { background: var(--clct-teal-pale); }
.scroll-pane::-webkit-scrollbar-thumb { background: var(--clct-teal); }

/* ─── Header bar (search results page) ──────────────────────────────────── */

.clct_search_titlename_outer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--clct-teal-border);
    /* padding: 40px; */
    width: 100%;
    width: 100%;
    gap: 40px;
}

.clct_search_titlename {
    font-size: 16px;
    color: var(--clct-text);
    font-weight: 500;
}

/* ─── Search results table ───────────────────────────────────────────────── */

.clct_search_results {
    margin-top: 10px;
    width: 100%;
}

.clct_search_results table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.clct_search_results table thead th {
    border-bottom: 2px solid var(--clct-teal);
    text-align: start;
}

.clct_search_results table thead span {
    display: block;
    color: var(--clct-text);
    font-size: 15px;
    font-weight: 700;
    padding: 10px 8px;
    white-space: nowrap;
}

.clct_search_results table tbody td {
    padding: 8px;
    font-size: 14px;
    color: var(--clct-text);
    line-height: 1.4;
    border-bottom: 1px solid var(--clct-teal-border);
}

.clct_search_results table tbody td a {
    color: var(--clct-teal);
    text-decoration: none;
}

.clct_search_results table tbody td a:hover {
    text-decoration: underline;
}

.clct_search_results table tbody tr:nth-child(even) {
    background-color: var(--clct-row-alt);
}

.clct_search_results table tbody tr:hover {
    background-color: var(--clct-row-hover);
}

.clct_clickable_row {
    cursor: pointer;
}

.clct_search_results_italic {
    font-style: italic;
}

.clct_upper {
    text-transform: uppercase;
}

/* Results title */
.clct_search_results_title {
    font-size: 22px;
    font-weight: 700;
    color: var(--clct-teal);
    line-height: 1.3;
    margin-bottom: 0;
    padding: 0;
}

/* Back to search arrow */
.clct_backtosearch {
    display: inline-flex;
    align-items: center;
    height: 32px;
    margin-inline-end: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding-inline: 0;
}

.clct_backtosearch:hover {
    opacity: 1;
}

.clct_backtosearch img {
    height: 100%;
    width: auto;
}

/* Not found */
.clct_search_results_title_notfound,
.clct_backtosearch_notfound {
    text-align: center;
    width: 100%;
}

.clct_backtosearch_notfound {
    margin-top: 16px;
}

.clct_backtosearch_notfound span {
    font-size: 22px;
    font-weight: 700;
    color: var(--clct-teal);
    vertical-align: middle;
}

/* ─── Pagination ─────────────────────────────────────────────────────────── */

.clct_pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 16px 0;
}

.clct_pagination .page-numbers {
    display: none;
}

.clct_pagination .page-numbers.prev,
.clct_pagination .page-numbers.next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--clct-teal);
    transition: background-color 0.2s;
}

.clct_pagination .page-numbers.prev:hover,
.clct_pagination .page-numbers.next:hover {
    background-color: var(--clct-btn-hover);
}

.clct_pagination .page-numbers.prev svg,
.clct_pagination .page-numbers.next svg {
    width: 10px;
    height: 10px;
    display: block;
}

.clct_posts_found {
    color: var(--clct-text-muted);
    font-size: 13px;
    line-height: 32px;
    margin-inline-start: 12px;
}

.clct_items_count {
    color: var(--clct-text-muted);
    font-size: 13px;
    line-height: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: 16px;
}

.clct_items_count_item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--clct-teal-pale);
    color: var(--clct-text);
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.clct_items_count_item:hover,
.clct_items_count_item.current {
    background-color: var(--clct-teal);
    color: var(--clct-white);
}

/* ─── Single item view ───────────────────────────────────────────────────── */

.clct_data {
    margin-top: 0;
    border-top: 2px solid var(--clct-teal-border);
    padding: 40px;
}

.clct_data_row {
    display: flex;
    align-items: baseline;
    border-bottom: 1px solid var(--clct-teal-border);
    padding: 10px 0;
}

.clct_data_row_col1 {
    width: 220px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 15px;
    color: var(--clct-text);
}

.clct_data_row_col2 {
    flex: 1;
    font-size: 15px;
    color: var(--clct-text);
    line-height: 1.5;
}

/* ─── Small note ─────────────────────────────────────────────────────────── */

.clct_smallnote {
    margin-top: 32px;
    max-width: 700px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--clct-text-muted);
}

.clct_smallnote a {
    color: var(--clct-teal);
    text-decoration: underline;
}

/* ─── Loading indicator ──────────────────────────────────────────────────── */

.clct_search_target {
    min-height: 300px;
    position: relative;
    padding: 40px;
}

.clct_search_target_lodingimg {
    width: 32px;
    margin-inline-end: 12px;
    vertical-align: middle;
}

.clct_search_target_txt {
    font-size: 16px;
    color: var(--clct-text-muted);
    line-height: 32px;
    vertical-align: middle;
}

/* ─── Datepicker overrides ───────────────────────────────────────────────── */

.ui-widget.ui-widget-content {
    width: 260px;
    padding: 12px;
    background-color: var(--clct-white);
    border: 1px solid var(--clct-teal-border);
    border-radius: 0;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    display: none;
}

.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    color: var(--clct-text);
    display: inline-block;
    margin: 0 4px;
    height: 28px;
    font-size: 14px;
    font-weight: 400;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .clct_login {
        flex-direction: column;
    }

    .clct_login_1,
    .clct_login_2 {
        width: 100%;
        border: none;
        padding: 24px 0;
        border-bottom: 1px solid var(--clct-teal-border);
    }

    .clct_login_2 {
        border-bottom: none;
    }

    .clct_search_group {
        flex-direction: column;
        align-items: flex-start;
    }

    .clct_search_group_1 {
        width: 100%;
        margin-bottom: 4px;
    }

    .clct_search_group_2 {
        width: 100%;
    }

    .clct_register_form {
        max-width: 100%;
    }

    .clct_firld3_outer {
        grid-template-columns: 1fr;
    }

    .clct_search_results {
        width: 100%;
        overflow-x: auto;
    }

    .clct_search_results table {
        width: 55rem;
    }

    .clct_items_count,
    .clct_btn_exp_csv {
        display: none;
    }

    .clct_data_row_col1 {
        width: 140px;
    }

    .clct_data_row_col2 {
        width: calc(100% - 140px);
    }
}

@media (max-width: 600px) {
    .clct_search_titlename_outer {
        flex-wrap: wrap;
        gap: 10px;
    }

    .clct_firld3_outer {
        grid-template-columns: 1fr;
    }

    .clct_data_row {
        flex-direction: column;
        gap: 2px;
    }

    .clct_data_row_col1,
    .clct_data_row_col2 {
        width: 100%;
    }
}

/* ─── Print ──────────────────────────────────────────────────────────────── */

@media print {
    .clct_backtosearch,
    .clct_btn_exp_csv,
    .clct_pagination,
    .clct_posts_found,
    .clct_items_count,
    .clct_search_titlename_outer { display: none !important; }

    .clct_search_results_title { font-size: 16px; line-height: 1.3; }

    .clct_search_results *,
    .clct_data,
    .clct_data * { font-size: 12px !important; line-height: 1.5 !important; }

    .clct_data_row_col1 { width: 120px; }
    .clct_data_row_col2 { width: calc(100% - 120px); }

    .clct_smallnote,
    .clct_smallnote * { font-size: 11px; line-height: 1.4; color: #404040; }
}


.clct_search_group_2 {
    position: relative;
}
.flatpickr-calendar {
    position: absolute !important;
    top: auto !important;
    left: auto !important;
}

html[dir="ltr"] .flatpickr-calendar {
    direction: ltr !important;
    left: auto !important;
    right: 0px !important;
}