/* Document-first conference layout. Keep original page proportions and all content. */
#module-conference .shell{grid-template-columns:172px minmax(330px,.85fr) minmax(0,1.15fr)}
#module-conference .preview-panel{min-width:0;min-height:0;overflow:hidden}
#module-conference .preview{min-height:0;overflow:hidden}
#module-conference .preview-toolbar{flex:0 0 56px;min-height:56px;justify-content:center;gap:10px;padding:9px 12px}
#module-conference .preview-toolbar .confirm-note,
#module-conference .preview-toolbar .open-danfe{height:36px;justify-content:center;font-size:12px;flex:1;max-width:230px;padding:0 12px;text-align:center}
#module-conference .open-danfe[aria-disabled="true"]{opacity:.45;cursor:default;pointer-events:none}
#module-conference .confirm-note:disabled{cursor:default;opacity:.7}
#module-conference .preview-scroll{position:relative;min-height:0}
.document-preview-viewport{position:relative;flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}
#module-conference .danfe-stage{padding:0;min-width:0;min-height:0;width:100%;height:100%;overscroll-behavior:contain;overflow-anchor:none;background:#e4e8ec;scrollbar-width:thin;scrollbar-gutter:stable}
#module-conference .pdf-document{min-width:0;min-height:100%;align-items:flex-start;gap:8px;padding:0 0 74px;transform:none}
#module-conference .pdf-page-wrap{border-radius:0;box-shadow:none;flex:none;background:#fff;overflow:hidden;max-width:none}
#module-conference .pdf-page-canvas{display:block;background:#fff}
.document-zoom-button{position:absolute;right:18px;top:10px;z-index:7;display:flex;align-items:center;gap:5px;min-width:68px;height:36px;padding:0 9px;border:1px solid #99a6b3;border-radius:8px;background:rgba(255,255,255,.97);color:#263a4e;box-shadow:0 2px 8px rgba(0,0,0,.12);cursor:pointer;font-size:11px;font-weight:650}
.document-zoom-button svg{width:17px;height:17px}
.document-zoom-button:hover:not(:disabled){background:#edf4fa}
.document-zoom-button[aria-pressed="true"]{color:#fff;background:#1d5f98;border-color:#1d5f98}
.document-zoom-button:disabled{opacity:.5;cursor:wait}
.document-zoom-button:focus-visible{outline:3px solid #369aff;outline-offset:2px}
#module-conference .danfe-frame{display:block;width:100%;height:100%;min-height:0;border:0;border-radius:0;box-shadow:none;background:#fff}
#module-conference .danfe-missing{margin:36px auto;border:0;box-shadow:none;background:transparent;padding:24px;max-width:100%}
#module-conference .document-loading .danfe-missing-icon svg{animation:sync-spin 1s linear infinite}
.document-switcher{position:absolute;z-index:5;left:16px;right:22px;bottom:16px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}
.document-switcher[hidden]{display:none}
.document-arrow{width:48px;height:44px;border:1px solid rgba(41,133,235,.58);border-radius:12px;background:rgba(50,143,245,.24);color:#075cae;display:grid;place-items:center;pointer-events:auto;cursor:pointer;box-shadow:0 2px 10px rgba(10,83,158,.13);transition:background .15s,transform .15s}
.document-arrow:hover:not(:disabled){background:rgba(50,143,245,.4);transform:translateY(-1px)}
.document-arrow:disabled{opacity:.38;cursor:default;box-shadow:none}
.document-arrow svg{width:25px;height:25px}
.document-arrow:focus-visible,#module-conference .danfe-stage:focus-visible{outline:3px solid #369aff;outline-offset:-3px}
.document-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.document-retry-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:18px}
.document-retry-actions button{border:1px solid #8ba0b3;background:#fff;color:#263a4e;border-radius:8px;padding:9px 12px;font:inherit;cursor:pointer}
.document-retry-actions button:hover{background:#edf4fa}
@media(max-width:1450px){
  #module-conference .shell{grid-template-columns:72px minmax(310px,.8fr) minmax(0,1.2fr)}
  #module-conference .sidebar{padding:17px 12px;align-items:center}
  #module-conference .account-name,#module-conference .account-email,#module-conference .main-action span,#module-conference .section-title,#module-conference .nav-item .label,#module-conference .badge-count,#module-conference .company-chips,#module-conference .box-filter-wrap,#module-conference .sidebar-bottom .nav-item .label{display:none}
  #module-conference .sidebar-top{width:100%;justify-content:center}
  #module-conference .dots-btn,#module-conference .icon-square.plus{display:none}
  #module-conference .main-action{width:36px;padding:0}
  #module-conference .section,#module-conference .sidebar-bottom{width:100%}
  #module-conference .nav-item{justify-content:center;padding:0}
  #module-conference .search-filter-row{grid-template-columns:1fr 1fr}
  #module-conference .search-wrap{grid-column:1/-1}
}
@media(max-width:1000px){
  #module-conference{overflow:auto}
  #module-conference .shell{grid-template-columns:52px minmax(0,1fr);height:auto;min-height:100%;align-content:start;gap:6px;padding:6px}
  #module-conference .sidebar{grid-row:1/3;position:sticky;top:0;height:calc(100dvh - 76px);padding:14px 7px;border-radius:10px}
  #module-conference .list-panel{grid-column:2;height:35dvh;min-height:260px;border-radius:10px}
  #module-conference .preview-panel{grid-column:2;position:relative;inset:auto;z-index:auto;height:80dvh;min-height:440px;display:flex;border-radius:10px}
  #module-conference .empty-preview{display:flex}
  #module-conference .preview-toolbar{padding:8px;gap:6px}
  #module-conference .preview-toolbar .confirm-note,#module-conference .preview-toolbar .open-danfe{padding:0 7px;font-size:11px}
  .document-switcher{left:10px;right:16px;bottom:12px}
}
@media(prefers-reduced-motion:reduce){.document-arrow{transition:none}}
