:root {
    --aura-ink: #111827;
    --aura-muted: #6b7280;
    --aura-border: #cbd5e1;
    --aura-surface: #ffffff;
    --aura-surface-soft: #f8fafc;
    --aura-bg-start: #f1f5f9;
    --aura-bg-end: #f8fafc;
    --aura-accent: #0f766e;
    --aura-accent-dark: #115e59;
    --aura-highlight: #2dd4bf;
    --aura-warm: #d97706;
    --aura-blue: #1e40af;
    --aura-sidebar: #0f172a;
    --aura-sidebar-deep: #1e40af;
    --aura-success: #059669;
    --aura-danger: #b91c1c;
    --aura-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--aura-ink);
    background:
        linear-gradient(90deg, rgba(15, 118, 110, 0.06), transparent 34%),
        linear-gradient(180deg, var(--aura-bg-start), var(--aura-bg-end));
    transition: opacity 0.18s ease;
}

.aura-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.aura-icon svg {
    width: 1em;
    height: 1em;
}

.aura-icon-sm {
    font-size: 1rem;
}

.aura-icon-lg {
    font-size: 1.5rem;
}

.password-toggle-button {
    min-width: 3rem;
}

.guest-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.guest-panel {
    width: min(100%, 560px);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--aura-shadow);
    backdrop-filter: blur(12px);
}

.guest-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.guest-brand .brand-logo {
    width: min(100%, 172px);
    height: auto;
    max-width: 172px;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.app-sidebar {
    display: flex;
    flex-direction: column;
    width: 280px;
    padding: 22px 16px;
    color: #f5fffd;
    background: linear-gradient(180deg, var(--aura-sidebar), var(--aura-sidebar-deep));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: width 0.18s ease, padding 0.18s ease;
}

.brand-block {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 22px;
}

.brand-mark {
    width: 14px;
    height: 14px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fbbf24;
    color: transparent;
    font-weight: 800;
}

.brand-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand-title-wrap {
    display: block;
}

.brand-logo {
    width: 256px;
    height: 108px;
    object-fit: contain;
    display: block;
}

.brand-subtitle {
    display: block;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.72);
}

.sidebar-copy {
    display: block;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

.sidebar-session {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-session strong {
    font-size: 0.95rem;
}

.sidebar-session span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.sidebar-logout-form {
    margin-top: auto;
    display: flex;
    justify-content: stretch;
    padding-top: 14px;
}

.sidebar-logout-button {
    font: inherit;
    cursor: pointer;
}

.sidebar-group-label {
    display: block;
    margin: 12px 8px 2px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-link {
    position: relative;
    display: inline-flex;
    gap: 0.85rem;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    min-height: 56px;
    border-radius: 16px;
    padding: 0.85rem 0.95rem;
    text-decoration: none;
    color: #e4f9f6;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-link:hover {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.32), rgba(37, 99, 235, 0.32));
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.sidebar-link-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    flex: 0 0 22px;
}

.sidebar-link-icon svg {
    width: 22px;
    height: 22px;
}

.sidebar-link-copy {
    display: grid;
    gap: 0.1rem;
}

.sidebar-link-copy small {
    color: rgba(255, 255, 255, 0.72);
}

.sidebar-tooltip .tooltip-inner {
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.sidebar-tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: rgba(15, 23, 42, 0.94);
}

.password-toggle-button {
    min-width: 3rem;
}

.app-main {
    flex: 1;
    padding: 0;
    min-width: 0;
}

.app-content {
    display: grid;
    gap: 24px;
    padding: 28px;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 22px 28px;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    margin-bottom: 0;
}

.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.page-transition-bar {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 42%, #14b8a6 100%);
    transform: scaleX(0.08);
    transform-origin: left center;
    transition: transform 0.35s ease;
}

.page-transition-spinner {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(37, 99, 235, 0.18);
    border-top-color: #2563eb;
    animation: spin 0.8s linear infinite;
}

body.is-transitioning .page-transition {
    opacity: 1;
}

body.is-transitioning .page-transition-bar {
    transform: scaleX(1);
}

body.is-transitioning .app-content {
    opacity: 0.72;
    transform: translateY(4px);
}

.header-kicker,
.section-kicker,
.meta-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: var(--aura-muted);
}

.header-title {
    font-size: 1.85rem;
    font-weight: 800;
}

.btn-primary {
    --bs-btn-bg: var(--aura-accent);
    --bs-btn-border-color: var(--aura-accent);
    --bs-btn-hover-bg: var(--aura-accent-dark);
    --bs-btn-hover-border-color: var(--aura-accent-dark);
    --bs-btn-active-bg: var(--aura-accent-dark);
    --bs-btn-active-border-color: var(--aura-accent-dark);
}

.btn-outline-secondary {
    --bs-btn-color: var(--aura-ink);
    --bs-btn-border-color: rgba(148, 163, 184, 0.42);
    --bs-btn-hover-bg: rgba(15, 118, 110, 0.08);
    --bs-btn-hover-border-color: rgba(15, 118, 110, 0.28);
    --bs-btn-hover-color: var(--aura-accent-dark);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.5rem 0.8rem;
    background: rgba(15, 118, 110, 0.14);
    color: var(--aura-accent-dark);
    font-weight: 700;
}

.hero-panel,
.app-card {
    border: 1px solid var(--aura-border);
    border-radius: 22px;
    background: var(--aura-surface);
    box-shadow: var(--aura-shadow);
}

.hero-panel {
    padding: 2rem;
}

.hero-title {
    margin-bottom: 0.8rem;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 800;
}

.auth-hero {
    margin-bottom: 0.5rem;
}

.hero-copy {
    margin-bottom: 0;
    color: var(--aura-muted);
    max-width: 62ch;
}

.card-title {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 800;
}

.appointment-patient-field {
    display: grid;
    gap: 0.75rem;
}

.appointment-datetime-panel {
    padding: 1.25rem;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.1), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.appointment-datetime-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.appointment-datetime-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.appointment-datetime-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--aura-accent-dark);
    font-size: 0.8rem;
    font-weight: 700;
}

.quick-patient-feedback.alert-success {
    color: #065f46;
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(5, 150, 105, 0.18);
}

.quick-patient-feedback.alert-danger {
    color: #7f1d1d;
    background: rgba(185, 28, 28, 0.08);
    border-color: rgba(185, 28, 28, 0.16);
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
    gap: 1rem;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.16), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--aura-shadow);
}

