/* Surat Pernyataan: plain paper – deliberately NO company stationery or footer. */
.statement-panel{padding:22px!important;max-width:100%;}
.statement-panel:has(>.letter-history-filters){padding:0!important;}
.statement-panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 18px;padding-bottom:14px;border-bottom:1px solid #e4eee8}
.statement-panel-title h2{margin:0;color:#244e3b;font-size:18px;font-weight:750}
.statement-panel-title p{margin:5px 0 0;color:#74897d;font-size:12px}
.statement-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;align-items:start}
.statement-form-grid>label,.statement-employee-select{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;font-weight:650;color:#345744}
.statement-form-grid em{font-style:normal;color:#c56852}
.statement-form-grid .statement-span{grid-column:1/-1}
.statement-form-grid input,.statement-form-grid select,.statement-form-grid textarea,.statement-employee-trigger{display:block;width:100%;min-width:0;min-height:41px;border:1px solid #d6e6dc;border-radius:9px;padding:9px 11px;color:#2a503c;background:#fff;font-size:12px;line-height:1.45;box-sizing:border-box}
.statement-form-grid textarea{resize:vertical}
.statement-employee-select{position:relative}
.statement-employee-trigger{display:flex;align-items:center;gap:10px;cursor:pointer;text-align:left}
.statement-employee-trigger span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.statement-employee-trigger i{color:#448d67}
.statement-employee-popup{position:relative;z-index:4;width:100%;background:#fff;border:1px solid #cfe3d5;border-radius:11px;box-shadow:0 9px 21px rgba(34,93,60,.12);padding:10px;margin:2px 0 6px}
.statement-employee-search{display:flex;align-items:center;gap:8px;border:1px solid #d8e9df;border-radius:8px;padding:0 9px;color:#739282}
.statement-employee-search input{border:0!important;min-height:34px!important;padding:0!important;box-shadow:none!important}
.statement-employee-list{max-height:230px;overflow-y:auto;padding:5px 1px}
.statement-employee-list button{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;padding:10px 12px;border:0;background:#fff;border-bottom:1px solid #edf3ee;cursor:pointer;color:#244f38}
.statement-employee-list button:hover{background:#eef9f2}
.statement-employee-list small{color:#7b9386;font-size:10px}
.statement-editor-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:18px 0}
.statement-history-return{justify-content:flex-end}
.statement-preview-title{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin:24px 0 12px}
.statement-preview-title h3{margin:0;color:#284f3d;font-size:14px}
.statement-preview-title small{font-size:11px;color:#738e7d}
.statement-preview-scroller{max-height:650px;overflow:auto;background:#e9efeb;border:1px solid #dae4dd;border-radius:12px;padding:18px}
.statement-print-sheet{width:215mm;min-height:330mm;background:#fff;box-sizing:border-box;padding:20mm 18mm;box-shadow:0 4px 24px rgba(24,48,32,.13);color:#1e1e1e;font:12pt/1.48 'Times New Roman',Times,serif;margin:0 auto;}
.statement-pdf-sheet{width:179mm;min-height:0;padding:0;margin:0;box-shadow:none}
/* PDF only: F4 215×330mm, outer margin 18mm + internal 4mm safety inset.
   A real inner text width avoids right-edge clipping when html2canvas and the
   browser differ slightly in Times New Roman text metrics (also on mobile). */
.statement-pdf-sheet.statement-print-sheet{
  width:179mm!important; min-width:179mm!important; max-width:179mm!important;
  box-sizing:border-box!important; padding:0 4mm!important; margin:0!important;
  font:11.5pt/1.44 "Times New Roman",Times,serif!important;
  min-height:0!important; overflow:visible!important;
  -webkit-text-size-adjust:100%; text-size-adjust:100%;
}
.statement-pdf-sheet .statement-paper-inner{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.statement-pdf-sheet .statement-paper-inner p{margin-bottom:10px}
.statement-pdf-sheet .statement-clauses>li{margin-bottom:6px}
.statement-pdf-sheet .statement-paper-inner :is(p,li,td,div){max-width:100%;overflow-wrap:break-word;white-space:normal}
.statement-pdf-sheet .statement-personal{width:100%!important;max-width:100%!important;table-layout:fixed!important}
.statement-pdf-sheet .statement-personal td{overflow-wrap:anywhere!important;word-break:normal!important;white-space:normal!important}
.statement-pdf-sheet .statement-personal td:first-child{width:42mm!important}
.statement-pdf-sheet .statement-personal td:nth-child(2){width:4mm!important}
.statement-pdf-sheet .statement-clauses>li,.statement-pdf-sheet .statement-sign{break-inside:avoid-page;page-break-inside:avoid}

.statement-paper-inner{font:inherit;color:inherit;width:100%}
.statement-paper-inner .statement-type-label{margin:0 0 8px;text-align:right;font-size:10pt;font-weight:bold}
.statement-paper-inner h2{text-align:center;font-weight:bold;font-size:14pt;margin:0 0 12px;letter-spacing:.1px}
.statement-paper-inner p{margin:0 0 12px;text-align:justify}
.statement-paper-inner .statement-personal{border:0;border-collapse:collapse;width:100%;margin:0 0 18px;font:inherit}
.statement-paper-inner .statement-personal td{padding:1px 4px 1px 0!important;border:0!important;text-align:left!important;font:inherit;vertical-align:top}
.statement-paper-inner .statement-personal td:first-child{width:162px}
.statement-paper-inner .statement-personal td:nth-child(2){width:14px}
.statement-clauses{list-style-type:decimal;margin:0;padding-left:23px}
.statement-clauses>li{padding-left:6px;margin-bottom:7px;text-align:justify;break-inside:avoid-page;page-break-inside:avoid}
.statement-clauses ul{padding-left:20px;margin:6px 0;list-style-type:disc}
.statement-clauses ul li{margin:2px 0;break-inside:avoid-page}
.statement-paper-inner .statement-closing{margin:22px 0 25px;text-align:justify}
.statement-sign{width:54%;margin-left:auto;text-align:center;break-inside:avoid-page;page-break-inside:avoid}
.statement-sign p{text-align:center;margin-bottom:12px}
.statement-stamp{width:125px;min-height:95px;display:flex;justify-content:center;align-items:center;margin:16px auto 25px;font:11pt/1.4 'Times New Roman',Times,serif;color:#8b8b8b}
.statement-sign b{display:block;font-weight:normal;white-space:normal;overflow-wrap:anywhere}

.statement-history-table{width:100%;min-width:1100px;table-layout:fixed}
.statement-history-table col.statement-col-type{width:245px}
.statement-history-table col.statement-col-name{width:250px}
.statement-history-table col.statement-col-position{width:250px}
.statement-history-table col.statement-col-user{width:188px}
.statement-history-table th,.statement-history-table td{vertical-align:middle;white-space:normal;overflow-wrap:break-word}
.statement-history-table th{text-align:center;font-size:11px;letter-spacing:.025em;padding:12px}
.statement-history-table td{padding:11px 13px;line-height:1.38}
.statement-history-table th:first-child,.statement-history-table td:first-child{text-align:center;white-space:nowrap}
.statement-history-table tbody td:nth-child(3){color:#176550;font-weight:650}
.statement-history-table td:nth-child(4) strong{font-size:12.5px;font-weight:700;color:#244c3e}
.statement-history-table .statement-position-cell .contract-letter-position{display:block;font-size:12px;font-weight:650;line-height:1.35;color:#315a49;overflow-wrap:break-word}
.statement-history-table .statement-position-cell .contract-letter-company{display:block;margin-top:2px;font-size:10.5px;font-weight:400;line-height:1.3;color:#718a7d;overflow-wrap:break-word}
.statement-history-table .statement-user-cell{text-align:center}
.statement-history-table .statement-user-cell .letter-history-actor{font-size:12px;font-weight:650;line-height:1.35;color:#416a5b}
.statement-history-table .statement-user-cell .contract-letter-user-datetime{display:block;margin-top:2px;font-size:10.5px;font-weight:400;line-height:1.3;color:#859b90;font-variant-numeric:tabular-nums}
.statement-history-row{cursor:context-menu}
.statement-history-row:hover{background:#f4faf6}
@media(max-width:760px){.statement-panel{padding:13px!important}.statement-form-grid{grid-template-columns:1fr;gap:12px}.statement-preview-scroller{padding:10px}.statement-preview-scroller .statement-print-sheet{transform-origin:top left;zoom:.58}.statement-preview-title small{max-width:100%}}
@media(max-width:420px){.statement-preview-scroller .statement-print-sheet{zoom:.42}}
@page{size:215mm 330mm;margin:20mm 18mm}
@media print{html,body{margin:0!important;padding:0!important;background:white!important}.statement-print-body{margin:0!important}.statement-print-sheet{margin:0!important;padding:0!important;width:100%!important;min-height:0!important;max-width:none!important;box-shadow:none!important;border:0!important}.statement-paper-inner h2{margin-top:0}}
