.essential-tools .et-document { --doc-border: #dedee5; --doc-ink: #171717; --doc-muted: #5c5c68; color: var(--doc-ink); font-size: 14px; }
.essential-tools .et-doc-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 24px; background: #f5f4f8; border-radius: 18px; }
.essential-tools .et-doc-toolbar > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.essential-tools .et-doc-toolbar label { font-weight: 600; }
.essential-tools .et-doc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.essential-tools .et-document button, .essential-tools .et-document select, .essential-tools .et-document input, .essential-tools .et-document textarea { font: inherit; }
.essential-tools .et-document button { min-height: 44px; padding: 9px 15px; background: #fff; color: #171717; border: 1px solid #cbcad3; border-radius: 24px; cursor: pointer; line-height: 1.35; }
.essential-tools .et-document button:hover:not(:disabled) { border-color: #6b46ff; background: #f4f1ff; }
.essential-tools .et-document button:disabled { opacity: .48; cursor: not-allowed; }
.essential-tools .et-document :is(button, input, select, textarea, summary):focus-visible { outline: 3px solid #6b46ff; outline-offset: 3px; }
.essential-tools .et-document :is(input:not([type=checkbox]), textarea, select) { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #c7c6d0; padding: 11px 12px; border-radius: 8px; background: #fff; color: #171717; }
.essential-tools .et-document input[type=checkbox] { accent-color: #6b46ff; width: 20px; height: 20px; flex: 0 0 auto; }
.essential-tools .et-document select { width: auto; }
.essential-tools .et-doc-step { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: #6b46ff; color: #fff; font-size: 12px; }
.essential-tools .et-doc-sample { margin: 14px 2px 24px; color: var(--doc-muted); font-size: 13px; }
.essential-tools .et-doc-layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.essential-tools .et-doc-editor, .essential-tools .et-doc-preview { min-width: 0; }
.essential-tools .et-doc-editor-title, .essential-tools .et-doc-preview-heading > div { display: flex; align-items: center; gap: 10px; }
.essential-tools .et-document h2 { font-size: 19px; line-height: 1.35; margin: 0; }
.essential-tools .et-document fieldset { border: 0; border-bottom: 1px solid var(--doc-border); padding: 24px 0; margin: 0; min-width: 0; }
.essential-tools .et-document legend { font-size: 16px; font-weight: 600; padding: 20px 0 0; }
.essential-tools .et-doc-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.essential-tools .et-doc-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.essential-tools .et-doc-field > span:first-child { font-size: 13px; font-weight: 500; }
.essential-tools .et-doc-full { grid-column: 1 / -1; }
.essential-tools .et-doc-field textarea { resize: vertical; min-height: 90px; }
.essential-tools .et-doc-field select { width: 100%; }
.essential-tools .et-doc-field small, .essential-tools .et-doc-help, .essential-tools .et-doc-storage p, .essential-tools .et-doc-exact, .essential-tools .et-doc-downloads details p { font-size: 12px; line-height: 1.6; color: var(--doc-muted); margin: 0; }
.essential-tools .et-doc-check, .essential-tools .et-doc-storage > label { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.essential-tools .et-doc-help { margin: 0 0 18px; }
.essential-tools .et-doc-item { border: 1px solid var(--doc-border); background: #fafafa; padding: 16px; border-radius: 12px; margin: 16px 0; }
.essential-tools .et-doc-item .et-doc-field { margin-bottom: 10px; }
.essential-tools .et-doc-item-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.essential-tools .et-doc-item-heading > div { display: flex; gap: 5px; }
.essential-tools .et-doc-item-heading button { min-width: 44px; padding: 7px 10px; font-size: 12px; }
.essential-tools .et-doc-financial { margin-top: 24px; }
.essential-tools .et-doc-preview { background: #f5f4f7; border: 1px solid #e8e7ec; border-radius: 18px; padding: 22px; position: sticky; top: 100px; }
.essential-tools .et-doc-preview-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.essential-tools .et-doc-paper { padding: 5px 10px; border-radius: 5px; background: #fff; color: #55545f; font-size: 11px; }
.essential-tools .et-doc-preview-status { min-height: 32px; margin: 16px 0 10px; color: var(--doc-muted); font-size: 12px; line-height: 1.5; }
.essential-tools .et-doc-sheet { display: flex; justify-content: center; align-items: flex-start; padding: 12px; min-height: 320px; background: #dedde2; border-radius: 8px; overflow: hidden; }
.essential-tools .et-doc-sheet canvas { display: block; max-width: 100%; height: auto; background: #fff; box-shadow: 0 2px 8px #0002; }
.essential-tools .et-doc-page-controls { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 12px 0; font-size: 12px; }
.essential-tools .et-doc-page-controls button { width: 44px; padding: 8px; }
.essential-tools .et-doc-totals { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; gap: 12px; }
.essential-tools .et-doc-totals span { color: #4d4c57; font-size: 13px; }
.essential-tools .et-doc-totals strong { font-size: 24px; }
.essential-tools .et-document button.et-doc-primary { width: 100%; background: #171717; border-color: #171717; color: #fff; min-height: 48px; }
.essential-tools .et-document button.et-doc-primary:hover:not(:disabled) { background: #36333e; color: #fff; }
.essential-tools .et-doc-downloads > button { width: 100%; margin-top: 10px; }
.essential-tools .et-doc-downloads details, .essential-tools .et-doc-text-preview { border-top: 1px solid var(--doc-border); margin-top: 16px; padding-top: 12px; }
.essential-tools .et-document summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.essential-tools .et-doc-downloads details button { margin: 8px 0; width: 100%; }
.essential-tools .et-doc-text-preview p { font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow: auto; }
.essential-tools .et-doc-exact { margin-top: 16px; }
.essential-tools .et-doc-errors { border: 1px solid #b02434; background: #fff4f5; padding: 16px; margin: 16px 0; border-radius: 10px; color: #85182a; }
.essential-tools .et-doc-errors ul { margin: 10px 0 0; padding-left: 20px; font-size: 13px; }
.essential-tools .et-document [aria-invalid=true] { border-color: #b02434 !important; }
.essential-tools .et-doc-storage { background: #f5f4f8; padding: 16px; border-radius: 12px; margin-top: 24px; }
.essential-tools .et-doc-storage .et-doc-actions { margin-top: 12px; }
.essential-tools .et-document [data-notice]:not(:empty) { padding: 12px; background: #f0edf9; border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.essential-tools .et-visually-hidden { position: absolute; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0 !important; }
@media (max-width: 1000px) { .essential-tools .et-doc-toolbar { flex-direction: column; align-items: flex-start; } .essential-tools .et-doc-layout { gap: 20px; } .essential-tools .et-doc-preview { padding: 16px; } }
@media (max-width: 760px) { .essential-tools .et-doc-layout { display: flex; flex-direction: column; } .essential-tools .et-doc-editor, .essential-tools .et-doc-preview { width: 100%; } .essential-tools .et-doc-preview { position: static; } .essential-tools .et-doc-toolbar { padding: 18px; } .essential-tools .et-doc-toolbar > div:first-child { width: 100%; } .essential-tools .et-doc-toolbar select { width: 100%; } .essential-tools .et-doc-fields { grid-template-columns: minmax(0,1fr); gap: 0; } .essential-tools .et-document :is(input, select, textarea) { font-size: 16px; } .essential-tools .et-doc-item { padding: 14px; } .essential-tools .et-doc-sheet { min-height: 240px; } }
