.doc-dash {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.doc-dash-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem 1.65rem;
    border-radius: calc(var(--mf-radius) + 4px);
    background: linear-gradient(135deg, #0e2a38 0%, #134456 42%, #1a5f6b 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(14, 42, 56, 0.22);
    position: relative;
    overflow: hidden;
}

.doc-dash-hero::after {
    content: "";
    position: absolute;
    inset: auto -3rem -4rem auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 187, 173, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.doc-dash-hero__main {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-width: 0;
    flex: 1;
    position: relative;
    z-index: 1;
}

.doc-dash-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.doc-dash-hero__eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.doc-dash-hero__title {
    margin: 0.35rem 0 0;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.doc-dash-hero__sub {
    margin: 0.4rem 0 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
}

.doc-dash-next {
    flex: 0 1 320px;
    min-width: min(100%, 260px);
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.doc-dash-next__label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.doc-dash-next__time {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.doc-dash-next__patient {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.doc-dash-next__meta {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.doc-dash-next__btn {
    align-self: flex-start;
    margin-top: 0.15rem;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    border: none;
    background: #fff;
    color: #0e2a38;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.doc-dash-next__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.doc-dash-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
    gap: 0.75rem;
}

/* Doctor dashboard has five quick actions — keep them on one row on desktop. */
.doc-dash-actions--five {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1199px) {
    .doc-dash-actions--five {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .doc-dash-actions {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    }
}

@media (max-width: 767px) {
    .doc-dash-actions--five {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .doc-dash-actions,
    .doc-dash-actions--five {
        grid-template-columns: 1fr;
    }
}

.doc-dash-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: var(--mf-radius);
    background: var(--mf-surface);
    border: 1px solid var(--mf-border);
    box-shadow: var(--mf-shadow);
    text-decoration: none;
    color: var(--mf-text);
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.doc-dash-action:hover {
    border-color: rgba(43, 187, 173, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(11, 34, 48, 0.1);
    color: var(--mf-text);
}

.doc-dash-action__ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(43, 187, 173, 0.12);
    color: var(--mf-teal);
}

.doc-dash-action__ico--blue {
    background: rgba(76, 110, 245, 0.12);
    color: #4c6ef5;
}

.doc-dash-action__ico--amber {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.doc-dash-action__ico--violet {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
}

.doc-dash-action__label {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
}

.doc-dash-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 767px) {
    .doc-dash-kpis {
        grid-template-columns: 1fr;
    }
}

.doc-dash-kpi {
    background: var(--mf-surface);
    border-radius: var(--mf-radius);
    border: 1px solid var(--mf-border);
    box-shadow: var(--mf-shadow);
    padding: 1.15rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.doc-dash-kpi__ico {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-dash-kpi__ico--teal {
    background: rgba(43, 187, 173, 0.12);
    color: var(--mf-teal);
}

.doc-dash-kpi__ico--blue {
    background: rgba(76, 110, 245, 0.1);
    color: #4c6ef5;
}

.doc-dash-kpi__ico--amber {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.doc-dash-kpi__label {
    margin: 0;
    font-size: 0.8rem;
    color: var(--mf-muted);
    font-weight: 600;
}

.doc-dash-kpi__value {
    margin: 0.2rem 0 0;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--mf-text);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.doc-dash-kpi__hint {
    margin: 0.3rem 0 0;
    font-size: 0.76rem;
    color: var(--mf-muted);
}

.doc-dash-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 991px) {
    .doc-dash-grid {
        grid-template-columns: 1fr;
    }
}

.doc-dash-panel {
    background: var(--mf-surface);
    border-radius: var(--mf-radius);
    border: 1px solid var(--mf-border);
    box-shadow: var(--mf-shadow);
    overflow: hidden;
}

.doc-dash-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--mf-border);
    background: linear-gradient(180deg, rgba(244, 247, 249, 0.65) 0%, transparent 100%);
}

.doc-dash-panel__head-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.doc-dash-panel__ico {
    color: var(--mf-teal);
    display: flex;
}

.doc-dash-panel__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--mf-text);
}

.doc-dash-panel__link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--mf-teal);
    text-decoration: none;
    white-space: nowrap;
}

.doc-dash-panel__link:hover {
    text-decoration: underline;
}

.doc-dash-panel__body {
    padding: 0.85rem 1.2rem 1.15rem;
}

.doc-dash-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    color: var(--mf-muted);
}

.doc-dash-empty__ico {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--mf-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mf-muted);
    margin-bottom: 0.25rem;
}

.doc-dash-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.doc-dash-timeline-item {
    display: grid;
    grid-template-columns: 72px 20px 1fr auto;
    gap: 0.65rem;
    align-items: start;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--mf-border);
}

.doc-dash-timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0.25rem;
}

.doc-dash-timeline-item:first-child {
    padding-top: 0.25rem;
}

.doc-dash-timeline-time {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--mf-text);
    text-align: right;
    padding-top: 0.15rem;
}