.dashboard-hero-title {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.15;
    font-weight: 800;
}

.dashboard-hero-text {
    max-width: 62ch;
    margin: 0.9rem 0 0;
    color: var(--aura-muted);
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.dashboard-hero-summary,
.dashboard-side-grid,
.dashboard-secondary-grid {
    display: grid;
    gap: 1rem;
}

.hero-summary-card,
.metric-panel,
.mini-stat {
    padding: 1rem 1.05rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.82);
}

.hero-summary-card {
    display: grid;
    gap: 0.35rem;
}

.hero-summary-label,
.hero-summary-foot,
.metric-panel-label,
.metric-panel-foot,
.dashboard-chip,
.dashboard-link,
.timeline-slot span,
.donut-stat span,
.adoption-meter-ring span {
    color: var(--aura-muted);
}

.hero-summary-value,
.metric-panel-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
}

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

.metric-panel {
    display: grid;
    gap: 0.4rem;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.95fr);
    gap: 1rem;
}

.dashboard-secondary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-card {
    overflow: hidden;
}

.dashboard-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-link {
    text-decoration: none;
    font-weight: 700;
}

.dashboard-link:hover {
    color: var(--aura-accent-dark);
    text-decoration: underline;
}

.dashboard-section-divider {
    margin: 1.5rem 0;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.timeline-chart {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    align-items: end;
    gap: 0.75rem;
    min-height: 240px;
}

.timeline-slot {
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 0.45rem;
    min-width: 0;
}

.timeline-bar,
.status-chart-fill {
    opacity: 0.88;
    transition: transform 0.45s ease, opacity 0.25s ease;
}

.timeline-bar {
    width: 100%;
    min-height: 14px;
    height: max(14px, var(--bar-size));
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    transform: scaleY(0.08);
    transform-origin: bottom center;
}

.timeline-bar.is-visible {
    transform: scaleY(1);
    opacity: 1;
}

.donut-stat,
.adoption-meter-ring {
    width: 148px;
    height: 148px;
    margin-inline: auto;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #ffffff 0 54%, transparent 55%),
        conic-gradient(#2563eb 0 var(--donut-fill), rgba(226, 232, 240, 0.9) var(--donut-fill) 100%);
}

.donut-stat strong,
.adoption-meter-ring strong {
    display: block;
    text-align: center;
    font-size: 1.45rem;
    line-height: 1;
}

.status-chart,
.module-overview-list,
.audit-timeline,
.health-stack {
    display: grid;
    gap: 0.85rem;
}

.status-chart-row,
.module-overview-item,
.health-row {
    display: grid;
    gap: 0.45rem;
}

.status-chart-head,
.module-overview-head,
.health-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.status-chart-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(226, 232, 240, 0.95);
}

.status-chart-fill {
    height: 100%;
    width: max(8%, var(--bar-size));
    border-radius: 999px;
    transform: scaleX(0.08);
    transform-origin: left center;
}

.status-chart-fill.is-visible {
    transform: scaleX(1);
    opacity: 1;
}

.module-overview-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 32px;
    padding: 0 0.7rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
}

.dashboard-mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.mini-stat {
    display: grid;
    gap: 0.4rem;
}

.mini-stat strong {
    font-size: 1.5rem;
    line-height: 1;
}

.adoption-meter {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.adoption-meter-copy {
    display: grid;
    gap: 0.45rem;
}

.audit-line {
    position: relative;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
}

.audit-bullet {
    width: 10px;
    height: 10px;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.empty-graph-state {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    color: var(--aura-muted);
}

.tone-scheduled,
.module-tone-appointments {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #7c2d12;
}

.tone-confirmed,
.module-tone-accounts {
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    color: #0f172a;
}

.tone-arrived,
.module-tone-patients {
    background: linear-gradient(90deg, #14b8a6, #2dd4bf);
    color: #0f172a;
}

.tone-in-progress,
.module-tone-team {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    color: #1f2937;
}

.tone-completed,
.module-tone-communications {
    background: linear-gradient(90deg, #10b981, #34d399);
    color: #064e3b;
}

.tone-cancelled,
.module-tone-audit {
    background: linear-gradient(90deg, #ef4444, #f87171);
    color: #7f1d1d;
}

.tone-muted,
.module-tone-premium {
    background: linear-gradient(90deg, #64748b, #94a3b8);
    color: #0f172a;
}

.metric-label {
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    color: var(--aura-muted);
    text-transform: uppercase;
}

.metric-value {
    font-size: clamp(1.9rem, 3vw, 2.3rem);
    font-weight: 800;
}

.status-list,
.next-list {
    margin: 0;
    padding-left: 1.15rem;
}

.status-list li,
.next-list li {
    margin-bottom: 0.7rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    margin-right: 0.45rem;
    display: inline-block;
    border-radius: 999px;
    vertical-align: middle;
}

.status-dot.is-ok {
    background: var(--aura-accent);
}

.status-dot.is-error {
    background: #dc2626;
}

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag-item {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--aura-border);
    font-size: 0.92rem;
    font-weight: 700;
}

.auth-form .form-control {
    border-radius: 12px;
    border-color: var(--aura-border);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.auth-form .btn-primary,
.btn-primary {
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--aura-accent), var(--aura-accent-dark));
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn-outline-secondary {
    border-radius: 10px;
    background: #fff;
    border-color: rgba(203, 213, 225, 0.8);
    font-weight: 700;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

.form-control,
.form-select {
    min-height: 44px;
    border-radius: 12px;
    border-color: var(--aura-border);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 118, 110, 0.52);
    box-shadow: 0 0 0 0.22rem rgba(15, 118, 110, 0.12);
}

.alert-soft {
    margin: 24px 28px 0;
    border-radius: 10px;
}

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

.toolbar-form {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(160px, 1fr)) auto;
    gap: 0.75rem;
}

.admin-form .form-control,
.admin-form .form-select,
.toolbar-form .form-control,
.toolbar-form .form-select {
    border-radius: 12px;
    border-color: var(--aura-border);
}

.admin-form textarea.form-control {
    min-height: 120px;
}

.form-section {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(219, 226, 234, 0.8);
}

.form-section-title {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 800;
}

.form-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.9rem;
}

.membership-row + .membership-row {
    margin-top: 0.35rem;
}

.form-actions {
    margin-top: 1.75rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.admin-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--aura-muted);
    border-bottom-color: var(--aura-border);
}

.admin-table td {
    background: transparent;
    border-bottom-color: rgba(219, 226, 234, 0.7);
}

.table-subtext {
    margin-top: 0.2rem;
    font-size: 0.85rem;
    color: var(--aura-muted);
}

.table-status {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--aura-accent-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.table-status.is-success {
    background: rgba(15, 118, 110, 0.12);
    color: var(--aura-accent-dark);
}

.table-status.is-muted {
    background: rgba(100, 116, 139, 0.12);
    color: var(--aura-muted);
}

.table-status.is-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
}

.table-status.is-info {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.table-status.is-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.table-status.is-scheduled {
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
}

.table-status.is-confirmed {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.table-status.is-active-care {
    background: rgba(139, 92, 246, 0.12);
    color: #6d28d9;
}

.table-status.is-completed {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.table-status.is-rescheduled {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

.table-status.is-cancelled,
.table-status.is-missed {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.inline-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.list-pagination-wrap {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.list-pagination .page-link {
    border-radius: 10px;
    border-color: var(--aura-border);
    color: var(--aura-accent-dark);
    min-width: 42px;
    text-align: center;
}

.list-pagination .page-item.active .page-link {
    border-color: transparent;
    background: linear-gradient(135deg, var(--aura-accent), var(--aura-accent-dark));
}

.status-stack {
    display: grid;
    gap: 0.8rem;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--aura-border);
}

.status-name {
    font-weight: 700;
}

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

.mono-text {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9rem;
}

.resource-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.resource-kicker,
.muted-copy {
    color: var(--aura-muted);
}

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

.legacy-stat-card,
.premium-flag-card {
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--aura-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--aura-shadow);
}

.premium-flag-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.legacy-stat-label {
    font-size: 0.85rem;
    color: var(--aura-muted);
}

.legacy-stat-value {
    margin-top: 0.45rem;
    font-size: 2rem;
    font-weight: 800;
}

.legacy-stat-meta {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--aura-muted);
}

.legacy-filters {
    grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(150px, 1fr)) auto;
}

.button-secondary,
.button-block {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.button-secondary {
    min-height: 40px;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.button-block {
    width: 100%;
}

.agenda-page {
    display: grid;
    gap: 1rem;
}

.agenda-page.agenda-modern {
    display: flex;
    flex-direction: column;
}

.agenda-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 28px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.2), transparent 34%),
        radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.12), transparent 30%),
        #ffffff;
    box-shadow: var(--aura-shadow);
}

.agenda-hero h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    font-weight: 800;
}

