.new-memo-page #detail-heading,.new-memo-page #external-signer-heading,.new-memo-page #previous-documents-heading,.new-memo-page #recipient-heading,.new-memo-page .section-heading b,.new-memo-page .section-heading h2,.new-memo-page .section-toggle .section-heading b,.new-memo-page .section-toggle b{font-size:16px!important;font-weight:600!important;line-height:1.35!important;color:#101828!important}.new-memo-page .section-heading p,.new-memo-page .section-heading small,.new-memo-page .section-toggle .section-heading small{font-size:12px!important;font-weight:400!important;line-height:1.45;color:var(--muted)!important}.new-memo-page .center-subject-field label,.new-memo-page .compact-flow b,.new-memo-page .compact-purpose-heading b,.new-memo-page .dropzone b,.new-memo-page .field label,.new-memo-page .field-label,.new-memo-page .manual-route-guidance,.new-memo-page .multi-label,.new-memo-page .next-step-hint b,.new-memo-page .priority-field legend,.new-memo-page .purpose-title,.new-memo-page .reminder-delay>label,.new-memo-page .reminder-switch b{font-size:13px!important;font-weight:600!important;color:#344054!important;line-height:1.35}.new-memo-page .manual-route-list label,.new-memo-page .manual-route-person .route-person-name,.new-memo-page .manual-route-person b{font-size:13px!important;font-weight:400!important;color:#344054!important;line-height:1.35}.new-memo-page .actor-display small,.new-memo-page .actor-help,.new-memo-page .compact-flow small,.new-memo-page .compact-purpose-heading small,.new-memo-page .document-number-field>small,.new-memo-page .dropzone span,.new-memo-page .manual-route-empty,.new-memo-page .manual-route-person small,.new-memo-page .multi-label small,.new-memo-page .next-step-hint small,.new-memo-page .next-step-hint span,.new-memo-page .purpose-example,.new-memo-page .reminder-delay span,.new-memo-page .reminder-example,.new-memo-page .reminder-switch small{font-size:12px!important;font-weight:400!important;color:var(--muted)!important;line-height:1.45}.compose-header{width:100%;margin:0 0 12px;display:flex;align-items:center;justify-content:space-between;gap:20px}.compose-heading{display:flex;align-items:center;gap:12px}.compose-header h1{margin:0;font-size:23px;font-weight:700;line-height:1.2}.page-context-meta{display:flex;gap:12px;margin:3px 0 0;color:var(--muted);font-size:12px}.page-context-meta span+span{padding-left:12px;border-left:1px solid #dfe2e7}.back-button{width:40px;height:40px;flex:0 0 40px;border:1px solid #dfe2e7;border-radius:8px;background:#fff;color:#344054;display:grid;place-items:center;cursor:pointer}.back-button:hover{border-color:#c90000;background:#fff0f0;color:#a90000}.preview-button{min-height:38px;padding:0 13px;border:1px solid #dfe2e7;border-radius:7px;background:#fff;color:#344054;display:inline-flex;align-items:center;gap:8px;font-weight:600;cursor:pointer}.preview-button.active,.preview-button:hover{border-color:#c90000;background:#fff0f0;color:#a90000}.type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.type-grid button{min-height:70px;border:1px solid #dfe2e7;border-radius:8px;background:#fff;padding:12px 14px;display:flex;align-items:center;gap:11px;text-align:left;color:#344054;cursor:pointer}.type-grid button>svg{flex:0 0 auto;color:#667085}.type-grid button span{display:grid;min-width:0}.type-grid b{font-size:14px}.type-grid small{font-size:11px;color:var(--muted);line-height:1.4}.type-grid button:hover{border-color:#f3c7c9}.type-grid button.active{border-color:#c90000;background:#fff0f0;box-shadow:inset 0 0 0 1px #c90000;color:#a90000}.type-grid button.active>svg{color:#c90000}.compose-workspace{margin:0;grid-template-columns:minmax(0,1fr);gap:10px}.compose-workspace,.form-column{width:100%;display:grid;align-items:start}.form-column{grid-template-areas:"setup purpose support" "setup subject support" "setup detail  support" "setup footer  support";gap:14px;min-width:0;font-size:14px}.form-column,.form-column.external-mode{grid-template-columns:240px minmax(0,1fr) 340px}.form-column.external-mode{grid-template-areas:"setup subject support" "setup detail  support" "setup footer  support"}.form-column.external-mode.has-viewing-memo,.form-column.has-viewing-memo{grid-template-columns:minmax(360px,420px) minmax(0,1fr) 340px}.setup-column{grid-area:setup;align-self:start}.purpose-column{grid-area:purpose}.subject-column{grid-area:subject}.detail-column{grid-area:detail}.writing-footer{grid-area:footer;display:grid;gap:10px;min-width:0;align-content:start}.support-column{grid-area:support}.detail-column,.purpose-column,.setup-column,.subject-column,.support-column{display:grid;gap:10px;min-width:0;align-content:start}.memo-subject-section .center-subject-field{margin-bottom:0;padding-bottom:0;border-bottom:none}.external-compose-card.external-meta-card{padding:24px 32px 18px}.external-compose-card.external-body-card{padding:24px 32px}.setup-column,.support-column{padding:4px 13px}.setup-column>.card,.support-column>.card{border:0;border-radius:0;box-shadow:none;background:transparent}.setup-column>.form-section,.support-column>.form-section{padding:13px 0}.support-column>.card+.card{border-top:1px solid var(--line)}.form-section{padding:16px}.section-heading{display:flex;align-items:flex-start;gap:9px;margin-bottom:12px}.section-heading .section-icon{width:31px;height:31px;flex:0 0 31px;border-radius:7px;background:#fff0f0;color:#c90000;display:grid;place-items:center}.section-heading b,.section-heading h2{margin:0;font-size:16px;font-weight:600;line-height:1.35}.section-heading p,.section-heading small{display:block;margin:2px 0 0;color:var(--muted);font-size:12px;font-weight:400;line-height:1.45}.form-grid{display:grid;gap:14px}.document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.document-number-field input[readonly]{background:#f6f7f9;color:#344054;font-weight:600;letter-spacing:.2px}.document-number-field>small{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.45}.priority-field{min-width:0;margin:0;padding:0;border:0}.priority-field legend{font-size:13px;font-weight:600;color:#344054;margin-bottom:7px}.priority-options{height:40px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.priority-options label{position:relative;cursor:pointer}.priority-options input{position:absolute;opacity:0;pointer-events:none}.priority-options span{height:40px;border:1px solid #dfe2e7;border-radius:6px;background:#fff;display:flex;align-items:center;justify-content:center;gap:7px;font-weight:500;font-size:13px}.priority-options span:before{content:"";width:14px;height:14px;border:1px solid #98a2b3;border-radius:50%;box-shadow:inset 0 0 0 3px #fff;background:#fff}.priority-options input:checked+span{border-color:#c90000;background:#fff0f0;color:#a90000}.priority-options input:checked+span:before{border-color:#c90000;background:#c90000}.document-actors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.actor-type-spacer{height:25px}@media (max-width:768px){.actor-type-spacer{display:none}}.actor-display{height:42px;min-height:42px;padding:0 12px;border:1px solid #dfe2e7;border-radius:6px;background:#f6f7f9;display:flex;align-items:center;font-size:13px;color:#344054}.actor-display span{font-size:13px;font-weight:500;color:#344054;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.actor-display small,.actor-help{color:var(--muted);font-size:12px;line-height:1.4}.actor-help{display:block;margin-top:5px}.document-purpose-divider{height:1px;margin:12px 0;background:var(--line)}.compact-purpose-heading{margin-bottom:7px;display:flex;align-items:center;gap:8px;color:#c90000}.compact-purpose-heading>div{display:grid}.compact-purpose-heading b{color:#344054;font-size:13px;font-weight:600}.compact-purpose-heading small{color:var(--muted);font-size:12px;font-weight:400}.purposes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.purpose-row{display:contents}.purposes label{position:relative;border:1px solid #dfe2e7;background:#fff;border-radius:7px;padding:8px 10px;min-height:52px;display:flex;align-items:center;justify-content:flex-start;gap:8px;color:#344054;cursor:pointer;font-size:13px;line-height:1.3}.purpose-text{display:flex;flex-direction:column;line-height:1.25}.purpose-title{font-size:13px;font-weight:600}.purpose-example{font-size:12px;color:var(--muted)}.purposes label:hover{border-color:#f3c7c9}.purposes label.active{border-color:#c90000;background:#fff0f0;color:#a90000}.purposes label.purpose-muted{opacity:.5}.purposes label>input{position:absolute;opacity:0;pointer-events:none}.radio-indicator{width:16px;height:16px;flex:0 0 16px;border:1px solid #98a2b3;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 4px #fff}.purposes label.active .radio-indicator{border-color:#c90000;background:#c90000}.center-subject-field{margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--line)}.subject-combobox{position:relative;width:100%;min-width:0}.subject-combobox>input{width:100%;padding-right:14px}.subject-combobox:after{display:none!important}.subject-options{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:150;max-height:260px;padding:5px;border:1px solid #dfe2e7;border-radius:7px;background:#fff;box-shadow:0 12px 30px rgba(23,23,23,.2);overflow-y:auto}.subject-options button{width:100%;padding:10px 12px;border:0;border-radius:5px;background:#fff;color:#303030;text-align:left;display:grid;gap:2px;cursor:pointer}.subject-options button.subject-option-muted{opacity:.5}.subject-options button.active,.subject-options button:hover{background:#fff0f0;color:#a90000}.subject-options button b{font-size:14px;font-weight:500}.subject-options button small{color:var(--muted);font-size:11px}.editor{border:1px solid #dfe2e7;border-radius:7px;overflow:visible;background:#fff}.toolbar{min-height:38px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:2px;padding:4px 7px;overflow-x:auto}.toolbar button,.toolbar select{height:29px;flex:0 0 auto;border:0;background:#fff;padding:0 8px;color:#344054;cursor:pointer}.toolbar button:hover{background:#f6f7f9;border-radius:4px}.editor textarea{width:100%;min-height:320px;border:0!important;border-radius:0!important;box-shadow:none!important;padding:12px!important;resize:vertical;outline:none;font-family:var(--font-document,"TH Sarabun New","TH Sarabun PSK","Sarabun",sans-serif);font-size:16px;line-height:1.6}.autosave{margin-top:7px;color:#667085;font-size:12px;display:flex;align-items:center;justify-content:flex-end;gap:5px}.manual-route-builder{display:grid;gap:10px}.manual-route-guidance{margin:0;color:#101828;font-size:13px;font-weight:600;line-height:1.4}.manual-route-empty{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.route-recipient-type-selector{display:flex;align-items:center;gap:16px;margin-bottom:8px;padding:2px 0}.cc-type-selector{margin-top:6px;margin-bottom:8px}.field label.route-type-radio,.route-recipient-type-selector label.route-type-radio,.route-type-radio{display:inline-flex!important;align-items:center!important;gap:6px!important;cursor:pointer;font-size:13px!important;color:#344054!important;-webkit-user-select:none;user-select:none;margin:0!important;padding:0!important;font-weight:500!important;line-height:1!important}.field label.route-type-radio.active,.route-recipient-type-selector label.route-type-radio.active,.route-type-radio.active{color:#c90000!important;font-weight:600!important}.field .route-recipient-type-selector input,.route-recipient-type-selector input,.route-type-radio input{position:absolute!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important}.route-type-radio .radio-indicator{display:inline-block!important;width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;flex:0 0 15px!important;border:1px solid #98a2b3!important;border-radius:50%!important;background:#fff!important;box-shadow:inset 0 0 0 3px #fff!important;box-sizing:border-box!important;vertical-align:middle}.field label.route-type-radio.active .radio-indicator,.route-recipient-type-selector label.route-type-radio.active .radio-indicator,.route-type-radio.active .radio-indicator{border-color:#c90000!important;background:#c90000!important}.manual-route-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.manual-route-add select,.manual-route-list input,.manual-route-list select{width:100%;min-width:0;height:36px;border:1px solid #dfe2e7;border-radius:6px;background:#fff;padding:0 9px;font-size:12px}.manual-route-add>button{white-space:nowrap;padding:0 14px;height:40px;font-size:13.5px;font-weight:500;display:inline-flex;align-items:center;justify-content:center}.manual-route-list{list-style:none;display:grid;gap:8px;margin:0;padding:0}.manual-route-list>li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px;border:1px solid #dfe2e7;border-radius:8px;background:#fff}.manual-route-person{min-width:0;display:flex;align-items:center;gap:8px}.route-step-number{width:25px;height:25px;flex:0 0 25px;border-radius:50%;background:#fff0f0;color:#a90000;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}.route-person-info{min-width:0;display:flex;flex-direction:column;justify-content:center}.manual-route-person .route-person-name{font-size:13px!important;font-weight:400!important;color:#344054!important;white-space:normal;overflow-wrap:anywhere;line-height:1.35}.manual-route-person small,.route-person-sub{color:var(--muted);font-size:12px!important;font-weight:400!important;line-height:1.35;white-space:normal;overflow-wrap:anywhere}.manual-route-controls{display:flex;align-items:center;gap:6px}.route-drag-handle{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;color:#667085;background:#f9fafb;border:1px solid #dfe2e7;border-radius:6px;cursor:grab;-webkit-user-select:none;user-select:none;transition:all .15s ease}.route-drag-handle:hover{background:#f2f4f7;color:#1d2939;border-color:#d0d5dd}.route-drag-handle:active{cursor:grabbing;background:#eaecf0;border-color:#98a2b3}.route-delete-btn{height:28px;padding:0 10px;border:1px solid #fee4e2;border-radius:6px;background:#fff;color:#b42318;font-size:12px;font-weight:500;cursor:pointer;transition:all .15s ease}.route-delete-btn:hover{background:#fef3f2;border-color:#fecdca}.manual-route-list>li{transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease,transform .15s ease}.manual-route-list>li.dragging{opacity:.45;border:1px dashed #c90000;background:#fff8f8}.manual-route-list>li.drag-over{border-color:#c90000;background:#fff5f5;box-shadow:0 0 0 2px rgba(201,0,0,.12);transform:translateY(-2px)}.manual-route-list label{grid-column:1/-1;display:grid;gap:4px;margin:0;color:#344054;font-size:13px;font-weight:400}.compact-flow{list-style:none;margin:12px 0;padding:0;display:grid;gap:10px}.compact-flow li{position:relative;display:grid;grid-template-columns:26px minmax(0,1fr);gap:9px;align-items:start}.compact-flow li:not(:last-child):after{content:"↓";position:absolute;left:9px;bottom:-12px;color:#c90000;font-size:11px}.compact-flow li>span{width:26px;height:26px;border-radius:50%;background:#fff0f0;color:#c90000;display:grid;place-items:center;font-size:11px;font-weight:700}.compact-flow li>div{min-width:0;display:grid;gap:2px}.compact-flow b{font-size:13px;font-weight:600;line-height:1.35}.compact-flow small{color:var(--muted);font-size:12px;line-height:1.35}.recipient-fields{display:grid;gap:14px;margin-top:14px}.multi-label{display:block;margin-bottom:6px;font-size:13px;font-weight:600;color:#344054}.multi-label small{margin-left:4px;color:var(--muted);font-size:12px;font-weight:400}.date-time-fields.with-time{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.official-date-time{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.input-icon{position:relative;display:block}.input-icon input{padding-right:38px}.input-icon svg{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#667085;pointer-events:none}.disclosure-card{overflow:hidden}.section-toggle{width:100%;border:0;background:transparent;color:#344054;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;text-align:left;cursor:pointer}.section-toggle .section-heading{align-items:center;margin:0}.section-toggle:hover{background:#fff0f0}.rotated{transform:rotate(180deg)}.disclosure-card>.disclosure-content{border-top:1px solid var(--line);padding:16px 18px}.dropzone{width:100%;min-height:92px;border:1px dashed #98a2b3;border-radius:8px;background:#f6f7f9;color:#667085;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:15px;cursor:pointer}.dropzone:hover{border-color:#c90000;background:#fff0f0}.dropzone b{font-size:13px;font-weight:600;color:#344054}.dropzone span{flex-basis:100%;text-align:center;font-size:12px;color:var(--muted)}.dropzone u{color:#1753cf}.reminder-content{display:grid;grid-template-columns:1fr;gap:10px}.reminder-switch{display:flex;align-items:flex-start;gap:10px;cursor:pointer}.reminder-switch input{width:17px;height:17px;margin-top:2px;accent-color:#c90000}.reminder-switch span{display:grid}.reminder-switch b{font-size:13px;font-weight:600;color:#344054}.reminder-switch small{margin-top:3px;color:var(--muted);font-size:12px;line-height:1.5}.reminder-delay{display:grid;gap:7px}.reminder-delay>label{font-size:13px;font-weight:600;color:#344054}.reminder-delay>div{display:flex;align-items:center;gap:9px}.reminder-delay input{width:76px;height:42px;border:1px solid #dfe2e7;border-radius:6px;padding:0 12px}.reminder-delay span{color:var(--muted);font-size:12px}.reminder-delay.disabled{opacity:.5}.reminder-example{display:none}.prev-doc-search-box{position:relative;display:flex;align-items:center;margin:10px 0 12px}.prev-doc-search-icon{position:absolute;left:10px;color:#98a2b3;pointer-events:none}.prev-doc-search-box input{width:100%;padding:8px 30px 8px 32px!important;font-size:13px!important;border:1px solid #dfe2e7!important;border-radius:7px!important;background:#f8fafc!important;transition:all .15s ease-in-out}.prev-doc-search-box input:focus{background:#ffffff!important;border-color:#c90000!important;box-shadow:0 0 0 2px rgba(201,0,0,.1)!important}.prev-doc-search-clear{position:absolute;right:8px;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border:none;border-radius:50%;background:#eaecf0;color:#667085;cursor:pointer;padding:0;transition:all .15s ease-in-out}.prev-doc-search-clear:hover{background:#d0d5dd;color:#1d2939}.prev-doc-search-meta{font-size:11.5px;color:#667085;margin:-4px 0 10px}.previous-document-list{display:flex;flex-direction:column;gap:10px;max-height:520px;overflow-y:auto;padding-right:6px}.previous-document-list::-webkit-scrollbar{width:6px}.previous-document-list::-webkit-scrollbar-track{background:#f2f4f7;border-radius:6px}.previous-document-list::-webkit-scrollbar-thumb{background:#98a2b3;border-radius:6px}.previous-document-list::-webkit-scrollbar-thumb:hover{background:#667085}.previous-document-list button{width:100%;min-width:0;padding:12px 14px;border:1px solid #eaecf0;border-radius:8px;background:#ffffff;box-shadow:0 1px 2px rgba(16,24,40,.04);display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;cursor:pointer;transition:all .15s ease-in-out}.previous-document-list button:hover{border-color:#d0d5dd;background:#fcfcfd;box-shadow:0 2px 4px rgba(16,24,40,.06)}.previous-document-list button.active{border-color:#c90000;background:#fff5f5;box-shadow:0 0 0 1px #c90000}.previous-document-list button.active b{color:#c90000}.previous-document-list button>span{width:100%;min-width:0;display:flex;flex-direction:column;gap:2px}.previous-document-list b{font-size:13.5px;font-weight:600;color:#101828;line-height:1.35;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.previous-document-list small{color:#667085;font-size:11.5px;font-weight:400;margin:1px 0 2px}.previous-document-list em{display:inline-flex;align-items:center;padding:3px 10px;border-radius:9999px;background:#f2f4f7;color:#344054;font-size:11.5px;font-weight:500;font-style:normal;width:fit-content;height:auto;align-self:flex-start}.previous-document-list em.status-completed{background:#ecfdf3;color:#027a48}.previous-document-list em.status-published{background:#eff8ff;color:#175cd3}.previous-document-list em.status-returned{background:#fef3f2;color:#b42318}.previous-document-empty{min-height:130px;border:1px dashed #dfe2e7;border-radius:8px;color:var(--muted);display:grid;place-items:center;align-content:center;gap:7px;text-align:center}.previous-document-preview-card{display:flex;flex-direction:column;gap:10px;background:#ffffff;border-radius:8px}.prev-doc-preview-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:8px;border-bottom:1px solid #f2f4f7}.prev-doc-back-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#f8fafc;border:1px solid #dfe2e7;border-radius:6px;font-size:13px;font-weight:600;color:#344054;cursor:pointer;transition:all .15s ease-in-out}.prev-doc-back-btn:hover{background:#fee4e2;border-color:#fecdca;color:#c90000}.prev-doc-preview-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.prev-doc-preview-badge{padding:2px 7px;background:#f2f4f7;color:#344054}.completed-status-badge,.prev-doc-preview-badge{font-size:11px;font-weight:600;border-radius:999px}.completed-status-badge{padding:2px 8px;background:#fef0c7;color:#b54708}.completed-status-badge.status-completed{background:#ecfdf3;color:#027a48}.completed-status-badge.status-published{background:#eff8ff;color:#175cd3}.completed-status-badge.status-returned{background:#fef3f2;color:#b42318}.prev-doc-preview-title{margin:2px 0 6px}.prev-doc-preview-title h3{margin:0;font-size:14px;font-weight:700;color:#101828;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.prev-doc-preview-title small{display:block;margin-top:2px;color:var(--muted);font-size:11px}.prev-doc-preview-body-scroll{max-height:calc(100vh - 280px);min-height:380px;overflow-y:auto;overflow-x:hidden;background:#f8fafc;padding:12px;border-radius:8px;border:1px solid #e2e8f0}.prev-doc-preview-body-scroll .compact-a4-paper{width:100%!important;max-width:100%!important;box-sizing:border-box!important;background:#ffffff!important;border:1px solid #eaecf0!important;box-shadow:0 1px 3px rgba(16,24,40,.05)!important}.prev-doc-preview-footer{margin-top:6px;display:flex;justify-content:flex-end}.open-full-button-small{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:6px 12px;color:#344054;background:#fff;border:1px solid #dfe2e7;border-radius:6px;cursor:pointer;transition:all .15s ease-in-out}.open-full-button-small:hover{background:#f8fafc;color:#101828;border-color:#cfd4dc}.completed-doc-attachment-card{width:100%;background:#fff;border:1px solid #dfe2e7;border-radius:6px;padding:10px 14px;display:flex;align-items:center;gap:10px;font-size:12px;color:#344054;box-shadow:0 1px 3px rgba(16,24,40,.05)}.completed-doc-attachment-card b{color:#101828;margin-right:4px}.exit-modal-backdrop{position:fixed;inset:0;z-index:2000;background:rgba(23,23,23,.56);display:grid;place-items:center;padding:20px}.exit-modal{width:min(480px,100%);border-radius:13px;background:#fff;padding:26px;box-shadow:0 24px 60px rgba(23,23,23,.3);text-align:center}.exit-icon{width:48px;height:48px;margin:0 auto 14px;border-radius:50%;background:#fff0f0;color:#c90000;display:grid;place-items:center}.exit-modal h2{margin:0;font-size:19px;font-weight:600}.exit-modal p{margin:8px auto 22px;max-width:390px;color:var(--muted);line-height:1.6}.exit-actions{display:flex;justify-content:center;gap:9px}.type-popup-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.type-popup-options button{min-height:52px;font-size:15px;font-weight:600}.type-popup-options .external-document-option{opacity:.5}.type-popup-options button:hover{border-color:#c90000;background:#fff0f0;color:#a90000}.exit-actions button{min-height:42px;padding:0 16px;border-radius:7px;font-weight:600;cursor:pointer}.discard-button{border:1px solid #c90000;background:#fff;color:#c90000}.discard-button:hover{background:#fff0f0}.memo-entity-tag-panel{margin-top:10px;margin-bottom:6px;background:#fbfcfd;border:1px solid #eef0f3;border-radius:8px;padding:8px 12px;display:flex;flex-direction:column;gap:8px;position:relative;transition:all .15s ease}.memo-entity-tag-panel:focus-within{border-color:#f3c7c9;background:#ffffff;box-shadow:0 1px 3px rgba(0,0,0,.04)}.memo-entity-tag-header{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;line-height:1.4}.tag-header-left{display:flex;align-items:center;gap:6px;color:#475467}.tag-header-icon{flex-shrink:0}.tag-header-icon.structured-icon{color:#1753cf}.tag-header-icon.blank-icon{color:#c90000}.tag-header-label{font-size:12px;font-weight:500;color:#344054}.tag-header-label b{font-weight:600;color:#101828}.mode-badge{display:inline-flex;align-items:center;padding:1px 7px;border-radius:10px;font-size:11px;font-weight:500}.mode-badge.structured{background:#eff8ff;color:#175cd3;border:1px solid #b2ddff}.mode-badge.blank{background:#fef3f2;color:#b42318;border:1px solid #fecdca}.mode-toggle-link{background:none;border:0;padding:2px 6px;cursor:pointer;display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:#667085;border-radius:4px;transition:all .12s ease}.mode-toggle-link:hover{background:#f2f4f7;color:#c90000}.metadata-fields-row{display:grid;grid-template-columns:190px minmax(0,1fr);gap:10px;align-items:flex-start;position:relative}@media (max-width:640px){.metadata-fields-row{grid-template-columns:1fr}}.meta-field-group{display:flex;flex-direction:column;gap:4px;position:relative}.meta-field-label{font-size:11.5px;font-weight:500;color:#475467}.meta-select{height:34px;padding:0 10px;border:1px solid #d0d5dd;border-radius:6px;background:#ffffff;font-size:12.5px;color:#101828;outline:none;cursor:pointer;transition:border-color .12s ease}.meta-select:focus{border-color:#c90000;box-shadow:0 0 0 3px rgba(201,0,0,.08)}.meta-combobox{position:relative;width:100%}.meta-input-wrap{display:flex;align-items:center;background:#ffffff;border:1px solid #d0d5dd;border-radius:6px;height:34px;padding:0 10px;gap:6px;transition:border-color .12s ease}.meta-input-wrap:focus-within{border-color:#c90000;box-shadow:0 0 0 3px rgba(201,0,0,.08)}.meta-search-icon{color:#98a2b3;flex-shrink:0}.meta-search-input{flex:1 1;min-width:0;border:0!important;outline:none!important;padding:0!important;font-size:12.5px!important;color:#101828!important;background:transparent!important;height:auto!important}.meta-search-input::placeholder{color:#98a2b3;font-size:12px}.meta-arrow{font-size:13px;color:#667085;cursor:pointer;-webkit-user-select:none;user-select:none;transition:transform .15s ease}.meta-arrow.open{transform:rotate(180deg)}.selected-entity-chip{display:inline-flex;align-items:center;gap:6px;background:#eff8ff;border:1px solid #b2ddff;border-radius:6px;height:34px;padding:0 10px;font-size:12.5px;color:#175cd3}.entity-chip-code{font-weight:700;background:#175cd3;color:#ffffff;padding:2px 6px;border-radius:4px;font-size:11px;letter-spacing:.3px}.entity-chip-name{font-weight:500;color:#101828}.entity-chip-detail{color:#475467;font-size:11.5px}.entity-chip-clear{border:0;background:none;cursor:pointer;color:#667085;padding:2px;display:flex;align-items:center;border-radius:50%;margin-left:auto;transition:all .12s ease}.entity-chip-clear:hover{background:#d1e9ff;color:#b42318}.meta-dropdown-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;background:#ffffff;border:1px solid #e4e7ec;border-radius:8px;box-shadow:0 10px 24px rgba(0,0,0,.12),0 2px 6px rgba(0,0,0,.04);max-height:230px;overflow-y:auto;z-index:1050;padding:4px;display:flex;flex-direction:column;gap:2px}.dropdown-hint{padding:6px 10px 4px;font-size:11px;color:#98a2b3;font-weight:500;border-bottom:1px solid #f2f4f7;margin-bottom:2px}.meta-dropdown-item{width:100%;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px;padding:7px 10px;border:0;border-radius:6px;background:#ffffff;cursor:pointer;text-align:left!important;transition:all .12s ease}.meta-dropdown-item:hover{background:#f8fafc}.item-id-badge{font-size:11px;font-weight:600;padding:2px 6px;background:#f2f4f7;color:#344054;border-radius:4px;flex-shrink:0}.meta-dropdown-item:hover .item-id-badge{background:#eff8ff;color:#175cd3}.item-info{display:flex;flex-direction:column;min-width:0;text-align:left}.item-name{font-size:12.5px;font-weight:500;color:#101828}.item-detail{font-size:11px;color:#667085}.meta-dropdown-empty{padding:12px;text-align:center;font-size:12px;color:#667085}.tagging-fields-row{display:flex;flex-direction:column;gap:6px;position:relative}.tag-chips-and-input-container{display:flex;flex-wrap:wrap;align-items:center;gap:6px;background:#ffffff;border:1px solid #d0d5dd;border-radius:6px;padding:4px 8px;min-height:36px;transition:border-color .12s ease}.tag-chips-and-input-container:focus-within{border-color:#c90000;box-shadow:0 0 0 3px rgba(201,0,0,.08)}.blank-tag-chip{display:inline-flex;gap:4px;background:#fef3f2;border:1px solid #fecdca;font-size:12px;font-weight:500;padding:2px 8px;border-radius:4px}.blank-tag-chip,.tag-remove-btn{align-items:center;color:#b42318}.tag-remove-btn{border:0;background:none;cursor:pointer;padding:0;display:flex;border-radius:50%;opacity:.7;transition:opacity .12s ease}.tag-remove-btn:hover{opacity:1}.tag-input-wrapper{display:inline-flex;align-items:center;gap:2px;flex:1 1;min-width:180px}.hash-prefix{font-size:13px;font-weight:600;color:#c90000}.tag-input{border:0!important;outline:none!important;padding:0!important;font-size:12.5px!important;color:#101828!important;background:transparent!important;width:100%!important;height:26px!important}.tag-input::placeholder{color:#98a2b3;font-size:11.5px}.tag-suggestions-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;background:#ffffff;border:1px solid #e4e7ec;border-radius:8px;box-shadow:0 10px 24px rgba(0,0,0,.12),0 2px 6px rgba(0,0,0,.04);max-height:200px;overflow-y:auto;z-index:1050;padding:6px}.suggestions-header{font-size:11px;color:#98a2b3;font-weight:500;padding:2px 6px 6px;border-bottom:1px solid #f2f4f7;margin-bottom:4px}.suggestions-list{display:flex;flex-wrap:wrap;gap:4px}.tag-suggest-item{display:inline-flex!important;align-items:center!important;gap:4px;padding:4px 8px;border:1px solid #eaecf0;border-radius:4px;background:#f9fafb;font-size:12px;color:#344054;cursor:pointer;transition:all .12s ease}.tag-suggest-item:hover{background:#fef3f2;border-color:#fecdca;color:#b42318}.paper-metadata-tag{margin-top:14px;padding-top:8px;border-top:1px dashed #d0d5dd;font-size:11px;color:#475467;display:flex;align-items:center;gap:6px}.paper-metadata-tag b{color:#101828}.customer-template-editor{padding:18px 20px;background:#ffffff;min-height:240px;font-size:14px;line-height:1.8;color:#101828;border-radius:0 0 8px 8px}.customer-template-editor,.customer-template-editor input,.customer-template-editor textarea{font-family:var(--font-document,"TH Sarabun New","TH Sarabun PSK","Sarabun",sans-serif)!important}.customer-template-editor input,.customer-template-editor textarea{font-size:16px!important}.cte-top-row{display:flex;justify-content:flex-end;align-items:center;margin-bottom:12px}.cte-raw-btn{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#667085;background:#f9fafb;border:1px solid #e4e7ec;border-radius:6px;padding:4px 10px;cursor:pointer;transition:all .15s ease;font-family:inherit}.cte-raw-btn:hover{color:#b42318;border-color:#fecdca;background:#fffbfa}.cte-lead-line{margin-bottom:10px;color:#344054;font-size:14px}.cte-middle-row{position:relative;z-index:30;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0}.cte-prefix-label{color:#344054;font-size:14px;white-space:nowrap}.cte-dropdown-wrap{position:relative;display:inline-flex;align-items:center;min-width:320px;max-width:500px;flex:1 1}.cte-input-box{display:flex;align-items:center;gap:8px;width:100%;height:38px;border:1px solid #d0d5dd;border-radius:8px;padding:0 12px;background:#ffffff;cursor:pointer;box-shadow:0 1px 2px rgba(16,24,40,.05);transition:all .2s ease}.cte-input-box:hover{border-color:#98a2b3}.cte-input-box.open{border-color:#c90000;box-shadow:0 0 0 3px rgba(201,0,0,.08)}.cte-input-box.selected{border-color:#b42318;background:#fffbfa}.cte-input-box .cte-search-icon{color:#98a2b3;flex-shrink:0}.cte-input-box .cte-input{flex:1 1;min-width:0;border:none!important;outline:none!important;background:transparent!important;font-size:13.5px!important;color:#101828!important;padding:0!important;box-shadow:none!important;height:auto!important}.cte-input-box .cte-input::placeholder{color:#98a2b3;font-size:13.5px}.cte-input-box .cte-selected-text{flex:1 1;min-width:0;font-weight:500;color:#b42318;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cte-input-box .cte-clear-btn{border:none;background:transparent;color:#98a2b3;cursor:pointer;padding:2px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .15s ease}.cte-input-box .cte-clear-btn:hover{color:#b42318}.cte-input-box .cte-arrow-icon{color:#98a2b3;flex-shrink:0;transition:transform .18s ease}.cte-input-box .cte-arrow-icon.open{transform:rotate(180deg)}.cte-suffix-label{color:#667085;font-size:13px;white-space:nowrap}.cte-bottom-text{margin-top:12px;color:#344054;line-height:1.8;font-size:14px;white-space:pre-line}.cte-dropdown-menu{position:absolute;left:0;top:calc(100% + 4px);width:max(100%,480px);min-width:480px;background:#ffffff!important;border:1px solid #d0d5dd;border-radius:8px;box-shadow:0 12px 32px rgba(0,0,0,.2),0 2px 6px rgba(0,0,0,.08);z-index:1050;max-height:360px;overflow-y:auto}.cte-menu-header{padding:10px 12px;border-bottom:1px solid #f2f4f7;background:#f9fafb}.cte-menu-title{font-size:11.5px;font-weight:600;color:#667085;margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.cte-mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.cte-mode-tab{display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px;padding:5px 8px;border-radius:6px;cursor:pointer;transition:all .15s ease;font-family:inherit}.cte-mode-tab.active{background:#c90000;color:#ffffff;border:1px solid #c90000;box-shadow:0 1px 2px rgba(16,24,40,.05)}.cte-mode-tab.inactive{background:#ffffff;color:#344054;border:1px solid #d0d5dd}.cte-mode-tab.inactive:hover{background:#f2f4f7}.cte-customer-list-empty{padding:16px;text-align:center;font-size:12.5px;color:#667085}.cte-customer-item{width:100%;padding:10px 14px;border-bottom:1px solid #f2f4f7;transition:background .15s ease;display:flex;flex-direction:column;gap:6px}.cte-customer-item:last-child{border-bottom:none}.cte-customer-item:hover{background:#fef3f2}.cte-customer-item.current{background:#fff5f5}.cte-item-main{cursor:pointer}.cte-item-header{display:flex;align-items:center;justify-content:space-between}.cte-item-name{font-weight:600;font-size:13.5px;color:#101828;display:flex;align-items:center;gap:6px}.cte-item-name svg{color:#c90000;flex-shrink:0}.cte-item-code{font-size:11px;color:#667085;font-family:var(--font-mono,monospace)}.cte-item-contact{font-size:12px;color:#475467;align-items:center}.cte-item-address,.cte-item-contact{display:flex;gap:5px;padding-left:20px;margin-top:2px}.cte-item-address{font-size:11.5px;color:#026aa2;align-items:flex-start;line-height:1.4}.cte-quick-row{display:flex;align-items:center;gap:6px;padding-top:6px;padding-left:20px;border-top:1px solid rgba(242,244,247,.7)}.cte-quick-row span{font-size:11px;color:#98a2b3}.cte-quick-btn{font-size:11px;padding:2px 8px;border-radius:4px;border:1px solid #e4e7ec;background:#ffffff;color:#475467;cursor:pointer;transition:all .12s ease;font-family:inherit}.cte-quick-btn:hover{background:#f9fafb}.cte-quick-btn.active{background:#fee4e2;color:#b42318;border-color:#fecdca;font-weight:500}.cte-switch-back-btn{margin-left:auto;font-size:12px;color:#b42318;background:#fffbfa;border:1px solid #fecdca;border-radius:6px;padding:3px 8px;display:inline-flex;align-items:center;gap:5px;cursor:pointer;transition:all .15s ease;font-family:inherit}.cte-switch-back-btn:hover{background:#fee4e2}.attached-files-container{display:flex;flex-direction:column;gap:10px;width:100%}.attached-files-list{display:flex;flex-direction:column;gap:8px}.attached-file-row{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;transition:all .15s ease}.attached-file-row:hover{background:#f1f5f9;border-color:#cbd5e1}.file-info-group{display:flex;align-items:center;gap:10px;min-width:0}.file-info-group .file-icon{color:#c90000;flex-shrink:0}.file-details{display:flex;flex-direction:column;min-width:0}.file-details .file-name{font-size:13.5px;font-weight:500;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-details .file-size{font-size:11.5px;color:#64748b}.file-remove-btn{border:none;background:transparent;color:#94a3b8;cursor:pointer;padding:6px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:all .15s ease}.file-remove-btn:hover{color:#ef4444;background:#fee2e2}.add-more-files-btn{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:500;color:#1753cf;background:#eff6ff;border:1px dashed #bfdbfe;border-radius:6px;padding:6px 12px;cursor:pointer;transition:all .15s ease;font-family:inherit}.add-more-files-btn:hover{background:#dbeafe;border-color:#93c5fd}.dropzone.dragging{border-color:#c90000!important;background:#fff0f0!important}.detail-page{max-width:1600px;margin:auto}.detail-page .detail-title,.detail-page .memo-rejection-reason,.detail-page .workflow-route-card{max-width:1158px;margin-inline:auto}.detail-page .detail-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.detail-page .detail-title-left{display:flex;gap:14px;align-items:center}.detail-page .detail-title-right{display:flex;align-items:center;gap:12px}.detail-page .print-memo-btn{display:inline-flex;align-items:center;gap:6px;background-color:#ffffff;color:#374151;border:1px solid #d1d5db;border-radius:8px;padding:6px 14px;font-size:13px;font-weight:500;cursor:pointer;transition:all .15s ease-in-out;box-shadow:0 1px 2px rgba(0,0,0,.04)}.detail-page .print-memo-btn:hover{background-color:#f9fafb;border-color:#9ca3af;color:#111827;box-shadow:0 2px 4px rgba(0,0,0,.08)}.detail-page .print-memo-btn:active{transform:translateY(1px)}.detail-page .detail-title-right .status,.detail-page .status-pill-badge .status{border-radius:9999px;padding:4px 14px;font-size:13px;font-weight:600;border-width:1.5px}.detail-page .back{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:8px;background:white}.detail-page .detail-title h1{font-size:22px;font-weight:700;margin:3px 0}.detail-page .detail-title p{margin:0;color:var(--muted);font-size:12px}.detail-page .detail-title small{color:#c90000;display:block;font-size:12px}.detail-page .detail-layout{display:grid;grid-template-columns:minmax(0,794px) 340px;gap:24px;justify-content:center;align-items:start}.detail-page .document-column{display:flex;flex-direction:column;gap:16px;min-width:0;width:100%;max-width:794px;padding:0!important;margin:0!important}.detail-page .memo-rejection-reason{box-sizing:border-box;width:100%;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;margin-bottom:12px;padding:8px 12px;border:1px solid #fca5a5;border-radius:8px;background:#fef2f2;color:#991b1b;font-size:13px;line-height:1.5}.detail-page .memo-rejection-reason h2{margin:0;font-size:inherit;font-weight:700}.detail-page .memo-rejection-reason p{flex:1 1 14rem;min-width:0;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.proceed-evidence-list{display:grid;gap:8px;padding:0;list-style:none}.proceed-evidence-list a,.proceed-evidence-list li{display:flex;align-items:center;gap:10px;min-width:0}.proceed-evidence-list li{justify-content:space-between}.proceed-evidence-list img{flex:none;object-fit:cover;border-radius:6px;background:#f1f5f9}.proceed-evidence-list span{overflow-wrap:anywhere}.detail-page .support{display:flex;flex-direction:column;gap:16px;min-width:0;padding:0!important;margin:0!important}.detail-page .card.external-a4-paper,.detail-page .document-column>:first-child,.detail-page .document-status-card,.detail-page .memo-modern-paper,.detail-page .support>:first-child{margin-top:0!important}.detail-dialog:not([open]),.detail-page .support dialog:not([open]),.detail-page dialog:not([open]),.forward-dialog:not([open]){display:none!important}.detail-page .card{padding:20px}.detail-page .a4-paper,.detail-page .card.a4-paper,.detail-page .document-column .a4-paper{background:#ffffff!important;border:none!important;border-radius:0!important;box-shadow:0 1px 4px rgba(16,24,40,.08)!important;padding:48px 56px!important;width:100%!important;max-width:820px!important;min-height:1050px!important;margin-inline:auto!important;box-sizing:border-box!important}.detail-page h2{font-size:16px;font-weight:600;margin:0 0 16px}.detail-page h3{font-size:15px;font-weight:600;margin:14px 0 0}.detail-page small,.detail-page time{display:block;color:var(--muted);font-size:12px}.detail-page dt{color:var(--muted);font-size:12px;margin-top:14px}.detail-page dd{margin:3px 0 0;font-size:14px;overflow-wrap:anywhere}.detail-page dl{margin:0}.detail-page .badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:18px}.detail-page .badges span{background:#fff0f0;color:#c90000;border-radius:5px;padding:5px 8px;font-size:11px}.detail-page .paper{padding:32px;min-height:550px}.detail-page .paper header{border-bottom:2px solid #171717;padding-bottom:16px}.detail-page .paper header h2{font-size:27px;margin:4px 0}.detail-page .paper header b{font-size:12px}.detail-page .paper .paper-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;min-height:280px;padding:18px 0}.detail-page .paper footer{text-align:right;font-size:12px;margin-top:24px}.detail-page .attachment,.detail-page .buttons,.detail-page .comments h2{display:flex;align-items:center;gap:8px}.detail-page .comments h2 span{margin-left:auto;color:var(--muted)}.detail-page textarea{width:100%;min-height:110px;border:1px solid var(--line);border-radius:7px;padding:12px;font:inherit;resize:vertical;margin:8px 0}.detail-page form button{display:block;margin-left:auto}.detail-page article:not(.a4-paper):not(.memo-modern-paper){border-top:1px solid var(--line);padding:14px 0}.detail-page article:not(.a4-paper):not(.memo-modern-paper) b{font-size:13px}.detail-page article:not(.a4-paper):not(.memo-modern-paper) p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.detail-page .action-area{border:1px solid #f3c7c9;background:#fff0f0}.detail-page .action-area p{font-size:13px;line-height:1.7}.detail-page .buttons{justify-content:flex-end;flex-wrap:wrap}.detail-page .timeline{list-style:none;padding:0;margin:0;display:grid;gap:18px}.detail-page .timeline li{display:flex;gap:10px;font-size:13px}.detail-page .timeline i{flex:0 0 25px;height:25px;border-radius:50%;background:#dfe2e7;font-style:normal;display:grid;place-items:center}.detail-page .timeline .active i{background:#c90000;color:white}.detail-page .timeline .done i{background:#eaf9f0;color:#218759}.detail-page .timeline .active b{color:#c90000}.detail-page .workflow-route-card{padding:22px 28px;display:flex;flex-direction:column;width:100%;margin-bottom:24px;box-sizing:border-box}.detail-page .workflow-route-card .workflow-stepper{margin:0;padding:8px 0 4px}.detail-page .workflow-route-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.detail-page .workflow-route-header h2{font-size:16px;font-weight:600;margin:0}.detail-page .workflow-route-header .shield-icon{color:#64748b}.detail-page .workflow-stepper{list-style:none;padding:12px 10px 16px;margin:0;display:flex;align-items:flex-start;position:relative;overflow-x:auto}.detail-page .workflow-stepper li{flex:1 1;min-width:140px;display:flex;flex-direction:column;align-items:center;position:relative;text-align:center}.detail-page .workflow-stepper li:not(:last-child):after{content:"";position:absolute;top:15px;left:50%;width:100%;height:2.5px;background:#dfe2e7;z-index:1}.detail-page .workflow-stepper li.done:not(:last-child):after{background:#22c55e}.detail-page .workflow-stepper .step-badge{position:relative;z-index:2;width:30px;height:30px;border-radius:50%;background:#ffffff;color:#64748b;font-style:normal;font-size:14px;font-weight:600;display:grid;place-items:center;margin-bottom:12px;box-shadow:0 0 0 5px #ffffff;border:2px solid #e2e8f0;transition:all .2s ease}.detail-page .workflow-stepper li.active .step-badge{background:#ffffff;color:#16a34a;border-color:#22c55e;border-width:2px;font-weight:700;box-shadow:0 0 0 6px #dcfce7,0 0 0 2px #ffffff}.detail-page .workflow-stepper li.done .step-badge{background:#16a34a;color:#ffffff;border-color:#16a34a;box-shadow:0 0 0 4px #ffffff}.detail-page .workflow-stepper li.returned .step-badge{background:#faf5ff;color:#7c3aed;border-color:#a855f7;border-width:2px;font-weight:700;box-shadow:0 0 0 6px #f3e8ff,0 0 0 2px #ffffff}.detail-page .workflow-stepper li.rejected .step-badge{background:#fef2f2;color:#dc2626;border-color:#ef4444;border-width:2px;font-weight:700;box-shadow:0 0 0 6px #fee2e2,0 0 0 2px #ffffff}.detail-page .workflow-stepper .step-info{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;padding:0 4px;width:100%}.detail-page .workflow-stepper .step-info b.step-title{font-size:13.5px;font-weight:700;color:#0f172a;line-height:1.35;white-space:nowrap}.detail-page .workflow-stepper .step-info .step-action-label{font-size:12px;font-weight:600;color:#334155;line-height:1.25;white-space:nowrap}.detail-page .workflow-stepper .step-info .step-time{font-size:11.5px;color:#64748b;line-height:1.25;white-space:nowrap}.detail-page .workflow-stepper .workflow-status-pill.active{background:#dcfce7;color:#15803d}.detail-page .workflow-stepper .workflow-status-pill.active,.detail-page .workflow-stepper .workflow-status-pill.returned{display:inline-flex;align-items:center;justify-content:center;font-size:11.5px;font-weight:600;padding:2px 10px;border-radius:9999px;line-height:1.35;white-space:nowrap}.detail-page .workflow-stepper .workflow-status-pill.returned{background:#f3e8ff;color:#7c3aed}.detail-page .workflow-stepper .workflow-status-pill.rejected{display:inline-flex;align-items:center;justify-content:center;background:#fee2e2;color:#b91c1c;font-size:11.5px;font-weight:600;padding:2px 10px;border-radius:9999px;line-height:1.35;white-space:nowrap}.detail-page .document-status-card{padding:20px;display:flex;flex-direction:column;justify-content:flex-start;box-sizing:border-box}.detail-page .status-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.detail-page .status-card-header h2{font-size:16px;font-weight:600;margin:0}.detail-page .responsible-actor-block{display:flex;align-items:center;gap:12px;padding:4px 0}.detail-page .actor-avatar{width:44px;height:44px;border-radius:50%;background:#ffedd5;color:#ea580c;display:grid;place-items:center;font-size:18px;font-weight:600;flex-shrink:0}.detail-page .actor-details{display:flex;flex-direction:column;gap:2px;min-width:0}.detail-page .actor-caption{font-size:12px;color:#64748b}.detail-page .actor-name{font-size:14px;font-weight:600;color:#0f172a}.detail-page .actor-role{font-size:12px;color:#64748b}.detail-page .card-divider{border:none;border-top:1px solid #f1f5f9;margin:16px 0}.detail-page .reading-progress-block{display:flex;flex-direction:column;gap:8px}.detail-page .reading-progress-header{display:flex;align-items:center;gap:8px;font-size:13px;color:#475569}.detail-page .reading-progress-track{width:100%;height:6px;background:#e2e8f0;border-radius:9999px;overflow:hidden}.detail-page .reading-progress-fill{height:100%;background:#22c55e;border-radius:9999px;transition:width .3s ease}.detail-page .reading-progress-action{display:flex;justify-content:flex-end;margin-top:4px}.detail-page .view-recipients-link{background:none;border:none;padding:2px 4px;font-size:12px;color:#3b82f6;cursor:pointer;font-weight:500;display:inline-flex;align-items:center;gap:4px;transition:color .15s ease}.detail-page .view-recipients-link:hover{color:#1d4ed8;text-decoration:underline}.detail-page .card-recipients-dropdown{margin-top:10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:8px;max-height:250px;overflow-y:auto;animation:slideDownRecipients .2s ease-out}@keyframes slideDownRecipients{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.detail-page .recipients-inline-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}.detail-page .recipient-inline-item{display:flex;align-items:center;gap:10px;padding:7px 10px;background:#ffffff;border-radius:6px;border:1px solid #f1f5f9;box-shadow:0 1px 2px rgba(0,0,0,.02)}.detail-page .recipient-inline-avatar{width:28px;height:28px;border-radius:50%;background:#e2e8f0;color:#334155;display:grid;place-items:center;font-size:12px;font-weight:600;flex-shrink:0}.detail-page .recipient-inline-info{flex:1 1;min-width:0;display:flex;flex-direction:column;gap:1px}.detail-page .recipient-inline-info b{font-size:12.5px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.detail-page .recipient-inline-info small{font-size:11px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.detail-page .recipient-inline-badge{font-size:11px;font-weight:600;padding:2px 7px;border-radius:9999px;background:#f1f5f9;color:#64748b;flex-shrink:0;white-space:nowrap}.detail-page .recipient-inline-badge.read{background:#eaf9f0;color:#16a34a}.detail-page .recipients-inline-empty{padding:10px;text-align:center;font-size:12px;margin:0}.detail-page .replies-summary-card{padding:16px 20px;margin:0}.detail-page .replies-summary-content{justify-content:space-between}.detail-page .replies-summary-content,.detail-page .replies-summary-left{display:flex;align-items:center;gap:12px}.detail-page .replies-summary-icon{color:#64748b;flex-shrink:0}.detail-page .replies-summary-title{font-size:14px;font-weight:600;color:#0f172a;margin:0 0 2px}.detail-page .replies-summary-desc{font-size:12px;color:#64748b;margin:0}.detail-page .replies-summary-link{background:none;border:none;padding:0;font-size:12px;color:#3b82f6;font-weight:500;cursor:pointer;white-space:nowrap}.detail-page .replies-summary-link:hover{text-decoration:underline}.replies-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.5);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:10000;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}.replies-modal-content{background:#ffffff;width:100%;max-width:540px;max-height:85vh;border-radius:14px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 25px -5px rgba(0,0,0,.25),0 8px 10px -6px rgba(0,0,0,.1);border:1px solid #e2e8f0}.replies-modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #f1f5f9;background:#ffffff}.replies-modal-title-group{display:flex;align-items:center;gap:10px}.replies-modal-icon{color:#3b82f6}.replies-modal-title-group h3{margin:0;font-size:16px;font-weight:700;color:#0f172a}.replies-modal-count{font-size:12px;color:#64748b;display:block;margin-top:2px}.replies-modal-close{display:grid;place-items:center;width:32px;height:32px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;color:#64748b;cursor:pointer;transition:all .15s ease}.replies-modal-close:hover{background:#f1f5f9;color:#0f172a}.replies-modal-body{flex:1 1;overflow-y:auto;padding:20px;background:#f8fafc}.replies-empty-state{text-align:center;padding:36px 16px;color:#94a3b8}.replies-list{display:flex;flex-direction:column;gap:12px}.reply-bubble{background:#ffffff;border:1px solid #e2e8f0;border-radius:10px;padding:12px 14px;box-shadow:0 1px 2px rgba(0,0,0,.04)}.reply-bubble-header{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px;font-size:12.5px}.reply-author-name{font-weight:700;color:#0f172a}.reply-author-meta{color:#64748b;font-size:11.5px}.reply-time{margin-left:auto;color:#94a3b8;font-size:11px}.reply-message-text{margin:0;font-size:13.5px;color:#334155;line-height:1.5;white-space:pre-wrap}.replies-modal-footer{padding:14px 20px;border-top:1px solid #f1f5f9;background:#ffffff}.reply-input-wrapper{display:flex;gap:10px;align-items:flex-end}.reply-textarea{flex:1 1;border:1px solid #cbd5e1;border-radius:8px;padding:8px 12px;font-size:13px;font-family:inherit;resize:none;outline:none;transition:border-color .15s}.reply-textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 2px rgba(59,130,246,.15)}.reply-submit-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;font-size:13px;height:38px}.detail-dialog,.forward-dialog{width:min(560px,calc(100vw - 32px));border:1px solid var(--line);border-radius:12px;padding:24px;box-shadow:0 20px 80px #17171733;margin:auto}.detail-dialog::backdrop,.forward-dialog::backdrop{background:#17171788}.detail-dialog .buttons,.forward-dialog footer{margin-top:20px;display:flex;justify-content:flex-end;gap:8px}.forward-panel{padding:20px}.forward-panel h2{font-size:16px;margin:0 0 12px}.forward-panel p{font-size:13px;line-height:1.7}.forward-panel a{color:#c90000;font-weight:500}.forward-panel article{padding:12px 0;border-top:1px solid var(--line)}.forward-dialog form{display:grid;gap:10px}.forward-dialog fieldset{border:1px solid var(--line);border-radius:8px;padding:12px;margin:0}.forward-dialog .choice{display:flex;gap:9px;align-items:center;padding:8px;cursor:pointer}.forward-dialog select,.forward-dialog textarea{width:100%;padding:10px;border:1px solid var(--line);border-radius:6px}.memo-returned-actions-card{margin-top:16px;padding:18px 22px;background:#fdf4ff;border:1.5px solid #d8b4fe;border-radius:12px;display:flex;flex-direction:column;gap:14px;box-shadow:0 2px 8px rgba(147,51,234,.06)}.returned-actions-header{display:flex;align-items:flex-start;gap:12px}.returned-warning-icon{color:#9333ea;flex-shrink:0;margin-top:2px}.returned-actions-header h2{margin:0;font-size:16px;font-weight:700;color:#581c87}.returned-actions-header p{margin:4px 0 0;font-size:13.5px;line-height:1.5;color:#6b21a8}.returned-actions-buttons{display:flex;gap:12px;flex-wrap:wrap}.returned-actions-buttons .revise-btn,.returned-sidebar-card .revise-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 18px;background:#7c3aed;color:#ffffff;border:none;border-radius:8px;font-size:13.5px;font-weight:600;cursor:pointer;transition:all .15s ease-in-out}.returned-actions-buttons .revise-btn:hover,.returned-sidebar-card .revise-btn:hover{background:#6d28d9}.returned-actions-buttons .copy-btn,.returned-sidebar-card .copy-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 18px;background:#ffffff;color:#1e40af;border:1.5px solid #bfdbfe;border-radius:8px;font-size:13.5px;font-weight:600;cursor:pointer;transition:all .15s ease-in-out}.returned-actions-buttons .copy-btn:hover,.returned-sidebar-card .copy-btn:hover{background:#eff6ff;border-color:#93c5fd}.returned-sidebar-card{border-left:4px solid #9333ea;background:#faf5ff}.returned-sidebar-card h2{color:#581c87}.returned-sidebar-card .buttons{display:flex;flex-direction:column;gap:8px;margin-top:10px}.attachment-card{margin-top:20px}.attachment-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.attachment-card-header h2{margin:0;font-size:16px;font-weight:700;color:#1e293b}.attachment-count-badge{background:#f1f5f9;color:#475569;font-size:12px;font-weight:600;padding:3px 9px;border-radius:9999px;border:1px solid #e2e8f0}.attachment-source-group{display:grid;gap:8px;margin-top:14px}.attachment-source-group h3{margin:0;font-size:14px}.attachment-item-box{display:flex;justify-content:space-between;align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:12px 16px;gap:16px;transition:all .15s ease}.attachment-item-box:hover{background:#f1f5f9;border-color:#cbd5e1}.attachment-file-info{display:flex;align-items:center;gap:14px;min-width:0;flex:1 1}.attachment-icon-badge{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;flex-shrink:0}.attachment-icon-badge.pdf{background:#fee2e2;color:#dc2626}.attachment-icon-badge.excel{background:#dcfce7;color:#16a34a}.attachment-icon-badge.general{background:#e0e7ff;color:#4f46e5}.attachment-name-meta{display:flex;flex-direction:column;gap:4px;min-width:0}.attachment-file-name{font-size:14px;font-weight:600;color:#1e293b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-tags-row{display:flex;align-items:center;gap:8px;font-size:12px;color:#64748b;flex-wrap:wrap}.file-badge{display:inline-block;padding:1px 6px;border-radius:4px;font-size:10.5px;font-weight:700;letter-spacing:.5px}.file-badge.pdf{background:#fecaca;color:#991b1b}.file-badge.excel{background:#bbf7d0;color:#166534}.file-badge.general{background:#c7d2fe;color:#3730a3}.file-size-txt{font-weight:500;color:#475569}.file-status-txt{color:#64748b}.attachment-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.attach-btn{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;font-size:12.5px;font-weight:600;border-radius:6px;cursor:pointer;transition:all .15s ease-in-out}.attach-btn-print{background:#0284c7;color:#ffffff;border:1px solid #0369a1;box-shadow:0 1px 2px rgba(2,132,199,.2)}.attach-btn-print:hover{background:#0369a1;border-color:#075985}.attach-btn-preview{background:#ffffff;color:#334155;border:1px solid #cbd5e1;box-shadow:0 1px 2px rgba(0,0,0,.04)}.attach-btn-preview:hover{background:#f8fafc;color:#0f172a;border-color:#94a3b8}.attachment-hint{display:block;margin-top:8px;font-size:12px;color:#64748b}.attachment-preview-modal-backdrop{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(15,23,42,.65);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:10000;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}.attachment-preview-modal-content{background:#f8fafc;width:100%;max-width:900px;height:90vh;max-height:900px;border-radius:12px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 25px 50px -12px rgba(0,0,0,.35);border:1px solid #cbd5e1}.attachment-preview-modal-toolbar{display:flex;justify-content:space-between;align-items:center;background:#ffffff;border-bottom:1px solid #e2e8f0;padding:12px 20px;flex-shrink:0}.toolbar-title-group{display:flex;align-items:center;gap:12px}.toolbar-clip-icon{color:#0284c7}.toolbar-title-group h3{margin:0;font-size:15px;font-weight:700;color:#0f172a}.toolbar-title-group p{margin:2px 0 0;font-size:12.5px;color:#64748b}.toolbar-buttons{display:flex;align-items:center;gap:10px}.modal-print-btn{display:inline-flex;align-items:center;gap:6px;background:#0284c7;color:#ffffff;border:1px solid #0369a1;padding:7px 16px;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;transition:all .15s ease;box-shadow:0 1px 2px rgba(2,132,199,.25)}.modal-print-btn:hover{background:#0369a1}.modal-close-btn{display:grid;place-items:center;width:34px;height:34px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:6px;color:#64748b;cursor:pointer;transition:all .15s ease}.modal-close-btn:hover{background:#e2e8f0;color:#0f172a}.attachment-preview-scroll-area{flex:1 1;overflow-y:auto;padding:24px;display:flex;justify-content:center;background:#cbd5e1}.attachment-preview-paper-container{width:100%;max-width:794px;background:#ffffff;box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);border-radius:4px;margin:0 auto}.printable-attachment-paper{background:#ffffff;padding:36px 40px;color:#171717;box-sizing:border-box;font-family:inherit}.attach-paper-header{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:14px;border-bottom:2px solid #0f172a;margin-bottom:16px}.attach-company-th{font-size:18px;font-weight:800;color:#0f172a}.attach-company-en{font-size:11px;font-weight:600;color:#475569;letter-spacing:.5px}.attach-badge-box{display:flex;flex-direction:column;align-items:flex-end}.attach-badge-label{font-size:11px;color:#64748b;font-weight:500}.attach-badge-ref{font-size:13px;font-weight:800;color:#0369a1;letter-spacing:.5px}.attach-doc-title-bar{text-align:center;margin-bottom:18px}.attach-doc-title-bar h2{font-size:18px;font-weight:800;color:#0f172a;margin:0 0 4px}.attach-doc-subtitle{font-size:13.5px;color:#334155}.attach-meta-box{background:#f8fafc;border:1px solid #cbd5e1;border-radius:6px;padding:12px 14px;margin-bottom:20px}.attach-meta-row{display:flex;gap:20px;margin-bottom:8px}.attach-meta-row:last-child{margin-bottom:0}.attach-meta-col{display:flex;align-items:center;gap:8px;flex:1 1;font-size:13px}.attach-meta-col.full-width{flex:100% 1}.attach-file-highlight{border-top:1px dashed #cbd5e1;padding-top:8px;margin-top:8px}.meta-lbl{display:inline-flex;align-items:center;gap:4px;color:#64748b;font-weight:600;white-space:nowrap}.meta-txt{color:#1e293b}.meta-txt.font-semibold{font-weight:600}.meta-txt.font-bold{font-weight:700}.file-name-txt{color:#0369a1}.attach-content-section{margin-bottom:24px}.section-title{font-size:14px;font-weight:700;color:#0f172a;margin:0 0 10px}.attach-table{width:100%;border-collapse:collapse;font-size:12.5px;margin-bottom:12px}.attach-table th{background:#f1f5f9;color:#1e293b;font-weight:700;padding:7px 10px;border:1px solid #cbd5e1;text-align:left}.attach-table td{padding:7px 10px;border:1px solid #e2e8f0;color:#334155;line-height:1.45}.attach-table tbody tr:nth-child(2n){background:#f8fafc}.table-total-row{background:#f1f5f9!important;border-top:2px solid #cbd5e1}.attach-info-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:12px 14px;font-size:13px;line-height:1.6;color:#334155}.attach-info-box p{margin:0 0 6px}.attach-info-box p:last-child{margin-bottom:0}.attach-note-footer{text-align:center;margin-top:36px;padding-top:16px;border-top:1px dashed #cbd5e1;font-size:12px;color:#64748b;letter-spacing:.5px}.a4-paper,.compact-a4-paper,.external-a4-paper,.memo-modern-paper{font-family:var(--font-document,"TH Sarabun New","TH Sarabun PSK","Sarabun",sans-serif)!important}.a4-paper *,.compact-a4-paper *,.external-a4-paper *,.memo-modern-paper *{font-family:inherit}.compact-a4-paper{padding:18px 14px!important}.compact-a4-paper.external-a4-paper{padding:0 16px 16px!important;font-size:12.5px!important}.compact-a4-paper .external-letterhead{height:72px!important;margin:0 -10px 6px!important}.compact-a4-paper .external-logo-box img{height:42px!important}.compact-a4-paper .external-slant-group span{width:5px!important;margin:0 2px!important}.compact-a4-paper .external-date-row{font-size:12px!important;margin-bottom:12px!important}.compact-a4-paper .external-meta{gap:6px!important;margin-bottom:14px!important}.compact-a4-paper .external-meta-line{font-size:12.5px!important}.compact-a4-paper .external-body-text{font-size:12.5px!important;line-height:1.6!important}.compact-a4-paper .external-signature-block{margin:24px 0 18px!important}.compact-a4-paper .external-sig-dots{font-size:12px!important}.compact-a4-paper .external-footer{font-size:10px!important;line-height:1.35!important;padding-top:8px!important}.compact-a4-paper .external-company-th{font-size:11px!important}.compact-a4-paper .external-company-en{font-size:10px!important}.compact-a4-paper .external-address-en,.compact-a4-paper .external-address-th{font-size:9px!important}.compact-a4-paper{width:100%!important;max-width:100%!important;min-height:auto!important;padding:16px 14px!important;font-size:12.5px!important;border-radius:6px!important;box-shadow:0 1px 4px rgba(16,24,40,.08)!important;box-sizing:border-box!important}.compact-a4-paper .paper-title{display:flex!important;align-items:baseline!important;justify-content:space-between!important;padding-bottom:8px!important;border-bottom:2px solid #1e293b!important;margin-bottom:8px!important}.compact-a4-paper .paper-title h2{font-size:16px!important;font-weight:700!important;color:#1e293b!important;margin:0!important}.compact-a4-paper .paper-title strong{font-size:11.5px!important;font-weight:500!important;color:#64748b!important}.compact-a4-paper .paper-heading-meta{display:flex!important;flex-direction:column!important;gap:4px!important;padding:6px 0!important;border-top:none!important;border-bottom:1px solid #e2e8f0!important;font-size:12px!important}.compact-a4-paper .paper-heading-meta>div{display:flex!important;align-items:baseline!important;gap:6px!important;font-size:12px!important;min-width:0!important}.compact-a4-paper .paper-heading-meta b{width:52px!important;min-width:52px!important;font-size:12px!important;font-weight:700!important;color:#1e293b!important;margin:0!important}.compact-a4-paper .paper-heading-meta span{width:8px!important;min-width:8px!important;font-size:12px!important;font-weight:700!important;color:#1e293b!important}.compact-a4-paper .paper-heading-meta strong{flex:1 1!important;min-width:0!important;font-size:12px!important;font-weight:500!important;color:#334155!important;overflow-wrap:anywhere!important;word-break:break-word!important}.compact-a4-paper .paper-attachment-line,.compact-a4-paper .paper-subject{margin-top:2px!important;padding-top:4px!important;border-top:1px dashed #e2e8f0!important}.compact-a4-paper .paper-content{flex:none!important;padding:10px 0!important;line-height:1.6!important;font-size:12.5px!important;color:#1e293b!important}.compact-a4-paper .paper-content p{margin:0 0 6px!important}.paper-attachments-box{margin:16px 0 10px;padding:10px 12px;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:6px;font-size:12px}.paper-attachments-title{display:flex;align-items:center;gap:6px;font-weight:600;color:#475467;margin-bottom:6px;font-size:11px;text-transform:uppercase}.paper-attachment-item{display:flex;align-items:center;gap:8px;color:#101828;font-weight:500;word-break:break-all}.paper-attachment-item svg{color:#c90000;flex-shrink:0}.paper-attachment-name{font-size:12px}.form-actions{position:static;margin-top:16px;margin-bottom:24px;padding:12px 16px;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:0 2px 8px rgba(23,23,23,.05);display:flex;align-items:center;justify-content:flex-end;gap:9px}.next-step-hint{margin-right:auto;display:grid;line-height:1.25}.next-step-hint small,.next-step-hint span{color:var(--muted);font-size:12px}.next-step-hint b{font-size:13px;font-weight:600;color:#344054}.toast{position:fixed;right:28px;top:86px;z-index:90;background:#303030;color:#fff;border-left:4px solid #c90000;padding:12px 17px;border-radius:7px;box-shadow:0 8px 28px rgba(23,23,23,.22)}.preview-modal-backdrop{position:fixed;inset:0;z-index:1200;background:rgba(23,23,23,.65);display:flex;align-items:center;justify-content:center;padding:24px 20px;overflow:hidden;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.preview-shell{position:relative;left:auto;top:auto;transform:none;z-index:1201;width:min(960px,100%);height:100%;max-height:calc(100vh - 48px);min-width:0;border:1px solid #dfe2e7;border-radius:12px;overflow:hidden;background:#f2f4f7;box-shadow:0 20px 50px rgba(23,23,23,.35);display:flex;flex-direction:column}.preview-toolbar{height:61px;background:#fff;border-bottom:1px solid #dfe2e7;padding:10px 18px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.preview-toolbar h2{font-size:14px;font-weight:600;margin:0;color:#101828}.preview-toolbar p{font-size:12px;color:var(--muted);margin:2px 0 0}.preview-toolbar button{border:1px solid #dfe2e7;background:#f9fafb;color:#344054;width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s ease}.preview-toolbar button:hover{background:#fee4e2;border-color:#fecdca;color:#b42318}.preview-scroll{flex:1 1 auto;height:calc(100% - 61px);padding:24px;overflow-y:auto;overflow-x:auto;-webkit-overflow-scrolling:touch}.a4-paper{max-width:760px;min-height:920px;margin-inline:auto;background:#fff;padding:44px 44px 56px;box-shadow:0 3px 16px rgba(23,23,23,.12);color:#303030;display:flex;flex-direction:column;position:relative}.memo-watermark-bg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:320px;height:320px;pointer-events:none;z-index:0;opacity:.08;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}.memo-watermark-bg img{width:100%;height:100%;object-fit:contain}.memo-page-number-footer{position:absolute;bottom:16px;right:24px;font-size:13px;color:#64748b;font-weight:500;text-align:right;pointer-events:none;z-index:10;line-height:1}.paper-title{display:flex;align-items:baseline;justify-content:space-between;gap:18px;padding-bottom:22px;flex:0 0 auto}.paper-title h2{margin:0!important;font-size:25px!important;font-weight:600}.paper-title h2,.paper-title strong{font-family:var(--font-document,"TH Sarabun New","TH Sarabun PSK","Sarabun",sans-serif)}.paper-title strong{font-size:16px!important;font-weight:500}.paper-heading-meta{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(180px,.6fr);grid-template-areas:"attn date" "from ." "cc ." "subject subject";gap:12px 34px;padding:16px 0;border:none!important;font-size:16px!important}.paper-heading-meta>div{min-width:0;display:grid;grid-template-columns:75px 12px minmax(0,1fr);align-items:baseline;gap:4px}.paper-heading-meta b{text-transform:none}.paper-heading-meta b,.paper-heading-meta span{font-size:16px!important;font-weight:700!important;color:#1e293b}.paper-heading-meta strong{min-width:0;font-weight:400!important;overflow-wrap:anywhere;font-size:16px!important;color:#1e293b}.paper-attn{grid-area:attn}.paper-from{grid-area:from}.paper-cc{grid-area:cc}.paper-date{grid-area:date;align-self:start}.paper-subject{grid-area:subject;margin-top:4px;padding-top:4px;border:none!important}.paper-signature-block{margin-top:48px;margin-left:auto;width:280px;text-align:center;font-family:var(--font-document,"TH Sarabun New","TH Sarabun PSK","Sarabun",sans-serif);font-size:16px;line-height:1.6;page-break-inside:avoid;break-inside:avoid}.paper-signature-block .signature-space{margin-bottom:8px}.paper-signature-block .signature-dots{color:#94a3b8;letter-spacing:1px}.paper-signature-block .signature-name{font-weight:600;color:#1e293b;font-size:16px;margin-top:4px}.paper-signature-block .signature-role{color:#475569;font-size:14px;margin-top:2px}.pdf-export-mode,.pdf-export-mode .a4-paper,.pdf-export-mode .memo-modern-paper,.pdf-export-mode .printable-attachment-paper,.pdf-export-mode.a4-paper,.pdf-export-mode.memo-modern-paper{border:none!important;border-radius:0!important;box-shadow:none!important;background:#ffffff!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:0!important;position:relative!important}.pdf-export-mode .a4-paper,.pdf-export-mode .memo-modern-paper,.pdf-export-mode .printable-attachment-paper{position:relative!important;width:794px!important;height:1123px!important;min-height:1123px!important;max-height:1123px!important;margin:0 auto!important;padding:44px 48px 52px!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;page-break-after:always!important;break-after:page!important}.pdf-export-mode .rac-signature-trail{margin-top:auto!important;padding-top:16px!important}.pdf-export-mode .memo-page-number-footer{position:absolute!important;bottom:20px!important;right:40px!important;font-size:13px!important;color:#64748b!important;display:block!important;z-index:10!important}.pdf-export-mode .memo-watermark-bg{position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;width:340px!important;height:340px!important;opacity:.08!important;display:flex!important;z-index:0!important}.html2pdf__page-break{page-break-before:always!important;break-before:page!important}.pdf-export-mode .memo-paper-divider,.pdf-export-mode .paper-heading-meta,.pdf-export-mode .paper-subject{border:none!important}.pdf-export-mode .memo-paper-signature,.pdf-export-mode .paper-signature-block{margin-top:44px!important}.paper-content{flex:1 1 auto;min-height:40px;padding-top:16px;white-space:pre-wrap;line-height:1.7;font-size:16px;color:#1e293b}.external-body .placeholder,.paper-content .placeholder{color:#98a2b3}.a4-paper.external-a4-paper,.card.external-a4-paper,.external-a4-paper{position:relative;padding:0 52px;overflow:hidden;color:#171717;font-size:14px;width:100%;max-width:794px;min-height:1123px;margin-inline:auto;box-sizing:border-box;display:flex;flex-direction:column}.external-a4-paper .external-body{flex:1 0 auto}.external-bottom-lock{margin-top:auto;display:flex;flex-direction:column;width:100%;break-inside:avoid;page-break-inside:avoid}.compact-a4-paper .external-bottom-lock{margin-top:18px}.external-letterhead{display:grid;grid-template-columns:1fr auto 1fr;align-items:start;height:112px;margin:0 -20px 10px;border:0!important;padding:0!important}.external-slant-group{display:flex;justify-content:space-around;align-items:flex-start;height:96px}.external-slant-group span{display:block;width:1px;height:100px;background:#303030;transform:rotate(17deg);transform-origin:top center}.external-logo-box{margin-top:32px;width:82px;height:58px;background:#c90000;transform:skewX(-17deg);display:grid;place-items:center;overflow:hidden}.external-logo-box img{width:72px;height:72px;object-fit:contain;transform:skewX(17deg) scale(1.12)}.external-date-row{margin-top:16px;margin-bottom:24px;padding-left:52%;font-size:14px}.external-meta{display:grid;gap:12px;margin-bottom:26px}.external-meta-line{display:flex;gap:8px;line-height:1.6}.external-body{flex:1 0 auto;line-height:1.95;font-size:14px}.external-body-editable{width:100%;min-height:280px;background:transparent;border:1px dashed rgba(201,0,0,.18);border-radius:6px;padding:8px 12px;font-family:inherit;font-size:14px;line-height:1.95;color:#171717;resize:vertical;outline:none;box-sizing:border-box;text-indent:48px;white-space:pre-wrap;transition:all .15s ease}.external-body-editable:focus{border-color:#c90000;background:#fffafa;box-shadow:0 0 0 3px rgba(201,0,0,.08)}.external-body-text{white-space:pre-wrap;margin-bottom:18px}.external-print-only{display:none}.external-body-text p{margin:0 0 14px;text-indent:48px}.external-closing-line{margin:18px 0 0;padding-left:48px}.external-signature-block{margin-top:16px;margin-bottom:24px;margin-left:44%;text-align:center;width:260px;break-inside:avoid;page-break-inside:avoid}.external-respect{margin:0 0 10px}.external-sig-space{position:relative;display:grid;place-items:center;padding-top:28px;margin-bottom:6px}.external-sig-svg{position:absolute;top:0;width:112px;height:42px}.external-sig-dots{letter-spacing:1px;color:#344054;font-size:12px}.external-signer-name{margin:4px 0 6px}.external-signer-role{margin:0}.external-footer{text-align:center!important;padding-top:16px;break-inside:avoid;page-break-inside:avoid}.external-company-th{margin:0!important;font-size:15px!important;font-weight:600;color:#171717}.external-company-en{margin:1px 0 4px!important;font-size:12px!important;font-weight:500;letter-spacing:.4px;color:#303030}.external-address-th{margin:0!important;font-size:11px!important;color:#303030;line-height:1.45}.external-address-en{margin:0 0 14px!important;font-size:9.5px!important;color:#344054;line-height:1.45}.external-footer-bar{height:18px;background:#c90000;margin:0 -56px}.external-compose-card{position:relative;padding:28px 42px 0;overflow:hidden;background:#fff;display:flex;flex-direction:column}.external-compose-card .external-footer-bar{margin:0 -42px}.external-compose-date{display:flex;justify-content:flex-end;margin-top:8px;margin-bottom:18px}.external-inline-date-field{width:min(290px,100%)}.external-date-input-wrap{display:grid;gap:5px}.external-date-preview{color:var(--muted);font-size:12px}.external-date-preview b{color:#171717}.external-compose-meta{display:grid;gap:12px;margin-bottom:20px}.external-compose-row{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:10px}.external-compose-row label{font-size:14px;font-weight:600;color:#171717}.external-compose-row input{width:100%;height:42px;border:1px solid #dfe2e7;border-radius:6px;padding:0 12px;background:#fff;outline:none}.external-compose-row input:focus{border-color:#c90000;box-shadow:0 0 0 3px #fff0f0}.external-compose-body{display:grid;gap:8px;margin-bottom:12px}.external-body-label{font-size:13px;font-weight:600;color:#344054}.external-textarea-wrap{position:relative}.external-top-placeholder{position:absolute;top:12px;left:12px;color:#98a2b3;pointer-events:none;-webkit-user-select:none;user-select:none}.external-sig-blank-hint{font-size:11px;color:#98a2b3;margin-bottom:4px}.detail-page .memo-modern-paper{background:#ffffff;border:1px solid #e2e8f0;border-radius:4px;padding:48px 52px;width:100%;max-width:794px;min-height:1123px;margin:0 auto;box-shadow:0 4px 20px rgba(0,0,0,.08),0 1px 3px rgba(0,0,0,.04);display:flex;flex-direction:column;box-sizing:border-box}.detail-page .memo-paper-head{display:flex;justify-content:space-between;align-items:flex-end}.detail-page .memo-type-sub{display:block;font-size:13px;color:#64748b;margin-bottom:4px}.detail-page .memo-type-main{font-size:24px;font-weight:700;color:#0f172a;margin:0}.detail-page .memo-paper-no{font-size:16px;font-weight:700;color:#0f172a}.detail-page .memo-paper-divider{border:none;border-top:1px solid #e2e8f0;margin:18px 0}.detail-page .memo-paper-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 36px}.detail-page .memo-meta-col{display:flex;flex-direction:column;gap:10px}.detail-page .memo-meta-row{display:flex;align-items:baseline;gap:12px;font-size:13px;line-height:1.6}.detail-page .memo-meta-row .meta-label{color:#64748b;width:105px;flex-shrink:0}.detail-page .memo-meta-row .meta-val{color:#1e293b;font-weight:500;overflow-wrap:anywhere}.detail-page .memo-purpose-text{font-size:13px;font-weight:600;color:#dc2626;margin-bottom:4px}.detail-page .memo-subject-headline{font-size:18px;font-weight:700;color:#0f172a;margin:0}.detail-page .memo-modern-paper .paper-content{font-size:14px;line-height:1.85;color:#334155;flex:1 1;min-height:140px;white-space:pre-wrap;overflow-wrap:anywhere;padding:14px 0 28px}.detail-page .memo-paper-signature{text-align:right;margin-top:auto;padding-top:24px;font-size:13px;color:#64748b;display:flex;flex-direction:column;align-items:flex-end;gap:2px}.detail-page .memo-paper-signature .signature-dots{color:#94a3b8;letter-spacing:2px;margin:12px 0 6px}.detail-page .memo-paper-signature b{color:#1e293b;font-size:14px}.detail-page .memo-paper-signature small{color:#64748b}