﻿/* === PAGE STRUCTURE === */
.directory-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px;
}

.page-title {
    text-align: center;
    color: #222;
    margin-bottom: 25px;
}

h3 {
    text-align: center;
    margin: 25px 0 10px;
    color: #333;
}

/* === RESPONSIVE TABLE WRAPPER === */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* === GRIDVIEW BASE TABLE === */
.gridview {
    border-collapse: collapse;
    width: 100%;
    min-width: 420px;
    font-family: "Trebuchet MS", sans-serif;
    font-size: 14px;
    background-color: #fff;
}

    .gridview th,
    .gridview td {
        padding: 10px 8px;
        border-bottom: 1px solid #ddd;
        text-align: left;
    }

    .gridview th {
        background-color: #333;
        color: #fff;
        font-weight: 600;
        text-transform: uppercase;
    }

    .gridview tr:nth-child(even) {
        background-color: #f7f9fc;
    }

    .gridview tr:hover {
        background-color: #eef3ff;
    }

/* === MOBILE: STACKED CARD MODE === */
@media (max-width: 768px) {
    .gridview {
        border: 0;
        min-width: 100%;
    }

        .gridview thead {
            display: none; /* hide headers */
        }

        .gridview tr {
            display: block;
            margin-bottom: 15px;
            border: 1px solid #ccc;
            border-radius: 10px;
            box-shadow: 0 1px 5px rgba(0,0,0,0.05);
            background: #fff;
        }

        .gridview td {
            display: flex;
            justify-content: space-between;
            padding: 10px 14px;
            font-size: 14px;
            border: none;
            border-bottom: 1px solid #eee;
        }

            .gridview td:last-child {
                border-bottom: none;
            }

            .gridview td::before {
                content: attr(data-label);
                font-weight: 600;
                color: #1d3c6a;
                text-transform: uppercase;
            }
}
