/* Desktop */
.presentationBtn {
    display: inline-block;
    /* or your normal display */
}

.profile-shell {
    width: 100%;

}

/* presentation mode style */
/* ===== Imaging Review / X-ray comparison page ===== */
.xray-compare-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 0px);
    background: #fff;
    border: 1px solid #ccc;
}

.xray-compare-topbar {
    padding: 6px 12px;
    background: #e9e9e9;
    border-bottom: 1px solid #ccc;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.xray-compare-layout {
    flex: 1;
    display: flex;
    min-height: 0;
}

/* ===========================
   PRESENTATION TOOLBAR
=========================== */

.xray-compare-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Toolbar */
.xray-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* White group container */

.tb-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===========================
   BUTTONS
=========================== */

.tb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    height: 26px;
    background: #f7f7f7;
    color: #333;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: all .15s ease;
}

.tb-btn:hover {
    background: #ececec;
}

.tb-btn i {
    font-size: 14px;
}

.tb-btn span {
    font-size: 13px;
    line-height: 1;
}

/* Save button */

.tb-save {
    min-width: 110px;

    background: #34c759;
    color: #fff;
    border-color: #34c759;
}

.tb-save:hover {
    background: #2fb451;
}

.tb-save i {
    color: #fff;
}

/* Fullscreen button */

.icon-btn {
    width: 34px;
    min-width: 34px;
    padding: 0;
}

.icon-btn i {
    margin: 0;
    font-size: 15px;
}

/* ===========================
   COLOR BUTTONS
=========================== */

.tb-colors {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tb-color {
    width: 18px;
    height: 18px;

    border: none;
    border-radius: 50%;

    padding: 0;
    cursor: pointer;

    transition: .15s;
}

.tb-color:hover {
    transform: scale(1.08);
}

.tb-color.active {
    outline: 2px solid #0a84ff;
    outline-offset: 2px;
}

/* ===========================
   ACTIVE BUTTON
=========================== */

.tb-btn.active {
    background: #34c759;
    color: #fff;
    border-color: #34c759;
}

.tb-btn.active i {
    color: #fff;
}

.tb-btn:focus {
    outline: none;
}

.tb-btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(10, 132, 255, .25);
}

/* ---------------- Active ---------------- */

.tb-btn.active {
    background: #34c759;
    color: #fff;
    border-color: #34c759;
}

.tb-btn.active i {
    color: #fff;
}

.tb-btn:focus {
    outline: none;
}

/* Panels need relative positioning to host the canvas overlay */
.draw-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    touch-action: none;
}

.draw-canvas.drawable {
    pointer-events: auto;
    cursor: crosshair;
}

/* ---- Sidebars ---- */
.xray-sidebar {
    width: 160px;
    flex: 0 0 160px;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid #ccc;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
}

.xray-sidebar-right {
    border-right: none;
    border-left: 1px solid #ccc;
}

/* Sidebar title */
.xray-sidebar-label {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-align: center;
    margin: 8px 0 6px;
}


/* Thumbnail container */
.thumb-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-right: 4px;
}


/* Larger thumbnails */
.thumb-item {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border: 2px solid #bbb;
    border-radius: 6px;
    background: #f7f7f7;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumb-list::-webkit-scrollbar {
    width: 6px;
}

.thumb-list::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 10px;
}

.thumb-list::-webkit-scrollbar-track {
    background: #eee;
}

/* ---- Middle comparison panels ---- */
.xray-compare-panel {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #ccc;
    background: #fafafa;
    overflow: hidden;
}

.xray-compare-panel:last-of-type {
    border-right: none;
}

.panel-placeholder {
    color: #999;
    font-size: 14px;
}

.compare-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* -------------------------------
   Fullscreen image viewer
--------------------------------*/
.image-fullscreen-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 10px;
}

.image-fullscreen-overlay.active {
    display: flex;
}

.image-fullscreen-overlay img {
    width: auto;
    height: 98vh;
    /* Fill almost the entire screen height */
    max-width: 98vw;
    max-height: 98vh;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* patient notes section */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.note-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-left: 3px solid #d0d5db;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    transition: box-shadow 0.15s ease;
}

.note-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.note-card--pinned {
    border-left-color: #e53e3e;
    background: #fffdfa;
}

.note-card--inactive {
    background: #f5c5c7;
    border: 1px solid #d1d5db;
    opacity: 0.9;
}

.table-inactive {
    background-color: #f5c5c7;
}

.table-inactive th,
.table-inactive td {
    background-color: #f5c5c7 !important;
}

.note-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.note-type-pill {
    display: inline-block;
    background: #eef1f4;
    color: #495057;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

.note-pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #e53e3e;
}

.note-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e2937;
    margin: 0 0 0.15rem;
}

.note-card-owner {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #5AB432;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.note-card-text {
    color: #495057;
    font-size: 0.87rem;
    line-height: 1.4;
    margin: 0 0 0.5rem;
}

.note-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px dashed #e9ecef;
}

.note-card-actions {
    display: flex;
    gap: 0.35rem;
}

.note-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #f8f9fa;
    border: 1px solid #e2e5e9;
    color: #495057;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

/* Danger button - keep AFTER .note-btn */
.note-btn--danger {
    background: #dc3545 !important;
    border: 1px solid #dc3545 !important;
    color: #fff !important;
}

.note-btn--danger:hover {
    background: #bb2d3b !important;
    border-color: #bb2d3b !important;
}

.note-btn--primary {
    background: #1e2937;
    border-color: #1e2937;
    color: #fff;
}

.note-btn--primary:hover {
    background: #14202c;
}


.note-card-date {
    color: #adb5bd;
    font-size: 0.75rem;
}

.xray-sidebar .accordion-button {
    padding: 6px 10px !important;
    min-height: 25px;
    font-size: 13px;
}

.xray-sidebar .accordion-button::after {
    width: 12px;
    height: 12px;
    background-size: 12px;
}

.xray-sidebar .accordion-body {
    padding: 6px;
}

/* Fixed, consistent column widths across every clinic's table so
       they line up regardless of how much content is in a given row. */
.xray-table {
    table-layout: fixed;
    width: 100%;
}

.xray-table th,
.xray-table td {
    padding: 3px 6px;
    overflow-wrap: break-word;
}

.xray-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fff;
}

.xray-table .col-date {
    width: 12%;
}

.xray-table .col-first {
    width: 13%;
}

.xray-table .col-last {
    width: 13%;
}

.xray-table .col-birth {
    width: 12%;
}

.xray-table .col-patientid {
    width: 15%;
}

.xray-table .col-status {
    width: 25%;
}

.xray-table .col-action {
    width: 10%;
}

.xray-table th[data-sortable="true"] {
    cursor: pointer;
    user-select: none;
}

.xray-table th .sort-icon {
    font-size: 0.75em;
    opacity: 0.6;
}

.accordion-button {
    padding: 9px 12px !important;
}

.accordion-button .badge {
    font-weight: 600;
}

.xray-no-match {
    display: none;
    padding: 12px 16px;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 576px) {
    .presentationBtn {
        display: none !important;
    }
}