.admin {
    margin: 0 auto;
    padding: 40px 0px 20px 0px;
    max-width: 1400px;
    min-height: 760px;
    display: flex;
    font-family: 'Noto Sans TC', sans-serif;
}

.admin .admin-container {
    width: 100%;
}

.admin .title {
    display: flex;
    justify-content: space-between;
    align-content: center;
    margin-bottom: 40px;
}

.admin .title p {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
}

.admin .title button {
    background-color: #930000;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
}

.admin .title button:hover {
    background-color: #750000;
}

.admin .title button a {
    color: #fff;
    text-decoration: none;
}

.admin .content {
    display: flex;
    flex-direction: row;
}

.admin .tabs {
    font-family: 'Noto Sans TC', sans-serif;
    display: flex;
    flex-direction: column;
    padding-right: 30px;
}

.admin .tabs button {
    text-align: left;
    padding: 10px 15px;
    background: none;
    border: none;
    border-right: 5px solid #eee;
    font-size: 20px;
    font-weight: 500;
    color: #4f4f4f;
    cursor: pointer;
}

.admin .tabs button.active {
    background-color: #F0F0F0;
    color: #2f2f2f;
    font-weight: 600;
    border-right: 5px solid #2f2f2f;
}

.admin .tab-content {
    height: 550px;
    font-family: 'Noto Sans TC', sans-serif;
    display: none;
}

.admin .tab-content.active {
    display: block;
}

.admin .tab-content .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin .tab-content .order-header .search-box {
    display: flex;
    gap: 10px;
}

.admin .tab-content .order-header .search-box input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 300px;
}

.admin .tab-content .order-header .search-box button {
    padding: 8px 15px;
    background-color: #4f4f4f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.admin .tab-content .order-header .search-box button:hover {
    background-color: #2f2f2f;
}

.admin .tab-content .order-header span {
    font-size: 24px;
    font-weight: 600;
}

.admin .tab-content .order-text {
    margin-bottom: 20px;
}

.admin .tab-content .order-text span {
    font-size: 16px;
    font-weight: 600;
    color: #4f4f4f;
}

.admin .tab-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.admin .tab-content table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.admin .tab-content table thead {
    background-color: #ddd;
    color: #2f2f2f;
    text-transform: uppercase;
}

.admin .tab-content .table-wrapper {
    max-height: 490px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.admin .tab-content .table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.admin .tab-content .table-wrapper th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #ddd;
    color: #2f2f2f;
    text-transform: uppercase;
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.admin .tab-content .table-wrapper td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.admin .tab-content .table-wrapper td a {
    text-decoration: none;
}

.admin .tab-content .table-wrapper tbody tr:last-child td {
    border-bottom: none;
}

.admin .tab-content table td .product-img {
    width: 60px;
    height: auto;
    border-radius: 5px;
}

.admin .tab-content table td .upload-btn,
.admin .tab-content table td .edit-btn,
.admin .tab-content table td .delete-image-btn {
    background-color: #4f4f4f;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.admin .tab-content table td .upload-btn:hover,
.admin .tab-content table td .edit-btn:hover,
.admin .tab-content table td .delete-image-btn:hover {
    background-color: #2f2f2f;
}

.admin .tab-content table td .delete-btn {
    background-color: #750000;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.admin .tab-content table td .delete-btn:hover {
    background-color: #4D0000;
}

.admin .tab-content table td .toggle-btn {
    background-color: #4f4f4f;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.admin .tab-content table td .toggle-btn.active {
    background-color: #00A600;
    color: #fff;
}

.admin .tab-content table td .toggle-btn.inactive {
    background-color: #750000;
    color: #fff;
}

.swal2-popup {
    font-family: 'Noto Sans TC', sans-serif;
    display: flex;
    flex-direction: column;
}

.swal2-title {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 24px;
    font-weight: bold;
}

.swal2-content {
    font-family: 'Noto Sans TC', sans-serif;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.swal2-content label {
    color: #4f4f4f;
    font-size: 20px;
}

.swal2-input {
    border: 1px solid #ddd;
    border-radius: 10px;
    height: 40px;
    font-size: 16px;
    padding: 5px 10px;
}

.swal2-select {
    border: 1px solid #ddd;
    border-radius: 10px;
    height: 50px;
    padding: 5px 10px;
}

.swal2-select option {
    font-size: 16px;
}

.swal2-file {
    border: none;
    tab-size: 16px;
}

.swal2-file .preview-img {
    width: 80px;
    height: auto;
    margin-top: 10px;
}

.swal2-textarea {
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    height: 80px;
    padding: 5px 10px;
}

.swal2-confirm {
    background-color: #2f2f2f !important;
    border-radius: 5px !important;
    padding: 10px 20px !important;
    font-size: 16px !important;
}

.swal2-confirm:hover {
    background-color: #000000 !important;
}

.swal2-cancel {
    background-color: #6f6f6f !important;
    border-radius: 5px !important;
    padding: 10px 20px !important;
    font-size: 16px !important;
}

.swal2-cancel:hover {
    background-color: #4f4f4f !important;
}

.admin .tab-content .submit-btn {
    margin-top: 20px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background-color: #4f4f4f;
    color: #fff;
}

.order-detail {
    font-family: 'Noto Sans TC', sans-serif;
}

.order-detail .title {
    font-weight: 600;
    font-size: 24px;
}

.order-detail .content {
    margin-top: 20px;
    background-color: #fff;
}

.order-detail .content p {
    margin: 0px;
    padding: 0px;
    text-align: left;
    font-size: 18px;
    font-weight: 300;
    color: #4f4f4f;
    pointer-events: none;
    user-select: text;
}

.order-detail .content p span {
    margin-right: 10px;
    font-weight: 600;
}

.order-detail .content .order-items {
    margin-top: 15px;
    margin-bottom: 15px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.order-detail .content .order-items .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-detail .content .order-items .item:last-child {
    border-bottom: none;
}

.order-detail .content .order-items .item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.order-detail .content .order-items .item-details {
    flex: 1;
    text-align: left;
    margin: 0 20px;
}

.order-detail .content .order-items .item-details h3 {
    font-size: 18px;
    color: #4f4f4f;
    margin: 0;
}

.order-detail .content .order-items .item-details span {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #6f6f6f;
    margin-top: 5px;
}

.order-detail .content .item-total {
    font-size: 18px;
    font-weight: 600;
    color: #4f4f4f;
}

.order-detail .content .order-fee {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-detail .content .order-fee .fee-total {
    color: #4f4f4f;
    font-size: 16px;
    font-weight: 400;
}

.order-detail .content .order-fee .fee-price {
    color: #4f4f4f;
    font-size: 18px;
    font-weight: 600;
}

.order-detail .content .order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    color: #4f4f4f;
    font-size: 18px;
    font-weight: 600;
}