.agenda-hero p {
    max-width: 68ch;
    margin: 0.55rem 0 0;
    color: var(--aura-muted);
}

.agenda-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

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

.agenda-filter-bar,
.agenda-block-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(140px, 1fr)) auto;
    gap: 0.75rem;
    align-items: end;
}

.agenda-block-form {
    grid-template-columns: repeat(5, minmax(150px, 1fr)) auto;
}

.agenda-block-panel[hidden] {
    display: none;
}

.agenda-block-panel.is-open {
    animation: panelIn 0.18s ease both;
}

.agenda-board {
    display: grid;
    grid-template-columns: repeat(7, minmax(220px, 1fr));
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

.agenda-day-card {
    min-height: 420px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border: 1px solid rgba(203, 213, 225, 0.78);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.06);
}

.agenda-day-card.is-today {
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: 0 18px 38px rgba(15, 118, 110, 0.11);
}

.agenda-day-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.agenda-day-head span,
.agenda-day-head small,
.agenda-event-meta,
.agenda-event-note {
    color: var(--aura-muted);
    font-size: 0.78rem;
}

.agenda-day-head strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.1rem;
}

.agenda-day-list {
    display: grid;
    align-content: start;
    gap: 0.65rem;
    padding: 0.8rem;
}

.agenda-event {
    display: grid;
    gap: 0.25rem;
    padding: 0.82rem;
    border: 1px solid rgba(203, 213, 225, 0.74);
    border-left: 4px solid var(--aura-blue);
    border-radius: 14px;
    background: #fff;
    color: var(--aura-ink);
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.agenda-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(31, 41, 55, 0.11);
}

.agenda-event.is-success {
    border-left-color: #10b981;
}

.agenda-event.is-warning {
    border-left-color: #f59e0b;
}

.agenda-event.is-danger {
    border-left-color: #ef4444;
}

.agenda-event.is-muted {
    border-left-color: #94a3b8;
}

.agenda-event.is-block {
    border-left-color: #64748b;
    background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 8px, #eef2f7 8px, #eef2f7 16px);
}

.agenda-event-time {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--aura-accent-dark);
}

.agenda-event-title {
    font-weight: 800;
}

.agenda-empty {
    display: grid;
    place-items: center;
    min-height: 88px;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.48);
    color: var(--aura-muted);
}

.agenda-modern {
    gap: 1rem;
}

.agenda-command-center { order: 1; }
.agenda-view-toolbar { order: 2; }
.agenda-stats { order: 3; }
.reception-command-grid { order: 4; }
.agenda-filter-panel { order: 5; }
.agenda-block-panel { order: 6; }
.reception-slot-panel { order: 7; }
.agenda-modern-board { order: 8; }
.reception-workbench { order: 9; }
.agenda-page > .app-card { order: 10; }

.agenda-command-center,
.agenda-filter-panel,
.agenda-view-toolbar,
.agenda-modern-day {
    border: 1px solid rgba(203, 213, 225, 0.74);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.agenda-command-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.11), rgba(37, 99, 235, 0.08)),
        #ffffff;
}

.agenda-command-center h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 2.15rem);
    font-weight: 800;
}

.agenda-command-center p:not(.section-kicker) {
    max-width: 70ch;
    margin: 0.5rem 0 0;
    color: var(--aura-muted);
}

.agenda-view-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 12px;
}

.agenda-view-tabs {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.25rem;
    border-radius: 12px;
    background: #eef2f7;
}

.agenda-view-tabs a {
    min-width: 82px;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    color: var(--aura-muted);
    text-align: center;
    text-decoration: none;
    font-weight: 800;
}

.agenda-view-tabs a.active {
    color: var(--aura-accent-dark);
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.agenda-range-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--aura-muted);
    font-weight: 800;
}

