
:root{--primary:#7860ad;--bg:#f5f3fa;--text:#343047;--border:#e9e4f1;--shadow:0 8px 28px rgba(65,44,103,.055);--bs-primary:#7860ad;--bs-primary-rgb:120,96,173}
body{background:#f5f3fa!important;color:#343047!important;font-family:'Sarabun','Tahoma','Segoe UI',sans-serif!important;padding:24px!important;min-height:100vh;margin:0!important}
a{color:#7154a8}.csc-header{max-width:1600px;margin:0 auto 20px;background:white;border:1px solid #e9e4f1;border-radius:22px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 24px}.csc-brand img{width:260px;max-width:100%;height:auto}.csc-nav{display:flex;gap:8px;flex-wrap:wrap}.csc-nav a{padding:11px 18px;border-radius:12px;color:#665978;text-decoration:none;font-size:14px;font-weight:600}.csc-nav a:hover,.csc-nav a.active{background:#eee8f8;color:#614794}.csc-hero{max-width:1600px;margin:0 auto 24px;padding:28px 36px;border:1px solid #e4daef;border-radius:24px;background:linear-gradient(110deg,#eee7fa,#faf5f4);display:flex;align-items:center;justify-content:space-between;gap:24px;overflow:hidden}.csc-eyebrow{font-size:11px;letter-spacing:2px;color:#7b65a5;font-weight:700}.csc-hero h1{font-size:clamp(23px,2.3vw,33px);font-weight:700;color:#413159;margin:10px 0;line-height:1.5}.csc-hero p{color:#7a6e89;margin:0 0 16px}.csc-hero>img{width:250px;height:145px;object-fit:contain}.csc-tags{display:flex;gap:8px;flex-wrap:wrap}.csc-tags span{font-size:12px;background:#ffffffb5;color:#75638c;padding:5px 12px;border-radius:20px}
body>.container,body>.container-fluid,.form-container,.login-container{background:#fff!important;border:1px solid #e9e4f1;border-radius:22px!important;box-shadow:var(--shadow)!important;color:#343047!important}.form-container{margin-top:0!important;padding:30px!important;max-width:1100px!important}.form-wrapper{width:100%}.form-section{border:1px solid #ece7f3;border-radius:17px;padding:24px!important;margin-bottom:22px;background:#fff!important}.form-section h5,h3,h4,h5,.form-title,.login-title{color:#66508f!important}.form-section:focus-within{border-color:#c8b8e2}.form-section .text-center>img{display:none}.form-title{font-size:23px!important}.form-label,label{font-weight:500}.form-control,.form-select,.filter-select,input[type=date]{border:1px solid #e1daeb!important;border-radius:10px!important;min-height:42px;background-color:#fff;color:#343047}.form-control:focus,.form-select:focus{border-color:#a28ac7!important;box-shadow:0 0 0 3px #eee8f7!important}.input-group-text{background:#f3eff9;border-color:#e1daeb;color:#856ba7}.form-check-input:checked{background-color:#7860ad;border-color:#7860ad}.btn{border-radius:10px!important;transition:background-color .15s,box-shadow .15s}.btn-primary{background:#7860ad!important;border-color:#7860ad!important;color:white!important}.btn-primary:hover{background:#634b96!important}.btn-success{background:#278575!important;border-color:#278575!important}.btn-warning{background:#ffc6ac!important;border-color:#ffc6ac!important;color:#794229!important}.btn-outline-secondary{color:#735b9b;border-color:#d9cfea}.btn:focus-visible,a:focus-visible{outline:3px solid #f2ad8c;outline-offset:3px}.top-bar{gap:15px;flex-wrap:wrap}.search-form{display:flex;gap:10px;flex-wrap:wrap;padding:16px;background:#f8f6fc;border-radius:14px}.search-form input{flex:1;min-width:200px}.table-responsive{border:1px solid #e9e4f1;border-radius:14px;margin:16px 0}.table{margin-bottom:0;--bs-table-striped-bg:#faf8fd;--bs-table-hover-bg:#f1ecf8;color:#40374e;table-layout:auto!important}.table th{background:#f0eaf8!important;color:#66508f!important;white-space:nowrap!important;padding:14px 12px!important;border-color:#e8e1f1!important;font-size:13px!important;font-weight:600}.table td{padding:12px!important;border-color:#eee9f5!important;font-size:13px!important;line-height:1.65;vertical-align:top}.table .btn{font-size:12px}.card,.kpi-card,.chart-panel,.summary-card,.patient-card{border:1px solid #e9e4f1!important;border-radius:18px!important;box-shadow:var(--shadow)!important}.card-header{background:#f5f1fa!important;color:#66508f!important}.dashboard-header{position:relative!important;border:1px solid #e9e4f1;border-radius:16px;margin-bottom:18px}.filter-wrap,.filter-bar{border-radius:14px}.login-container{width:min(100%,460px)!important;margin:30px auto!important;padding:32px!important}.logout-btn{position:static!important;display:block!important;width:fit-content;margin:0 0 14px auto!important;color:#7860ad!important;border-color:#d9cfea!important}.pagination .active .page-link{background:#7860ad!important;border-color:#7860ad!important}.page-link{color:#7860ad}.badge{border-radius:7px}.modal-content{border:0;border-radius:20px}.modal-header{background:#f4effa}.csc-footer{text-align:center;font-size:12px;color:#93869f;padding:30px 12px 10px}
@media(min-width:1400px){body>.container,body>.container-fluid{max-width:1600px!important;margin-left:auto;margin-right:auto}}@media(max-width:767px){body{padding:12px!important}.csc-header{padding:16px;align-items:flex-start;flex-direction:column;gap:14px}.csc-brand img{width:220px}.csc-nav{width:100%;gap:4px}.csc-nav a{padding:9px 10px;font-size:12px;flex:1;text-align:center;white-space:nowrap}.csc-hero{padding:22px;gap:8px}.csc-hero>img{width:100px;height:100px}.csc-tags{display:none}.csc-hero p{font-size:13px;margin-bottom:0}.form-container{padding:16px!important}.form-section{padding:16px!important}.top-bar h3{font-size:20px}.login-container{margin-top:12px!important;padding:24px!important}.filter-bar{flex-wrap:wrap}}@media print{.csc-header,.csc-hero,.csc-footer,.logout-btn{display:none!important}body{background:white!important;padding:0!important}.card{box-shadow:none!important}}
body{display:block!important}.input-group>.form-control{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.input-group>.input-group-text{border-top-right-radius:0!important;border-bottom-right-radius:0!important}

/* Simulation header and service management layout */
.csc-hero>img{width:330px;height:185px;object-fit:cover;border-radius:18px;mix-blend-mode:multiply}.csc-management .csc-hero{margin-bottom:20px}.csc-overview{max-width:1600px;margin:0 auto 24px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.csc-metric{display:flex;gap:18px;align-items:center;padding:24px;background:#fff;border:1px solid #e8e1f0;border-radius:20px;box-shadow:0 4px 18px #46345b05}.metric-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#eee7f9;color:#7b61ad;font-size:27px}.csc-metric p{margin:0 0 8px;color:#796c88;font-size:14px}.csc-metric strong{font-size:32px;line-height:1.2;letter-spacing:-1px}.csc-metric small{margin-left:8px;color:#988ba3}.metric-total{background:#7c65ab;color:#fff;border-color:#7c65ab}.metric-total p,.metric-total small{color:#e7ddf6}.metric-total .metric-icon{background:#ffffff20;color:#fff}.metric-waiting .metric-icon{background:#fff0e8;color:#c58057}.metric-working .metric-icon{background:#eaf0ff;color:#6b8fc7}.metric-completed .metric-icon{background:#e5f4ef;color:#4d9c83}.csc-workspace{margin-top:0!important;padding:24px!important}.csc-workspace .top-bar{padding:4px 0 20px;margin:0}.csc-workspace h3{font-size:22px;margin-top:7px!important}.csc-count{font-size:14px;background:#eee8f7;padding:4px 10px;border-radius:9px;vertical-align:middle}.csc-result-note{font-size:13px;color:#8d8098;margin:16px 0 8px}.csc-workspace .table{min-width:1040px}.csc-workspace .table th:first-child{width:55px!important}.csc-workspace .table th:nth-child(2){width:23%}.csc-workspace .table th:nth-child(3){width:16%}.csc-workspace .table th:nth-child(6){width:190px}.csc-workspace .table th:last-child{width:130px}.csc-detail-row>td{background:#fcfbfe!important;padding:0!important}.csc-detail-row summary{padding:10px 16px;font-size:12px;color:#88719f;cursor:pointer}.csc-detail-row details[open] summary{color:#61428e;background:#f5f0fb}.csc-detail-grid{padding:20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.csc-detail-grid h6{font-size:12px;color:#9785a5;margin:0 0 8px}.csc-detail-grid section{font-size:13px;overflow-wrap:anywhere}.csc-workspace td ul{padding-left:16px;margin:0}.csc-workspace .badge{background:#efe9fa!important;color:#78569f!important;padding:8px 10px;font-size:12px}.csc-workspace .btn-danger{background:#fff1f1;border-color:#f5d9d9;color:#b66b6b}.csc-workspace .provider-btn{white-space:normal;line-height:1.5}.csc-workspace .table-responsive{margin-top:0}.csc-workspace .search-form{margin-bottom:0}.csc-workspace .pagination{margin-top:20px}@media(max-width:900px){.csc-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.csc-hero>img{width:220px;height:150px}}@media(max-width:575px){.csc-metric{padding:16px;gap:10px}.metric-icon{width:36px;height:36px;font-size:22px}.csc-metric strong{font-size:26px}.csc-metric p{font-size:12px}.csc-metric small{display:none}.csc-hero>img{width:120px;height:110px}.csc-workspace{padding:14px!important}.csc-detail-grid{grid-template-columns:1fr}.csc-overview{gap:10px}.csc-hero{padding:18px}}
