/* The Care Desk - Doctor dashboard (js/doctor-dashboard.js) */

.cdd { color: #14233a; }
.cdd small { display: block; font-size: 13.5px; color: #5b6b80; }
.cdd h3 { font-size: 17px; font-weight: 600; margin: 0; }
.cdd-muted { color: #5b6b80; font-size: 14px; }
.cdd-empty { color: #5b6b80; margin: 16px 0; }
.cdd-grow { flex: 1; min-width: 0; }

.cdd-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.cdd-top h1 { font-size: 28px; font-weight: 600; line-height: 1.2; margin: 0; }
.cdd-top p { color: #5b6b80; margin: 0; }
.cdd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cdd-search { display: flex; align-items: center; gap: 9px; width: 270px; margin: 0; background: #fff; border: 1px solid #e4ebf3; border-radius: 12px; padding: 9px 14px; color: #5b6b80; }
.cdd-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #14233a; }
.cdd-search:focus-within { border-color: #2a78d6; }
.cdd-next { display: flex; align-items: center; gap: 8px; background: #14233a; color: #fff; border: 0; border-radius: 22px; padding: 11px 22px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.cdd-next:hover { background: #24375a; }

.cdd-row { display: grid; gap: 16px; margin-bottom: 16px; align-items: stretch; }
.cdd-r1 { grid-template-columns: 300px minmax(0, 1fr) 360px; }
.cdd-r2 { grid-template-columns: minmax(0, 1fr) 360px; }
.cdd-stack { display: grid; gap: 16px; grid-template-rows: auto 1fr; }
.cdd-card { background: #fff; border: 1px solid #e8eef5; border-radius: 18px; padding: 18px; min-width: 0; }
.cdd-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.cdd-link { background: none; border: 0; padding: 0; color: #1c5cab; font-weight: 600; font-size: 14px; text-decoration: none; }
.cdd-name { display: block; color: #14233a; font-weight: 600; font-size: 15.5px; text-decoration: none; }
.cdd-name:hover { color: #1c5cab; }

.cdd-hero { background: linear-gradient(135deg, #2a78d6, #5598e7); border: 0; color: #fff; }
.cdd .cdd-hero small { color: #fff; font-size: 14.5px; }
.cdd-hero-num { font-size: 26px; font-weight: 500; line-height: 1.25; margin: 2px 0 10px; }
.cdd-hero-num b { font-size: 50px; font-weight: 600; }
.cdd-hero-bar { height: 10px; background: rgba(255, 255, 255, .35); border-radius: 6px; overflow: hidden; }
.cdd-hero-bar i { display: block; height: 100%; background: #fff; border-radius: 6px; }
.cdd-hero-sub { display: flex; justify-content: space-between; margin-top: 9px; font-size: 14px; }

.cdd-caps { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; }
.cdd-caps > div { flex: 1; text-align: center; }
.cdd-caps span { font-size: 13px; font-weight: 600; }
.cdd-caps em { display: flex; align-items: flex-end; height: 92px; width: 30px; margin: 3px auto 5px; background: #eef3f9; border-radius: 15px; overflow: hidden; }
.cdd-caps em i { display: block; width: 100%; background: #9ec5f4; border-radius: 15px; }
.cdd-caps .on em i { background: #1c5cab; }

.cdd-dates { display: flex; justify-content: space-between; gap: 4px; margin: 12px 0 10px; }
.cdd-dates button { flex: 1 1 0; max-width: 62px; background: none; border: 0; color: #14233a; padding: 7px 0; border-radius: 14px; }
.cdd-dates button:hover { background: #f1f6fc; }
.cdd-dates b { font-size: 18px; font-weight: 600; }
.cdd-dates .today b { color: #1c5cab; }
.cdd-dates .on, .cdd-dates .on:hover { background: #e4f0fd; box-shadow: inset 0 0 0 2px #2a78d6; }

.cdd-appt { display: flex; align-items: center; gap: 12px; padding: 11px; border-radius: 14px; background: #f6f9fd; margin-top: 8px; }
.cdd-appt.next { background: #e4f0fd; }
.cdd-av { flex: 0 0 44px; height: 44px; border-radius: 50%; background: #fff; color: #1c5cab; font-weight: 600; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.cdd-btn { flex: none; font-size: 14px; font-weight: 600; border-radius: 22px; padding: 7px 18px; text-decoration: none; white-space: nowrap; }
.cdd-btn.solid { background: #1c5cab; color: #fff; border: 1px solid #1c5cab; }
.cdd-btn.line { background: #fff; color: #1c5cab; border: 1px solid #bcd4ee; }

.cdd-alert { display: flex; align-items: center; gap: 12px; padding: 10px 11px; border-radius: 14px; background: #f6f9fd; margin-top: 9px; }
.cdd-alert em { flex: 0 0 38px; height: 38px; border-radius: 11px; background: #fdebe4; color: #c2410c; display: flex; align-items: center; justify-content: center; }
.cdd-alert > span { color: #b8320c; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.cdd .cdd-phone { display: flex; align-items: center; gap: 5px; color: #14233a; }
.cdd-scroll { max-height: 400px; overflow-y: auto; }

.cdd-line { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 10px; margin-top: 14px; }
.cdd-stop { position: relative; display: block; color: inherit; text-decoration: none; }
.cdd-stop::before { content: ""; position: absolute; left: 0; right: -10px; top: 10px; height: 2px; background: #d8e3ef; }
.cdd-stop:last-child::before { right: 0; }
.cdd-dot { position: relative; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #b5c6d8; color: #fff; }
.cdd-stop.completed .cdd-dot { background: #1baf7a; border-color: #1baf7a; }
.cdd-stop.next .cdd-dot { border: 6px solid #1c5cab; }
.cdd .cdd-time { font-weight: 600; color: #14233a; margin: 7px 0; font-size: 15px; }
.cdd-stop-card { background: #f6f9fd; border-radius: 13px; padding: 10px 11px; min-height: 112px; }
.cdd-stop:hover .cdd-stop-card { background: #eaf2fb; }
.cdd-stop-card b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.25; margin-bottom: 3px; color: #14233a; }
.cdd-stop-card u { display: inline-block; text-decoration: none; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #1c5cab; }
.cdd-stop.next .cdd-stop-card { background: #e4f0fd; box-shadow: inset 0 0 0 2px #2a78d6; }
.cdd-stop.completed .cdd-stop-card u { color: #127a55; }

.cdd-pie { display: flex; align-items: center; gap: 22px; margin-top: 8px; }
.cdd-pie svg { flex: none; }
.cdd-legend { flex: 1; min-width: 0; }
.cdd-legend > div { display: grid; grid-template-columns: 12px 1fr auto; gap: 9px; align-items: center; padding: 6px 0; }
.cdd-legend i { width: 12px; height: 12px; border-radius: 4px; }
.cdd-legend b { font-weight: 600; }

@media (max-width: 1399px) {
    .cdd-r1 { grid-template-columns: 280px minmax(0, 1fr); }
    .cdd-r1 > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
    .cdd-r1, .cdd-r2 { grid-template-columns: minmax(0, 1fr); }
    .cdd-search { width: 100%; }
    .cdd-actions { width: 100%; }
}
