﻿/*.minfo_right {
    overflow: visible;
}

.minfo_box {
    overflow: visible;
}*/

.custom-dropdown-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 38px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.gwc-selected-option {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gwc-dropdown-arrow {
    height: 7px;
    transition: transform 0.2s ease-in-out;
    margin-left: 10px;
}

.gwc-selected-option.active {
    border-radius: 6px 6px 0 0;
    border-bottom: none;
}

    .gwc-selected-option.active .gwc-dropdown-arrow {
        transform: rotate(180deg);
    }

.gwc-options-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
}

    .gwc-options-list .active {
        background-color: #DDDDDD;
    }

.gwc-option-item {
    padding: 8px 12px;
    cursor: pointer;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .gwc-option-item:hover {
        background-color: #f0f0f0;
    }

    .gwc-option-item.active:hover {
        background-color: #DDDDDD;
    }

.datetime-picker {
    position: relative;
}

.display-box {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: 2px solid transparent;
    outline-offset: 0;
    transition: outline-color 0.3s ease;
}

/*.display-box:hover,
    .display-box.active {
        border-color: transparent;
        outline-color: #015030;
    }*/

.display-text {
    color: #8c8c8c;
    font-size: 14px;
}

    .display-text.selected {
        color: #333;
        font-weight: 500;
    }

/*.arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #999;
    transition: transform 0.3s ease;
}*/

.display-box.active {
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

    .display-box.active .arrow {
        transform: rotate(180deg);
    }

.picker-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    list-style: none;
    padding: 20px;
    margin: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

    .picker-panel.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.picker-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.picker-group {
    flex: 1;
}

    .picker-group label {
        display: block;
        color: #666;
        font-size: 13px;
        margin-bottom: 8px;
        font-weight: 500;
    }

    .picker-group select {
        width: 100%;
        padding: 10px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 14px;
        background: white;
        cursor: pointer;
        transition: all 0.2s ease;
        color: #333;
    }

        .picker-group select:hover {
            border-color: #667eea;
        }

        .picker-group select:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

    .button-group button {
        flex: 1;
        padding: 12px;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

.btn-confirm {
    background: #00844f;
    color: white;
}

    .btn-confirm:hover {
        background: #015030;
    }

.btn-cancel {
    background: #e0e0e0;
    color: #666;
}

    .btn-cancel:hover {
        background: #d0d0d0;
    }

.btn-clear {
    background: #ff6b6b;
    color: white;
}

    .btn-clear:hover {
        background: #ff5252;
    }

.minfo_box table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    table-layout: fixed;
}

    .minfo_box table th, td {
        padding: 16px 12px;
        border: none;
        vertical-align: middle;
        font-size: 16px;
        overflow: hidden;
        overflow-wrap: break-word;
    }

    .minfo_box table thead tr {
        background-color: #F6F6F6;
    }

    .minfo_box table th:last-child,
    .minfo_box table td:last-child {
        text-align: center;
    }

    .minfo_box table th {
        font-weight: bold;
        color: #333;
    }

    .minfo_box table td {
        color: #666;
        border-bottom: 1px solid #ddd;
        font-size: 14px;
    }

.action-link {
    color: #F03F35;
    text-decoration: none;
}

    .action-link:hover {
        text-decoration: underline;
        color: #F03F35;
    }

    .action-link:last-child {
        margin-left: 10px;
    }

/* 分頁樣式 */
.pagination-box {
    margin-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    user-select: none;
    transition: all 0.2s;
}

    .pagination-btn:hover:not(.disabled):not(.active) {
        border-color: #00844f;
        color: #00844f;
    }

    .pagination-btn.active {
        background-color: #00844f;
        color: #fff;
        border-color: #00844f;
    }

    .pagination-btn.disabled {
        background-color: #f5f5f5;
        color: #ccc;
        cursor: not-allowed;
        border-color: #eee;
    }

.pagination-ellipsis {
    color: #999;
    padding: 0 5px;
}
