@font-face {
    font-family: "Clinic Poppins";
    src: url("dashboard/poppins-semibold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Clinic Poppins";
    src: url("dashboard/poppins-bold.woff2") format("woff2");
    font-weight: 700 900;
    font-display: swap;
}
@font-face {
    font-family: "Clinic Bengali";
    src: url("dashboard/hind-siliguri.woff2") format("woff2");
    font-weight: 400 900;
    font-display: swap;
    unicode-range: U+0980-09FF,U+0964-0965,U+200C-200D;
}

.admin-home { background: #e7f8f9; color: #092133; font-family: "Clinic Bengali", "Clinic Poppins", system-ui, sans-serif; font-size: 13px; }
.admin-home .layout { grid-template-columns: clamp(164px,16vw,224px) minmax(0,1fr); }
.admin-home main { padding: 0; }
.admin-home .sidebar {
    padding: 12px 9px;
    background: radial-gradient(ellipse at -5% 100%, #01ad89 0, transparent 27%),linear-gradient(150deg,#062930,#064242 78%,#076b62);
}
.admin-home .brand { min-height: 53px; padding: 0 7px; line-height: 1.14; font-size: clamp(14px,1.6vw,21px); margin-bottom: 13px; }
.admin-home .sidebar nav { gap: 3px; }
.admin-home .sidebar nav a { display:flex; align-items:center; gap: 8px; padding: 6px 8px; min-height: 40px; font-size: 12px; }
.admin-home .sidebar nav a[aria-current] { background: linear-gradient(#08a78c,#067765); box-shadow: inset 0 0 0 1px #45e1c3; }
.dash-icon {
    --tone: #2094b8;
    --shade: #095970;
    color: white;
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 9px;
    background: radial-gradient(ellipse at 30% 6%,#ffffff94 0,transparent 60%),linear-gradient(155deg,var(--tone),var(--shade));
    box-shadow: inset 0 1px 1px #fff9,inset 0 -2px 2px #09263738,0 2px 4px #102d4835;
}
.dash-icon svg { width: 70%; height: 70%; filter: drop-shadow(0 1px 1px #14253a60); }
.dash-icon--patients,.dash-icon--home,.dash-icon--clinic { --tone: #20dba4; --shade: #00785b; }
.dash-icon--appointments,.dash-icon--audit { --tone: #ad65fa; --shade: #6443c7; }
.dash-icon--cash,.dash-icon--billing { --tone: #ffc04b; --shade: #b45a05; }
.dash-icon--users { --tone: #718cff; --shade: #374aaf; }
.dash-icon--appearance { --tone: #4cbeff; --shade: #195b96; }
.admin-home .brand .dash-icon,.dash-banner-copy .dash-icon { width: 40px; height: 40px; border-radius: 45% 48% 42% 48%; }
.dash-header {
    min-height: 61px;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(150px, 300px) auto auto;
    align-items: center;
    gap: 15px;
    padding: 8px 14px;
    background: linear-gradient(100deg,#073138,#055a52);
    color: white;
    box-shadow: 0 2px 6px #174c6150;
}
.dash-header strong { display: block; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.dash-header span { font-size: 11px; }
.dash-head-search { background: #faffff; color: #154347; border-radius: 22px; padding: 6px 12px; }
.dash-head-search,.dash-profile,.dash-head-audit { display:flex; gap:7px; align-items:center; text-decoration:none; }
.dash-head-audit { color: white; }
.dash-head-search .dash-icon { width: 20px; height: 20px; }
.dash-content { padding: 12px; display: grid; gap: 9px; }
.dash-welcome { display: grid; grid-template-columns: minmax(0,3fr) minmax(145px,1fr); gap: 9px; }
.dash-banner {
    min-height: 106px;
    border-radius: 12px;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    background: linear-gradient(110deg,#075255,#08a68d);
}
.dash-banner > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position: center; z-index:-2; }
.dash-banner::before { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(90deg,#00393de8 0,#03505470 55%,transparent 82%); }
.dash-banner-copy { display:flex; gap:10px; align-items:center; padding: 15px; }
.dash-banner-copy img { width:44px; height:44px; object-fit:contain; }
.dash-banner h1 { margin: 0; font-size: clamp(17px,2.4vw,34px); line-height:1.1; overflow-wrap: anywhere; }
.dash-banner p { margin:4px 0 0; font-weight: 700; font-size: 11px; }
.dash-panel,.dash-metric {
    background: linear-gradient(148deg,#fff 0,#effaff 100%);
    border: 1px solid #cee5ed;
    border-radius: 11px;
    box-shadow: 0 2px 5px #244b6d19;
    min-width: 0;
}
.dash-panel { padding: 9px; }
.dash-panel h2 { font-size: 13px; margin: 0 0 6px; line-height: 1.3; }
.dash-date { display:grid; align-content:center; gap:6px; }
.dash-date div { display:flex; align-items:center; gap:8px; overflow-wrap:anywhere; }
.dash-date .dash-icon { width:23px;height:23px; }
.dash-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.dash-metric { background: linear-gradient(145deg,#fff 1%,var(--pastel)); padding: 9px 8px; display:flex; align-items:center; gap:7px; min-height:65px; }
.dash-metric div { min-width:0; }
.dash-metric div span { display:block; font-size:11px; font-weight:700; }
.dash-metric strong { display:block; font-size:clamp(14px,1.55vw,22px); overflow-wrap:anywhere; line-height:1.18; }
.dash-metric .dash-icon { width:34px; height:34px; }
.dash-tone-mint { --pastel:#dcfcec; }
.dash-tone-sky { --pastel:#dff3ff; }
.dash-tone-lavender { --pastel:#ede0ff; }
.dash-tone-peach { --pastel:#ffeddf; }
.dash-tone-pink { --pastel:#ffdeef; }
.dash-tone-cyan { --pastel:#d9f5ff; }
.dash-tone-plum { --pastel:#f5e4ff; }
.dash-tone-violet { --pastel:#e5e2ff; }
.dash-boards { display:grid; grid-template-columns:minmax(0,1.03fr) minmax(0,.78fr) minmax(0,1.27fr); gap:8px; }
.dash-legend { display:flex; gap:9px; font-size:10px; flex-wrap:wrap; }
.dash-legend span::before { content:""; display:inline-block; vertical-align:middle; margin-right:3px; width:7px;height:7px;border-radius:50%;background:#75bbe5; }
.dash-legend span:last-child::before { background:#08a77d; }
.dash-bars { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; margin-top:6px; }
.dash-bar { display:grid; justify-items:center; gap:2px; }
.dash-bar-total,.dash-bar small { font-size:10px; }
.dash-bar-track { height:67px; width:100%; border-bottom:1px solid #a8c7d8; position:relative; background:repeating-linear-gradient(to top,transparent 0,transparent 15px,#daedf5 16px,#daedf5 17px); }
.dash-bar-track span { position:absolute; bottom:0; left:17%; width:66%; height:var(--bar); border-radius:4px 4px 0 0; }
.dash-bar-booked { background:linear-gradient(#9fd9f7,#5ba6ce); }
.dash-bar-visits { background:linear-gradient(#28d79d,#048775); }
.dash-payments { margin:0; }
.dash-payments div { display:flex; justify-content:space-between; gap:5px; flex-wrap:wrap; padding:6px 0; border-bottom:1px solid #dbeaf0; }
.dash-payments dd { margin:0; font-weight:700; overflow-wrap:anywhere; }
.dash-quick { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:5px; }
.dash-quick a { text-align:center; min-width:0; text-decoration:none; color:#173646; background:linear-gradient(#fff,#e4f3fc); border:1px solid #dcebf4; border-radius:8px; padding:5px 2px; font-size:10px; font-weight:700; display:grid; justify-items:center; gap:3px; line-height:1.2; overflow-wrap:anywhere; }
.dash-quick .dash-icon { width:24px;height:24px; }
.dash-quick a:hover,.dash-quick a:focus-visible { border-color:#139f88; }
.dash-recent-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.dash-recent-head h2 { margin:0 auto 0 0; }
.dash-recent-head input { width: min(100%,185px); margin:0; padding:4px 8px; }
.dash-recent-head input[hidden] { display:none; }
.dash-button { background:linear-gradient(#0fa990,#087363); color:white; padding:5px 8px; border-radius:6px; text-decoration:none; }
.dash-table-wrap { overflow:auto; }
.dash-recent table { margin-top:6px; min-width:410px; }
.dash-recent th { background:#08766c;color:white; }
.dash-recent th,.dash-recent td { padding:5px 8px; font-size:11px; overflow-wrap:anywhere; }
.dash-recent td a { margin-right:8px; }
.dash-recent tr:nth-child(even) { background:#e8f6fc; }
.dash-mobile-nav { display:none; }
@media (max-width:1100px) {
    .dash-header { gap:8px; }
    .dash-head-audit span:not(.dash-icon) { display:none; }
    .dash-metric .dash-icon { width:28px;height:28px; }
}
@media (max-width:850px) {
    .dash-header { grid-template-columns: 1fr auto auto; }
    .dash-head-search { display:none; }
    .dash-boards { grid-template-columns:1fr 1fr; }
    .dash-boards > :last-child { grid-column: 1 / -1; }
    .dash-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:720px) {
    .admin-home .layout { display:block; padding-bottom:calc(64px + env(safe-area-inset-bottom)); }
    .admin-home .sidebar { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:4px; padding: 7px 9px; }
    .admin-home .brand { margin:0; min-height:0; font-size:15px; }
    .admin-home .brand .dash-icon,.admin-home .brand img { width:29px;height:29px; }
    .admin-home .sidebar form button { font-size:11px; padding:6px 8px; }
    .admin-home .sidebar nav { width:100%; margin:0; order:3; }
    .admin-home .sidebar nav a { min-height:32px; padding:4px; }
    .admin-home .sidebar nav .dash-icon { width:20px;height:20px; }
    .dash-header { min-height:45px; }
    .dash-header strong { font-size:12px; }
    .dash-profile .dash-icon { display:none; }
    .dash-content { padding:8px; }
    .dash-welcome { grid-template-columns:1fr; }
    .dash-date { grid-template-columns: 1fr 1fr; }
    .dash-banner { min-height:105px; }
    .dash-mobile-nav {
        display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:2px;
        position:fixed; z-index:2; bottom:0; left:0; right:0; padding:4px 6px calc(4px + env(safe-area-inset-bottom)); margin:0;
        background:#064343; box-shadow:0 -3px 10px #14474533; overflow:visible;
    }
    .dash-mobile-nav a { font-size:9px; color:white; display:grid; justify-items:center; gap:2px; padding:2px; text-decoration:none; }
    .dash-mobile-nav .dash-icon { width:23px;height:23px; }
    .dash-mobile-nav .dash-mobile-add .dash-icon { border-radius:50%; width:32px;height:32px; margin-top:-9px; box-shadow:0 0 0 2px #d5fff1; }
}
@media print {
    .dash-mobile-nav,.dash-header,.dash-quick,.dash-recent-head a,.dash-recent-head input { display:none; }
    .admin-home .layout { display:block; padding-bottom:0; }
}
