﻿/*=============通報單位_新版===================*/
.modal-content-3 {
    background-color: #004143;
    color: white;
    border-radius: 15px;
    border: none;
    width: 100%;
    padding:20px;
}

.modal-header-3 {
    border: none;
    padding: 20px 20px 10px 20px;
    position: relative;
    justify-content: center;
}
    .modal-header-3 .close-btn {
        position: absolute;
        top: -25px;
        right: 0px;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
        color: white;
        z-index: 1001;
    }



.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-tab {
    padding: 8px 16px;
    background-color: #004143;
    border: 1px solid white;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    white-space: nowrap;
}

    .filter-tab:hover,
    .filter-tab.active {
        background-color: white;
        color: #004143;
    }

.modal-body {
    padding: 0 20px 20px 20px;
}

.table-container {
    background-color: #004143;
    border-radius: 8px;
    overflow: hidden;
}

.service-table {
    width: 100%;
    color: white;
    margin: 0;
}

    .service-table thead {
        background-color: #2d7a7f;
    }
        .service-table thead th {
            position: sticky;
            top: 0;
            font-weight: 600;
            z-index: 10;
            background-color: #2d7a7f;
        }
        .service-table thead tr {
            border-bottom: 1px solid white;
        }

    .service-table th {
        padding: 12px 15px;
        font-weight: 500;
        border: none;
        text-align: center;
        font-size: 16px;
    }

    .service-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #2d7a7f;
        border-left: none;
        border-right: none;
        font-size: 15px;
        vertical-align: middle;
    }

    .service-table tbody tr:last-child td {
        border-bottom: none;
    }

    .service-table tbody tr:hover {
        background-color: #2d7a7f;
    }

.unit-name {
    color: #FFC876;
    font-weight: 500;
    font-size:large;
}

.unit-time, .unit-phone {
    text-align: center;
}

.content-area {
    max-height: 400px;
    overflow-y: auto;
}

    .content-area::-webkit-scrollbar {
        width: 6px;
    }

    .content-area::-webkit-scrollbar-track {
        background: #2d7a7f;
        border-radius: 3px;
    }

    .content-area::-webkit-scrollbar-thumb {
        background: #4a9fa5;
        border-radius: 3px;
    }
/* 手機版卡片樣式 */
.service-cards {
    display: none;
}

.service-card {
    background-color: #2d7a7f;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #4a9fa5;
}

    .service-card:last-child {
        margin-bottom: 0;
    }

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #4a9fa5;
}

.unit-dropdown {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transform: rotate(0deg);
    transition: transform 0.3s;
}

    .unit-dropdown.expanded {
        transform: rotate(180deg);
    }

.card-content {
    display: none;
}

    .card-content.show {
        display: block;
    }

.card-info {
    margin-bottom: 8px;
    font-size: larger;
}
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
        min-width: calc(100% - 20px) !important;
    }

    .filter-tabs {
        gap: 5px;
    }

    .filter-tab {
        padding: 6px 12px;
        font-size: large;
    }

    /*.service-table th,
    .service-table td {
        padding: 8px 10px;
        font-size: 12px;
    }*/
    /* 隱藏桌機版表格，顯示手機版卡片 */
    .service-table {
        display: none;
    }

    .service-cards {
        display: block;

    }
}
