*{box-sizing:border-box}
:root{--ink:#17333a;--teal:#0f7773;--teal2:#16817c;--line:#dde7e8;--muted:#657c80;--bg:#f4f7f8}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Tahoma,'Noto Sans Thai',sans-serif}
button,input,select,textarea{font-family:inherit}
.hero{background:linear-gradient(135deg,#0c5b5f,#16817c);color:#fff;padding:30px clamp(18px,5vw,72px);display:flex;justify-content:space-between;gap:20px;align-items:center}
.hero h1{font-size:clamp(27px,4vw,43px);margin:8px 0 5px}.hero p{margin:0;opacity:.9}.eyebrow{font-size:12px;letter-spacing:.08em;opacity:.9}.hero-actions{display:flex;gap:8px;flex-wrap:wrap}
.workspace{display:none}.workspace.active{display:block}.hidden{display:none!important}
.notice{margin:18px auto 0;max-width:1180px;background:#fff7d6;border:1px solid #f0d46c;padding:12px 16px;border-radius:12px;color:#705713}
main{max-width:1180px;margin:22px auto;padding:0 18px 60px}
.panel,.welcome-card,.module-card,.stat{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 6px 20px #13363d0d}.panel{padding:20px}.panel h2{margin:0 0 4px;font-size:22px}.panel p{margin:0;color:var(--muted)}
.primary,.secondary,.ghost,.link,.warning,.approve,.success{border:0;border-radius:10px;padding:10px 14px;font-weight:700;cursor:pointer}.primary{background:var(--teal);color:#fff}.secondary{background:#e9eff0;color:#36565c}.ghost{background:#ffffff1f;color:#fff;border:1px solid #ffffff4d}.link{background:#ecf7f6;color:#116f6b;padding:7px 10px}.warning{background:#fff0d7;color:#8a5800}.approve{background:#e3f4ff;color:#176078}.success{background:#e4f6e8;color:#2d7240}.full{width:100%}
.badge{display:inline-block;background:#e5f5f3;color:#0d706c;font-size:11px;font-weight:800;border-radius:999px;padding:6px 10px;letter-spacing:.02em}
.welcome-card{padding:24px 26px;display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px}.welcome-card h2{font-size:27px;margin:9px 0 6px}.welcome-card p{margin:0;color:#677c80}.monthly-goal{min-width:145px;text-align:center;background:#edf8f7;border-radius:16px;padding:14px}.monthly-goal strong{font-size:38px;display:block;color:#0d706c}.monthly-goal span{font-size:13px;color:#537076;font-weight:700}.ha-overview-head{display:flex;justify-content:space-between;align-items:center;gap:22px;margin:0 0 18px;padding:6px 2px}.ha-overview-head h2{font-size:30px;margin:9px 0 6px}.ha-overview-head p{margin:0;color:#6a7f83}.ha-period-card{min-width:190px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 18px;box-shadow:0 6px 20px #13363d0d}.ha-period-card small,.ha-period-card span{display:block;color:#72878b}.ha-period-card strong{display:block;font-size:26px;margin:3px 0;color:#0d706c}.ha-bento{display:grid;grid-template-columns:1.25fr 1fr 1fr;grid-template-areas:'risk risk profile' 'review aar rca';gap:16px;margin-bottom:18px}.ha-widget{position:relative;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 8px 26px #14363d0d;overflow:hidden;min-height:210px;transition:.18s transform,.18s box-shadow}.ha-widget:hover{transform:translateY(-3px);box-shadow:0 14px 32px #14363d16}.ha-widget-risk{grid-area:risk;background:linear-gradient(135deg,#fff9ec,#fff)}.ha-widget-profile{grid-area:profile;background:linear-gradient(135deg,#eef5ff,#fff)}.ha-widget-review{grid-area:review;background:linear-gradient(135deg,#edf9f5,#fff)}.ha-widget-aar{grid-area:aar;background:linear-gradient(135deg,#fbf1ff,#fff)}.ha-widget-rca{grid-area:rca;background:linear-gradient(135deg,#f0f1ff,#fff)}.ha-widget-main{display:block;width:100%;height:100%;min-height:210px;border:0;background:transparent;text-align:left;padding:22px 22px 50px;cursor:pointer;color:inherit}.ha-widget-icon{display:flex;width:52px;height:52px;border-radius:16px;align-items:center;justify-content:center;font-size:27px;margin-bottom:14px;background:#ffffffc7;border:1px solid #ffffff}.ha-widget-kicker{display:block;font-size:11px;font-weight:800;letter-spacing:.04em;color:#72868a;text-transform:uppercase}.ha-widget h3{font-size:21px;margin:5px 0 8px;color:#24444a}.ha-widget-value{display:block;font-size:25px;color:#17333a;margin-bottom:8px}.ha-widget p{margin:0;color:#637a7e;line-height:1.55}.ha-widget-doc-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ha-widget-cta{display:inline-block;margin-top:14px;font-weight:800;color:#0f7773}.ha-widget-link{position:absolute;left:22px;bottom:15px;text-decoration:none;font-size:11px;font-weight:800;color:#2f5f9a;background:#ffffffcc;border:1px solid #cfe0ef;border-radius:999px;padding:7px 10px}.review-pdf-link{color:#176078;border-color:#c9e1ea}.ha-widget-small .ha-widget-value{font-size:22px}.ha-month-nav-panel{margin-top:4px}.ha-month-strip{display:flex;gap:9px;overflow-x:auto;padding:3px 1px 8px}.ha-month-chip{flex:0 0 auto;min-width:88px;border:1px solid #dbe6e7;background:#fff;border-radius:14px;padding:10px 12px;cursor:pointer;color:#587177;text-align:center}.ha-month-chip b{display:block;font-size:13px}.ha-month-chip small{display:block;font-size:9px;margin-top:3px;color:#8a9b9e}.ha-month-chip.selected{background:#0f7773;color:#fff;border-color:#0f7773;box-shadow:0 6px 14px #0f77732b}.ha-month-chip.selected small{color:#d8f1ef}.recent-doc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.recent-doc-card{border:1px solid #dbe6e7;background:#fff;border-radius:14px;padding:14px;text-align:left;cursor:pointer}.recent-doc-card:hover{border-color:#35a29c;background:#f5fbfa}.recent-doc-type{display:block;font-size:10px;font-weight:800;color:#0d706c;margin-bottom:6px}.recent-doc-card b{display:block;color:#27464b;line-height:1.45;margin-bottom:8px}.recent-doc-card small{color:#75898d}.ha-risk-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.ha-risk-stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px 16px;box-shadow:0 5px 16px #13363d0a}.ha-risk-stat span{display:block;font-size:12px;color:#6d8185}.ha-risk-stat strong{display:block;font-size:30px;color:#0f7773;margin:5px 0}.ha-risk-stat small{color:#84969a}.ha-risk-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:14px}.ha-risk-toolbar>input{max-width:460px}.ha-risk-filters{display:flex;gap:7px;flex-wrap:wrap}.ha-risk-filter{border:1px solid #d7e3e4;background:#fff;color:#587177;border-radius:999px;padding:8px 11px;font-weight:700;cursor:pointer}.ha-risk-filter span{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;margin-left:4px;background:#eef3f4;border-radius:999px;font-size:10px}.ha-risk-filter.active{background:#0f7773;color:#fff;border-color:#0f7773}.ha-risk-filter.active span{background:#ffffff2b;color:#fff}.ha-risk-columns{display:grid;grid-template-columns:minmax(0,.95fr) minmax(420px,1.05fr);gap:15px;align-items:start}.ha-risk-list-head{display:flex;justify-content:space-between;align-items:center;padding:0 3px 8px;color:#5d7478}.ha-risk-list-head small{color:#8b9b9e}.ha-risk-list{display:flex;flex-direction:column;gap:8px;max-height:68vh;overflow:auto;padding-right:4px}.ha-risk-row{width:100%;border:1px solid #dce6e7;background:#fff;border-radius:13px;padding:12px 13px;text-align:left;cursor:pointer}.ha-risk-row:hover,.ha-risk-row.selected{border-color:#2d9a94;background:#f0faf9;box-shadow:0 4px 12px #0f777312}.ha-risk-row-top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:5px}.ha-risk-no{font-size:10px;font-weight:900;color:#0d706c}.ha-risk-direction{font-size:9px;font-weight:800;border-radius:999px;padding:4px 7px}.ha-risk-direction.incoming{background:#fff0dd;color:#8f5a00}.ha-risk-direction.self{background:#e4f5ea;color:#2c7041}.ha-risk-row b{display:block;color:#27464b;line-height:1.42;margin-bottom:6px}.ha-risk-row small{color:#7a8f93}.ha-risk-detail{position:sticky;top:16px;border:1px solid #dce6e7;border-radius:16px;background:#fbfdfd;padding:17px;min-height:360px}.ha-risk-detail-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding-bottom:13px;border-bottom:1px solid #e3ebec}.ha-risk-detail-head h2{font-size:21px;line-height:1.35;margin:8px 0 0}.ha-risk-status{white-space:nowrap;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:800}.ha-risk-status.done{background:#e4f5e8;color:#2c7140}.ha-risk-status.pending{background:#fff0df;color:#8b5a00}.ha-risk-meta{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0}.ha-risk-meta>div{background:#fff;border:1px solid #e3ebec;border-radius:11px;padding:10px}.ha-risk-meta span{display:block;font-size:10px;color:#819397}.ha-risk-meta strong{display:block;font-size:12px;color:#304f54;margin-top:3px}.ha-risk-text{background:#fff;border:1px solid #e1e9ea;border-radius:12px;padding:12px;margin-top:10px}.ha-risk-text h3{font-size:12px;color:#587176;margin:0 0 5px}.ha-risk-text p{margin:0;white-space:pre-wrap;line-height:1.58;color:#29454a}.ha-risk-text.emphasis{border-left:4px solid #e6aa3a}.ha-risk-text.solution{border-left:4px solid #2d9a94}.ha-risk-source-note{margin-top:12px;font-size:10px;color:#91a0a3}.ha-risk-browser .panel-head{margin-bottom:14px}.rca-comment-box{display:block;margin-top:16px;padding:14px 15px;border:1px solid #d8e5e6;border-left:4px solid #0f7773;border-radius:14px;background:#f7fbfb}.rca-comment-box>span{display:block;font-weight:900;color:#24484d;margin-bottom:4px}.rca-comment-box>small{display:block;color:#73888c;line-height:1.45;margin-bottom:9px}.rca-comment-box textarea{background:#fff;min-height:320px;line-height:1.55}
.module-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-bottom:18px}.module-card{text-align:left;padding:22px;cursor:pointer;position:relative;min-height:190px;transition:.18s transform,.18s box-shadow}.module-card:hover{transform:translateY(-3px);box-shadow:0 13px 30px #143a4018}.module-icon{display:flex;width:50px;height:50px;align-items:center;justify-content:center;border-radius:15px;font-size:25px;margin-bottom:18px}.module-card b{display:block;font-size:18px;margin-bottom:7px;color:#24444a}.module-card small{display:block;color:#6e8387;line-height:1.5}.module-card em{position:absolute;left:22px;bottom:18px;font-style:normal;font-size:10px;font-weight:800;padding:4px 8px;border-radius:999px}.risk-card .module-icon,.risk-card em{background:#fff2d8;color:#875900}.review-card .module-icon,.review-card em{background:#e3f5ef;color:#187056}.rca-card .module-icon,.rca-card em{background:#e9ecff;color:#4857a2}.aar-card .module-icon,.aar-card em{background:#f5e9ff;color:#774697}.profile-card .module-icon,.profile-card em{background:#e8f2ff;color:#2f5f9a}.recent-panel{margin-top:6px}
.ha-matrix-panel{padding:18px}.ha-work-matrix{min-width:0}.ha-matrix-scroll{overflow-x:auto;padding-bottom:8px}.ha-matrix-table thead th:first-child,.ha-matrix-table tbody th:first-child{position:sticky;left:0;z-index:3}.ha-matrix-table thead th:first-child{z-index:5}.ha-matrix-table{min-width:720px;border-collapse:separate;border-spacing:0;border:1px solid #dce7e8;border-radius:16px;overflow:hidden}.ha-matrix-table th,.ha-matrix-table td{border-right:1px solid #e1e9ea;border-bottom:1px solid #e1e9ea;padding:0;background:#fff;vertical-align:middle}.ha-matrix-table tr:last-child th,.ha-matrix-table tr:last-child td{border-bottom:0}.ha-matrix-table th:last-child,.ha-matrix-table td:last-child{border-right:0}.ha-matrix-table thead th{background:#f3f8f8;text-align:center;padding:12px 10px;min-width:150px}.ha-matrix-table thead .ha-matrix-name{min-width:360px;text-align:left;padding-left:18px}.ha-matrix-table thead th span{display:block;font-size:15px;color:#2b4b50}.ha-matrix-table thead th small{display:block;margin-top:3px;color:#7c9094;font-weight:600}.ha-matrix-table .fy-row th{background:#eaf5f4;color:#246c68;font-size:13px;font-weight:900}.ha-matrix-table .month-row th.current-month{background:#dff3f1;box-shadow:inset 0 -3px 0 #1a8881}.ha-matrix-table .month-row th.future-month{background:#fafcfc;color:#91a1a4}.matrix-cell.current-cell{box-shadow:inset 0 0 0 2px #cfeae7}.matrix-cell.future{background:#fbfcfc;color:#c1cbcd}.matrix-module{width:100%;border:0;background:#fff;display:grid;grid-template-columns:34px 74px minmax(0,1fr);align-items:center;gap:14px;padding:15px 16px;text-align:left;cursor:pointer;color:#24444a}.matrix-module:hover{background:#f8fbfb}.matrix-no{width:30px;height:30px;border-radius:50%;background:#eef3f4;display:flex;align-items:center;justify-content:center;font-weight:900;color:#49666b}.matrix-big-icon{width:68px;height:68px;border-radius:19px;display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:800}.matrix-module>span:last-child{font-size:18px;font-weight:800}.risk-card .matrix-big-icon{background:#fff2d8;color:#875900}.profile-card .matrix-big-icon{background:#e8f2ff;color:#2f5f9a}.review-card .matrix-big-icon{background:#e3f5ef;color:#187056}.aar-card .matrix-big-icon{background:#f5e9ff;color:#774697}.rca-card .matrix-big-icon{background:#e9ecff;color:#4857a2}.matrix-cell{width:100%;min-height:86px;border:0;background:#fff;padding:12px 10px;cursor:pointer;color:#587177}.matrix-cell:hover{background:#f5fbfa}.matrix-cell b{display:block;font-size:13px}.matrix-cell small{display:block;margin-top:4px;font-size:10px;color:#7d9195}.matrix-empty{color:#b0bec1}.matrix-open{color:#0d706c;background:#f2faf9}.matrix-has.draft{background:#fff8ea;color:#8b5a00}.matrix-has.sent_review{background:#edf4ff;color:#2b5d94}.matrix-has.needs_edit{background:#fff0eb;color:#9b442c}.matrix-has.approved{background:#eef8f1;color:#2c7140}.matrix-has.ready_ha{background:#edf7ff;color:#225f80}.master-link{display:flex;align-items:center;gap:10px;margin:12px 0 4px;padding:11px;border:1px solid #cfe0ef;border-radius:12px;background:#f3f8ff;color:#2f5f9a;text-decoration:none}.master-link:hover{background:#eaf3ff}.master-link-icon{width:38px;height:38px;border-radius:10px;background:#e2eeff;display:flex;align-items:center;justify-content:center;font-size:21px}.master-link b{display:block;font-size:12px}.master-link small{display:block;margin-top:3px;color:#6884a5;font-size:10px}.source-links{display:flex;flex-wrap:wrap;gap:8px;margin:-2px 0 16px}.source-links a{display:inline-flex;align-items:center;gap:6px;text-decoration:none;border:1px solid #d7e4e5;background:#f8fbfb;color:#35666a;border-radius:10px;padding:9px 12px;font-size:12px;font-weight:700}.source-links a:hover{background:#eef8f7}
.tabs{display:flex;gap:8px;padding:12px clamp(18px,5vw,72px);background:#fff;box-shadow:0 3px 14px #11343a14;position:sticky;top:0;z-index:4}.tabs button{border:0;background:transparent;padding:11px 15px;border-radius:10px;font-weight:700;color:#587177;cursor:pointer;white-space:nowrap}.tabs button.active{background:#e5f5f3;color:#0c6664}.tab-page{display:none}.tab-page.active{display:block}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.stat{padding:18px}.stat span{display:block;color:#5c7479;font-size:13px}.stat strong{display:block;font-size:34px;color:#0f6867;margin:8px 0}.stat small{color:#879a9e}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.filters{display:grid;grid-template-columns:1fr 180px;gap:10px;margin-bottom:14px}
label{display:flex;flex-direction:column;gap:7px;margin-bottom:15px;font-size:13px;font-weight:700;color:#49656a}input,select,textarea{width:100%;border:1px solid #cbdadc;border-radius:10px;padding:11px 12px;font:inherit;color:#17333a;background:#fff;outline:none}input:focus,select:focus,textarea:focus{border-color:#1a8881;box-shadow:0 0 0 3px #1a88811a}input[readonly]{background:#f4f7f8;color:#5f7377}textarea{resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.section-title{font-size:15px;font-weight:800;color:#0e6866;border-left:4px solid #23a19a;padding-left:10px;margin:22px 0 14px}.segment{display:inline-flex;border:1px solid #cddbdd;border-radius:11px;padding:4px;margin-bottom:15px}.segment button{border:0;background:#fff;padding:9px 18px;border-radius:8px;font-weight:700;color:#60787c;cursor:pointer}.segment button.selected{background:#dff3f1;color:#0d706c}.check{display:flex;flex-direction:row;align-items:flex-start;gap:9px;padding:12px;border-radius:10px;background:#fff8df;color:#65551e;font-size:14px}.check input{width:auto;margin-top:2px}.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.table-wrap,.doc-table,.risk-review-table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:820px}th,td{text-align:left;border-bottom:1px solid #e4ecee;padding:12px 10px;font-size:14px;vertical-align:top}th{font-size:12px;color:#70868a;background:#f8fbfb}.title-cell{font-weight:700}.priority{font-size:10px;background:#fff0c4;color:#8a6500;border-radius:20px;padding:3px 7px;margin-left:6px}.status,.doc-status{display:inline-block;border-radius:20px;padding:5px 9px;font-size:11px;font-weight:700;white-space:nowrap}.reported,.doc-status.draft{background:#fff1d9;color:#8b5a00}.reviewing,.doc-status.sent_review{background:#e5efff;color:#2b5d94}.monitoring,.doc-status.needs_edit{background:#ffe7df;color:#9b442c}.closed,.doc-status.approved{background:#e3f5e8;color:#2c7140}.doc-status.ready_ha{background:#e4f4ff;color:#225f80}.severity{display:inline-flex;min-width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%;background:#eef3f4;font-weight:800}.empty{padding:34px;text-align:center;color:#829397}.small-empty{padding:20px 6px}.big{min-height:430px;display:flex;align-items:center;justify-content:center}
.review-layout{display:grid;grid-template-columns:320px 1fr;gap:16px}.review-list{align-self:start;position:sticky;top:86px}.review-list #reviewItems{display:flex;flex-direction:column;gap:8px;margin-top:14px;max-height:68vh;overflow:auto}.risk-item{border:1px solid #dbe5e7;background:#fff;border-radius:12px;padding:12px;text-align:left;cursor:pointer;width:100%}.risk-item:hover,.risk-item.selected{border-color:#36a29c;background:#eef9f8}.risk-item .top{display:flex;justify-content:space-between;gap:10px}.risk-item .top span{font-size:10px;border-radius:20px;padding:3px 6px;background:#eef3f4;color:#587177}.risk-item b{display:block;margin:7px 0;color:#24444a}.risk-item small{color:#74898d}.incident-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;background:#f3f8f8;border-radius:12px;padding:13px;margin-bottom:18px}.incident-summary span{display:block;font-size:11px;color:#758b8f}.incident-summary strong{display:block;margin-top:4px;font-size:13px}.text-block{border:1px solid #e2e9ea;border-radius:12px;padding:15px;margin-bottom:16px}.text-block h3{font-size:13px;color:#597176;margin:0 0 5px}.text-block p{white-space:pre-wrap;color:#243f44}.review-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.dark{background:#f1f6f6;color:#35585d;border:1px solid #d7e3e4}
.quality-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px}.doc-list{align-self:start;position:sticky;top:16px}.doc-list>div{display:flex;flex-direction:column;gap:8px;margin-top:12px;max-height:70vh;overflow:auto}.doc-item{width:100%;border:1px solid #dbe6e7;background:#fff;padding:11px;border-radius:12px;text-align:left;cursor:pointer}.doc-item:hover{border-color:#35a29c;background:#f0faf9}.doc-item strong{font-size:11px;color:#0d706c;display:block}.doc-item b{display:block;margin:5px 0;color:#27464b}.doc-item small{color:#778c90}.quality-form{min-width:0}.form-title{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding-bottom:15px;margin-bottom:17px;border-bottom:1px solid #e2eaeb}.form-title h2{margin:8px 0 4px}.form-title p{margin:0;color:#6b8084}.risk-review-table{min-width:900px;border:1px solid #d9e4e5;margin-bottom:16px}.risk-review-table th{text-align:center;background:#eef7f6;color:#355f61;border:1px solid #d5e2e3}.risk-review-table td{padding:8px;border:1px solid #dfe7e8}.risk-review-table td:nth-child(1){width:25%}.risk-review-table td:nth-child(2){width:15%}.risk-review-table td:nth-child(3),.risk-review-table td:nth-child(4){width:30%}.risk-review-table textarea,.risk-review-table input,.risk-review-table select{border:0;box-shadow:none;padding:8px;background:#fbfdfd}.monthly-six-col{min-width:1500px}.monthly-six-col td:nth-child(1){width:20%}.monthly-six-col td:nth-child(2){width:7%;text-align:center}.monthly-six-col td:nth-child(3){width:8%}.monthly-six-col td:nth-child(4){width:22%}.monthly-six-col td:nth-child(5){width:23%}.monthly-six-col td:nth-child(6){width:20%}.monthly-print-six th,.monthly-print-six td{font-size:10.5pt;padding:5px;line-height:1.25}.monthly-print-six th:nth-child(1){width:20%}.monthly-print-six th:nth-child(2){width:7%}.monthly-print-six th:nth-child(3){width:7%}.monthly-print-six th:nth-child(4){width:22%}.monthly-print-six th:nth-child(5){width:24%}.monthly-print-six th:nth-child(6){width:20%}.small-note{font-size:11pt}.signature-box{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin:22px 0 10px;border-top:1px dashed #c7d7d8;padding-top:18px}.signature-box>div{text-align:center;border:1px solid #e0e9ea;border-radius:13px;padding:14px;background:#fbfdfd}.signature-box span,.signature-box small,.signature-box em{display:block;color:#6d8286}.signature-box strong{display:block;margin:8px 0 4px}.signature-box em{font-style:normal;color:#2c7140;font-size:11px;margin-top:6px}.workflow-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid #e6eeee}
.import-zone{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border:1px dashed #9fc7c5;background:#f6fbfb;border-radius:14px;padding:16px;margin:8px 0 16px}.import-zone>div{flex:1 1 340px}.import-zone p{margin:5px 0 0;color:#6c8185}.file-pick{display:inline-flex;align-items:center;justify-content:center;background:#0f7773;color:#fff;border-radius:10px;padding:10px 14px;margin:0;cursor:pointer}.file-pick input{display:none}.mapping-panel{border:1px solid #dde7e8;border-radius:14px;background:#fbfdfd;padding:16px;margin-bottom:16px}.mapping-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 12px}.profile-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:12px 0 18px}.profile-stats .stat{border:1px solid #dde7e8}.profile-table{min-width:1250px}.profile-table th:nth-child(6){min-width:280px}.profile-title{font-weight:700;line-height:1.45}.profile-table small{display:block;color:#72878a;margin-top:4px}.direction{display:inline-block;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800}.direction.incoming{background:#fff0dd;color:#8f5a00}.direction.outgoing{background:#e4f5ea;color:#2c7041}.direction.check{background:#eef1f3;color:#65757a}.profile-action{min-width:120px}.row-actions{display:flex;gap:6px;white-space:nowrap}.row-actions button:disabled{opacity:.45;cursor:not-allowed}.profile-tools{margin-top:12px}.profile-panel{min-width:0}.profile-history{margin-top:8px}
#qualityPrint{display:none}.print-sheet{font-family:'TH Sarabun New','TH SarabunPSK',Tahoma,sans-serif;color:#000;font-size:16pt}.print-sheet h2{text-align:center;font-size:20pt;margin:0 0 8px}.print-sheet h3{font-size:17pt;margin:12px 0}.print-sheet .center{text-align:center}.print-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:0}.print-table th,.print-table td{border:1px solid #000;padding:7px;font-size:13pt;vertical-align:top}.print-table th{text-align:center;background:#fff;color:#000}.print-section{margin:13px 0}.print-section h4{font-size:16pt;margin:0 0 4px}.print-section p{margin:0;white-space:normal;line-height:1.4;min-height:45px}.print-signatures{display:grid;grid-template-columns:1fr 1fr;gap:40px;text-align:center;margin-top:35px}.print-signatures p{margin:0 0 15px}.sign-line{margin:12px 0 5px}.signed-mark{border:1px solid #555;border-radius:7px;padding:6px 10px;margin:4px auto 8px;max-width:260px}.signed-mark small{font-size:11pt}
@media(max-width:1100px){.mapping-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:950px){.ha-bento{grid-template-columns:1fr 1fr;grid-template-areas:'risk risk' 'profile review' 'aar rca'}.recent-doc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ha-risk-summary{grid-template-columns:repeat(2,1fr)}.ha-risk-columns{grid-template-columns:1fr}.ha-risk-detail{position:static}.ha-risk-toolbar{align-items:stretch;flex-direction:column}.ha-risk-toolbar>input{max-width:none}.module-grid{grid-template-columns:repeat(2,1fr)}.module-list{grid-template-columns:1fr}.ha-dashboard-layout{grid-template-columns:210px minmax(0,1fr)}.quality-layout{grid-template-columns:1fr}.doc-list{position:static}.doc-list>div{max-height:260px}.quality-form{overflow:hidden}}
@media(max-width:800px){.hero{align-items:flex-start;flex-direction:column}.ha-matrix-table thead .ha-matrix-name{min-width:280px}.matrix-module{grid-template-columns:30px 58px minmax(0,1fr);gap:10px}.matrix-big-icon{width:54px;height:54px;font-size:28px}.matrix-module>span:last-child{font-size:15px}.tabs{overflow-x:auto}.stat-grid{grid-template-columns:repeat(2,1fr)}.review-layout{grid-template-columns:1fr}.review-list{position:static}.review-list #reviewItems{max-height:280px}.incident-summary{grid-template-columns:repeat(2,1fr)}.form-grid,.filters{grid-template-columns:1fr}.panel-head{align-items:flex-start;flex-direction:column}.signature-box{grid-template-columns:1fr}}
@media(max-width:520px){.ha-overview-head{align-items:flex-start;flex-direction:column}.ha-period-card{width:100%}.ha-bento{grid-template-columns:1fr;grid-template-areas:'risk' 'profile' 'review' 'aar' 'rca'}.ha-widget,.ha-widget-main{min-height:185px}.recent-doc-grid{grid-template-columns:1fr}.ha-widget-value{font-size:22px}.ha-risk-summary{grid-template-columns:1fr 1fr;gap:8px}.ha-risk-stat{padding:11px}.ha-risk-stat strong{font-size:25px}.ha-risk-meta{grid-template-columns:1fr}.ha-risk-filters{flex-direction:column}.ha-risk-filter{text-align:left}main{padding-left:10px;padding-right:10px}.module-grid{grid-template-columns:1fr}.module-list .module-card{grid-template-columns:34px 42px minmax(0,1fr);padding:13px}.module-list .module-card em{display:none}.mapping-grid,.profile-stats{grid-template-columns:1fr}.welcome-card{align-items:flex-start;flex-direction:column}.monthly-goal{width:100%}.stat-grid{gap:8px}.stat{padding:14px}.stat strong{font-size:27px}.panel{padding:14px}.hero{padding:24px 16px}.tabs{padding-left:10px;padding-right:10px}.incident-summary{grid-template-columns:1fr}.workflow-actions button{flex:1 1 45%}}
@media print{body.printing-quality>*:not(#qualityPrint){display:none!important}body.printing-quality #qualityPrint{display:block!important}body.printing-quality{background:#fff}body.printing-quality #qualityPrint{padding:0;margin:0}.hero,.tabs,.review-list,.notice,.no-print{display:none!important}body:not(.printing-quality) main{max-width:none;margin:0;padding:0}body:not(.printing-quality) .panel{box-shadow:none;border:0}body:not(.printing-quality) .review-layout{display:block}body:not(.printing-quality) .review-main{padding:0}body:not(.printing-quality) .tab-page{display:none!important}body:not(.printing-quality) #review{display:block!important}.actions{display:none}}