.row {
    display: table-row;
    background-color: white;
}

/* Ensure all rows are white by default */
.row {
    margin-right: 0px !important;
    margin-left: 0px !important;
}

.row > td {
    display: table-cell;
    padding: 10px 20px;
    text-align: left;
    vertical-align: top;
}

.college-row {
    /*background-color: #f0f0f0;  Light gray background for college rows */
    color: black;
    /* Ensure text is black */
}

.calendar-icon {
    height: 20px;
    /* Adjust size as needed */
    width: 20px;
    /* Adjust size as needed */
    margin-right: 5px;
    /* Space between icon and text */
    vertical-align: middle;
    /* Align with the text */
}

.container.breadcrumbs {
    padding-left: 0 !important;
    /* Remove any default padding */
    padding-right: 0 !important;
    /* Optional: Remove right padding if needed */
    margin-left: -15px !important;
    /* Ensure no extra margin */
    margin-right: 0 !important;
    /* Optional: Remove right margin if needed */
}
/* Style for the horizontal rule between rows */
.librarian-row + hr,
.staff-row + hr {
    border: none;
    /* Remove the default border */
    border-top: 2px solid #ddd;
    /* Light and thin border */
    margin: 8px 0;
    /* Some space around the hr */
}

/* Style for the horizontal rule */
.librarian-row + hr {
    border: none;
    /* Remove the default border */
    border-top: 2px solid #ddd;
    /* Light and thin border */
    margin: 8px 0;
    /* Some space around the hr */
}

/* Style for librarian columns */
.librarian-column {
    flex: 1;
    /* Each column takes equal space */
    box-sizing: border-box;
    /* Include padding in width calculation */
    text-align: left;
    /* Align text to the left */
    padding: 10px;
    /* Add padding as needed */
}
.row {
    display: flex;
}

.personal-details,
.contact-details {
    flex: 1;
}

.personal-details .staff-name {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 5px;
}

.blank-row {
    height: 20px;
    /* or any other height you prefer for separation */
}

/* Base responsive styles */
.container-fluid {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Table responsive styles */
.contact-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.contact-table th,
.contact-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.contact-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Breadcrumbs responsive */
.container.breadcrumbs {
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-left: 0 !important;
}

/* Header responsive */
.contact-header {
    padding: 20px 0 !important;
    font-size: 1.25rem !important;
}

/* Tab content responsive */
.tab-content-container {
    padding: 20px !important;
}

/* Staff row responsive */
.row {
    flex-direction: column;
    gap: 10px;
}

.personal-details,
.contact-details {
    flex: none;
}

/* Tablet styles */
@media screen and (min-width: 768px) {
    .container-fluid {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }

    .container.breadcrumbs {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }

    .contact-header {
        font-size: 1.4rem !important;
    }

    .tab-content-container {
        padding: 50px !important;
    }

    .contact-table th,
    .contact-table td {
        padding: 5px 12px;
    }
}

/* Desktop styles */
@media screen and (min-width: 1024px) {
    .container-fluid {
        padding-left: 100px !important;
        padding-right: 100px !important;
    }

    .container.breadcrumbs {
        padding-left: 85px !important;
        padding-right: 100px !important;
    }

    .contact-header {
        font-size: 1.5rem !important;
    }

    .tab-content-container {
        padding-left: 100px !important;
        padding-right: 100px !important;
    }

    .row {
        flex-direction: row;
    }

    .personal-details,
    .contact-details {
        flex: 1;
    }
}

/* Mobile table stack */
@media screen and (max-width: 767px) {
    .contact-table,
    .contact-table thead,
    .contact-table tbody,
    .contact-table th,
    .contact-table td,
    .contact-table tr {
        display: block;
    }

    .contact-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .contact-table tr {
        border: 1px solid #ccc;
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 5px;
        background-color: #f9f9f9;
    }

    .contact-table td {
        border: none;
        position: relative;
        padding: 8px 8px 8px 30%;
        border-bottom: 1px solid #eee;
    }

    .contact-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 25%;
        font-weight: bold;
        color: #333;
    }

    .contact-table td:last-child {
        border-bottom: 0;
    }

    /* Hide empty cells on mobile */
    .contact-table td:empty {
        display: none;
    }
}

/* Navigation tabs responsive */
@media screen and (max-width: 767px) {
    .nav-tabs {
        flex-direction: column;
    }

    .nav-tabs .nav-item {
        width: 100%;
    }

    .nav-tabs .nav-link {
        text-align: center;
        border-radius: 0;
    }
}