.agenda-range-pill strong {
    color: var(--aura-text);
    font-size: 0.82rem;
    font-weight: 800;
}

.btn.is-loading-link {
    pointer-events: none;
    opacity: 0.72;
}

.btn.is-loading-link::after {
    content: "";
    width: 0.9rem;
    height: 0.9rem;
    margin-left: 0.45rem;
    border-radius: 999px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    display: inline-block;
    animation: aura-spin 0.8s linear infinite;
}

@keyframes aura-spin {
    to {
        transform: rotate(360deg);
    }
}

.agenda-filter-panel {
    padding: 1rem;
    border-radius: 12px;
}

.agenda-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    align-items: end;
    gap: 0.85rem;
}

.agenda-filter-wide {
    grid-column: span 2;
}

.agenda-filter-grid .form-label {
    margin-bottom: 0.35rem;
    color: var(--aura-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.agenda-filter-actions {
    display: flex;
    gap: 0.55rem;
}

.agenda-filter-actions .btn,
.agenda-hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.agenda-modern-board {
    display: grid;
    grid-template-columns: repeat(7, minmax(150px, 1fr));
    gap: 0.9rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.agenda-modern-board.is-month {
    grid-template-columns: repeat(7, minmax(150px, 1fr));
}

.agenda-time-grid {
    --calendar-slot-height: 30px;
    --calendar-total-slots: 34;
    display: grid;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.agenda-time-grid-head,
.agenda-time-grid-body {
    display: grid;
    grid-template-columns: 72px repeat(7, minmax(180px, 1fr));
    gap: 0.75rem;
    min-width: 920px;
}

.agenda-time-day-head {
    display: grid;
    gap: 0.12rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.agenda-time-day-head.is-today {
    border-color: rgba(15, 118, 110, 0.38);
    box-shadow: 0 16px 32px rgba(15, 118, 110, 0.11);
}

.agenda-time-day-head span,
.agenda-time-day-head small {
    color: var(--aura-muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.agenda-time-day-head strong {
    font-size: 1.08rem;
}

.agenda-time-gutter,
.agenda-time-column-canvas {
    display: grid;
    grid-template-rows: repeat(var(--calendar-total-slots), var(--calendar-slot-height));
}

.agenda-time-gutter {
    position: sticky;
    left: 0;
    z-index: 2;
    align-self: start;
    padding-top: 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(248, 250, 252, 0.92));
}

.agenda-time-label {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-right: 0.55rem;
    padding-top: 0.2rem;
    color: var(--aura-muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    align-self: start;
}

.agenda-time-column {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.agenda-time-column.is-today {
    border-color: rgba(15, 118, 110, 0.38);
}

.agenda-time-column-canvas {
    position: relative;
    min-height: calc(var(--calendar-total-slots) * var(--calendar-slot-height));
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.86), rgba(255, 255, 255, 0.96));
}

.agenda-time-grid-slot {
    border-top: 1px solid rgba(226, 232, 240, 0.74);
}

.agenda-time-grid-slot.is-hour {
    border-top-color: rgba(148, 163, 184, 0.28);
}

.agenda-time-grid-slot.is-half-hour {
    border-top-style: dashed;
}

.agenda-modern-day {
    min-width: 0;
    min-height: 360px;
    border-radius: 12px;
    overflow: hidden;
}

.agenda-modern-day.is-today {
    border-color: rgba(15, 118, 110, 0.38);
    box-shadow: 0 16px 38px rgba(15, 118, 110, 0.12);
}

.agenda-modern-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: #f8fafc;
}

.agenda-modern-day-head span,
.agenda-modern-day-head small {
    color: var(--aura-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.agenda-modern-day-head strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 1.1rem;
}

.agenda-modern-list {
    display: grid;
    align-content: start;
    gap: 0.7rem;
    padding: 0.85rem;
}

.agenda-drag-feedback {
    margin-bottom: 1rem;
}

.agenda-time-overlay,
.agenda-time-card,
.agenda-time-drop-preview {
    position: absolute;
    top: calc((var(--agenda-top) - 1) * var(--calendar-slot-height));
    height: calc(var(--agenda-height) * var(--calendar-slot-height));
}

.agenda-time-overlay,
.agenda-time-drop-preview {
    left: 0.45rem;
    right: 0.45rem;
}

.agenda-time-block {
    display: grid;
    align-content: start;
    gap: 0.18rem;
    padding: 0.5rem 0.6rem;
    border-radius: 12px;
    background: repeating-linear-gradient(135deg, rgba(226, 232, 240, 0.92), rgba(226, 232, 240, 0.92) 8px, rgba(241, 245, 249, 0.92) 8px, rgba(241, 245, 249, 0.92) 16px);
    color: #334155;
    border-left: 4px solid #64748b;
    z-index: 1;
}

.agenda-time-block strong,
.agenda-time-block span {
    font-size: 0.72rem;
}

.agenda-modern-event {
    position: relative;
    display: grid;
    width: 100%;
    gap: 0.22rem;
    padding: 0.85rem;
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-left: 5px solid var(--event-color, #f59e0b);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.agenda-time-card {
    left: calc(0.4rem + var(--agenda-left));
    width: calc(var(--agenda-width) - 0.5rem);
    min-height: 44px;
    z-index: 3;
    cursor: grab;
}

.agenda-time-card .agenda-event-time {
    color: var(--aura-accent-dark);
    font-weight: 800;
}

.agenda-time-card:active {
    cursor: grabbing;
}

.agenda-modern-event::after {
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    width: 72px;
    height: 72px;
    border-radius: 0 0 0 999px;
    background: var(--event-wash, rgba(245, 158, 11, 0.12));
    pointer-events: none;
}

.agenda-modern-event:hover,
.agenda-modern-event:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.9);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    outline: 0;
}

.agenda-modern-event strong,
.agenda-modern-event span,
.agenda-modern-event small,
.agenda-modern-event form,
.agenda-modern-event a,
.agenda-modern-event div {
    position: relative;
    z-index: 1;
}

.agenda-modern-event > span,
.agenda-modern-event > small {
    color: var(--aura-muted);
    font-size: 0.84rem;
}

.agenda-modern-event.is-scheduled { --event-color: #f59e0b; --event-wash: rgba(245, 158, 11, 0.14); }
.agenda-modern-event.is-confirmed { --event-color: #2563eb; --event-wash: rgba(37, 99, 235, 0.13); }
.agenda-modern-event.is-active-care { --event-color: #8b5cf6; --event-wash: rgba(139, 92, 246, 0.13); }
.agenda-modern-event.is-completed { --event-color: #10b981; --event-wash: rgba(16, 185, 129, 0.13); }
.agenda-modern-event.is-cancelled { --event-color: #ef4444; --event-wash: rgba(239, 68, 68, 0.13); opacity: 0.82; }
.agenda-modern-event.is-missed { --event-color: #64748b; --event-wash: rgba(100, 116, 139, 0.16); }
.agenda-modern-event.is-rescheduled { --event-color: #6366f1; --event-wash: rgba(99, 102, 241, 0.14); }
.agenda-modern-event.is-block {
    --event-color: #334155;
    --event-wash: rgba(51, 65, 85, 0.13);
    background: repeating-linear-gradient(135deg, #ffffff, #ffffff 8px, #f1f5f9 8px, #f1f5f9 16px);
    cursor: default;
}

.agenda-modern-event.is-block:hover {
    transform: none;
    box-shadow: none;
}

.agenda-modern-event.is-dragging {
    opacity: 0.52;
    transform: scale(0.98);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18);
}

.agenda-modern-event.is-saving {
    cursor: progress;
    opacity: 0.75;
}

.agenda-modern-event.is-saving::before {
    content: "Salvando...";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    color: #0f172a;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    z-index: 3;
}

.agenda-modern-day.is-drop-active {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22), 0 20px 42px rgba(37, 99, 235, 0.14);
}

.agenda-time-column.is-drop-active {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.24), 0 22px 42px rgba(37, 99, 235, 0.16);
}

.agenda-time-drop-preview {
    display: none;
    border: 1px dashed rgba(15, 118, 110, 0.32);
    border-left-width: 4px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.18), rgba(30, 64, 175, 0.14));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    z-index: 2;
    pointer-events: none;
}

.agenda-time-drop-preview.is-visible {
    display: block;
}

.agenda-status-chip {
    width: fit-content;
    margin-top: 0.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    color: var(--event-color, #92400e) !important;
    background: var(--event-wash, rgba(245, 158, 11, 0.14));
    font-size: 0.76rem !important;
    font-weight: 800;
}

.appointment-actions-modal .modal-header {
    align-items: flex-start;
}

.appointment-actions-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin-top: 0.35rem;
    color: var(--aura-muted);
    font-size: 0.9rem;
}

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

.appointment-action-grid form,
.appointment-status-actions form {
    margin: 0;
}

.appointment-action-grid .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    justify-content: center;
}

.appointment-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.agenda-quick-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.agenda-quick-actions form {
    margin: 0;
}

.agenda-quick-actions .btn {
    border-color: rgba(203, 213, 225, 0.8);
    font-weight: 800;
}

body.is-transitioning .agenda-filter-panel::after,
body.is-transitioning .agenda-modern-board::after {
    content: "Atualizando agenda...";
    position: fixed;
    inset: 50% auto auto 50%;
    z-index: 20;
    transform: translate(-50%, -50%);
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--aura-accent-dark);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    font-weight: 800;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.app-header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.header-account-pill,
.header-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--aura-ink);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.header-account-pill {
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    font-weight: 800;
}

.header-account-pill .aura-icon {
    color: var(--aura-accent);
}

.header-icon-button {
    width: 42px;
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.header-icon-button:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, 0.35);
    color: var(--aura-accent-dark);
}

.dashboard-pro {
    display: grid;
    gap: 1rem;
}

.dashboard-pro-hero,
.dashboard-panel,
.dashboard-kpi-card {
    border: 1px solid rgba(203, 213, 225, 0.72);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.dashboard-pro-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
}

.dashboard-pro-hero h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 2.15rem);
    font-weight: 800;
    letter-spacing: 0;
}

.dashboard-pro-hero p:not(.section-kicker) {
    max-width: 68ch;
    margin: 0.65rem 0 0;
    color: var(--aura-muted);
}

.dashboard-scope-card {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.11), rgba(37, 99, 235, 0.1));
}

.dashboard-scope-card span,
.dashboard-scope-card small {
    color: var(--aura-muted);
}

.dashboard-scope-card strong {
    font-size: 1rem;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(150px, 1fr));
    gap: 0.85rem;
}

