/* Shared KiraBot interface. Clinic logos are applied only to clinic modules. */
@font-face{font-family:CPAGeometric;src:url('./assets/geometric-heavy.ttf') format('truetype');font-weight:900;font-display:swap}
body[data-kirabot-skin]{--cpa-primary:#194f90;--cpa-secondary:#0883c6;--cpa-light:#acc9e8;--cpa-muted:#94a8cc;--cpa-ink:#17334c;--cpa-paper:#f4f8fc;--cpa-line:#d7e3ef;--cpa-shadow:0 6px 24px rgba(25,79,144,.07);--primary:#194f90;--brand:#194f90;--brand2:#194f90;--accent:#0883c6;--blue:#194f90;--blue-dark:#194f90;--blue-light:#acc9e8;--teal:#0883c6;--bg:#f4f8fc;--ink:#17334c;--text:#17334c;--muted:#526783;--line:#d7e3ef;--border:#d7e3ef;--card:#fff;--soft:#eaf3fc;--shadow:var(--cpa-shadow);font-family:Arial,system-ui,sans-serif;color:var(--cpa-ink);background:var(--cpa-paper);line-height:1.5;color-scheme:light}
[data-kirabot-skin] *,[data-kirabot-skin] *::before,[data-kirabot-skin] *::after{box-sizing:border-box}
[data-kirabot-skin] :is(h1,h2,h3){color:var(--cpa-primary);line-height:1.25;overflow-wrap:anywhere}
[data-kirabot-skin] h1{font-size:clamp(22px,2.2vw,32px)}
[data-kirabot-skin] h2{font-size:clamp(18px,1.7vw,24px)}
[data-kirabot-skin] a{color:var(--cpa-primary);text-underline-offset:3px}
[data-kirabot-skin] :is(a,button,input,select,textarea):focus-visible{outline:3px solid var(--cpa-primary);outline-offset:3px}
[data-kirabot-skin] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font:inherit;max-width:100%;min-width:0;border:1px solid var(--cpa-line);border-radius:10px;background:#fff;color:var(--cpa-ink);padding:10px 12px;min-height:44px}
[data-kirabot-skin] textarea{min-height:100px;resize:vertical}
[data-kirabot-skin] :is(input,textarea)::placeholder{color:#687b91;opacity:1}
[data-kirabot-skin] label{font-weight:600;color:var(--cpa-ink)}
[data-kirabot-skin] :is(button,.btn){font:inherit;font-weight:700;min-height:44px;border-radius:10px;transition:background-color .15s ease,box-shadow .15s ease}
[data-kirabot-skin] :is(button[type=submit],.btn-primary,.button-primary,.primary){background:var(--cpa-primary);color:#fff;border-color:var(--cpa-primary)}
[data-kirabot-skin] :is(button[type=submit],.btn-primary,.button-primary,.primary):not(:disabled):hover{background:#123e73;border-color:#123e73}
[data-kirabot-skin] :is(.btn-ghost,.btn-soft,.btn-menu,.ghost,.secondary,.secondary-button){background:#eaf3fc;color:var(--cpa-primary);border:1px solid var(--cpa-line)}
[data-kirabot-skin] :is(.danger,.btn-danger){color:#a62d26;background:#fff0ee;border:1px solid #edc6c2}
[data-kirabot-skin] :is(button,input,select,textarea):disabled{opacity:.62;cursor:not-allowed}
[data-kirabot-skin] :is(.card,.panel,.patient-card,.appointment-card,.doctor-card,.login-card,.auth-card){border:1px solid var(--cpa-line);border-radius:16px;box-shadow:var(--cpa-shadow);background:#fff;min-width:0}
[data-kirabot-skin] .doctor-card{transition:border-color .15s ease,box-shadow .15s ease;text-decoration:none}
[data-kirabot-skin] .doctor-card:hover{border-color:var(--cpa-secondary);box-shadow:0 8px 24px rgba(25,79,144,.12)}
[data-kirabot-skin] .doctor-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:18px}
[data-kirabot-skin] .doctor-card-name{overflow-wrap:anywhere;line-height:1.35}
[data-kirabot-skin] .doctor-card-spec{overflow-wrap:anywhere;line-height:1.45}
[data-kirabot-skin] .cpa-agenda-status{display:inline-flex;margin-top:12px;padding:4px 9px;border-radius:6px;font-size:12px;font-weight:600;color:#194f90;background:#eaf3fc}
[data-kirabot-skin] .cpa-agenda-status.pending{color:#80500b;background:#fff4dc}
[data-kirabot-skin] .cpa-brandbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;margin-bottom:20px;border-bottom:1px solid var(--cpa-line);flex-wrap:wrap}
[data-kirabot-skin] .cpa-brandbar .cpa-module-label{font-size:14px;font-weight:700;color:var(--cpa-primary)}
[data-kirabot-skin] .cpa-official-logo{display:block;width:clamp(180px,20vw,252px);max-width:100%;height:auto;min-width:0;flex-shrink:0;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}
[data-kirabot-skin] .cpa-official-logo img{display:block;width:100%;height:auto}
[data-kirabot-skin] .cpa-welcome-logo{display:block;width:210px;max-width:80%;height:auto;max-height:none;object-fit:contain;margin:0 auto 18px}
[data-kirabot-skin] .topbar{background:#fff;color:var(--cpa-ink);border-color:var(--cpa-line);box-shadow:var(--cpa-shadow);gap:18px;min-width:0}
[data-kirabot-skin] :is(.brand,.brand-block,.login-brand){gap:16px;min-width:0}
[data-kirabot-skin] :is(.brand-title,.brand-sub,.brand-subtitle){white-space:normal;overflow-wrap:anywhere}
[data-kirabot-skin] :is(.brand-title,.cpa-heading){color:var(--cpa-primary)}
[data-kirabot-skin] :is(.brand-sub,.brand-subtitle,.muted,.sub){color:#526783}
[data-kirabot-skin] :is(.hero,.hero-section){background:linear-gradient(120deg,#eaf3fc,#f6faff);color:var(--cpa-ink);border-bottom:1px solid var(--cpa-line)}
[data-kirabot-skin] .hero :is(h1,h2,p){color:var(--cpa-ink)}
[data-kirabot-skin] .hero :is(input,select){background:#fff;color:var(--cpa-ink)}
[data-kirabot-skin] .hero-badge{background:#fff;color:var(--cpa-primary);border-color:var(--cpa-line)}
[data-kirabot-skin] :is(.app-shell,.wrap,.container,.page,.dashboard-shell){min-width:0;max-width:100%}
[data-kirabot-skin] .cpa-table-scroll{max-width:100%;overflow:auto;border-radius:12px;overscroll-behavior-inline:contain}
[data-kirabot-skin] table{border-collapse:separate;border-spacing:0}
[data-kirabot-skin] :is(th,td){padding:12px 14px;vertical-align:top}
[data-kirabot-skin] th{background:#eaf3fc;color:var(--cpa-primary);font-weight:700}
[data-kirabot-skin] :is(td,th){border-bottom-color:var(--cpa-line)}
[data-kirabot-skin] :is(.login-shell,.auth-shell){padding:24px 16px;width:100%;min-height:100svh}
[data-kirabot-skin] :is(.login-card,.auth-card){width:min(100%,520px);padding:clamp(22px,4vw,38px)}
[data-kirabot-skin] .login-brand{flex-wrap:wrap}
[data-kirabot-skin] .login-alert{border-color:var(--cpa-line);color:var(--cpa-ink);background:#eaf3fc}
body[data-kirabot-skin].cpa-auth-page{min-height:100svh;height:auto;padding:24px 16px;overflow:auto}
body[data-kirabot-skin].cpa-auth-page>main.card{width:min(100%,520px);padding:28px}
[data-kirabot-skin] .cpa-password-toggle{display:block;background:transparent;border:0;color:var(--cpa-primary);font-size:13px;padding:4px 0;min-height:32px;width:auto;text-align:left;margin-top:4px}
[data-kirabot-skin] .cpa-note{padding:14px 16px;background:#eaf3fc;border-left:3px solid var(--cpa-secondary);border-radius:8px}
body[data-kirabot-skin=platform] .brand-panel{background:linear-gradient(145deg,#194f90,#163d70);color:#fff;border-radius:18px}
body[data-kirabot-skin=platform] .brand-panel :is(h1,p,strong,span){color:inherit}
body[data-kirabot-skin=platform] :is(.sidebar,.admin-sidebar){background:#163d70;color:#fff}
body[data-kirabot-skin=platform] :is(.sidebar,.admin-sidebar) a{color:inherit}
@media(min-width:1200px){[data-kirabot-module=reception] .topbar{grid-template-columns:minmax(270px,1fr) minmax(300px,1.5fr)}[data-kirabot-module=reception] .kpi-strip{grid-column:1/-1;grid-template-columns:repeat(8,minmax(0,1fr))}}
@media(max-width:1000px){[data-kirabot-skin] .topbar{display:flex;flex-wrap:wrap;padding:16px;align-items:center}[data-kirabot-skin] .topbar-actions{display:flex;gap:8px;flex-wrap:wrap;max-width:100%}[data-kirabot-module=reception] .brand-block{width:100%}[data-kirabot-module=reception] .search-block{width:100%;display:flex;flex-wrap:wrap}[data-kirabot-module=reception] .search-block input[type=search]{flex:1 1 240px}[data-kirabot-module=reception] .kpi-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}}
@media(max-width:640px){[data-kirabot-skin] :is(.wrap,.app-shell,.page){padding-left:14px;padding-right:14px}[data-kirabot-skin] .cpa-official-logo{width:205px}[data-kirabot-skin] .brand{flex-wrap:wrap}[data-kirabot-skin] :is(.filter-bar,.card-title-row,.panel-head){flex-wrap:wrap;gap:12px}[data-kirabot-skin] :is(.topbar-actions,.mini-actions){width:100%;flex-wrap:wrap}[data-kirabot-skin] .topbar-actions .btn{flex:1 1 auto;justify-content:center}[data-kirabot-skin] .search-wrap{width:100%;max-width:100%;min-width:0}[data-kirabot-skin] .slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}[data-kirabot-skin] .kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}[data-kirabot-skin] .data-grid.two{grid-template-columns:1fr}[data-kirabot-skin] .mini-actions .btn{flex:1 1 150px}[data-kirabot-skin] .cpa-brandbar{gap:12px;margin-bottom:16px}}
@media(prefers-reduced-motion:reduce){[data-kirabot-skin] *,[data-kirabot-skin] *::before,[data-kirabot-skin] *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media print{[data-kirabot-skin]{background:#fff}[data-kirabot-skin] .cpa-official-logo{width:180px}[data-kirabot-skin] .cpa-password-toggle{display:none}[data-kirabot-skin] :is(.card,.panel){box-shadow:none}[data-kirabot-skin] .cpa-table-scroll{overflow:visible}}

[data-kirabot-skin] .access-btn.btn-reception,[data-kirabot-module=patient] main.card>a{background:var(--cpa-primary);color:#fff}
[data-kirabot-module=patient] main.card p{color:var(--cpa-ink)}
[data-kirabot-module=callcenter].cpa-auth-page main.card>.cpa-official-logo{margin:0 auto 22px;width:252px}
[data-kirabot-skin] .field input{padding-left:42px;padding-right:46px}
/* Reception must grow with its eight indicators and controls instead of clipping at 78px. */
body[data-kirabot-module=reception]{height:auto;min-height:100svh;overflow:auto}
[data-kirabot-module=reception] .app-shell{height:auto;min-height:100svh;grid-template-rows:auto 1fr}
[data-kirabot-module=reception] .brand-block{flex-wrap:wrap}
[data-kirabot-module=reception] .detail-grid{grid-template-rows:auto auto;align-items:start}
[data-kirabot-module=reception] .detail-grid .card{overflow:visible}
[data-kirabot-module=reception] .appointments-list{max-height:70vh}
[data-kirabot-skin] .field input:not([type=checkbox]):not([type=radio]){padding-left:42px;padding-right:46px}
@media(min-width:1181px) and (max-width:1599px){[data-kirabot-module=reception] .workspace{grid-template-columns:270px minmax(0,1fr)}[data-kirabot-module=reception] .photo-panel{grid-column:2}}
@media(max-width:1180px){[data-kirabot-module=reception] .workspace,[data-kirabot-module=reception] .detail-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:auto}[data-kirabot-module=reception] :is(.patient-card,.appointment-card,.payment-card,.checkin-card,.photo-panel){grid-column:auto;grid-row:auto}}
@media(max-width:640px){[data-kirabot-module=reception] .card-title-row{flex-direction:column}[data-kirabot-module=reception] .action-row,[data-kirabot-module=reception] .photo-actions{grid-template-columns:1fr 1fr}[data-kirabot-module=reception] .mini-actions{display:flex;flex-wrap:wrap}[data-kirabot-module=reception] .patient-appt-row,[data-kirabot-module=reception] .payment-grid{grid-template-columns:1fr}}

[data-kirabot-module=reception] .card-title-row{flex-wrap:wrap}
[data-kirabot-module=reception] .card-title-row>div:first-child{min-width:170px;flex:1 1 170px}
[data-kirabot-module=reception] #patientName{overflow-wrap:normal;word-break:normal}
