﻿/* Searchable dropdown (Select2) + date picker (flatpickr) styled to match the Unimax UI */
.select2-container{width:100%!important;font-size:13px}
.select2-container--default .select2-selection--single{height:auto;min-height:39px;border:1px solid var(--line);border-radius:8px;padding:5px 4px;display:flex;align-items:center}
.select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--ink);padding-left:7px;line-height:1.4}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:100%;top:0}
.select2-container--default.select2-container--focus .select2-selection--single,.select2-container--open .select2-selection--single{border-color:#83a8f8;box-shadow:0 0 0 3px #2563eb14}
.select2-dropdown{border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 30px #0d1e3b26;overflow:hidden}
.select2-search--dropdown .select2-search__field{border:1px solid var(--line);border-radius:6px;padding:8px}
.select2-container--default .select2-results__option--highlighted[aria-selected]{background:#2456bb}
.select2-container{z-index:1}.select2-container--open{z-index:1061}.select2-dropdown{z-index:1062}
.search + .select2-container,.toolbar .select2-container{min-width:190px;width:auto!important}
td .select2-container{min-width:140px}
.flatpickr-input.hms-date{background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2359677b' stroke-width='2'><rect x='2' y='3' width='12' height='11' rx='2'/><path d='M2 6.5h12M5 1.5v3M11 1.5v3'/></svg>") no-repeat right 11px center;cursor:pointer;padding-right:34px}
.flatpickr-calendar{z-index:1100!important;border-radius:10px;box-shadow:0 10px 30px #0d1e3b26}
.flatpickr-day.selected{background:#2456bb;border-color:#2456bb}
.err-note{background:#fff0f0;border:1px solid #ffd0d0;color:#a12b2b;padding:11px 14px;border-radius:9px;font-size:13px;margin-bottom:15px}
.ok-note{background:#e8f7f2;border:1px solid #c5ebde;color:#0f6b4b;padding:11px 14px;border-radius:9px;font-size:13px;margin-bottom:15px}
.nav a.navlink{display:flex;align-items:center;gap:12px;width:100%;padding:11px 13px;color:#c4d1e3;border-radius:9px;margin:2px 0;font-size:13px;text-decoration:none;box-sizing:border-box}
.nav a.navlink:hover,.nav a.navlink.active{background:#ffffff18;color:#fff}
.nav a.navlink.soon{opacity:.45}
.nav a.navlink .ico{width:18px;text-align:center;font-size:16px}
.linkbtn{background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;text-align:left}
.doctor-tile{text-decoration:none;color:inherit;display:block}

#hmsBar{position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,#2456bb,#18a0a0);z-index:9999;opacity:0;transition:width .35s ease,opacity .25s}

/* doctor photos: keep the face visible (crop from the bottom, not the top) */
.doctor-tile img{height:215px;object-fit:cover;object-position:center 12%}
.doctor-photo,.doctor-card .doctor-photo{object-fit:cover;object-position:center 12%}
.doctor-detail img{width:104px;height:128px;object-fit:cover;object-position:center 12%;flex:none}
@media(max-width:680px){.doctor-detail img{width:84px;height:104px}.doctor-tile img{height:190px}}
/* payment box */
.pay-box{border:1px solid var(--line);border-radius:12px;padding:14px;margin-top:14px;background:#fbfcff}
.pay-box h4{margin:0 0 4px}.pay-sum{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding:9px 12px;background:#eef3ff;border-radius:9px;font-size:13px}
.pay-quick{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.pay-quick button{border:1px solid var(--line);background:#fff;border-radius:20px;padding:5px 12px;font-size:12px;cursor:pointer}
.rcpt{font-size:13px}.rcpt .stamp{display:inline-block;border:2px solid;border-radius:8px;padding:3px 12px;font-weight:800;letter-spacing:1px;transform:rotate(-4deg)}
.stamp.paid{color:#0f9d58;border-color:#0f9d58}.stamp.part{color:#d68a00;border-color:#d68a00}.stamp.due{color:#c0392b;border-color:#c0392b}
.opt-card{display:flex;gap:12px;align-items:flex-start;border:2px solid var(--line);border-radius:12px;padding:12px 14px;margin-top:10px;cursor:pointer}.opt-card input{margin-top:4px}
.opt-card.on,.opt-card:has(input:checked){border-color:#2456bb;background:#f3f7ff}

/* doctor directory: 4 per row on desktop, photo and details separate, full photo visible */
.doctor-board{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px}
.doctor-tile{display:flex!important;flex-direction:column}
.doctor-tile img{width:100%;height:230px!important;object-fit:contain!important;object-position:center!important;background:#eef2f8;border-bottom:1px solid var(--line);padding:6px;box-sizing:border-box}
.doctor-tile-info{display:flex;flex-direction:column;flex:1;padding:14px}
.doctor-tile-foot{margin-top:auto!important;flex-wrap:wrap;gap:8px}
.doctor-detail img{object-fit:contain!important;background:#eef2f8;width:104px;height:128px}
@media(max-width:1250px){.doctor-board{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:900px){.doctor-board{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){.doctor-board{grid-template-columns:1fr!important}.doctor-tile img{height:210px!important}}