.dashboard-kpi-card {
    position: relative;
    min-height: 126px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.dashboard-kpi-card::after {
    content: "";
    position: absolute;
    inset: auto -32px -42px auto;
    width: 90px;
    height: 90px;
    border-radius: 999px;
    background: var(--kpi-wash, rgba(15, 118, 110, 0.12));
}

.dashboard-kpi-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--kpi-color, var(--aura-accent-dark));
    background: var(--kpi-wash, rgba(15, 118, 110, 0.12));
    font-size: 1.2rem;
}

.dashboard-kpi-body {
    min-width: 0;
    display: grid;
    gap: 0.18rem;
}

.dashboard-kpi-body span,
.dashboard-kpi-body small {
    color: var(--aura-muted);
}

.dashboard-kpi-body span {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-kpi-body strong {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.08;
    font-weight: 800;
}

.tone-teal { --kpi-color: #0f766e; --kpi-wash: rgba(20, 184, 166, 0.15); }
.tone-blue { --kpi-color: #1d4ed8; --kpi-wash: rgba(37, 99, 235, 0.13); }
.tone-indigo { --kpi-color: #4f46e5; --kpi-wash: rgba(99, 102, 241, 0.14); }
.tone-red { --kpi-color: #b91c1c; --kpi-wash: rgba(239, 68, 68, 0.13); }
.tone-amber { --kpi-color: #92400e; --kpi-wash: rgba(245, 158, 11, 0.16); }
.tone-cyan { --kpi-color: #0369a1; --kpi-wash: rgba(14, 165, 233, 0.15); }
.tone-slate { --kpi-color: #475569; --kpi-wash: rgba(100, 116, 139, 0.14); }

.dashboard-pro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-pro-grid.is-main {
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.8fr);
}

.dashboard-panel {
    min-width: 0;
    padding: 1rem;
    border-radius: 12px;
}

.dashboard-panel.is-wide {
    min-height: 340px;
}

.dashboard-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-panel-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.dashboard-panel-link {
    color: var(--aura-accent-dark);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-panel-link:hover {
    text-decoration: underline;
}

.dashboard-bar-chart {
    min-height: 260px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 0.65rem;
    padding-top: 1rem;
}

.dashboard-bar-chart.is-compact {
    min-height: 220px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dashboard-bar-item {
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 0.4rem;
    min-width: 0;
}

.dashboard-bar-value {
    min-height: 18px;
    color: var(--aura-muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.dashboard-bar-track {
    width: 100%;
    height: 190px;
    display: flex;
    align-items: flex-end;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.34), rgba(241, 245, 249, 0.92));
    overflow: hidden;
}

.dashboard-bar-chart.is-compact .dashboard-bar-track {
    height: 150px;
}

.dashboard-bar-fill {
    width: 100%;
    min-height: 8px;
    height: var(--bar-size);
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #0ea5e9, #0f766e);
    transform: scaleY(0.08);
    transform-origin: bottom center;
    transition: transform 0.45s ease, opacity 0.25s ease;
}

.dashboard-bar-fill.is-visible {
    transform: scaleY(1);
}

.dashboard-bar-item span {
    color: var(--aura-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

.dashboard-distribution {
    display: grid;
    gap: 0.8rem;
}

.dashboard-distribution-row {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto 34px;
    align-items: center;
    gap: 0.7rem;
}

.dashboard-distribution-row strong {
    font-size: 0.88rem;
}

.dashboard-distribution-row small {
    text-align: right;
    color: var(--aura-muted);
}

.dashboard-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.dashboard-progress-track {
    height: 7px;
    margin-top: 0.35rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(226, 232, 240, 0.9);
}

.dashboard-progress-fill {
    width: var(--bar-size);
    height: 100%;
    transform: scaleX(0.08);
    transform-origin: left center;
    transition: transform 0.45s ease, opacity 0.25s ease;
}

.dashboard-progress-fill.is-visible {
    transform: scaleX(1);
}

.tone-1 { background: #0ea5e9; }
.tone-2 { background: #14b8a6; }
.tone-3 { background: #6366f1; }
.tone-4 { background: #f59e0b; }
.tone-5 { background: #ef4444; }
.tone-6 { background: #64748b; }

.dashboard-empty-state {
    min-height: 150px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.65rem;
    padding: 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.5);
    border-radius: 12px;
    color: var(--aura-muted);
    text-align: center;
    background: rgba(248, 250, 252, 0.72);
}

.dashboard-empty-state .aura-icon {
    color: rgba(15, 118, 110, 0.74);
    font-size: 1.5rem;
}

.dashboard-attendance {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-ring {
    width: 152px;
    height: 152px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #ffffff 0 56%, transparent 57%),
        conic-gradient(#0f766e 0 var(--donut-fill), #e2e8f0 var(--donut-fill) 100%);
}

.dashboard-ring.is-small {
    width: 126px;
    height: 126px;
}

.dashboard-ring strong,
.dashboard-ring span {
    display: block;
    text-align: center;
}

.dashboard-ring strong {
    font-size: 1.4rem;
    line-height: 1;
}

.dashboard-ring span,
.dashboard-attendance-copy span {
    color: var(--aura-muted);
    font-size: 0.8rem;
}

.dashboard-attendance-copy {
    display: grid;
    gap: 0.35rem;
}

.dashboard-appointment-list,
.dashboard-audit-list {
    display: grid;
    gap: 0.75rem;
}

.dashboard-appointment-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    color: var(--aura-ink);
    text-decoration: none;
    background: rgba(248, 250, 252, 0.66);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.dashboard-appointment-item:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, 0.32);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.dashboard-date-box {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.11);
    color: var(--aura-accent-dark);
}

.dashboard-date-box strong,
.dashboard-date-box span,
.dashboard-appointment-item span,
.dashboard-appointment-item small {
    display: block;
}

.dashboard-date-box strong {
    line-height: 1;
}

.dashboard-date-box span,
.dashboard-appointment-item span,
.dashboard-appointment-item small {
    color: var(--aura-muted);
    font-size: 0.82rem;
}

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

.dashboard-mini-grid div {
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.dashboard-mini-grid span {
    color: var(--aura-muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-mini-grid strong {
    font-size: 1.35rem;
}

.dashboard-audit-item {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 0.7rem;
}

.dashboard-audit-item > span {
    width: 9px;
    height: 9px;
    margin-top: 0.42rem;
    border-radius: 999px;
    background: #0ea5e9;
    box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.12);
}

.dashboard-audit-item small {
    display: block;
    color: var(--aura-muted);
}

.clinical-dashboard {
    gap: 1.05rem;
}

.clinical-hero {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(37, 99, 235, 0.08)),
        #ffffff;
}

.dashboard-filter-card {
    position: relative;
    padding: 1rem;
    border: 1px solid rgba(203, 213, 225, 0.74);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

body.is-transitioning .dashboard-filter-card::after {
    content: "Atualizando painel...";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--aura-accent-dark);
    font-weight: 800;
    backdrop-filter: blur(3px);
}

.dashboard-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    align-items: end;
    gap: 0.85rem;
}

.dashboard-filter-grid .form-label {
    margin-bottom: 0.35rem;
    color: var(--aura-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-custom-date.is-muted {
    opacity: 0.58;
}

.dashboard-filter-actions {
    display: flex;
    gap: 0.55rem;
}

.dashboard-filter-actions .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.reception-command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.reception-command-card,
.reception-workbench,
.reception-slot-panel {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.reception-command-card {
    min-height: 118px;
    padding: 0.9rem;
}

.reception-command-card.is-primary {
    grid-column: span 2;
    background: linear-gradient(135deg, #0f766e, #1d4ed8);
    color: #ffffff;
}

.reception-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.reception-card-head h3,
.reception-card-head p {
    margin: 0;
}

.reception-card-head strong {
    display: block;
    margin-top: 0.2rem;
    color: var(--aura-ink);
    font-size: 1.55rem;
    line-height: 1;
}

.reception-command-card.is-primary .reception-card-head strong,
.reception-command-card.is-primary .section-kicker {
    color: #ffffff;
}

.reception-card-head i,
.reception-card-head .aura-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 11px;
    color: #0f766e;
    background: #ccfbf1;
}

.reception-command-card.is-primary .reception-card-head i,
.reception-command-card.is-primary .reception-card-head .aura-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.reception-command-card small,
.reception-card-foot {
    color: var(--aura-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.reception-command-card.is-primary small,
.reception-command-card.is-primary .reception-card-foot {
    color: rgba(255, 255, 255, 0.82);
}

.reception-day-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 0.75rem 0;
}

.reception-day-metrics span {
    padding: 0.55rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.78rem;
}

.reception-day-metrics strong {
    display: block;
    font-size: 1.25rem;
}

.reception-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    padding: 1.1rem;
    margin-bottom: 1.25rem;
}

.reception-work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.reception-work-card,
.reception-side-panel {
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: #ffffff;
}

.reception-work-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.reception-work-card h3,
.reception-side-panel h3 {
    margin: 0;
    color: var(--aura-ink);
    font-size: 1rem;
}

.reception-work-card header span {
    display: inline-grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    color: #0f766e;
    background: #ccfbf1;
    font-weight: 800;
}

.reception-mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.reception-mini-item:first-of-type {
    border-top: 0;
}

.reception-mini-item strong,
.reception-mini-item span {
    display: block;
}

.reception-mini-item span {
    color: var(--aura-muted);
    font-size: 0.82rem;
}

.reception-empty {
    margin: 0;
    color: var(--aura-muted);
    font-size: 0.92rem;
}

.reception-empty.is-bordered {
    padding: 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    border-radius: 16px;
}

.reception-slot-panel {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: 1rem;
    padding: 1.1rem;
    margin-bottom: 1.25rem;
}

.reception-slot-panel h2,
.reception-slot-panel p {
    margin: 0;
}

.reception-slot-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.65rem;
}

.reception-slot-list .btn {
    width: 100%;
    min-height: 64px;
    border: 1px solid rgba(20, 184, 166, 0.24);
    text-align: left;
}

.reception-slot-list strong,
.reception-slot-list span {
    display: block;
}

.table-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 0.35rem;
}

.communication-center {
    display: grid;
    gap: 1rem;
}

.communication-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.communication-tabs a {
    padding: 0.62rem 0.85rem;
    border: 1px solid rgba(203, 213, 225, 0.78);
    border-radius: 999px;
    background: #fff;
    color: var(--aura-ink);
    text-decoration: none;
    font-weight: 800;
}

.communication-filter-inline,
.communication-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.communication-filter-inline .form-select,
.communication-filter-inline .form-control {
    min-width: min(100%, 240px);
}

.communication-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr)) auto;
}

.communication-preview {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border: 1px dashed rgba(15, 118, 110, 0.35);
    border-radius: 16px;
    background: rgba(240, 253, 250, 0.74);
}

.communication-preview p {
    margin: 0;
}

.clinical-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.clinical-rate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.clinical-rate-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(180px, 1fr);
    align-items: center;
    gap: 1rem;
}

.clinical-rate-panel h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.clinical-rate-content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.clinical-rate-content > span {
    color: var(--aura-muted);
    font-size: 0.88rem;
}

.dashboard-ring.is-cancel {
    background:
        radial-gradient(circle at center, #ffffff 0 56%, transparent 57%),
        conic-gradient(#ef4444 0 var(--donut-fill), #e2e8f0 var(--donut-fill) 100%);
}

.dashboard-empty-state.is-inline {
    min-height: 94px;
    text-align: left;
}

.aura-home-dashboard {
    display: grid;
    gap: 1.25rem;
}

.aura-home-hero,
.aura-kpi-card,
.aura-summary-card,
.aura-table-card,
.aura-side-card {
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.aura-home-hero {
    padding: 2rem;
    background:
        radial-gradient(circle at top left, rgba(216, 180, 254, 0.28), transparent 28%),
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.28), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #eef8fb 100%);
}

.aura-chip {
    display: inline-flex;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--aura-accent-dark);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.aura-home-hero h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: 0;
}

.aura-home-hero p {
    margin: 0.8rem 0 0;
    color: var(--aura-muted);
}

.aura-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.35rem;
}

.aura-search {
    min-width: min(100%, 230px);
    height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 0.9rem;
    border: 1px solid var(--aura-border);
    border-radius: 12px;
    background: #fff;
    color: var(--aura-muted);
}

.aura-search input {
    width: 100%;
    border: 0;
    outline: 0;
}

.aura-period-tabs {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.28rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.92);
}

.aura-period-tabs a {
    padding: 0.58rem 0.85rem;
    border-radius: 999px;
    color: var(--aura-muted);
    text-decoration: none;
    font-weight: 900;
    font-size: 0.88rem;
}

.aura-period-tabs a.active {
    color: #fff;
    background: linear-gradient(180deg, #6366f1, #7c3aed);
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.25);
}

.aura-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.aura-kpi-card {
    min-height: 170px;
    padding: 1.25rem;
}

.aura-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.aura-kpi-top span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--aura-kpi-bg, rgba(37, 99, 235, 0.1));
    color: var(--aura-kpi-color, #2563eb);
}

.aura-kpi-top strong {
    color: var(--aura-muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.aura-kpi-card p {
    margin: 0.8rem 0 0;
    color: var(--aura-muted);
    font-weight: 700;
}

.aura-kpi-card h3 {
    margin: 0.25rem 0;
    font-size: 2rem;
    font-weight: 900;
}

.aura-kpi-card small {
    display: block;
    max-width: 28ch;
    color: var(--aura-muted);
    line-height: 1.45;
}

.aura-kpi-card.tone-blue { --aura-kpi-bg: rgba(37, 99, 235, 0.12); --aura-kpi-color: #2563eb; }
.aura-kpi-card.tone-green { --aura-kpi-bg: rgba(16, 185, 129, 0.12); --aura-kpi-color: #059669; }
.aura-kpi-card.tone-amber { --aura-kpi-bg: rgba(245, 158, 11, 0.15); --aura-kpi-color: #d97706; }
.aura-kpi-card.tone-red { --aura-kpi-bg: rgba(239, 68, 68, 0.12); --aura-kpi-color: #dc2626; }
.aura-kpi-card.tone-violet { --aura-kpi-bg: rgba(139, 92, 246, 0.12); --aura-kpi-color: #7c3aed; }
.aura-kpi-card.tone-sky { --aura-kpi-bg: rgba(14, 165, 233, 0.12); --aura-kpi-color: #0284c7; }

.aura-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1rem;
    align-items: start;
}

.aura-dashboard-main,
.aura-dashboard-side {
    display: grid;
    gap: 1rem;
}

.aura-summary-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    padding: 1.4rem;
}

.aura-summary-donut {
    width: 180px;
    height: 180px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #fff 0 55%, transparent 56%),
        conic-gradient(var(--donut));
}

.aura-summary-donut div {
    text-align: center;
}

.aura-summary-donut span {
    display: block;
    color: var(--aura-muted);
}

.aura-summary-donut strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
}

.aura-summary-copy h3,
.aura-table-card h3,
.aura-side-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
}

.aura-summary-copy > p:not(.section-kicker) {
    color: var(--aura-muted);
}

.aura-status-bars {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.aura-status-bars div {
    display: grid;
    grid-template-columns: 120px 32px minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
}

.aura-status-bars span {
    color: var(--aura-ink);
    font-weight: 700;
}

.aura-status-bars strong {
    text-align: right;
}

.aura-status-bars em {
    height: 9px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.aura-status-bars i {
    display: block;
    width: var(--bar-size);
    height: 100%;
    border-radius: 999px;
    background: var(--bar-color);
}

.aura-table-card,
.aura-side-card {
    padding: 1.35rem;
}

.aura-prof-list,
.aura-urgent-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.aura-prof-list article,
.aura-urgent-list article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    background: #fbfdff;
}

.aura-prof-list article > span,
.aura-urgent-list article > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
    font-weight: 900;
}

.aura-prof-list small,
.aura-urgent-list p {
    display: block;
    margin: 0.25rem 0 0;
    color: var(--aura-muted);
}

.aura-prof-list em,
.aura-urgent-list em {
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.aura-urgent-list em {
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
}

.aura-empty-mini {
    padding: 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.5);
    border-radius: 14px;
    color: var(--aura-muted);
}

@media (max-width: 991.98px) {
    .app-shell {
        display: block;
    }

    .app-sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 18px 16px 14px;
        padding-bottom: 1rem;
    }

    .brand-block {
        justify-content: flex-start;
        gap: 10px;
    }

    .brand-title-wrap {
        display: block;
    }

    .sidebar-copy {
        display: block;
    }

    .sidebar-session {
        display: grid;
    }

    .sidebar-group-label {
        display: block;
    }

    .sidebar-link-copy {
        display: grid;
    }

    .sidebar-nav {
        align-items: stretch;
        gap: 8px;
    }

    .sidebar-logout-form {
        justify-content: stretch;
        padding-top: 12px;
    }

    .sidebar-link {
        width: 100%;
        height: auto;
        justify-content: flex-start;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .app-main {
        padding: 1rem;
    }

    .app-header {
        flex-direction: column;
        align-items: stretch;
    }

    .app-header-tools {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .toolbar {
        flex-direction: column;
    }

    .toolbar-form {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .list-pagination-wrap {
        justify-content: center;
    }

    .legacy-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-hero,
    .dashboard-main-grid,
    .dashboard-pro-hero,
    .dashboard-pro-grid.is-main {
        grid-template-columns: 1fr;
    }

    .dashboard-metric-grid,
    .dashboard-secondary-grid,
    .dashboard-kpi-grid,
    .dashboard-pro-grid,
    .dashboard-filter-grid,
    .aura-kpi-grid,
    .clinical-kpi-grid,
    .clinical-rate-grid,
    .agenda-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aura-dashboard-layout,
    .aura-summary-card {
        grid-template-columns: 1fr;
    }

    .agenda-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .agenda-filter-bar,
    .agenda-filter-grid,
    .agenda-block-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-chart {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .dashboard-bar-chart {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .guest-panel {
        padding: 1.35rem;
    }

    .toolbar-form {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }

    .legacy-stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-metric-grid,
    .dashboard-secondary-grid,
    .dashboard-kpi-grid,
    .dashboard-pro-grid,
    .dashboard-filter-grid,
    .aura-kpi-grid,
    .clinical-kpi-grid,
    .clinical-rate-grid,
    .dashboard-mini-stats,
    .agenda-stats,
    .agenda-filter-bar,
    .agenda-filter-grid,
    .agenda-block-form,
    .appointment-action-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        padding: 18px;
    }

    .dashboard-hero-title {
        font-size: 1.45rem;
    }

    .adoption-meter {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-chart {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dashboard-pro-hero,
    .dashboard-panel,
    .dashboard-kpi-card {
        border-radius: 10px;
    }

    .dashboard-bar-chart,
    .dashboard-bar-chart.is-compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-attendance {
        align-items: flex-start;
        flex-direction: column;
    }

    .clinical-rate-panel,
    .clinical-rate-content {
        grid-template-columns: 1fr;
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-filter-actions {
        flex-direction: column;
    }

    .agenda-command-center,
    .agenda-view-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .agenda-filter-wide {
        grid-column: auto;
    }

    .agenda-modern-board,
    .agenda-modern-board.is-month {
        grid-template-columns: repeat(7, minmax(150px, 1fr));
    }

    .reception-command-grid,
    .reception-workbench,
    .reception-work-grid,
    .reception-slot-panel,
    .communication-filters {
        grid-template-columns: 1fr;
    }

    .reception-command-card.is-primary {
        grid-column: auto;
    }

    .agenda-filter-actions {
        flex-direction: column;
    }

    .dashboard-appointment-item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .dashboard-appointment-item .table-status {
        grid-column: 2;
        justify-self: start;
    }

    .header-account-pill {
        width: 100%;
        justify-content: flex-start;
    }

    .aura-home-hero {
        padding: 1.25rem;
    }

    .aura-hero-actions,
    .aura-period-tabs {
        width: 100%;
    }

    .aura-period-tabs {
        justify-content: space-between;
    }

    .aura-summary-donut {
        width: 156px;
        height: 156px;
    }

    .aura-prof-list article,
    .aura-urgent-list article {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .aura-prof-list em,
    .aura-urgent-list em {
        grid-column: 2;
        justify-self: start;
    }

    .appointment-datetime-head {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    body,
    .app-content,
    .page-transition,
    .page-transition-bar,
    .timeline-bar,
    .status-chart-fill,
    .dashboard-bar-fill,
    .dashboard-progress-fill {
        transition: none;
        animation: none;
    }
}
