/* KhaniCare Rx — approved Style D, role-aware revision v0.6.0; presentation only. */
:root{--kc-green-live:#45bb7c;--kc-green-deep:#168257;--kc-blue-live:#43a7d9;--kc-blue-deep:#196da8}
button.kc-style-d:not(.orb){--kc-top:#f8fdfe;--kc-bottom:#eaf3f7;--kc-color:#345966;--kc-shadow:rgba(39,105,126,.14);position:relative;isolation:isolate;appearance:none;border-radius:13px!important;border:1px solid rgba(95,148,163,.27)!important;background:linear-gradient(135deg,var(--kc-top),var(--kc-bottom))!important;color:var(--kc-color)!important;box-shadow:0 6px 15px var(--kc-shadow),inset 0 1px 0 rgba(255,255,255,.44),inset 0 -2px 0 rgba(0,0,0,.04)!important;min-height:44px;max-width:100%;line-height:1.5;transition:transform .13s ease,filter .14s ease,box-shadow .14s ease!important;touch-action:manipulation}
button.kc-style-d:not(.orb)::after{content:"";position:absolute;pointer-events:none;inset:0 auto 0 0;width:30%;border-radius:inherit;background:linear-gradient(100deg,rgba(255,255,255,.20),transparent)}
button.kc-style-d.kc-tone-primary{--kc-top:var(--kc-blue-live);--kc-bottom:var(--kc-blue-deep);--kc-color:#fff;--kc-shadow:rgba(26,105,155,.24)}
button.kc-style-d.kc-tone-success{--kc-top:var(--kc-green-live);--kc-bottom:var(--kc-green-deep);--kc-color:#fff;--kc-shadow:rgba(28,132,85,.23)}
button.kc-style-d.kc-tone-danger{--kc-top:#ed857f;--kc-bottom:#bd4854;--kc-color:#fff;--kc-shadow:rgba(185,77,85,.21)}
button.kc-style-d:hover:not(:disabled){filter:brightness(1.035)}
button.kc-style-d:active:not(:disabled){transform:translateY(2px) scale(.985);box-shadow:0 2px 9px var(--kc-shadow),inset 0 2px 4px rgba(0,0,0,.10)!important}
button.kc-style-d:disabled{opacity:.56;cursor:not-allowed;transform:none}
button.kc-style-d:focus-visible{outline:3px solid rgba(19,166,142,.46)!important;outline-offset:3px}
button.kc-style-d.kc-size-icon{width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;display:inline-grid!important;place-items:center;padding:0!important}
button.kc-style-d.kc-size-compact{min-height:36px!important;padding:6px 11px!important;font-size:12px}
button.kc-style-d.kc-size-inline{min-height:0!important;background:transparent!important;color:inherit!important;box-shadow:none!important;border-color:transparent!important;transform:none}
.admin-top .top-actions{display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:nowrap!important}
.admin-top .top-actions button.kc-style-d{min-height:40px!important;height:40px!important;flex-shrink:0}
.admin-top .top-actions button.kc-style-d.logout-button{padding:0 10px!important;min-width:68px!important}
button.kc-style-d.result-choice{--kc-top:#fafefe;--kc-bottom:#ebf4f8;--kc-color:#345965;min-height:44px!important}
button.kc-style-d.result-choice.result-available{background:linear-gradient(135deg,#f5fff8,#e7f8ee)!important;color:#20794f!important}
button.kc-style-d.result-choice.result-partial{background:linear-gradient(135deg,#fffdf5,#fff2d9)!important;color:#98621c!important}
button.kc-style-d.result-choice.result-unavailable{background:linear-gradient(135deg,#fff9fa,#fde5e8)!important;color:#a0414d!important}
button.kc-style-d.result-choice.result-available.is-selected{background:linear-gradient(135deg,#dff8e9,#b7ebcc)!important;color:#166846!important;border-color:#6cb98e!important}
button.kc-style-d.result-choice.result-partial.is-selected{background:linear-gradient(135deg,#fff6df,#f9dea3)!important;color:#905b17!important;border-color:#deb765!important}
button.kc-style-d.result-choice.result-unavailable.is-selected{background:linear-gradient(135deg,#ffedf0,#f6c6cc)!important;color:#993846!important;border-color:#dc929d!important}
button.kc-style-d.result-choice[aria-pressed="true"]{box-shadow:0 0 0 2px rgba(32,110,98,.14),0 5px 14px rgba(40,99,104,.10)!important}
@media(max-width:440px){.admin-top .top-actions{gap:5px!important}.admin-top .top-actions button.kc-style-d.kc-size-icon{width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important}}
@media(prefers-reduced-motion:reduce){button.kc-style-d{transition:none!important}button.kc-style-d:active{transform:none}}

/* Consistent approval-footer geometry; PDF/SMS/Share/Close must share one control height. */
#modalBody .detail-footer{display:flex!important;align-items:stretch!important;justify-content:flex-start!important;gap:9px!important;flex-wrap:wrap!important}
#modalBody .detail-footer>button{flex:1 1 158px!important;height:46px!important;min-height:46px!important;max-height:46px!important;padding:9px 14px!important;white-space:normal!important;line-height:1.5!important;text-align:center!important}
#modalBody .detail-footer .report-placeholder{flex:1 0 100%}
@media(max-width:430px){#modalBody .detail-footer>button{flex:1 1 calc(50% - 6px)!important;min-width:0!important}}
