.iwc-warranty-container {
    max-width: 100%;
    /* 或者選擇 100% */
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.iwc-patient-header {
    background: #fff;
    padding: 0 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    color: #333;

}

.iwc-warranty-item {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.iwc-warranty-table {
    width: 100%;
    border-collapse: collapse;
}

.iwc-warranty-table th,
.iwc-warranty-table td {
    padding: 8px;
    border-bottom: 0px solid #eee;
}

.iwc-warranty-table th {
    width: 250px;
    text-align: left;
    color: #333;
    border-bottom: solid #aaa 1px;
    border-left: solid #aaa 1px;
}

.iwc-warranty-table td {
    border-bottom: solid #aaa 1px;
    border-left: solid #aaa 1px;
    border-right: solid #aaa 1px;
}

.iwc-position-image {
    max-width: 680px;
    height: auto;
    margin-top: 10px;
    border: 0px solid #eee;
}

@media screen and (min-width: 992px) {
    .iwc-warranty-table td {
        letter-spacing: 1px;
    }
}

@media screen and (max-width: 600px) {
    .iwc-warranty-table th {
        width: 95px;
        color: #333;
        border-bottom: solid #aaa 1px;
        border-left: solid #aaa 1px;
        padding-bottom: 0;
        vertical-align: middle;
        padding-top: 0;
    }

    .iwc-warranty-item {
        padding: 8px 8px 0 8px;
    }

    .iwc-warranty-table td {
        padding-top: 5px;
    }
}

/* 桌機版本 (991px 以上) */
@media screen and (min-width: 992px) {
    .implant-img-block {
        display: table-row;
    }

    .implant-img-th,
    .implant-img-td {
        display: table-cell;
    }

    .mobile-only {
        display: none !important;
    }
}

/* 手機版本 */
@media screen and (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .implant-img-mobile {
        margin-bottom: 10px;
        /* 移除上下邊距 */
        border: 1px solid #aaa;
        border-radius: 0;
        overflow: hidden;
        margin-top: -1px;
        /* 與上方表格連接 */
    }

    .implant-mobile-title {
        padding: 8px 8px;
        background-color: #eee;
        text-align: center;
        font-weight: bold;
        border-bottom: 1px solid #aaa;
        font-size: 1.2rem;
    }

    .implant-mobile-content {
        padding: 15px;
        text-align: center;
    }

    .implant-mobile-content img {
        max-width: 100%;
        height: auto;
    }
}


/* 回診記錄樣式 */
.iwc-usage-records {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
}

.usage-records-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
    color: #333;
}

.usage-records-description {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.usage-records-legend {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 5px;
    font-size: 14px;
}

.status-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    margin-right: 5px;
    border-radius: 3px;
}

.status-icon.checked {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#93cede+0,75bdd1+41,49a5bf+100;Blue+3D+%235 */
    background: linear-gradient(135deg, rgba(147, 206, 222, 1) 0%, rgba(117, 189, 209, 1) 41%, rgba(73, 165, 191, 1) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.status-icon.unchecked {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#f6e6b4+0,f4cd55+40,ed9017+100 */
    background: linear-gradient(135deg, rgba(246, 230, 180, 1) 0%, rgba(244, 205, 85, 1) 40%, rgba(237, 144, 23, 1) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.usage-records-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.usage-records-table th,
.usage-records-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    font-size: 14px;
}

.usage-records-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.record-status {
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    margin: 0 auto;
    border-radius: 3px;
}

.record-status.checked {
    background-color: #d6a32a;
}

.record-status.unchecked {
    background-color: #dc3232;
}

.note-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
}

.note-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background-color: #0073aa;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
}

.note-tooltip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 1;
    font-size: 12px;
    min-width: 150px;
}

.record-note {
    font-size: 12px;
    color: #666;
    word-break: break-word;
}

/* 響應式樣式 */
@media (max-width: 768px) {
    .usage-records-table {
        font-size: 12px;
    }

    .usage-records-table th,
    .usage-records-table td {
        padding: 5px;
    }

    .usage-records-legend {
        flex-direction: column;
    }

    .legend-item {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* 回診記錄格子布局 */
.usage-records-grid {
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    max-width: 400px;
    width: 100%;
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ffffff+0,e5e5e5+100;White+3D */
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(229, 229, 229, 1) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.usage-records-row {
    display: flex;
    gap: 0;
    justify-content: flex-start;
}

.usage-records-cell {
    width: 25%;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bababa;
}

.record-status {
    width: 30px;
    height: 30px;
    border: 1px solid #eee;
    border-radius: 50%;
    cursor: help;
}

.record-status.checked {
    background-color: rgba(0, 0, 0, 0);
    position: relative;
    border: 1px solid #333;
    position: relative;
}

.record-status.unchecked {
    background-color: rgba(0, 0, 0, 0);
    position: relative;
    border: 1px solid #333;
    position: relative;
}

.record-status.unchecked:before {
    position: absolute;
    content: "";
    display: inline-block;
    width: 70%;
    height: 70%;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border: 1px solid #333;
    z-index: 10;
    border-radius: 100%;
}

/* 響應式調整 */
@media (max-width: 576px) {
    .usage-records-cell {
        width: 35px;
        height: 35px;
    }

    .record-status {
        width: 25px;
        height: 25px;
    }
}

.font-blue-1 {
    color: #228cd7;
}