.pdf-editor-page { min-height: calc(100vh - 90px); background: #f4f4fb; color: #202631; }
.pdf-editor-page form { min-height: calc(100vh - 90px); }
.pdf-editor-toolbar { display: flex; min-height: 56px; align-items: center; justify-content: space-between; padding: 0 24px; border-top: 1px solid #e0e1e8; border-bottom: 1px solid #d9dae2; background: #fff; }
.pdf-editor-toolbar__group { display: flex; align-items: center; gap: 5px; }
.pdf-editor-toolbar__group--right { gap: 10px; }
.pdf-editor-tool, .pdf-editor-icon-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #59606b; cursor: pointer; font-size: 12px; font-weight: 800; }
.pdf-editor-tool:hover, .pdf-editor-tool.is-active { border-color: #dfe0e7; background: #f3f3f8; color: #222833; }
.pdf-editor-tool i, .pdf-editor-icon-button i { font-size: 15px; }
.pdf-editor-icon-button { min-width: 34px; padding: 0; border-color: #e0e1e8; background: #fff; }
.pdf-editor-zoom-value { min-width: 44px; color: #59606b; font-size: 12px; text-align: center; }
.pdf-editor-workspace { display: grid; min-height: calc(100vh - 146px); grid-template-columns: 180px minmax(0, 1fr) 350px; }
.pdf-editor-workspace.is-empty { grid-template-columns: minmax(0, 1fr) 350px; }
.pdf-editor-thumbnails { overflow-y: auto; padding: 24px 18px; border-right: 1px solid #e0e1e8; background: #e9e9f1; }
.pdf-editor-thumbnail { display: flex; width: 100%; min-height: 150px; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px; border: 2px solid transparent; border-radius: 4px; background: transparent; color: #525966; cursor: pointer; font-size: 12px; }
.pdf-editor-thumbnail canvas { display: block; max-width: 120px; height: auto; box-shadow: 0 2px 8px rgba(0,0,0,.14); }
.pdf-editor-thumbnail:hover, .pdf-editor-thumbnail.is-active { border-color: #3b82f6; background: #fff; }
.pdf-editor-stage { display: flex; min-width: 0; align-items: center; justify-content: center; overflow: auto; padding: 42px; background: #f4f4fb; }
.pdf-editor-empty { display: flex; max-width: 480px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pdf-editor-add-button { display: grid; width: 72px; height: 72px; place-items: center; border: 0; border-radius: 50%; background: #ec2f2f; color: #fff; cursor: pointer; font-size: 28px; box-shadow: 0 8px 20px rgba(236,47,47,.22); }
.pdf-editor-empty h1 { margin: 24px 0 8px; color: #202631; font-size: 28px; }
.pdf-editor-empty p { margin: 0 0 20px; color: #7b8290; font-size: 14px; }
.pdf-editor-empty-button, .pdf-editor-side-button { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; padding: 0 18px; border: 1px solid #d7d9e2; border-radius: 4px; background: #fff; color: #303640; cursor: pointer; font-size: 13px; font-weight: 800; }
.pdf-editor-empty-button:hover, .pdf-editor-side-button:hover { border-color: #ec2f2f; color: #ec2f2f; }
.pdf-editor-document { display: flex; flex-direction: column; align-items: center; }
.pdf-editor-page-shell { position: relative; flex: 0 0 auto; background: #fff; box-shadow: 0 3px 18px rgba(35,39,51,.18); }
.pdf-editor-page-shell canvas { display: block; }
.pdf-editor-overlay { position: absolute; inset: 0; overflow: hidden; }
.pdf-editor-draw-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.pdf-editor-image-overlay { position: absolute; max-width: 100%; cursor: move; outline: 2px solid #3b82f6; outline-offset: 2px; user-select: none; }
.pdf-editor-page-count { margin-top: 14px; color: #727987; font-size: 12px; }
.pdf-editor-sidebar { display: flex; min-width: 0; flex-direction: column; border-left: 1px solid #dfe0e7; background: #fff; }
.pdf-editor-sidebar__header { display: flex; min-height: 72px; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid #e5e6eb; }
.pdf-editor-sidebar__header h2 { margin: 0; color: #202631; font-size: 24px; }
.pdf-editor-reset { border: 0; background: transparent; color: #ec2f2f; cursor: pointer; font-size: 12px; font-weight: 800; }
.pdf-editor-sidebar__body { padding: 24px; }
.pdf-editor-sidebar__intro { margin: 0 0 22px; color: #626b79; font-size: 14px; line-height: 1.65; }
.pdf-editor-sidebar__body .pdf-editor-side-button { width: 100%; justify-content: center; }
.pdf-editor-file-row { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 12px; border: 1px solid #f1b1b1; background: #fff6f6; color: #333945; font-size: 13px; }
.pdf-editor-file-row i { color: #ec2f2f; font-size: 18px; }
.pdf-editor-file-row span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-editor-file-row button { border: 0; background: transparent; color: #8b929f; cursor: pointer; }
.pdf-editor-panel-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid #ececf1; }
.pdf-editor-panel-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: #303640; font-size: 13px; font-weight: 800; }
.pdf-editor-panel-label small { color: #8a919c; font-size: 11px; font-weight: 600; }
.pdf-editor-add-image { display: flex; width: 100%; min-height: 48px; align-items: center; gap: 10px; padding: 0 12px; border: 1px dashed #c8ccd5; border-radius: 4px; background: #fafafd; color: #4b5461; cursor: pointer; font-size: 12px; font-weight: 800; }
.pdf-editor-add-image span { flex: 1; text-align: left; }
.pdf-editor-add-image:hover { border-color: #ec2f2f; color: #ec2f2f; }
.pdf-editor-control { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; color: #5d6673; font-size: 12px; }
.pdf-editor-control input, .pdf-editor-control select { width: 150px; min-height: 38px; padding: 0 9px; border: 1px solid #d9dce4; border-radius: 4px; background: #fff; color: #303640; font: inherit; }
.pdf-editor-sidebar__hint { margin: 24px 0 0; color: #75808e; font-size: 12px; line-height: 1.55; }
.pdf-editor-sidebar__hint i { margin-right: 5px; color: #3b82f6; }
.pdf-editor-sidebar__footer { display: flex; min-height: 120px; flex-direction: column; justify-content: flex-end; gap: 12px; margin-top: auto; padding: 24px; border-top: 1px solid #e5e6eb; }
.pdf-editor-sidebar__footer .pdf-status { color: #77808c; font-size: 11px; }
.pdf-editor-save { display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 6px; background: #ec2f2f; color: #fff; cursor: pointer; font-size: 16px; font-weight: 800; }
.pdf-editor-save:hover { background: #d92525; }
.pdf-editor-save:disabled { background: #f3a0a0; cursor: not-allowed; }
.pdf-editor-image-item { position: absolute; min-width: 48px; min-height: 48px; border: 2px solid transparent; cursor: move; touch-action: none; }
.pdf-editor-image-item.is-active { border-color: #3b82f6; }
.pdf-editor-image-item .pdf-editor-image-overlay { position: static; display: block; width: 100%; height: 100%; max-width: none; object-fit: fill; outline: 0; pointer-events: none; }
.pdf-editor-image-resize-handle { position: absolute; right: -8px; bottom: -8px; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: #3b82f6; cursor: nwse-resize; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.pdf-editor-generated-item { z-index: 1; border: 0 !important; pointer-events: none; }
.pdf-editor-text-item { position: absolute; min-width: 80px; min-height: 32px; border: 2px dashed transparent; background: rgba(255,255,255,.94); cursor: default; touch-action: none; }
.pdf-editor-text-item.is-active { border-color: #3b82f6; }
.pdf-editor-text-content { width: 100%; height: 100%; overflow: hidden; padding: 6px 8px; color: #202631; font-size: 14px; line-height: 1.2; outline: 0; white-space: pre-wrap; word-break: break-word; }
.pdf-editor-text-drag-handle { position: absolute; top: -17px; left: -2px; display: grid; width: 26px; height: 15px; place-items: center; border-radius: 3px 3px 0 0; background: #3b82f6; color: #fff; cursor: move; font-size: 10px; z-index: 2; }
.pdf-editor-text-resize-handle { position: absolute; right: -8px; bottom: -8px; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: #3b82f6; cursor: nwse-resize; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.pdf-editor-control input[type=color] { width: 54px; padding: 3px; cursor: pointer; }
.pdf-editor-selection-actions { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; padding: 10px 0 0; border-top: 1px solid #ececf1; color: #59606b; font-size: 12px; font-weight: 800; }
.pdf-editor-selection-actions button { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #f1b1b1; border-radius: 4px; background: #fff6f6; color: #d92525; cursor: pointer; font: inherit; font-size: 11px; }
.pdf-editor-selection-actions button:hover { border-color: #ec2f2f; background: #ec2f2f; color: #fff; }
.pdf-editor-error { margin: 0 24px; }
.pdf-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 1100px) { .pdf-editor-workspace { grid-template-columns: 130px minmax(0, 1fr) 300px; } .pdf-editor-stage { padding: 24px; } .pdf-editor-tool span { display: none; } }
@media (max-width: 767px) { .pdf-editor-toolbar { gap: 8px; overflow-x: auto; padding: 0 10px; } .pdf-editor-toolbar__group--right { margin-left: auto; } .pdf-editor-workspace { display: flex; min-height: calc(100vh - 202px); flex-direction: column; } .pdf-editor-thumbnails { display: flex; order: 2; gap: 8px; overflow-x: auto; padding: 12px; border-top: 1px solid #e0e1e8; border-right: 0; } .pdf-editor-thumbnail { width: 78px; min-height: 96px; margin: 0; } .pdf-editor-thumbnail canvas { max-width: 58px; } .pdf-editor-stage { min-height: 480px; order: 1; padding: 24px 12px; } .pdf-editor-sidebar { order: 3; border-top: 1px solid #dfe0e7; border-left: 0; } .pdf-editor-page-shell { max-width: 100%; } .pdf-editor-page-shell canvas { max-width: 100%; height: auto; } .pdf-editor-sidebar__footer { margin-top: 0; } }

/* Argesco PDF Atolyesi: a document workbench layout distinct from generic PDF tools. */
.pdf-editor-page { min-height: calc(100vh - 90px); background: #eef2f3; color: #202b30; }
.pdf-editor-page form { min-height: 0; padding-bottom: 34px; }
.pdf-editor-page-head { display: flex; max-width: 1280px; align-items: flex-end; justify-content: space-between; gap: 28px; margin: 0 auto; padding: 34px 40px 24px; }
.pdf-editor-page-kicker, .pdf-editor-sidebar__kicker { display: block; margin-bottom: 9px; color: #849300; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.pdf-editor-page-kicker i { margin-right: 6px; }
.pdf-editor-page-head h1 { margin: 0; color: #202b30; font-size: 30px; line-height: 1.15; }
.pdf-editor-page-head p { max-width: 620px; margin: 10px 0 0; color: #68767b; font-size: 14px; line-height: 1.55; }
.pdf-editor-page-badge { display: flex; min-width: 235px; align-items: center; gap: 12px; padding: 12px 15px; border-left: 3px solid #b5d334; background: #fff; color: #536167; }
.pdf-editor-page-badge > i { color: #849300; font-size: 20px; }
.pdf-editor-page-badge span { display: flex; flex-direction: column; gap: 3px; }
.pdf-editor-page-badge strong { color: #27353a; font-size: 12px; }
.pdf-editor-page-badge small { font-size: 11px; }
.pdf-editor-toolbar { max-width: 1280px; min-height: 58px; margin: 0 auto 12px; padding: 0 18px; border: 1px solid #d8e0df; border-radius: 8px; box-shadow: 0 5px 16px rgba(32,43,48,.05); }
.pdf-editor-tool:hover, .pdf-editor-tool.is-active { border-color: #d3df9a; background: #f6f9e9; color: #596900; }
.pdf-editor-workspace { max-width: 1280px; min-height: calc(100vh - 270px); margin: 0 auto; grid-template-columns: 190px minmax(0, 1fr) 340px; overflow: hidden; border: 1px solid #d8e0df; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(32,43,48,.08); }
.pdf-editor-workspace.is-empty { grid-template-columns: minmax(0, 1fr) 340px; }
.pdf-editor-stage { padding: 58px; background: #e8eeee; }
.pdf-editor-empty { position: relative; width: min(100%, 590px); min-height: 390px; box-sizing: border-box; padding: 48px 42px; border: 1px solid #d9e1df; border-top: 4px solid #ec2f2f; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px rgba(32,43,48,.08); }
.pdf-editor-empty::after { position: absolute; right: 30px; bottom: 26px; width: 46px; height: 4px; background: #b5d334; content: ''; }
.pdf-editor-empty-mark { position: relative; display: grid; width: 88px; height: 88px; place-items: center; margin-bottom: 25px; border: 1px solid #d8e2df; border-radius: 16px; background: #f7faf9; color: #ec2f2f; cursor: pointer; font-size: 38px; }
.pdf-editor-empty-mark:hover { border-color: #ec2f2f; box-shadow: 0 8px 18px rgba(236,47,47,.14); }
.pdf-editor-empty-mark > span { position: absolute; right: -12px; bottom: -12px; display: grid; width: 30px; height: 30px; place-items: center; border: 3px solid #fff; border-radius: 7px; background: #b5d334; color: #273238; font-size: 14px; }
.pdf-editor-empty-kicker { display: block; margin-bottom: 8px; color: #849300; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.pdf-editor-empty h2 { margin: 0; color: #202b30; font-size: 28px; line-height: 1.2; }
.pdf-editor-empty p { max-width: 460px; margin: 12px 0 22px; color: #6d7a7f; font-size: 14px; line-height: 1.65; }
.pdf-editor-empty-button { min-height: 46px; padding: 0 20px; border-color: #202b30; background: #202b30; color: #fff; }
.pdf-editor-empty-button:hover { border-color: #ec2f2f; background: #ec2f2f; color: #fff; }
.pdf-editor-empty-note { display: block; margin-top: 15px; color: #899397; font-size: 11px; }
.pdf-editor-empty-note i { margin-right: 5px; color: #849300; }
.pdf-editor-sidebar { border-left-color: #d8e0df; }
.pdf-editor-sidebar__header { min-height: 88px; padding: 0 24px; background: #fbfcfc; }
.pdf-editor-sidebar__kicker { margin-bottom: 5px; font-size: 10px; }
.pdf-editor-sidebar__header h2 { color: #202b30; font-size: 22px; }
.pdf-editor-sidebar__intro { color: #69777c; line-height: 1.7; }
.pdf-editor-side-button { border-color: #202b30; background: #202b30; color: #fff; }
.pdf-editor-side-button:hover { border-color: #ec2f2f; background: #ec2f2f; color: #fff; }
.pdf-editor-start-steps { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; padding-top: 22px; border-top: 1px solid #e4e9e7; }
.pdf-editor-start-steps div { display: flex; align-items: center; gap: 12px; }
.pdf-editor-start-steps span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 6px; background: #edf3c9; color: #6e7d00; font-size: 10px; font-weight: 900; }
.pdf-editor-start-steps p { margin: 0; color: #4d5b60; font-size: 12px; font-weight: 800; }
.pdf-editor-sidebar__footer { border-top-color: #d8e0df; }
.pdf-editor-save { background: #ec2f2f; }
.pdf-editor-save:hover { background: #cf2525; }
@media (max-width: 1300px) { .pdf-editor-page-head, .pdf-editor-toolbar, .pdf-editor-workspace { margin-left: 22px; margin-right: 22px; } }
@media (max-width: 767px) { .pdf-editor-page-head { align-items: flex-start; flex-direction: column; gap: 18px; margin: 0; padding: 26px 18px 20px; } .pdf-editor-page-head h1 { font-size: 25px; } .pdf-editor-page-badge { width: 100%; box-sizing: border-box; } .pdf-editor-toolbar { margin: 0 10px 10px; } .pdf-editor-workspace, .pdf-editor-workspace.is-empty { min-height: calc(100vh - 300px); margin: 0 10px; border-radius: 8px; } .pdf-editor-stage { min-height: 500px; padding: 24px 14px; } .pdf-editor-empty { min-height: 360px; padding: 34px 24px; } .pdf-editor-empty h2 { font-size: 24px; } }
