/**
 * CLICKaligners View Order CRM Case & 3D Viewer
 * Package: CLICKALIGNERS Astra Child Theme
 */

/* Перемещаем Uploads Summary ниже Order Details */
.woocommerce-page table.shop_table.woocommerce-checkout-review-order-table {
    order: 2;
}

.woocommerce-page .wcuf-uploads-summary {
    order: 3;
}

.woocommerce-checkout.woocommerce-order-received .woocommerce-order ul.woocommerce-order-overview li strong {
    color: black;
}

.ast-site-header-cart a.cart-container * {
    transition: all 0.5s ease-in-out;
}

.ast-site-header-cart .ast-addon-cart-wrap i.astra-icon::after,
.ast-theme-transparent-header .ast-site-header-cart .ast-addon-cart-wrap i.astra-icon::after {
    color: var(--ast-global-color-0);
    transition: all 0.5s ease-in-out !important;
}

.account-icon:hover path:first-child {
    fill: #2C6AF4 !important;
    transition: fill 0.5s ease-in-out;
}

.account-icon path:first-child {
    transition: fill 0.5s ease-in-out;
}

#astra-mobile-cart-drawer {
    box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.4);
}


#wcuf_summary_uploaded_files,
.wcuf-uploads-summary,
h2.wcuf_upload_summary_title,
.wcuf_summary_file_list_block {
    display: none !important;
}

.wcuf_upload_fields_row_element {
    width: 100% !important;
}

.woocommerce-order-details__title {
    padding-top: 20px;
}

.woocommerce-orders-table th,
td {
    text-align: center;
}

@media screen and (max-width:435px) {
    p.wooccm-field.wooccm-type-radio {
        width: 100% !important;
    }
}

p#patient_name_field {
    padding: 0;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    transition: all 1s ease-in-out;
}

.modal-content {
    background-color: #fff;
    width: 30vw;
    padding: 25px 20px 25px 20px;
    position: relative;
    flex-direction: column;
    display: flex;
    align-items: center;
    height: fit-content;
    align-self: center;
}

#user-review-field {
    resize: none;
}

.DG_form {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all .5s;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Стили для анимации модального окна */
.modal.show {

    animation: fadeIn 2s ease-in-out;
    transition: all 1s ease-in-out;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal.out {
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .modal-content {
        width: 90%;
        /* Ширина для мобильных 90% */
    }
}

#modal_btn {
    width: 100%;
}


.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions {
    width: 100%;
    display: flex !important;
    justify-content: center;
    border-bottom: 1px solid black !important;
}

.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions:last-child {
    border-bottom: 0px !important;
}

.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions a {
    width: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions:before {
    display: none !important;
}

.elementor-field-group.elementor-column.elementor-col-100 {
    text-align: center;
}


body.woocommerce-account ul li.woocommerce-MyAccount-navigation-link--create-new-order a .ahfb-svg-iconset svg path {

    d: path('M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z');
}


/* CRM Case Header & Plan Side-by-Side Styles */
.case-top-layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.case-header-column {
    flex: 1.2;
    min-width: 320px;
    display: flex;
    flex-direction: column;
}

.case-plan-column {
    flex: 0.8;
    min-width: 320px;
    display: flex;
    flex-direction: column;
}

/* Override existing plan styles when displayed inside the right-hand column */
.case-plan-column table.woocommerce-table.noborder {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    padding: 24px;
    margin: 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    height: 100%;
}

.case-plan-column table.woocommerce-table.noborder thead {
    display: block;
    margin-bottom: 15px;
}

.case-plan-column table.woocommerce-table.noborder thead tr.woo_table_thead {
    background: none;
    border: none;
}

.case-plan-column table.woocommerce-table.noborder thead tr.woo_table_thead th {
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    text-align: left;
}

.case-plan-column table.woocommerce-table.noborder tbody,
.case-plan-column table.woocommerce-table.noborder tr,
.case-plan-column table.woocommerce-table.noborder td,
.case-plan-column table.woocommerce-table.noborder th#plan_wrapper {
    display: block;
    width: 100%;
    padding: 0;
}

.case-plan-column #plan_wrapper {
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px;
    display: flex !important;
}

