.estimate-text-entry{margin:0 0 14px;padding:12px 18px;border:1px solid #16726b;border-radius:10px;background:#eaf8f4;color:#125c56;font-weight:700;max-width:100%;white-space:normal}
.estimate-text-dialog{box-sizing:border-box;width:min(1120px,96vw);max-width:96vw;height:92dvh;max-height:92dvh;padding:0;border:1px solid #b8ccd8;border-radius:16px;background:#f5f8fc;color:#18344c;overflow:hidden}
.estimate-text-dialog::backdrop{background:#10263a99}.estimate-text-dialog[open]{display:flex;flex-direction:column}
.estimate-text-dialog>header small{color:#d4e7f2}
.estimate-text-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px 22px;background:#133c57;color:white;flex-shrink:0}.estimate-text-dialog h2{font-size:21px;margin:5px 0}.estimate-text-dialog>header button{font-size:26px;border:1px solid #94b0c3;border-radius:8px;color:white;background:transparent;min-width:44px;min-height:44px}
.estimate-text-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:20px;scrollbar-gutter:stable}.estimate-text-body section,.estimate-text-body>details{background:white;border:1px solid #d1dfe8;border-radius:12px;padding:18px;margin:12px 0}.estimate-text-body h3{font-size:18px;margin:0 0 14px}.estimate-text-body p{line-height:1.6}.estimate-text-body label{display:block;font-weight:600;margin:12px 0}.estimate-text-body textarea{box-sizing:border-box;display:block;width:100%;font-size:16px;line-height:1.5;padding:12px;border:1px solid #a9bdcc;border-radius:8px;margin:8px 0;resize:vertical}.estimate-text-body input[type=file]{display:block;max-width:100%;padding:10px 0;font-size:16px}
.estimate-text-body button{border:1px solid #8bb5ca;border-radius:8px;background:#edf5fb;color:#164e73;min-height:42px;padding:8px 12px;cursor:pointer;white-space:normal}.estimate-text-body button:disabled{opacity:.5;cursor:not-allowed}.estimate-text-body summary{cursor:pointer;font-weight:700;line-height:1.6}.estimate-text-body details{padding:12px 0}.estimate-text-muted{font-size:13px;color:#5b7183}.estimate-text-consent{display:flex!important;align-items:flex-start;gap:10px}.estimate-text-consent input{flex-shrink:0;margin-top:5px}
#estimateTextFileList>div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px;border-bottom:1px solid #e0e8ee}#estimateTextFileList span{overflow-wrap:anywhere}.estimate-text-table{overflow:auto;max-height:400px}.estimate-text-table table{border-collapse:collapse;width:100%;min-width:1150px}.estimate-text-table th{background:#e6f1f5;position:sticky;top:0;z-index:1;font-size:13px}.estimate-text-table td,.estimate-text-table th{padding:6px;border:1px solid #d0dfe5}.estimate-text-table input{box-sizing:border-box;width:100%;min-width:82px;font-size:16px;padding:8px 5px;border:1px solid #9cb4c3;border-radius:4px}.estimate-text-table td:nth-child(2){min-width:240px}.estimate-text-actions{display:flex;flex-wrap:wrap;gap:10px}#estimateTextCopy{background:#1469b7;color:white}#estimateTextOutput{white-space:pre;overflow:auto;font-family:ui-monospace,monospace;tab-size:12;user-select:text;-webkit-user-select:text}#estimateTextStatus{padding:12px;background:#e6f2fc;border-radius:8px;overflow-wrap:anywhere}#estimateTextWarnings{color:#97491d;line-height:1.7}
@media(max-width:600px){.estimate-text-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0}.estimate-text-dialog>header{padding:max(12px,env(safe-area-inset-top)) 14px 12px}.estimate-text-dialog h2{font-size:18px}.estimate-text-body{padding:10px 10px max(18px,env(safe-area-inset-bottom))}.estimate-text-body section{padding:12px}.estimate-text-actions button{flex:1 1 130px}}
@media print{.estimate-text-dialog{display:none!important}}
.estimate-text-dialog[data-output-mode="calendar_text"] #estimateTextOutput{white-space:pre-wrap;overflow-wrap:anywhere;min-height:320px;font-family:system-ui,sans-serif}
.estimate-text-body [hidden]{display:none!important}.estimate-text-body select{box-sizing:border-box;max-width:100%;font-size:16px;padding:10px;border:1px solid #a9bdcc;border-radius:6px;background:white;color:#18344c}.calendar-text-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.calendar-text-fields input{box-sizing:border-box;display:block;width:100%;min-width:0;font-size:16px;padding:10px;border:1px solid #a9bdcc;border-radius:6px;margin-top:7px}@media(max-width:600px){.calendar-text-fields{grid-template-columns:1fr}}
