/* One visual language for CARE360 routed modules; business forms and RBAC remain intact. */
@font-face{font-family:'Care360 Thai';src:url('../fonts/care360/NotoSansThai-Regular.ttf') format('truetype');font-weight:100 599;font-style:normal;font-display:swap}
@font-face{font-family:'Care360 Thai';src:url('../fonts/care360/NotoSansThai-Bold.ttf') format('truetype');font-weight:600 900;font-style:normal;font-display:swap}
html body.care-system-ui{--hms-ui-font:'Care360 Thai',Tahoma,sans-serif;--hms-heading-font:'Care360 Thai',Tahoma,sans-serif;--care-ui-font:'Care360 Thai',Tahoma,sans-serif;--care-heading-font:'Care360 Thai',Tahoma,sans-serif;--system-accent:#087ded;--line:#dbe9f5;--radius:15px;--shadow:0 3px 14px #1e598a0b;font-size:16px!important;line-height:1.6!important;background:#f0f8ff!important}
html body.care-system-ui .content-wrap{padding:18px!important;min-width:0}
html body.care-system-ui .page-head{background:linear-gradient(110deg,#fff,#e9f5ff)!important;border:1px solid #dae9f6!important;border-left:5px solid var(--system-accent)!important;border-radius:15px!important;padding:17px 19px!important;margin:0 0 17px!important;box-shadow:var(--shadow)!important;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
html body.care-system-ui .page-head h1{font-size:25px!important;line-height:1.5!important;color:#08285b!important;margin:0!important;font-weight:700!important}
html body.care-system-ui .page-head h1 span{font-size:17px!important;line-height:1.5!important}
html body.care-system-ui .page-head p{font-size:14px!important;line-height:1.65!important;color:#53708c!important;margin:4px 0 0!important}
html body.care-system-ui .card{border:1px solid #dce9f4!important;border-radius:15px!important;box-shadow:var(--shadow)!important;padding:18px!important;background:#fff!important;min-width:0;font-size:16px!important}
html body.care-system-ui .card-head{border-bottom:1px solid #edf2f7;padding-bottom:12px;gap:12px;flex-wrap:wrap}
html body.care-system-ui :is(.card h2,.card h3,.card-head h3){font-size:19px!important;line-height:1.5!important;color:#0d345f!important}
html body.care-system-ui :is(.page-actions,.page-head-actions,.page-head .filter-row){display:flex;flex-wrap:wrap;gap:8px;align-items:center}
html body.care-system-ui :is(.btn,.form-control,label,select,input:not([type=checkbox]):not([type=radio]),textarea){font-size:15px!important;line-height:1.5!important;font-family:'Care360 Thai',Tahoma,sans-serif!important}
html body.care-system-ui .form-control{border:1px solid #ccddec!important;border-radius:10px!important;min-height:43px;background:#fff!important;color:#1b3b59!important;box-shadow:none!important;width:100%;max-width:100%;padding:10px 12px!important}
html body.care-system-ui :is(input,select,textarea):focus-visible{outline:3px solid #7cc5ff!important;outline-offset:2px;border-color:#0980ec!important}
html body.care-system-ui label{display:block;font-weight:600!important;margin-bottom:9px!important;color:#23415f!important}
html body.care-system-ui :is(label.check-row,label.check-line,.check-grid label){display:flex;align-items:flex-start;gap:8px}
html body.care-system-ui :is(input[type=checkbox],input[type=radio]){accent-color:var(--system-accent);width:18px;height:18px;flex-shrink:0;cursor:pointer}
html body.care-system-ui .btn{min-height:40px;padding:9px 14px!important;border-radius:10px!important;border:1px solid #d4e4f2;background:#f3f8ff!important;color:#184b79!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;white-space:normal;box-shadow:none!important}
html body.care-system-ui .btn-primary{background:linear-gradient(100deg,#057eeb,#168ff6)!important;color:white!important;border-color:#087ded!important}
html body.care-system-ui .btn-success{background:#039b72!important;color:#fff!important;border-color:#039b72!important}
html body.care-system-ui .btn-danger{background:#fff0f3!important;color:#be2445!important;border-color:#ffd0da!important}
html body.care-system-ui .btn-sm{font-size:13px!important;min-height:33px;padding:6px 10px!important}
html body.care-system-ui :is(button,a).btn:focus-visible{outline:3px solid #1886ee;outline-offset:2px}
html body.care-system-ui :is(button,input):disabled{opacity:.6;cursor:not-allowed!important}
html body.care-system-ui .table-responsive{overflow:auto!important;width:100%;max-width:100%;border:1px solid #e0ebf5;border-radius:12px;-webkit-overflow-scrolling:touch}
html body.care-system-ui table{font-size:14px!important;border-collapse:collapse;width:100%;background:white}
html body.care-system-ui th{font-size:14px!important;color:#214975!important;background:#eaf3fc!important;font-weight:700!important;line-height:1.6!important;padding:11px 12px!important;border-bottom:1px solid #d8e5f2!important;white-space:nowrap}
html body.care-system-ui td{font-size:14px!important;padding:11px 12px!important;line-height:1.6!important;border-bottom:1px solid #ecf2f8!important;vertical-align:middle!important}
html body.care-system-ui tbody tr:hover td{background:#f5faff}
html body.care-system-ui :is(.chip,.status,.badge){font-size:12px!important;line-height:1.5!important;border-radius:8px;padding:5px 9px!important}
html body.care-system-ui :is(.muted,.help-text,.form-text,.card small){font-size:13px!important;line-height:1.6!important}
html body.care-system-ui .kpi-grid{gap:12px!important;margin-bottom:18px!important}
html body.care-system-ui .kpi-card{border:1px solid #d9eafa!important;border-radius:14px!important;background:#fff!important;padding:16px!important;box-shadow:var(--shadow)!important}
html body.care-system-ui .kpi-card small{font-size:14px!important;color:#436683!important}
html body.care-system-ui .kpi-card strong{font-size:32px!important;color:#0b365e!important;line-height:1.35!important}
html body.care-system-ui .kpi-icon{border-radius:12px!important}
html body.care-system-ui :is(.two-col,.form-grid,.grid-2,.grid-3,.dashboard-grid){gap:16px!important;min-width:0}
html body.care-system-ui :is(.two-col,.form-grid,.grid-2,.grid-3,.dashboard-grid)>*{min-width:0}
html body.care-system-ui :is(.alert,.security-note){border-radius:12px!important;font-size:14px!important;line-height:1.65!important;padding:14px 16px!important}
html body.care-system-ui .care-module-error{border-left:5px solid #f2a52a!important;margin:16px 0!important}
html body.care-system-ui #sidebar .nav-section-copy strong{font-size:14px!important;line-height:1.5!important}
html body.care-system-ui #sidebar .nav-subitem{font-size:14px!important;line-height:1.6!important;min-height:40px!important}
html body.care-system-ui #sidebar .nav-accordion-panel{padding:4px 0!important}
html body.care-system-ui .cdr-dashboard table{min-width:460px}
html body.care-system-ui .modal.show{display:flex!important;z-index:1300!important}
html body.care-system-ui .sticky-save{z-index:20!important;border-radius:12px!important}
html body.care-login-standard,html body.care-login-standard *{font-family:'Care360 Thai',Tahoma,sans-serif!important}
html body.care-login-standard{background:linear-gradient(135deg,#e8f8ff,#eff5ff 60%,#eafbf3)!important;--hms-ui-font:'Care360 Thai',Tahoma,sans-serif;--hms-heading-font:'Care360 Thai',Tahoma,sans-serif}
html body.care-login-standard :is(input,button){font-size:16px!important;min-height:44px;border-radius:10px!important}
html body.care-login-standard .login-card{border-radius:20px!important;box-shadow:0 14px 44px #244e7a18!important}
@media(max-width:1200px){html body.care-system-ui :is(.filter-grid,.filter-row){flex-wrap:wrap}html body.care-system-ui .filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:900px){html body.care-system-ui .content-wrap{padding:12px 12px 90px!important}html body.care-system-ui .page-head{padding:14px!important}html body.care-system-ui .page-head h1{font-size:22px!important}html body.care-system-ui :is(.two-col,.form-section-grid,.grid-2){grid-template-columns:1fr!important}}
@media(max-width:600px){html body.care-system-ui .content-wrap{padding:10px 10px 90px!important}html body.care-system-ui .card{padding:13px!important}html body.care-system-ui .page-head h1{font-size:20px!important}html body.care-system-ui :is(.page-head p,.card small){font-size:13px!important}html body.care-system-ui :is(.btn,.form-control,label){font-size:15px!important}html body.care-system-ui :is(th,td){font-size:13px!important;padding:9px!important}html body.care-system-ui :is(.filter-grid,.form-grid,.grid-3){grid-template-columns:1fr!important}html body.care-system-ui .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media print{html body.care-system-ui .content-wrap{padding:0!important}html body.care-system-ui .card{box-shadow:none!important;border-radius:0!important}html body.care-system-ui :is(.page-head,.topbar,.mobile-bottom-nav,.care-module-error){display:none!important}html body.care-system-ui :is(.official-page,.official-page *,.official-table,.report-sheet,.report-sheet *){font-family:'Sarabun','TH Sarabun New',Tahoma,sans-serif!important}}
html body.care-system-ui.care-domain-health{--system-accent:#00a675}
html body.care-system-ui.care-domain-referral{--system-accent:#7635eb}
html body.care-system-ui.care-domain-report{--system-accent:#f3a10b}
html body.care-system-ui.care-domain-system{--system-accent:#45617f}
html body.care-system-ui .card-head h3{color:var(--system-accent)!important}
html body.care-system-ui #sidebar :is(.nav-section-icon,.nav-item-icon) svg{display:block;width:18px;height:18px;flex-shrink:0;pointer-events:none}
html body.care-system-ui .top-actions>.icon-btn svg,html body.care-system-ui .top-logout svg{width:22px;height:22px;color:#587ba1}
html body.care-system-ui .care-brand-heart svg{width:14px;height:14px;color:#f0527d;vertical-align:middle}
html body.care-system-ui #sidebar .nav-section-chevron{transform:rotate(0deg)!important}
html body.care-system-ui #sidebar .nav-accordion.open .nav-section-chevron{transform:rotate(180deg)!important}
html body.care-system-ui .care-sidebar-close{display:none}
@media(max-width:900px){html body.care-system-ui .care-sidebar-close{position:absolute;right:6px;top:7px;z-index:12;display:grid;place-items:center;width:32px;height:32px;border:1px solid #ffffff40;border-radius:8px;background:#ffffff18;color:white;font-size:23px;cursor:pointer}html body.care-system-ui #sidebar .sidebar-brand{padding-right:38px!important}html body.care-system-ui #sidebar .care360-sidebar-brand strong{white-space:normal!important}}
@media(max-width:900px){html body.care-system-ui .mobile-bottom-nav{grid-template-columns:repeat(var(--care-mobile-slots,5),minmax(0,1fr))!important}html body.care-system-ui .mobile-bottom-nav small{font-size:12px!important;line-height:1.4!important;white-space:nowrap}html body.care-system-ui .mobile-bottom-nav span svg{width:20px;height:20px;display:block;margin:auto}html body.care-system-ui .mobile-bottom-nav>a:not(.care-hms-return-mobile),html body.care-system-ui .mobile-bottom-nav>button{grid-row:1}html body.care-system-ui .mobile-bottom-nav .care-hms-return-mobile{grid-row:2;grid-column:1/-1}html body.care-system-ui:has(.care-hms-return-mobile) .content-wrap{padding-bottom:130px!important}}