.case-plan-column .plan_row {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.case-plan-column .plan_row .prev {
    width: 100% !important;
    margin-bottom: 15px;
}

.case-plan-column .plan_row .abtn.button {
    width: 100% !important;
    box-sizing: border-box;
    text-align: center;
    margin: 5px 0 !important;
}

.case-plan-column div#box_btn {
    width: 100% !important;
    order: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
    margin-top: 15px;
}

.case-plan-column div#box_btn button {
    width: 100% !important;
    margin: 0 !important;
}

/* Status Tracker Stepper */
.status-stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 30px;
    gap: 10px;
}

.stepper-item {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Stepper Line connecting nodes */
.stepper-item:not(:first-child) .stepper-line {
    position: absolute;
    top: 15px;
    left: -50%;
    right: 50%;
    height: 3px;
    background: #edf2f7;
    z-index: 1;
    transition: background 0.3s ease;
}

/* Color transitions for connecting lines */
.stepper-item.step-completed .stepper-line,
.stepper-item.step-active .stepper-line {
    background: var(--ast-global-color-0);
    /* active blue */
}

.stepper-item.step-rejected .stepper-line {
    background: #ef4444;
    /* red for reject */
}

/* Stepper Node */
.stepper-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #718096;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Style variants for nodes */
.step-completed .stepper-node {
    background: var(--ast-global-color-0);
    border-color: var(--ast-global-color-0);
    color: #ffffff;
}

.step-active .stepper-node {
    background: #ffffff;
    border-color: var(--ast-global-color-0);
    color: var(--ast-global-color-0);
    box-shadow: 0 0 0 4px rgba(33, 161, 218, 0.15);
    transform: scale(1.1);
}

.step-rejected .stepper-node {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

/* Stepper Content labels */
.stepper-content {
    margin-top: 12px;
    padding: 0 8px;
}

.stepper-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
}

.step-active .stepper-label {
    color: var(--ast-global-color-0);
}

.step-rejected .stepper-label {
    color: #ef4444;
}

.stepper-desc {
    font-size: 11px;
    color: #718096;
    line-height: 1.3;
}

/* Status Badge inside header */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.status-in-development {
    background: #dbeafe;
    color: var(--ast-global-color-0);
}

.status-badge.status-reject {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.status-on-hold {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-prod-aligners {
    background: #dcfce7;
    color: #166534;
}

.status-badge.status-dilivery {
    background: #f0fdf4;
    color: #15803d;
}

.status-badge.status-waiting-aligners {
    background: #f3e8ff;
    color: #6b21a8;
}

.status-badge.status-completed {
    background: #f0fdf4;
    color: #166534;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .status-stepper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-left: 15px;
    }

    .stepper-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
        width: 100%;
    }

    .stepper-item:not(:first-child) .stepper-line {
        left: 15px;
        top: -20px;
        bottom: 20px;
        width: 3px;
        height: auto;
    }

    .stepper-content {
        margin-top: 0;
        margin-left: 15px;
    }
}

/* Inner sub-tabs inside CRM case panels */
.inner-tabs-wrapper {
    margin-top: 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.inner-tabs-nav {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 20px 0 20px;
    gap: 8px;
    flex-wrap: wrap;
}

.inner-tab-trigger {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    font-size: 14.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px 6px 0 0;
}

.inner-tab-trigger:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.inner-tab-trigger.active {
    color: var(--ast-global-color-0);
    border-bottom-color: var(--ast-global-color-0);
    background: #ffffff;
}

.inner-tabs-content {
    padding: 24px;
}

.inner-tab-panel {
    display: none;
}

.inner-tab-panel.active {
    display: block;
    animation: fadeInTab 0.3s ease-in-out;
}

div.inner-tab-panel.active:has(.flex-stl-cards-grid) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.flex-stl-cards-grid {
    align-self: center;
}

.flex-photo-img-wrapper img.flex-photo-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media screen and (max-width:768px) {
    div.inner-tab-panel.active:has(.flex-stl-cards-grid) {
        grid-template-columns: 1fr;
        gap: 0px;
    }
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide default unstyled WCUF list in WooCommerce view order page */
.case-tabs-container .wcuf_order_details_ajax_container {
    display: none !important;
}

/* Clinical Parameters Grid */
.clinical-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.clinical-info-card {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.clinical-info-card-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14.5px;
    font-weight: 700;
    color: #1a202c;
    border-bottom: 1px dashed #cbd5e0;
    padding-bottom: 8px;
}

.clinical-info-table {
    width: 100%;
    margin-bottom: 0;
}

.clinical-info-table tr td {
    padding: 8px 0;
    font-size: 13.5px;
    border-bottom: 1px solid #edf2f7;
    color: #2d3748;
}

.clinical-info-table tr:last-child td {
    border-bottom: none;
}

.clinical-info-table tr td:first-child {
    font-weight: 600;
    color: #718096;
    width: 45%;
}

.clinical-info-table tr td:last-child {
    text-align: right;
}

.wccm-highlight-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 11.5px;
    padding: 3px 8px;
    border-radius: 4px;
}

.clinical-ct-link-box a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.clinical-ct-link-box a:hover {
    background: #d1fae5;
}

/* Photos Tab styling */
.flex-photos-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.flex-photo-thumbnails-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.flex-photo-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.flex-photo-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.flex-photo-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: #f8fafc;
}

.flex-photo-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flex-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.flex-photo-img-wrapper:hover .flex-photo-overlay {
    opacity: 1;
}

.flex-photo-zoom-btn {
    background: #ffffff;
    color: #0f172a;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.flex-photo-zoom-btn:hover {
    transform: scale(1.1);
    color: var(--ast-global-color-0);
}

.flex-photo-metadata {
    padding: 8px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.flex-photo-filename-label {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* STL Cards styling */
.flex-stl-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.flex-stl-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.flex-stl-card-badge {
    background: #3182ce;
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.flex-stl-card-content {
    flex: 1;
    min-width: 0;
}

.flex-stl-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
}

.flex-stl-card-filename {
    font-size: 11.5px;
    color: #718096;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.flex-stl-download-button {
    background: #ffffff;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.flex-stl-download-button:hover {
    background: #edf2f7;
    color: #2b6cb0;
    border-color: #a0aec0;
}

/* Custom button styles */
.custom-open-3d-btn:hover {
    background: #2b6cb0 !important;
}

/* Styling for our custom 3D viewer container and native relocated container (shown in Scans tab) */
.wcuf-order-3d-container,
.wcuf-order-3d-container-custom {
    background: #f0f9ff !important;
    border: 1px dashed #bee3f8 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    text-align: center !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    margin-top: 25px !important;
    margin-bottom: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.wcuf-order-3d-container h3,
.wcuf-order-3d-container-custom h4 {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #2b6cb0 !important;
    font-family: inherit !important;
}

.wcuf-order-3d-container p,
.wcuf-order-3d-container-custom p {
    font-size: 13.5px !important;
    color: #4a5568 !important;
    margin-bottom: 18px !important;
    font-family: inherit !important;
}

.wcuf-order-3d-container .wcuf-3d-preview,
.wcuf-order-3d-container-custom .wcuf-3d-preview {
    margin: 0 auto 18px auto !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    max-width: 300px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
}

.wcuf-order-3d-container .wcuf-order-3d-viewer-btn,
.wcuf-order-3d-container-custom .wcuf-order-3d-viewer-btn {
    background: #3182ce !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: background 0.2s, transform 0.1s !important;
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.2) !important;
    margin: 0 auto !important;
    font-family: inherit !important;
    min-height: unset !important;
    transform: none !important;
    text-decoration: none !important;
}

.wcuf-order-3d-container .wcuf-order-3d-viewer-btn:hover,
.wcuf-order-3d-container-custom .wcuf-order-3d-viewer-btn:hover {
    background: #2b6cb0 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(49, 130, 206, 0.3) !important;
}

.wcuf-order-3d-container .wcuf-order-3d-viewer-btn:active,
.wcuf-order-3d-container-custom .wcuf-order-3d-viewer-btn:active {
    transform: translateY(0) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   CLICKALIGNERS DESIGN SYSTEM (Screenshots 1, 2, 3)
   ═══════════════════════════════════════════════════════════════════ */


/* ── View Order Page (Screenshots 2 & 3) ── */
.click-view-order-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.click-view-order-top-nav {
    margin-bottom: 4px;
}

.click-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #f1f5f9;
    color: #334155 !important;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.click-btn-back:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

/* Patient Header Card */
.click-patient-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.click-patient-banner {
    height: 100px;
    filter: opacity(0.5);
    background: url('https://click.nextaligners.ru/wp-content/uploads/2026/09/case_BG_orig.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.click-patient-banner-shape {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 70%);
}

.click-patient-card-body {
    padding: 0 28px 24px 28px;
    position: relative;
}

.click-patient-avatar-container {
    position: relative;
    margin-top: -65px;
    margin-bottom: 14px;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    cursor: pointer;
}

.click-patient-avatar-link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    text-decoration: none !important;
}

.click-patient-avatar-img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 50% !important;
    transition: transform 0.25s ease;
}

.click-patient-avatar-container:hover .click-patient-avatar-img {
    transform: scale(1.06);
}

.click-patient-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f1f5f9;
}

.click-patient-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.click-patient-info-col {
    flex: 1;
    min-width: 280px;
}

.click-patient-name {
    font-family: 'Manrope', sans-serif !important;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
}

.click-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.click-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 600;
}

.click-meta-badge.doctor {
    color: #334155;
}

.click-patient-fields-grid {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.click-patient-field-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.click-field-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.click-field-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.click-field-value a {
    color: var(--ast-global-color-0) !important;
    text-decoration: none !important;
}

.click-field-value a:hover {
    text-decoration: underline !important;
}

/* Action buttons stack */
.click-patient-actions-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 175px;
}

.click-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none !important;
}

