.viewer-page{margin:0;height:100vh;overflow:hidden;background:#eef1f4}.viewer-header{height:62px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:0 16px;border-bottom:1px solid #dde1e6;background:#fff}.viewer-brand img{display:block;width:150px;height:auto}.viewer-header>strong{max-width:45vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.viewer-header-actions{display:flex;justify-content:flex-end;gap:9px}.viewer-toolbar{min-height:62px;display:flex;align-items:center;gap:7px;padding:8px 12px;border-bottom:1px solid #d7dce2;background:#fff;overflow-x:auto}.viewer-toolbar button,.viewer-toolbar select,.viewer-toolbar input{min-height:38px;border:1px solid #d8dde3;border-radius:9px;background:#fff;padding:7px 10px;color:#23282f}.viewer-toolbar button{display:flex;align-items:center;gap:6px;cursor:pointer;font-weight:700}.viewer-toolbar button:hover{border-color:#ff5a0a;color:#d94a04}.viewer-toolbar svg{width:19px;height:19px}.toolbar-separator{height:28px;border-left:1px solid #d8dde3}.toolbar-spacer{flex:1}.page-counter{display:flex;align-items:center;gap:6px}.page-counter input{width:62px}.viewer-search{display:flex;align-items:center;min-width:220px}.viewer-search input{width:180px;border-radius:9px 0 0 9px}.viewer-search button{border-radius:0 9px 9px 0}.search-status{font-size:12px;color:#667085;white-space:nowrap}.viewer-shell{height:calc(100vh - 124px);display:grid;grid-template-columns:245px minmax(0,1fr)}.viewer-sidebar{padding:18px;border-right:1px solid #d5dae0;background:#f8f9fb;overflow:auto}.viewer-sidebar[hidden]{display:none}.viewer-shell.sidebar-hidden{grid-template-columns:1fr}.viewer-sidebar h2{font-size:17px;margin:0 0 16px}.thumbnail-list{display:grid;gap:16px}.thumbnail-button{display:grid;gap:7px;width:100%;padding:8px;border:2px solid transparent;border-radius:10px;background:transparent;cursor:pointer;text-align:left}.thumbnail-button.active{border-color:#ff5a0a;background:#fff3ec}.thumbnail-button canvas{display:block;max-width:100%;height:auto;margin:auto;background:#fff;box-shadow:0 3px 12px rgba(16,24,40,.12)}.thumbnail-button span{font-size:12px;font-weight:800}.pdf-stage{position:relative;overflow:auto;display:grid;place-items:start center;padding:36px;background:#e9edf1}.pdf-stage>canvas{display:block;background:#fff;box-shadow:0 8px 28px rgba(16,24,40,.18)}.viewer-empty{align-self:center;justify-self:center;display:grid;justify-items:center;gap:12px;max-width:460px;text-align:center}.viewer-empty>span svg{width:72px;height:72px;color:#ff5a0a}.viewer-empty h1{margin:0;font-size:28px}.viewer-empty p{margin:0 0 8px;color:#667085}.viewer-loading{position:absolute;top:18px;left:50%;transform:translateX(-50%);padding:9px 14px;border-radius:999px;background:#1f2937;color:#fff;font-size:13px;font-weight:700}@media(max-width:820px){.viewer-header{grid-template-columns:auto 1fr auto}.viewer-brand img{width:112px}.viewer-header>strong{display:none}.viewer-toolbar button span{display:none}.viewer-toolbar{min-height:56px}.viewer-shell{height:calc(100vh - 118px);grid-template-columns:170px minmax(0,1fr)}.viewer-sidebar{padding:12px}.pdf-stage{padding:18px}.viewer-search{min-width:160px}.viewer-search input{width:125px}}@media(max-width:560px){.viewer-header-actions .btn:first-child{padding:9px}.viewer-shell{grid-template-columns:1fr}.viewer-sidebar{position:absolute;z-index:5;top:118px;bottom:0;left:0;width:190px;box-shadow:8px 0 24px rgba(0,0,0,.15)}.toolbar-separator,.search-status,.viewer-toolbar select{display:none}.viewer-search{min-width:135px}.viewer-search input{width:100px}}
