﻿
:root {
    --th-bg-color: #F3F2F7;
}

body {
}

.main-menu {
    touch-action: pan-y !important;
    overflow-y: auto !important;
}

.input-validation-error {
    border: 2px solid var(--bs-red);
}

    .input-validation-error::-webkit-input-placeholder {
        color: var(--bs-red);
    }



.custom-error-border__no-start {
    border: 2px solid var(--bs-danger);
    border-right: none;
}

.custom-error-border__no-end {
    border: 2px solid var(--bs-danger);
    border-left: none;
}

.accordion-button.collapsed {
    background-color: var( --bs-gray);
    border-radius: 0.375rem;
}

.my-border-bottom {
    border-bottom: 1px solid var(--bs-gray);
}

.my-border-top {
    border-top: 1px solid var(--bs-gray);
}

.my-border-start {
    border-left: 1px solid var(--bs-gray);
}

.my-border-end {
    border-right: 1px solid var(--bs-gray);
}

.my-table-border-bottom {
    border-bottom: 1px solid #808080;
}

.my-table-border-top {
    border-top: 1px solid #808080;
}

.my-table-border-start {
    border-left: 1px solid #808080;
}

.my-table-border-end {
    border-right: 1px solid #808080;
}

.th-bg-color {
    background-color: var(--th-bg-color) !important;
}

.th-title {
    width: 120px;
}

.th-title-sub-120 {
    width: 120px;
    background-color: var(--th-bg-color) !important;
    font-weight: bold;
}

.th-title-sub-160 {
    width: 160px;
    background-color: var(--th-bg-color) !important;
    font-weight: bold;
}

.th-title-sub-200 {
    width: 200px;
    background-color: var(--th-bg-color) !important;
    font-weight: bold;
}

.th-title-sub-65p {
    width: 60%;
    background-color: var(--th-bg-color) !important;
    font-weight: bold;
}

.error-message {
    color: var(--bs-danger);
}

.form-check-input {
    width: 24px;
    height: 24px;
}

.my-form-radio-input {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    margin-left: 5px;
}

.query-field {
    display: inline-block;
    width: 160px;
}

.grip {
    width: 20px;
    height: 30px;
    margin-top: -3px;
    background-image: url(../lib/grip.png);
    margin-left: -6px;
    position: relative;
    z-index: 88;
    cursor: col-resize;
}

.form-row {
    margin: 12px 0;
}

.my-form-label {
    background-color: #e0e0e0;
    padding: 8px 10px;
    border-radius: 4px 4px 0 0;
    font-weight: bold;
    border: 1px solid #ccc;
    border-bottom: none;
}

.my-form-field {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    background-color: #fff;
}

/* Tab Navigation */
.tab-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ccc;
    position: sticky;
    top: 34px;
    z-index: 99;
}

.tab-button {
    padding: 12px 15px;
    white-space: nowrap;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
}

    .tab-button.active {
        border-bottom: 3px solid #005566;
        font-weight: bold;
        background-color: #e0f0f5;
    }

.jq-split-border {
    border-right: 4px dashed #000;
}

.my-title {
    vertical-align: top;
    text-transform: uppercase;
    font-size: .857rem;
    letter-spacing: .5px;
    font-weight: 700;
}

.feather-16 {
    width: 16px;
    height: 16px;
}

.feather-24 {
    width: 24px;
    height: 24px;
}

.feather-32 {
    width: 32px;
    height: 32px;
}

@media (min-width: 768px) {
    #viewCase {
        height: calc(100vh - 160px);
    }
}

@media (max-width: 768px) {
    #viewCase {
        height: 100%;
    }
}

.select2-container-250 {
    width: 250px !important;
}

.select2-container-250-100P {
    width: 100% !important;
    max-width: 250px !important;
}

.select2-container-200 {
    width: 200px !important;
}

.input-group > .group-select {
    flex: 0 0 150px;
}

/* 強制表格佈局，防止內容撐開寬度 */
table.img-table {
    table-layout: fixed;
    width: 100%; /* 或固定寬度 */
}


    table.img-table td {
        width: 50%;
    }

        table.img-table td.td-img {
            height: 520px;
        }

            table.img-table td.td-img img {
                /* 核心：限制最大長寬不超過父容器 */
                max-width: 100%;
                max-height: 100%;
                /* 保持比例，避免圖片變形 */
                height: auto;
                width: auto;
                /* 移除圖片下方的微小空隙（可選） */
                display: block;
            }


@media print {
    thead {
        display: table-header-group;
    }

    table.my-thead {
        border-collapse: collapse;
    }
    /* 強制換頁的類別 */
    .new-page {
        break-after: page;
        page-break-after: always;
    }
}