.click-btn-action--primary {
    background: #2a2e39;
    color: #ffffff !important;
}

.click-btn-action--primary:hover {
    background: #1e2229;
}

.click-btn-action--secondary {
    background: #f1f5f9;
    color: #334155 !important;
    border: 1px solid #e2e8f0;
}

.click-btn-action--secondary:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

/* Note Section */
.click-patient-note-section {
    padding-top: 18px;
    border-top: 1px solid #edf2f7;
    margin-top: 8px;
}

.click-note-title {
    font-family: 'Manrope', sans-serif !important;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.click-note-text {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.click-link-blue {
    color: var(--ast-global-color-0) !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
}

.click-link-blue:hover {
    text-decoration: underline !important;
}

/* 3D Plan & Stage Cards (Screenshot 3) */
.click-cards-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.click-section-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.click-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.click-section-title {
    font-family: 'Manrope', sans-serif !important;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.click-section-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.click-btn-subtle {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.click-btn-subtle:hover {
    background: #f1f5f9;
}

.click-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.click-icon-btn:hover {
    background: #f1f5f9;
}

.click-white-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
}

.click-white-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.click-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.click-card-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.click-card-icon-wrap.stage {
    background: #e0f2fe;
    color: #0284c7;
}

.click-card-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.click-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.click-card-date {
    font-size: 13.5px;
    color: #64748b;
    font-weight: 500;
}

.click-card-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.click-card-chevron {
    font-size: 18px;
    color: #94a3b8;
    font-weight: bold;
}

/* Segmented Tabs (Screenshot 3) */
.click-segmented-tabs-wrapper {
    margin-top: 24px;
}

.click-segmented-tabs {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.click-segmented-tab {
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 1px solid #e2e8f0;
}

.click-segmented-tab:first-child {
    border-left: none;
}

.click-segmented-tab.active {
    background: #2a2e39;
    color: #ffffff;
}

/* Underline Subtabs (Screenshot 3) */
.click-underline-tabs-wrapper {
    margin-top: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.click-underline-tabs-nav {
    display: flex;
    gap: 28px;
    overflow-x: auto;
}

.click-underline-tab-trigger {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 4px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none !important;
}

.click-underline-tab-trigger:hover {
    color: #0f172a;
}

.click-underline-tab-trigger.active {
    color: #0f172a;
    border-bottom-color: var(--ast-global-color-0);
    font-weight: 700;
}

.click-photos-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 16px 0;
}

.click-photos-section-title {
    font-family: 'Manrope', sans-serif !important;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* ── 3D Viewer Light Theme Styles (Screenshot 1) ── */
.wcuf-3d-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcuf-3d-modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 95vw;
    height: 90vh;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

.wcuf-3d-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid #edf2f7;
    background: #ffffff;
}

.wcuf-3d-modal-header .project-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.wcuf-3d-close-btn {
    background: #f1f5f9;
    border: none;
    font-size: 22px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s;
}

.wcuf-3d-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}