:root {
    --bg: #eef6f7;
    --surface: #ffffff;
    --surface-muted: #f7fbfc;
    --border: #d5e3e8;
    --border-strong: #b7ccd5;
    --text: #183b4d;
    --ink: #183b4d;
    --muted: #61788a;
    --accent: #0f8b8d;
    --accent-strong: #16697a;
    --accent-soft: #e1f4f3;
    --warning-soft: #fff4d6;
    --info-soft: #dceef8;
    --success-soft: #dff3e7;
    --danger-soft: #fde4e4;
    --shadow: 0 18px 40px rgba(15, 64, 75, 0.08);
    --radius-sm: 0.45rem;
    --radius-md: 0.7rem;
    --radius-lg: 0.95rem;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
}

html,
body {
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

.navbar {
    min-height: 72px;
}

.navbar-brand {
    gap: 0.1rem;
    text-decoration: none;
}

.app-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 20px rgba(15, 139, 141, 0.22);
}

.brand-text {
    font-size: 1rem;
    font-weight: 700;
}


.brand-copy {
    display: inline-flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.brand-subtext {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.2;
    max-width: 34ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-mark-image {
    overflow: hidden;
    padding: 0;
    background: #ffffff;
}

.brand-mark-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-link {
    color: var(--muted);
    font-weight: 500;
    padding: 0.65rem 0.8rem !important;
    border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link.active {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.app-shell {
    min-height: calc(100vh - 72px);
}

.hero-panel,
.page-header-panel,
.panel-card,
.workflow-card,
.ticket-card,
.queue-row,
.mini-overview-card,
.ad-card,
.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-panel,
.page-header-panel,
.panel-card,
.hero-card {
    padding: clamp(1.15rem, 2vw, 1.75rem);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.display-title,
.section-title-xl {
    font-size: clamp(1.85rem, 3vw, 2.65rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 700;
    max-width: 14ch;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.section-copy,
.lead {
    color: var(--muted);
    max-width: 64ch;
}

.metric-card {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.95rem;
}

.metric-value {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1;
}

.metric-label {
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.table > :not(caption) > * > * {
    padding: 0.95rem 0.85rem;
    vertical-align: middle;
}

.table thead th {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: transparent;
}

.table-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.table-pill.warning { background: var(--warning-soft); color: #8a5a00; }
.table-pill.info { background: var(--info-soft); color: #165a75; }
.table-pill.dark { background: #e7edf3; color: #334155; }

.call-strip,
.doctor-spotlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
}

.ticket-code {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ticket-number {
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.ticket-number.large {
    font-size: clamp(2.25rem, 4vw, 3.75rem);
}

.workflow-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.2rem;
    min-height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.workflow-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.workflow-step {
    display: inline-flex;
    width: fit-content;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workflow-card h3,
.ad-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.workflow-card p,
.ad-card p,
.empty-state span {
    color: var(--muted);
    margin: 0;
}

.bi-label {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.15rem;
}

.label-ar {
    font-size: 0.96em;
}

.status-badge {
    font-weight: 600;
    padding: 0.48rem 0.62rem;
    border-radius: 999px;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 220px;
    text-align: center;
    padding: 1.5rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
    gap: 0.4rem;
}

.empty-state.compact,
.display-empty {
    min-height: 150px;
}

.list-row-form {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
}

.queue-row {
    padding: 1rem;
}

.queue-row-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.room-badge,
.ad-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.display-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 1rem;
    min-height: calc(100vh - 132px);
}

.announcement-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
}

.display-meta,
.live-clock {
    color: var(--muted);
}

.live-clock {
    font-size: 1.4rem;
    font-weight: 700;
}

.panel-subsection {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.mini-overview-card,
.ad-card {
    padding: 1rem;
    background: var(--surface-muted);
}

.ticket-card hr {
    border-color: var(--border);
}

.timeline-list {
    display: grid;
    gap: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.timeline-list::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 1.5rem;
    left: 0.43rem;
    width: 2px;
    background: var(--border);
    z-index: 0;
}

html[dir="rtl"] .timeline-list::before {
    left: auto;
    right: 0.43rem;
}

.timeline-item {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
}

.timeline-dot {
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: #d1d5db;
    border: 2px solid var(--surface);
    margin-top: 0.18rem;
    box-shadow: 0 0 0 1px var(--border);
}

.timeline-item.done .timeline-dot {
    background: #1f4f78;
    box-shadow: 0 0 0 1px #1f4f78;
}

.timeline-item.current .timeline-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 1px #f59e0b;
}

.detail-list {
    display: grid;
    gap: 0.85rem;
}

.detail-list div {
    display: grid;
    gap: 0.15rem;
}

.detail-list dt {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.detail-list dd {
    margin: 0;
    font-weight: 600;
}

.form-control,
.form-select {
    border-color: var(--border-strong);
    border-radius: var(--radius-sm);
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
.btn:focus-visible,
.nav-link:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(31, 79, 120, 0.12) !important;
}

.btn {
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font-weight: 600;
}

.btn-sm {
    padding: 0.42rem 0.72rem;
}

.btn-dark {
    background: var(--text);
    border-color: var(--text);
}

.btn-outline-dark {
    border-color: var(--border-strong);
    color: var(--text);
}

.toast.app-toast {
    min-width: 280px;
}

@media (max-width: 991.98px) {
    .display-shell {
        grid-template-columns: 1fr;
    }

    .display-title,
    .section-title-xl {
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .queue-row-head,
    .call-strip,
    .doctor-spotlight {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticket-number.large {
        font-size: 2.5rem;
    }
}


.admin-layout {
    display: grid;
    grid-template-columns: minmax(220px, 248px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.admin-sidebar-column {
    min-width: 0;
}

.admin-sidebar {
    position: sticky;
    top: 5.9rem;
    display: grid;
    gap: 1rem;
}

.admin-sidebar-top {
    display: grid;
    gap: 0.35rem;
}

.admin-sidebar-nav {
    display: grid;
    gap: 0.3rem;
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    padding: 0.72rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 0.95rem;
    background: transparent;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-sidebar-link:hover {
    color: var(--accent-strong);
    border-color: rgba(15, 139, 141, 0.14);
    background: rgba(15, 139, 141, 0.08);
}

.admin-sidebar-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--accent-strong);
    flex-shrink: 0;
}

.admin-sidebar-link-icon svg {
    width: 1rem;
    height: 1rem;
}

.admin-sidebar-link-text {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.admin-sidebar-meta {
    display: grid;
    gap: 0.75rem;
}

.admin-mini-stat {
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.admin-mini-stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
}

.admin-mini-stat-label {
    display: block;
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.admin-content-stack {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.admin-hero-panel {
    background: linear-gradient(135deg, #ffffff 0%, #eef4f9 100%);
}

.admin-section-card {
    scroll-margin-top: 6.75rem;
}

.admin-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.admin-overview-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.admin-overview-card strong {
    display: block;
    margin-top: 0.9rem;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1;
}

.admin-overview-card p {
    margin-top: 0.65rem;
}

.admin-switch-card {
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
}

.admin-form-note {
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-list-form {
    display: grid;
    gap: 0.4rem;
}

.admin-list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-inline-switch {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #ffffff;
}

@media (max-width: 1199.98px) {
    .admin-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .admin-overview-grid {
        grid-template-columns: 1fr;
    }

    .admin-list-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-sidebar-link {
        padding-inline: 0.75rem;
    }
}


/* language split updates */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lang-switch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.lang-switch-link.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.locale-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.08);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[dir="rtl"] body {
    direction: rtl;
}

html[dir="rtl"] .section-title,
html[dir="rtl"] .section-title-xl,
html[dir="rtl"] .section-copy,
html[dir="rtl"] .display-title,
html[dir="rtl"] .form-label,
html[dir="rtl"] th,
html[dir="rtl"] td,
html[dir="rtl"] .navbar-brand,
html[dir="rtl"] .admin-sidebar,
html[dir="rtl"] .empty-state,
html[dir="rtl"] .mini-overview-card,
html[dir="rtl"] .ticket-card,
html[dir="rtl"] .timeline-item,
html[dir="rtl"] .detail-list {
    text-align: right;
}

html[dir="rtl"] .navbar-nav {
    padding-right: 0;
}

html[dir="rtl"] .toast-container {
    left: 0;
    right: auto;
}

html[dir="rtl"] .admin-list-head,
html[dir="rtl"] .call-strip,
html[dir="rtl"] .admin-sidebar-link {
    flex-direction: row-reverse;
}



.btn-dark {
    background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
    border-color: var(--accent-strong);
}

.btn-dark:hover,
.btn-dark:focus {
    background: linear-gradient(135deg, #135464 0%, #0b7f81 100%);
    border-color: #135464;
}

.btn-outline-dark {
    color: var(--accent-strong);
    border-color: rgba(22, 105, 122, 0.28);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:active {
    color: #fff;
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.admin-sidebar-link.active {
    color: var(--accent-strong);
    border-color: rgba(15, 139, 141, 0.24);
    background: linear-gradient(135deg, #ffffff 0%, #ebf8f8 100%);
    box-shadow: inset 0 0 0 1px rgba(15, 139, 141, 0.08);
}

.admin-sidebar-link.active .admin-sidebar-link-icon {
    border-color: rgba(15, 139, 141, 0.18);
    background: rgba(15, 139, 141, 0.12);
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.admin-card-grid-triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-card-grid-secondary {
    align-items: start;
}

.admin-link-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.admin-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-search-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 32rem;
    flex-wrap: wrap;
}

.admin-search-form .form-control {
    flex: 1 1 16rem;
}

.admin-directory-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
    gap: 1.25rem;
    align-items: start;
}

.admin-table-card,
.admin-form-card {
    min-width: 0;
}

.admin-table-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.admin-table-actions form {
    margin: 0;
}

.admin-count-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-table tbody tr:hover {
    background: rgba(15, 139, 141, 0.04);
}

@media (max-width: 1199.98px) {
    .admin-card-grid,
    .admin-directory-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .admin-summary-row,
    .admin-toolbar,
    .admin-search-form,
    .admin-table-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

html[dir="rtl"] .admin-summary-row,
html[dir="rtl"] .admin-toolbar,
html[dir="rtl"] .admin-table-actions {
    flex-direction: row-reverse;
}


.hospital-hero-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hospital-brand-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(225,244,243,0.9) 100%);
    min-width: min(100%, 24rem);
}

.hospital-brand-mark,
.hospital-preview-logo {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(15, 139, 141, 0.22);
    overflow: hidden;
}

.hospital-brand-mark img,
.hospital-preview-logo img,
.hospital-asset-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hospital-color-pills {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.hospital-color-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.hospital-color-swatch {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.hospital-profile-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
}

.hospital-preview-card,
.hospital-overview-card {
    min-width: 0;
}

.hospital-preview-stack {
    display: grid;
    gap: 1rem;
}

.hospital-preview-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-muted);
}

.hospital-detail-list {
    display: grid;
    gap: 0.85rem;
}

.hospital-detail-list div {
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
}

.hospital-detail-list dt {
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hospital-detail-list dd {
    margin: 0;
    color: var(--text);
}

.hospital-asset-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.hospital-asset-box {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-muted);
}

.hospital-asset-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #fff;
}

.hospital-asset-favicon {
    max-width: 6rem;
    aspect-ratio: 1;
}

@media (max-width: 1199.98px) {
    .admin-card-grid-triple,
    .hospital-profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .hospital-brand-preview,
    .hospital-preview-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hospital-asset-grid {
        grid-template-columns: 1fr;
    }

    .brand-subtext {
        white-space: normal;
    }
}

html[dir="rtl"] .hospital-brand-preview,
html[dir="rtl"] .hospital-preview-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hospital-detail-list dt,
html[dir="rtl"] .hospital-detail-list dd {
    text-align: right;
}

/* Print Ticket Styling (80mm Thermal Printer) */
@media print {
    body * {
        visibility: hidden;
    }
    
    header.app-header, 
    main.app-shell > .container-fluid, 
    main.app-shell > .container,
    main.app-shell > .container-xxl,
    div[style*="position: fixed; bottom: 0"] {
        display: none !important;
    }
    
    #print-ticket, #print-ticket * {
        visibility: visible;
    }
    
    #print-ticket {
        position: absolute;
        left: 0;
        top: 0;
        width: 80mm;
        margin: 0;
        padding: 2mm 5mm;
        display: block !important;
        background: white;
        color: black;
        font-family: system-ui, -apple-system, sans-serif;
    }
    
    .print-ticket-inner {
        text-align: center;
        width: 100%;
    }
    
    .pt-header {
        font-size: 1rem;
        font-weight: bold;
        margin-bottom: 2px;
        border-bottom: 1px solid black;
        padding-bottom: 2px;
    }
    
    .pt-token-title {
        font-size: 0.8rem;
        margin-top: 5px;
    }
    
    .pt-token-number {
        font-size: 2.5rem;
        font-weight: bold;
        line-height: 1;
        margin: 2px 0 5px 0;
    }
    
    .pt-patient-name {
        font-size: 0.9rem;
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    .pt-divider {
        border-top: 1px dashed black;
        margin: 5px 0;
    }
    
    .pt-detail {
        font-size: 0.85rem;
        text-align: left;
        margin-bottom: 2px;
        display: flex;
        justify-content: space-between;
    }
    
    html[dir="rtl"] .pt-detail {
        text-align: right;
        
    }
    
    .pt-label {
        font-weight: bold;
    }
    
    .pt-datetime {
        margin-top: 4px;
        font-size: 0.75rem;
    }
    
    .pt-footer {
        font-size: 0.75rem;
        margin-top: 5px;
    }

    @page {
        margin: 0;
        size: 80mm auto;
    }
}

/* News Ticker */
.news-ticker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--accent-strong);
    color: #fff;
    padding: 0.75rem 0;
    z-index: 1030;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

.news-ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-ltr 30s linear infinite;
}

@keyframes ticker-ltr {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

.news-ticker-item {
    display: inline-block;
    padding: 0 1.5rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.news-ticker-item::after {
    content: "✦";
    margin-left: 3rem;
    opacity: 0.6;
}

html[dir="rtl"] .news-ticker-item::after {
    margin-left: 0;
    margin-right: 3rem;
}

.news-ticker-item:last-child::after {
    display: none;
}

body {
    padding-bottom: 0 !important;
}
