/*
 * User dashboard (patient profile area): one look for every table card and its pagination
 * (orders, latest orders, patients, doctor requests, vouchers). Loaded after the theme CSS.
 */

/* Card */
.patient-dashboard .doctors-appointment {
    background: #fff;
    border: 1px solid #e6eef2;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 78, 117, 0.05);
    overflow: hidden;
    padding: 0;
}
.patient-dashboard .doctors-appointment .title-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 24px;
    margin: 0;
    border-bottom: 1px solid #eef2f5;
}
.patient-dashboard .doctors-appointment .title-box::before,
.patient-dashboard .doctors-appointment .title-box::after { display: none; }
.patient-dashboard .doctors-appointment .title-box h3 { margin: 0; font-size: 20px; font-weight: 700; color: #004E75; line-height: 1.3; }
.patient-dashboard .doctors-appointment .title-box .pull-left,
.patient-dashboard .doctors-appointment .title-box .pull-right { float: none; }

/* Search in the card header */
.patient-dashboard .doctors-appointment .search-form { margin: 0; }
.patient-dashboard .doctors-appointment .search-form .form-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 280px;
    max-width: 100%;
    margin: 0;
    padding: 0 !important;
    background: none !important;
}
.patient-dashboard .doctors-appointment .search-form input {
    width: 100%;
    height: 44px;
    padding: 0 46px 0 18px;
    border: 1px solid #e5eded !important;
    border-radius: 30px;
    background: #fff !important;
    font-size: 15px;
    color: #1d2c3b;
    outline: none;
}
.patient-dashboard .doctors-appointment .search-form input:focus { border-color: #00A0A3 !important; box-shadow: 0 0 0 3px rgba(0, 160, 163, 0.12); }
.patient-dashboard .doctors-appointment .search-form button {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #00A0A3; color: #fff; cursor: pointer;
}
.patient-dashboard .doctors-appointment .search-form button:hover { background: #004E75; }

/* Table */
.patient-dashboard .doctors-appointment .table-outer,
.patient-dashboard .doctors-appointment .doctors-list { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.patient-dashboard .doctors-appointment .doctors-table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; margin: 0; }
.patient-dashboard .doctors-appointment .doctors-table .table-header { background: #f7fafb !important; }
.patient-dashboard .doctors-appointment .doctors-table .table-header th {
    padding: 14px 18px !important;
    background: #f7fafb !important;
    border-bottom: 1px solid #eef2f5;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #6c7a89 !important;
    text-align: left;
    white-space: nowrap;
}
.patient-dashboard .doctors-appointment .doctors-table tr { border: 0 !important; }
.patient-dashboard .doctors-appointment .doctors-table tbody td {
    padding: 16px 18px !important;
    border-bottom: 1px solid #eef2f5;
    font-size: 15px;
    color: #1d2c3b;
    vertical-align: middle;
}
.patient-dashboard .doctors-appointment .doctors-table tbody tr:last-child td { border-bottom: 0; }
.patient-dashboard .doctors-appointment .doctors-table tbody tr:hover td { background: #fbfdfd; }
.patient-dashboard .doctors-appointment .doctors-table th:first-child,
.patient-dashboard .doctors-appointment .doctors-table td:first-child { padding-left: 24px !important; }
.patient-dashboard .doctors-appointment .doctors-table th:last-child,
.patient-dashboard .doctors-appointment .doctors-table td:last-child { padding-right: 24px !important; }
.patient-dashboard .doctors-appointment .doctors-table tr td p { margin: 0; font-size: 15px; line-height: 1.45; }
.patient-dashboard .doctors-appointment .doctors-table tr td:first-child p { font-weight: 600; color: #004E75; }
.patient-dashboard .doctors-appointment .doctors-table tr td .time { display: block; font-size: 13px; color: #00A0A3; }
/* action pills (View / Support / Edit ...) stay on one line */
.patient-dashboard .doctors-appointment .doctors-table tr td:last-child { white-space: nowrap; }
.patient-dashboard .doctors-appointment .doctors-table tr td .view {
    display: inline-flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 12px; margin: 2px 4px 2px 0; border-radius: 20px;
    font-size: 13px; font-weight: 600; background: #e6f6f6; color: #00787a;
    transition: background 200ms ease, color 200ms ease;
}
.patient-dashboard .doctors-appointment .doctors-table tr td a:hover .view { background: #004E75; color: #fff; }
/* DataTables wrapper adds its own spacing; the card handles it */
.patient-dashboard .dataTables_wrapper { padding: 0; }
.patient-dashboard .dataTables_wrapper .dataTable { margin: 0 !important; }

/* Pagination: centred footer of the card */
.patient-dashboard .pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 0 !important;
    padding: 18px 24px !important;
    border-top: 1px solid #eef2f5;
}
.patient-dashboard .pagination-wrapper .pagination { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.patient-dashboard .pagination-wrapper .pagination li { margin: 0 !important; }
.patient-dashboard .pagination-wrapper .pagination li a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 10px;
    border: 1px solid #e5eded !important; border-radius: 30px !important;
    background: #fff !important; color: #004E75 !important;
    font-size: 14px; font-weight: 600; line-height: 1; box-shadow: none !important;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.patient-dashboard .pagination-wrapper .pagination li a:hover { background: #004E75 !important; border-color: #004E75 !important; color: #fff !important; }
.patient-dashboard .pagination-wrapper .pagination li a.current { background: #00A0A3 !important; border-color: #00A0A3 !important; color: #fff !important; }
.patient-dashboard .pagination-wrapper .pagination li a i { font-size: 13px; }

@media (max-width: 767px) {
    .patient-dashboard .doctors-appointment .title-box { padding: 16px; }
    .patient-dashboard .doctors-appointment .search-form,
    .patient-dashboard .doctors-appointment .search-form .form-group { width: 100%; }
    .patient-dashboard .doctors-appointment .title-box .btn-box { width: 100%; }
}

/* Cell content: theme wrappers add their own padding (name-box p-4, h5 px-3) */
.patient-dashboard .doctors-appointment .doctors-table td .name-box { padding: 0 !important; }
.patient-dashboard .doctors-appointment .doctors-table td .name-box h5,
.patient-dashboard .doctors-appointment .doctors-table td h5 { margin: 0; padding: 0 !important; font-size: 15px; font-weight: 700; color: #004E75; }
.patient-dashboard .doctors-appointment .doctors-table td .time { padding: 0 !important; margin: 2px 0 0; }
/* dates and status labels never break onto two lines */
.patient-dashboard .doctors-appointment .doctors-table td p { white-space: nowrap; }
.patient-dashboard .doctors-appointment .doctors-table td .status { white-space: nowrap; }
/* long names (collection point, patient) may wrap within a sensible width */
.patient-dashboard .doctors-appointment .doctors-table td:nth-child(5) p { white-space: normal; min-width: 160px; }
.patient-dashboard .doctors-appointment .doctors-table td p, .patient-dashboard .doctors-appointment .doctors-table td span.time { padding: 0 !important; text-align: left; }

/* Add-patient popup: scrolls inside, image previews kept small */
#addPatientsModal .modal-dialog-scrollable .modal-content { max-height: calc(100vh - 3.5rem); }
#addPatientsModal .modal-body { overflow-y: auto; }
#addPatientsModal .image-box img { max-height: 140px; width: auto; object-fit: contain; }
#addPatientsModal .image-box img:not([src]), #addPatientsModal .image-box img[src=""] { display: none; }

/* =========================================================================
   User dashboard popups (add / edit patient, patients list, change patient):
   one frame, header, close button, form fields and action footer.
   ========================================================================= */
.ud-shell .modal-backdrop.show { opacity: .45; }
.ud-shell .modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 40, 60, 0.25);
}
.ud-shell .modal .modal-dialog-scrollable .modal-content { max-height: calc(100vh - 3.5rem); }
.ud-shell .modal .modal-dialog:not(.modal-xl) { max-width: 560px; }

/* Header: title left, actions + round close right */
.ud-shell .modal .modal-header {
    align-items: center;
    padding: 16px 22px;
    background: #fff;
    border-bottom: 1px solid #eef2f5;
}
.ud-shell .modal .modal-header > div { gap: 10px; }
.ud-shell .modal .modal-header > div > div { display: flex; align-items: center; gap: 10px; }
.ud-shell .modal .modal-title { margin: 0; font-size: 19px; font-weight: 700; color: #004E75; line-height: 1.3; }
.ud-shell .modal .modal-header [data-dismiss="modal"] {
    flex: 0 0 36px;
    width: 36px; height: 36px;
    margin: 0 !important; padding: 0 !important;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #eef2f5 !important;
    color: #4a5a6a !important;
    font-size: 16px;
    line-height: 1;
    opacity: 1;
    text-shadow: none;
    transition: background 200ms ease, color 200ms ease;
}
.ud-shell .modal .modal-header [data-dismiss="modal"]:hover { background: #004E75 !important; color: #fff !important; }
.ud-shell .modal .modal-header [data-dismiss="modal"] i,
.ud-shell .modal .modal-header [data-dismiss="modal"] span { color: inherit !important; font-size: 16px; margin: 0 !important; background: none !important; padding: 0 !important; }
/* header action (e.g. "Add new patient") as a compact pill */
.ud-shell .modal .modal-header .theme-btn-one {
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 14px !important;
    border: 1px solid #00A0A3 !important; border-radius: 30px !important;
    background: #fff !important; color: #00A0A3 !important;
    font-size: 13px; font-weight: 600; line-height: 1; box-shadow: none !important;
}
.ud-shell .modal .modal-header .theme-btn-one::before { display: none; }
.ud-shell .modal .modal-header .theme-btn-one:hover { background: #00A0A3 !important; color: #fff !important; }
.ud-shell .modal .modal-header .theme-btn-one i { margin: 0 !important; color: inherit; font-size: 13px; }

/* Body */
.ud-shell .modal .modal-body { padding: 20px 22px; color: #1d2c3b; }
.ud-shell .modal .modal-body > form > .row,
.ud-shell .modal .modal-body > .row { margin-left: -10px; margin-right: -10px; }
.ud-shell .modal .modal-body .form-group { padding-left: 10px; padding-right: 10px; margin-bottom: 18px; }
.ud-shell .modal label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #004E75; }
.ud-shell .modal input[type="text"],
.ud-shell .modal input[type="email"],
.ud-shell .modal input[type="tel"],
.ud-shell .modal input[type="date"],
.ud-shell .modal input[type="number"],
.ud-shell .modal select:not(.select2-hidden-accessible) {
    width: 100%;
    height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid #e5eded !important;
    border-radius: 12px !important;
    background: #fff;
    font-size: 15px;
    color: #1d2c3b;
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.ud-shell .modal input:focus, .ud-shell .modal select:focus { border-color: #00A0A3 !important; box-shadow: 0 0 0 3px rgba(0, 160, 163, 0.12); }
.ud-shell .modal .iti { width: 100%; }
.ud-shell .modal .iti input[type="tel"] { padding-left: 90px !important; }
.ud-shell .modal .select2-container--default .select2-selection--single { height: 48px; border-radius: 12px; }
.ud-shell .modal .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 48px; }
.ud-shell .modal .select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; }
.ud-shell .modal #error-msg, .ud-shell .modal #edit-error-msg { display: block; margin-top: 6px; font-size: 13px; color: #dc3545; }
.ud-shell .modal #valid-msg, .ud-shell .modal #edit-valid-msg { display: block; margin-top: 6px; font-size: 13px; color: #1e8a4c; }
.ud-shell .modal .hide { display: none !important; }
.ud-shell .modal .image-box { margin: 0; }
.ud-shell .modal .image-box img { max-height: 140px; width: auto; border-radius: 10px; object-fit: contain; }
.ud-shell .modal .image-box img:not([src]), .ud-shell .modal .image-box img[src=""] { display: none; }

/* Patient picker rows */
.ud-shell .modal .plist-modal {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px !important;
    border: 1px solid #e6eef2 !important;
    border-radius: 12px !important;
    background: #fff;
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease;
}
.ud-shell .modal .plist-modal:hover { border-color: #bfe7e7 !important; background: #fbfdfd; }
.ud-shell .modal .plist-modal:has(input:checked) { border-color: #00A0A3 !important; background: #f2fbfb; box-shadow: 0 0 0 3px rgba(0, 160, 163, 0.1); }
.ud-shell .modal .plist-modal svg { width: 44px; height: 44px; }
.ud-shell .modal .plist-modal ul { margin: 0; padding: 0; list-style: none; }
.ud-shell .modal .plist-modal h5 { margin: 0; font-size: 15px; font-weight: 700; color: #1d2c3b; }
.ud-shell .modal .plist-modal p { margin: 0; font-size: 13px; color: #6c7a89; }
.ud-shell .modal .plist-modal input[type="checkbox"] { width: 20px; height: 20px; margin: 0 !important; accent-color: #00A0A3; cursor: pointer; }
.ud-shell .modal .modal-body > .row[style*="overflow"],
.ud-shell .modal #assign-patient-list, .ud-shell .modal #reassign-patient-list { max-height: 360px; overflow-y: auto !important; }

/* Footer / actions: right-aligned pill buttons */
.ud-shell .modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 !important;
    padding: 14px 22px 18px !important;
    border-top: 1px solid #eef2f5;
    background: #fff;
}
.ud-shell .modal .modal-body .modal-footer { margin: 8px -22px -20px !important; }
.ud-shell .modal .modal-footer > div { flex: 0 0 auto; width: auto; max-width: none; padding: 0; margin: 0 !important; display: flex; justify-content: flex-end; }
.ud-shell .modal .modal-footer .theme-btn-one,
.ud-shell .modal .modal-footer button[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 140px; height: 46px; padding: 0 26px !important;
    border: 0 !important; border-radius: 30px !important;
    background: #00A0A3 !important; color: #fff !important;
    font-size: 15px; font-weight: 600; line-height: 1;
    box-shadow: 0 8px 20px rgba(0, 160, 163, 0.2) !important;
}
.ud-shell .modal .modal-footer .theme-btn-one::before { display: none; }
.ud-shell .modal .modal-footer .theme-btn-one:hover,
.ud-shell .modal .modal-footer button[type="submit"]:hover { background: #004E75 !important; }
/* disabled until the selection is valid (pointer-events set by the page scripts) */
.ud-shell .modal .confirm-div:has(.confirm-btn[style*="none"]) .confirm-btn,
.ud-shell .modal .re-confirm-div:has(.re-confirm-btn[style*="none"]) .re-confirm-btn { opacity: .5; box-shadow: none !important; }

@media (max-width: 575px) {
    .ud-shell .modal .modal-dialog { margin: 10px; }
    .ud-shell .modal .modal-header, .ud-shell .modal .modal-body { padding-left: 16px; padding-right: 16px; }
    .ud-shell .modal .modal-header > div { flex-wrap: wrap; }
    .ud-shell .modal .modal-footer .theme-btn-one, .ud-shell .modal .modal-footer button[type="submit"] { width: 100%; }
    .ud-shell .modal .modal-footer > div { flex: 1 1 auto; }
}
/* theme positions form buttons absolutely (.message-btn); keep them in the footer's flow */
.ud-shell .modal .modal-footer .theme-btn-one,
.ud-shell .modal .modal-footer button[type="submit"] { position: static !important; top: auto !important; transform: none !important; }
.ud-shell .modal .modal-footer > div { position: static !important; }

/* Save / Submit lives in the popup header, next to the close button (no footer) */
.ud-shell .modal .ud-modal-action { display: inline-flex; margin: 0; padding: 0; }
.ud-shell .modal .modal-header .ud-modal-save {
    position: static !important;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px; min-width: 88px; padding: 0 18px !important;
    border: 0 !important; border-radius: 30px !important;
    background: #00A0A3 !important; color: #fff !important;
    font-size: 14px; font-weight: 600; line-height: 1;
    box-shadow: 0 6px 16px rgba(0, 160, 163, 0.22) !important;
    cursor: pointer;
}
.ud-shell .modal .modal-header .ud-modal-save::before { display: none; }
.ud-shell .modal .modal-header .ud-modal-save:hover { background: #004E75 !important; }
.ud-shell .modal .confirm-div:has(.confirm-btn[style*="none"]) .ud-modal-save,
.ud-shell .modal .re-confirm-div:has(.re-confirm-btn[style*="none"]) .ud-modal-save { opacity: .5; box-shadow: none !important; }
.ud-shell .modal .modal-body { padding-bottom: 22px; }
.ud-shell .modal .modal-dialog:not(.modal-xl) { max-width: 620px; }
.ud-shell .modal .modal-title,
.ud-shell .modal .modal-header .theme-btn-one,
.ud-shell .modal .modal-header .ud-modal-save { white-space: nowrap; }
.ud-shell .modal .modal-header > div > div { flex-wrap: nowrap; }
@media (max-width: 575px) {
    .ud-shell .modal .modal-header > div { flex-wrap: wrap; row-gap: 10px; }
    .ud-shell .modal .modal-header > div > div { margin-left: auto; }
}
/* header actions always sit together on the right, before the close button */
.ud-shell .modal .modal-header .ud-modal-action { margin-left: auto !important; }
.ud-shell .modal .modal-header > div > div .ud-modal-action { margin-left: 0 !important; }
.ud-shell .modal .modal-header .ud-modal-action + [data-dismiss="modal"] { margin-left: 10px !important; }

/* =========================================================================
   My profile page
   ========================================================================= */
.ud-profile-head { margin-bottom: 20px; }
.ud-profile-head h3 { margin: 0; font-size: 26px; font-weight: 700; color: #004E75; }
.ud-profile-head p { margin: 4px 0 0; font-size: 15px; color: #6c7a89; }
.ud-card {
    background: #fff;
    border: 1px solid #e6eef2;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 78, 117, 0.05);
    margin-bottom: 20px;
}
.ud-card-head { padding: 16px 24px; border-bottom: 1px solid #eef2f5; }
.ud-card-head h4, .ud-section-title {
    display: flex; align-items: center; gap: 10px;
    margin: 0; font-size: 18px; font-weight: 700; color: #004E75;
}
.ud-card-head h4 i, .ud-section-title i {
    width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #e6f6f6; color: #00A0A3; font-size: 14px;
}
.ud-section-title { margin: 8px 0 14px; padding-top: 18px; border-top: 1px solid #eef2f5; }
.ud-card-body { padding: 22px 24px 4px; }
.ud-card-body > .row { margin-left: -10px; margin-right: -10px; }
.ud-card-body .form-group { padding-left: 10px; padding-right: 10px; margin-bottom: 18px; }
.ud-card-foot {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 24px; border-top: 1px solid #eef2f5;
}
.ud-card-foot .theme-btn-one {
    position: static !important;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 150px; height: 46px; padding: 0 28px !important;
    border: 0 !important; border-radius: 30px !important;
    background: #00A0A3 !important; color: #fff !important;
    font-size: 15px; font-weight: 600; line-height: 1;
    box-shadow: 0 8px 20px rgba(0, 160, 163, 0.2) !important;
}
.ud-card-foot .theme-btn-one::before { display: none; }
.ud-card-foot .theme-btn-one:hover { background: #004E75 !important; }

/* Fields */
.ud-profile label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #004E75; text-transform: none; }
.ud-profile input[type="text"],
.ud-profile input[type="email"],
.ud-profile input[type="tel"],
.ud-profile input[type="date"],
.ud-profile select:not(.select2-hidden-accessible) {
    width: 100%;
    height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid #e5eded !important;
    border-radius: 12px !important;
    background: #fff !important;
    font-size: 15px;
    color: #1d2c3b;
    outline: none;
}
.ud-profile input:focus, .ud-profile select:focus { border-color: #00A0A3 !important; box-shadow: 0 0 0 3px rgba(0, 160, 163, 0.12); }
.ud-profile input:disabled { background: #f7fafb !important; color: #6c7a89; cursor: not-allowed; }
.ud-profile .iti { width: 100%; }
.ud-profile .iti input[type="tel"] { padding-left: 90px !important; }
.ud-profile .select2-container--default .select2-selection--single { height: 48px; border-radius: 12px; background: #fff; }
.ud-profile .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 48px; }
.ud-profile .select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; }
.ud-profile .select2-container--disabled .select2-selection--single { background: #f7fafb; }
.ud-profile #error-msg { display: block; margin-top: 6px; font-size: 13px; color: #dc3545; }
.ud-profile #valid-msg { display: block; margin-top: 6px; font-size: 13px; color: #1e8a4c; }
.ud-profile .hide { display: none !important; }

/* Profile photo card */
.ud-profile-photo { padding: 20px 24px; }
.ud-profile-photo .profile-title { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; border: 0; }
.ud-profile-photo .profile-title::before, .ud-profile-photo .profile-title::after { display: none; }
.ud-profile-photo .image-box {
    flex: 0 0 96px; width: 96px; height: 96px; margin: 0;
    border-radius: 50%; overflow: hidden; border: 3px solid #e6f6f6; box-shadow: 0 6px 16px rgba(0, 78, 117, 0.1);
}
.ud-profile-photo .image-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ud-profile-photo .upload-photo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0; }
.ud-profile-photo .upload-photo a {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 18px; border-radius: 30px;
    border: 1px solid #00A0A3; background: #fff; color: #00A0A3; font-size: 14px; font-weight: 600;
    transition: background 200ms ease, color 200ms ease;
}
.ud-profile-photo .upload-photo a:hover { background: #00A0A3; color: #fff; }
.ud-profile-photo .upload-photo a i { position: static; margin: 0; font-size: 14px; }
.ud-profile-photo .upload-photo span { font-size: 13px; color: #6c7a89; }

/* Identity documents */
.ud-doc { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid #eef2f5; border-radius: 14px; background: #f7fafb; height: 100%; }
.ud-doc label { margin: 0; }
.ud-doc .ud-doc-preview {
    margin: 0; height: 180px; border-radius: 12px; overflow: hidden; background: #fff;
    border: 1px dashed #cfdbe0; display: flex; align-items: center; justify-content: center;
}
.ud-doc .ud-doc-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (max-width: 767px) {
    .ud-card-body, .ud-card-head, .ud-card-foot, .ud-profile-photo { padding-left: 16px; padding-right: 16px; }
    .ud-card-foot .theme-btn-one { width: 100%; }
    .ud-profile-photo .profile-title { align-items: flex-start; }
}

/* =========================================================================
   Order details (completed / uncompleted)
   ========================================================================= */
.od-card { overflow: hidden; }
.od-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.od-code { margin-left: 4px; padding: 3px 10px; border-radius: 20px; background: #eef2f5; color: #4a5a6a; font-size: 13px; font-weight: 600; }
.od-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 30px; font-size: 14px; font-weight: 600; }
.od-status.is-ok { background: #e3f7ec; color: #1e8a4c; }
.od-status.is-warn { background: #fdecec; color: #c82333; }
.od-card-body { padding-bottom: 22px; }
.od-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.od-tile { padding: 12px 14px; border-radius: 12px; background: #f7fafb; border: 1px solid #eef2f5; min-width: 0; }
.od-tile span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: #8a97a6; }
.od-tile strong { display: block; font-size: 15px; font-weight: 600; color: #1d2c3b; overflow-wrap: anywhere; }
.od-tile strong em { font-style: normal; color: #00A0A3; margin-left: 4px; }
.od-tile-wide { grid-column: span 2; }
.od-lines { list-style: none; margin: 0; padding: 0; }
.od-lines li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid #eef2f5; }
.od-lines li:last-child { border-bottom: 0; }
.od-line-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; font-weight: 600; color: #1d2c3b; }
.od-line-name i { flex: 0 0 18px; color: #00A0A3; }
.od-line-name em { font-style: normal; font-weight: 500; color: #6c7a89; margin-left: 4px; }
.od-line-price { flex: 0 0 auto; font-size: 15px; font-weight: 600; color: #004E75; white-space: nowrap; }
.od-line-muted .od-line-name, .od-line-muted .od-line-price { font-weight: 500; color: #6c7a89; }

.od-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.od-action {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid #e6eef2;
    box-shadow: 0 10px 30px rgba(0, 78, 117, 0.05); color: inherit;
    transition: border-color 200ms ease, transform 200ms ease;
}
a.od-action:hover { border-color: #00A0A3; transform: translateY(-2px); }
.od-action-icon { flex: 0 0 44px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #e6f6f6; color: #00A0A3; font-size: 18px; }
.od-action-text { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.35; }
.od-action-text strong { font-size: 16px; color: #004E75; }
.od-action-text small { font-size: 13px; color: #6c7a89; }
.od-action-arrow { color: #00A0A3; }
.od-action.is-disabled { opacity: .6; cursor: not-allowed; }

.od-patients { list-style: none; margin: 0; padding: 0; }
.od-patients li { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-bottom: 1px solid #eef2f5; flex-wrap: wrap; }
.od-patients li:last-child { border-bottom: 0; }
.od-avatar { flex: 0 0 42px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #004E75; color: #fff; font-weight: 700; text-transform: uppercase; }
.od-patient-name { flex: 1 1 auto; min-width: 140px; font-size: 15px; font-weight: 700; color: #1d2c3b; }
.od-pill { padding: 5px 12px; border-radius: 20px; background: #fff4e0; color: #b26a00; font-size: 12px; font-weight: 600; text-transform: capitalize; white-space: nowrap; }
.od-report {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 30px;
    background: #00A0A3; color: #fff !important; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background 200ms ease;
}
a.od-report:hover { background: #004E75; }
.od-report.is-disabled { background: #eef2f5; color: #8a97a6 !important; cursor: not-allowed; }

.od-timeline { list-style: none; margin: 0; padding: 18px 24px 8px; }
.od-timeline li { position: relative; display: flex; gap: 16px; padding-bottom: 18px; }
.od-timeline li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: #e6eef2; }
.od-timeline li:last-child::before { display: none; }
.od-timeline-dot { position: relative; z-index: 1; flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: #fff; border: 4px solid #00A0A3; }
.od-timeline-body { flex: 1 1 auto; min-width: 0; }
.od-timeline-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: #6c7a89; }
.od-timeline-step { padding: 2px 10px; border-radius: 20px; background: #e6f6f6; color: #00787a; font-weight: 600; }
.od-timeline-body h5 { margin: 6px 0 2px; font-size: 16px; font-weight: 700; color: #1d2c3b; }
.od-timeline-body p { margin: 0; font-size: 14px; color: #4a5a6a; }

@media (max-width: 767px) {
    .od-lines li, .od-patients li { padding-left: 16px; padding-right: 16px; }
    .od-tile-wide { grid-column: 1 / -1; }
    .od-timeline { padding-left: 16px; padding-right: 16px; }
}

/* Profile header action + change password popup */
.ud-profile-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ud-btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 18px; border: 1px solid #00A0A3; border-radius: 30px;
    background: #fff; color: #00A0A3; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
}
.ud-btn-outline:hover { background: #00A0A3; color: #fff; }
.ud-shell .modal input[type="password"] {
    width: 100%; height: 48px !important; padding: 0 14px !important;
    border: 1px solid #e5eded !important; border-radius: 12px !important;
    background: #fff; font-size: 15px; color: #1d2c3b; outline: none;
}
.ud-shell .modal input.is-invalid { border-color: #dc3545 !important; box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1); }
.ud-field-error { margin-top: 6px; font-size: 13px; color: #dc3545; }
.ud-field-error:empty { display: none; }
.ud-field-hint { margin-top: 6px; font-size: 12px; color: #8a97a6; }
#changePasswordModal .modal-dialog { max-width: 480px; }
/* Header action wrapper must hug its button; the close button keeps its space at the right edge */
.ud-shell .modal .modal-header .ud-modal-action { flex: 0 0 auto !important; width: auto !important; max-width: none; }
.ud-shell .modal .modal-header .ud-modal-action + [data-dismiss="modal"] { margin-left: 0 !important; }
.ud-shell .modal .modal-header > div { min-width: 0; }
.ud-shell .modal .modal-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ud-shell .modal .modal-header .ud-modal-save { margin: 0 !important; }
.ud-shell .modal .modal-title { overflow: visible; text-overflow: clip; }

/* Complete profile (standalone page) */
.ud-complete { padding: 40px 0 80px; background: #f3f3f9; }
.ud-complete .ud-profile { max-width: 1100px; margin: 0 auto; }
.ud-complete-intro { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.ud-complete-step {
    flex: 0 0 52px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    border-radius: 14px; background: linear-gradient(135deg, #004E75 0%, #00A0A3 100%); color: #fff; font-size: 20px;
}
.ud-complete-intro h3 { margin: 0; font-size: 24px; font-weight: 700; color: #004E75; }
.ud-complete-intro p { margin: 2px 0 0; font-size: 15px; color: #6c7a89; }
.ud-complete .ud-card-foot .theme-btn-one { gap: 6px; }
.ud-complete .ud-card-foot .theme-btn-one i { margin: 0 0 0 6px !important; font-size: 13px; }
.ud-complete .ud-doc-preview { position: relative; }
.ud-complete .ud-doc-preview img { display: none; }
.ud-complete .ud-doc-preview.has-file img { display: block; }
.ud-complete .ud-doc-preview.has-file .ud-doc-empty { display: none; }
.ud-doc-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: #8a97a6; }
.ud-doc-empty i { font-size: 28px; color: #bcd0d6; }
.ud-complete .default-form .form-group input:not([type="file"]):not([type="hidden"]) { margin: 0; }
