

/* Omeka S existing prompts-table styles*/
#prompts-table td {
    vertical-align: top;
}
#prompts-table .title-wrapper {
    display: flex;
    align-items: flex-start;
}
#prompts-table td:last-of-type {
    min-width: 4em;
}
#prompts-table .actions {
    padding-left: 0;
}

/*==============BSA Collecting Plus CSS additions below here==============*/

/* Nxm ------------ Collecting Items Table -----------*/

/* NxM - Proportional table for BSA Forms */
table.collecting-items-table {
    table-layout: fixed !important;
    width: 100% !important;
}

/* NxM - Only apply fixed widths on larger screens */
@media (min-width: 768px) {
    table.collecting-items-table thead th:nth-child(1),
    table.collecting-items-table tbody td:nth-child(1) {
        width: 30% !important; /* Name - longer */
    }
    table.collecting-items-table thead th:nth-child(2),
    table.collecting-items-table tbody td:nth-child(2) {
        width: 20% !important; /* Date */
    }
    table.collecting-items-table thead th:nth-child(3),
    table.collecting-items-table tbody td:nth-child(3) {
        width: 15% !important; /* Reviewed By */
    }
    table.collecting-items-table thead th:nth-child(4),
    table.collecting-items-table tbody td:nth-child(4) {
        width: 20% !important; /* Status - shorter */
    }
    table.collecting-items-table thead th:nth-child(5),
    table.collecting-items-table tbody td:nth-child(5) {
        width: 15% !important; /* Details */
    }
}

/* NxM Let tablesaw handle small screens naturally */
@media (max-width: 767px) {
    table.collecting-items-table {
        table-layout: auto !important;
    }
    table.collecting-items-table th,
    table.collecting-items-table td {
        width: auto !important;
    }
}

/* NxM Title truncation only on smaller screens */
@media (max-width: 1200px) {
    table.collecting-items-table td:nth-child(1) a {
        display: block !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

/* Nxm ------------ References Table -----------*/

/* NxM - Proportional table for BSA Forms */
table.collecting-references-table {
    table-layout: fixed !important;
    width: 100% !important;
}

/* NxM - Only apply fixed widths on larger screens */
@media (min-width: 768px) {
    table.collecting-references-table thead th:nth-child(1),
    table.collecting-references-table tbody td:nth-child(1) {
        width: 15% !important; /* Applicant */
    }
    table.collecting-references-table thead th:nth-child(2),
    table.collecting-references-table tbody td:nth-child(2) {
        width: 15% !important; /* Referee */
    }
    table.collecting-references-table thead th:nth-child(3),
    table.collecting-references-table tbody td:nth-child(3) {
        width: 25% !important; /* Opportunity --- longer */
    }
    table.collecting-references-table thead th:nth-child(4),
    table.collecting-references-table tbody td:nth-child(4) {
        width: 15% !important; /* Reviewed By */
    }
    table.collecting-references-table thead th:nth-child(5),
    table.collecting-references-table tbody td:nth-child(5) {
        width: 20% !important; /* Status */
    }
    table.collecting-references-table thead th:nth-child(6),
    table.collecting-references-table tbody td:nth-child(6) {
        width: 10% !important; /* Details - shorter */
    }
}

/* NxM Let tablesaw handle small screens naturally */
@media (max-width: 767px) {
    table.collecting-references-table {
        table-layout: auto !important;
    }
    table.collecting-references-table th,
    table.collecting-references-table td {
        width: auto !important;
    }
}

/* NxM Title truncation only on smaller screens */
@media (max-width: 1200px) {
    table.collecting-references-table td:nth-child(1) a {
        display: block !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

/* NxM - Opportunity filter styling to match advanced search appearance */
.opportunity-filter {
    display: inline-block;
    margin-right: 10px;
    
    label {
        color:  #A91919;
    }
}