.doc-dash-timeline-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 48px;
}

.doc-dash-timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--mf-teal);
    border: 3px solid rgba(43, 187, 173, 0.25);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.doc-dash-timeline-dot--active {
    background: #4c6ef5;
    border-color: rgba(76, 110, 245, 0.25);
    box-shadow: 0 0 0 4px rgba(76, 110, 245, 0.12);
}

.doc-dash-timeline-line {
    flex: 1;
    width: 2px;
    background: var(--mf-border);
    margin-top: 0.35rem;
    min-height: 24px;
}

.doc-dash-timeline-item:last-child .doc-dash-timeline-line {
    display: none;
}

.doc-dash-timeline-card {
    border: none;
    background: var(--mf-bg);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    text-align: left;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.doc-dash-timeline-card:hover {
    background: rgba(43, 187, 173, 0.08);
    box-shadow: inset 0 0 0 1px rgba(43, 187, 173, 0.2);
}

.doc-dash-timeline-name {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--mf-text);
    margin-bottom: 0.2rem;
}

.doc-dash-timeline-meta {
    display: block;
    font-size: 0.78rem;
    color: var(--mf-muted);
}

.doc-dash-upcoming-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.doc-dash-upcoming-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--mf-border);
    background: var(--mf-bg);
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.doc-dash-upcoming-item:hover {
    border-color: rgba(43, 187, 173, 0.35);
    transform: translateX(2px);
}

.doc-dash-upcoming-date {
    flex-shrink: 0;
    width: 52px;
    text-align: center;
    padding: 0.35rem 0.25rem;
    border-radius: 10px;
    background: rgba(76, 110, 245, 0.1);
    color: #3b5bdb;
}

.doc-dash-upcoming-day {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.doc-dash-upcoming-dom {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.1;
}

.doc-dash-upcoming-main {
    flex: 1;
    min-width: 0;
}

.doc-dash-upcoming-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--mf-text);
}

.doc-dash-upcoming-meta {
    display: block;
    font-size: 0.76rem;
    color: var(--mf-muted);
    margin-top: 0.15rem;
}

.doc-dash-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    text-transform: capitalize;
    flex-shrink: 0;
}

.doc-dash-badge--ok {
    background: var(--mf-success-bg);
    color: var(--mf-success-text);
}

.doc-dash-badge--wait {
    background: var(--mf-warning-bg);
    color: var(--mf-warning-text);
}

.doc-dash-badge--progress {
    background: rgba(76, 110, 245, 0.12);
    color: #3b5bdb;
}

.doc-dash-loading {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.doc-dash-skeleton {
    border-radius: var(--mf-radius);
    background: linear-gradient(90deg, var(--mf-border) 25%, rgba(255, 255, 255, 0.5) 50%, var(--mf-border) 75%);
    background-size: 200% 100%;
    animation: doc-dash-shimmer 1.2s ease-in-out infinite;
}

.doc-dash-skeleton--hero {
    height: 140px;
}

.doc-dash-skeleton--row {
    height: 72px;
}

.doc-dash-skeleton--panel {
    height: 280px;
}

@keyframes doc-dash-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
