/* Qare Watch - Tabler Companion Styles */
:root {
    --tblr-primary: #0054a6;
    --tblr-primary-rgb: 0, 84, 166;
    --tblr-body-bg: #f6f8fb;
}

body {
    background-color: #f6f8fb !important;
    font-feature-settings: "cv03", "cv04", "cv11";
}

.page {
    background-color: #f6f8fb !important;
}

/* Strict Doctor Photo Dimensions */
.doctor-photo {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    min-height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: var(--tblr-border-radius, 4px);
    background-color: var(--tblr-bg-surface-secondary, #f1f5f9);
    border: 1px solid var(--tblr-border-color, #e2e8f0);
    display: block;
}

.doctor-photo-lg {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
}

.doctor-photo-sm {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: var(--tblr-border-radius, 4px);
    background-color: var(--tblr-bg-surface-secondary, #f1f5f9);
    border: 1px solid var(--tblr-border-color, #e2e8f0);
    display: block;
}

/* Slots scrollable container (bounded height to prevent infinite stretch) */
.slots-container {
    max-height: 185px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 84, 166, 0.25) transparent;
}

.slots-container::-webkit-scrollbar {
    width: 5px;
}

.slots-container::-webkit-scrollbar-track {
    background: transparent;
}

.slots-container::-webkit-scrollbar-thumb {
    background: rgba(0, 84, 166, 0.25);
    border-radius: 4px;
}

.slots-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 84, 166, 0.5);
}

.slots-container-public {
    max-height: 360px;
}

/* Available Slot Button - Clean Tabler Primary / Azure Style */
.slot-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.6rem;
    border-radius: var(--tblr-border-radius, 4px);
    border: 1px solid rgba(0, 84, 166, 0.25);
    background-color: #f0f6fc;
    color: #0054a6;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    line-height: 1.2;
}

.slot-btn:hover {
    background-color: #0054a6;
    border-color: #0054a6;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 84, 166, 0.2);
}

.slot-btn strong {
    font-size: 0.9375rem;
    font-weight: 700;
}

.slot-btn span {
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Static Slot (Unavailable / Past) */
.slot-static {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.6rem;
    border-radius: var(--tblr-border-radius, 4px);
    border: 1px solid var(--tblr-border-color, #e2e8f0);
    background-color: #f8fafc;
    color: var(--tblr-body-color, #1e293b);
    font-size: 0.8125rem;
}

.slot-static strong {
    font-size: 0.9375rem;
    font-weight: 700;
}

.slot-static span {
    font-size: 0.75rem;
    color: var(--tblr-muted, #64748b);
}

/* Avatar fallback */
.avatar-text {
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 1.1rem;
}

/* Table action buttons in management panel - Always on one line */
.table-actions {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.35rem !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
}

/* Qare Logo in header */
.qare-brand-logo {
    height: 32px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}
