.desktopGlobalSearch,.desktopHeaderActions,.desktopNavSection,.desktopOnlyNav,.desktopIdentity,.desktopPageHeading,.desktopLoginBenefits,.desktopLibraryFilters,.psLibrary-desktopMeta{display:none}

@media (min-width:1024px){
  :root{--ps-desktop-sidebar:264px;--ps-desktop-header:64px;--ps-header:64px;--ps-bottom-nav:0}
  html,body{background:#f5f6f9}
  .appBody{padding:var(--ps-desktop-header) 0 0 var(--ps-desktop-sidebar);background:#f5f6f9;overflow-x:hidden}
  body:not([data-view="home"]){padding-top:var(--ps-desktop-header)}
  body:not([data-view="home"]) .appTop{display:grid}
  body[data-view="review"] .appTop,body[data-view="review"] .bottomNav{display:flex}
  body[data-view="review"]{padding-top:var(--ps-desktop-header);background:#f5f6f9}
  body[data-view="review"] .appMain{min-height:calc(100dvh - var(--ps-desktop-header))}
  .appMain{width:100%;max-width:none;min-height:calc(100dvh - var(--ps-desktop-header));margin:0;background:#f5f6f9}

  .appTop{z-index:82;left:var(--ps-desktop-sidebar);height:var(--ps-desktop-header);padding:0 32px;display:grid;grid-template-columns:minmax(280px,400px) 1fr auto 44px;grid-template-rows:64px;gap:16px;border-bottom:1px solid #dde0e8}
  .appBrand{position:fixed;z-index:83;left:0;top:0;width:var(--ps-desktop-sidebar);height:64px;padding:0 24px;border-right:1px solid #dde0e8;background:#fff}
  .appBrand img{width:40px;height:40px}.appBrand strong{font-size:23px;color:#31316b}
  .companySwitcher{position:fixed;z-index:84;left:16px;top:78px;width:232px;height:58px;border:1px solid #dde0e8;border-radius:8px;background:#fff;padding:0 12px;grid-column:auto;color:#171a26;font-size:14px}
  .companySwitcher>span{font-weight:600}.companySwitcher .chevron{margin-left:auto}
  .headerNotification{grid-column:4;grid-row:1;color:#535a6d}
  .desktopGlobalSearch{grid-column:1;grid-row:1;height:44px;border:1px solid #8a92a6;border-radius:8px;background:#fff;color:#646c80;padding:0 12px;display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left}
  .desktopGlobalSearch svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
  .desktopGlobalSearch span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.desktopGlobalSearch kbd{height:24px;border:1px solid #dde0e8;border-radius:5px;background:#fff;padding:2px 7px;color:#535a6d;font:12px/18px Inter,sans-serif}
  .desktopHeaderActions{grid-column:3;grid-row:1;display:flex;align-items:center;gap:16px}
  .desktopHeaderActions button{height:44px;border-radius:8px;padding:0 18px;display:flex;align-items:center;gap:8px;font-weight:600}
  .desktopSecondaryAction{border:1px solid #31316b;background:#fff;color:#31316b}.desktopPrimaryAction{border:1px solid #c23400;background:#c23400;color:#fff}

  .bottomNav{z-index:81;left:0;right:auto;top:64px;bottom:0;width:var(--ps-desktop-sidebar);height:auto;padding:90px 16px 82px;display:flex;flex-direction:column;gap:2px;border:0;border-right:1px solid #dde0e8;background:#fff;overflow-y:auto}
  .bottomNav.readerMode{display:flex}
  .bottomNav button,.bottomNav .desktopOnlyNav{width:100%;height:44px;min-height:44px;padding:0 12px;border-radius:8px;display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:center;justify-items:start;color:#535a6d;font-size:14px;text-align:left}
  .bottomNav button>svg{width:20px;height:20px}.bottomNav button>span:last-child{white-space:nowrap}
  .bottomNav button.active{background:#ececf6;color:#31316b;font-weight:600}
  .bottomNav button.active:not(.navScan)::before{left:-16px;top:0;bottom:0;width:3px;height:44px;border-radius:0;background:#31316b}
  .bottomNav .navScan{color:#535a6d;font-weight:500}.bottomNav .navScan.active{color:#31316b;font-weight:600}
  .navScanIcon{width:22px;height:22px;border:0;border-radius:0;background:transparent;color:currentColor;margin:0}.navScanIcon svg{width:20px;height:20px}
  .desktopNavSection{display:block;margin:16px 12px 6px;color:#727a8e;font-size:12px;font-weight:600;text-transform:uppercase}
  .desktopNavSection:first-child{display:none}.desktopLibrarySection{margin-top:22px}
  .desktopOnlyNav{display:grid!important;border:0;background:transparent}.desktopNavGlyph{width:22px;font-size:20px;text-align:center}
  .desktopIdentity{position:fixed;z-index:83;left:16px;bottom:14px;width:232px;min-height:54px;padding:10px 0;border-top:1px solid #dde0e8;background:#fff;display:grid;grid-template-columns:36px minmax(0,1fr) 32px;gap:10px;align-items:center}
  .desktopIdentity>span{width:36px;height:36px;border-radius:50%;background:#31316b;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:600}
  .desktopIdentity strong,.desktopIdentity small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.desktopIdentity strong{font-size:13px}.desktopIdentity small{font-size:12px;color:#535a6d;margin-top:2px}
  .desktopIdentity>button{width:32px!important;height:36px!important;min-height:36px!important;padding:0!important;display:grid!important;place-items:center!important;font-size:20px!important}

  .screen.active:not(.scannerScreen){max-width:1200px;margin:0 auto}
  .psHome,.psSearch,.psAsk,.psMore{min-height:calc(100dvh - 64px);padding:28px 32px 40px;background:#f5f6f9}
  .desktopPageHeading{display:block;grid-column:1/-1}.desktopPageHeading h2{font-size:28px;line-height:36px;margin:0}.desktopPageHeading p{margin:2px 0 0;color:#535a6d;font-size:14px}

  .psHome.active{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;align-content:start}
  .psHome>.homeSearch{display:none}.psHome>.homeSearchModes,.psHome>.homeActions{display:contents}
  .homeSearchModes #homeSearchBtn{display:none}.homeSearchModes #homeAskBtn,.homeAction{height:90px;border:1px solid #dde0e8;border-radius:12px;background:#fff;padding:16px 20px;display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-rows:1fr 1fr;column-gap:14px;align-items:center;text-align:left;color:#171a26}
  .homeSearchModes #homeAskBtn{grid-column:5/7;grid-row:2;font-size:0;font-weight:400}.homeSearchModes #homeAskBtn::after{content:"Consulte seus documentos";grid-column:2;grid-row:2;color:#535a6d;font-size:13px}.homeSearchModes #homeAskBtn::before{content:"Perguntar";grid-column:2;grid-row:1;align-self:end;font-size:16px;font-weight:600}
  .homeSearchModes #homeAskBtn svg{grid-column:1;grid-row:1/3;width:48px;height:48px;padding:13px;border-radius:12px;background:#ececf6;color:#31316b}
  #homeScanBtn{grid-column:1/3;grid-row:2;display:grid!important;border-color:#c23400}#homeImportBtn{grid-column:3/5;grid-row:2}
  .homeAction>span{grid-column:1;grid-row:1/3;width:48px;height:48px;border-radius:12px}.homeAction strong{grid-column:2;grid-row:1;align-self:end;margin:0;font-size:16px}.homeAction small{grid-column:2;grid-row:2;align-self:start;font-size:13px}.homeAction#homeScanBtn>span{background:#c23400;color:#fff}
  .homeFirstUse{grid-column:1/-1;margin:0}.homeSection{margin:0;border:1px solid #dde0e8;border-radius:12px;background:#fff;padding:20px;min-height:300px}.homeSection[aria-labelledby="attentionTitle"]{grid-column:1/4}.homeRecent{grid-column:4/7}
  .attentionList{margin:8px 0 0;padding:0;background:#fff}.attentionList button{height:64px}.approvedDocumentList{margin:8px 0 0}.approvedDocumentRow{padding:10px 0;min-height:64px}.approvedDocumentRow::after{left:48px}.documentThumb{width:36px;height:46px;padding:5px 4px}.documentInfo strong{font-size:14px}.documentInfo small{font-size:12px}

  .psLibrary{max-width:none!important;padding:28px 32px 40px!important;background:#f5f6f9}.psLibrary-inner{max-width:1200px!important;margin:0 auto}
  .approvedLibraryHeader{padding:0;background:transparent}.approvedLibraryHeader>div:first-child{display:flex;flex-direction:column-reverse;align-items:flex-start}.approvedLibraryHeader h1{font-size:28px;line-height:36px}.approvedLibraryHeaderActions{display:none}
  #libraryPathBar{margin:0 0 2px}.approvedBreadcrumbs{padding:0!important;min-height:28px!important}
  .approvedLibraryTabs{padding:6px 0 0;background:transparent;border-bottom:1px solid #dde0e8}.approvedLibraryTabs button{padding:0 0;margin-right:28px;height:44px}
  .approvedLibraryToolbar{padding:16px 0;display:flex;justify-content:flex-start;gap:12px}.approvedLibraryToolbar .sortChip{height:36px}.desktopLibraryFilters{display:flex;gap:12px}.desktopLibraryFilters button{height:36px;border:1px solid #dde0e8;border-radius:18px;background:#fff;color:#171a26;padding:0 14px;display:flex;align-items:center;gap:10px}.approvedViewToggle{margin-left:auto}
  #libraryFolderFilters{margin:0 0 14px;padding:12px;border:1px solid #dde0e8;border-radius:10px;background:#fff;display:grid;grid-template-columns:160px 1fr auto;gap:12px;align-items:end}#libraryFolderFilters[hidden]{display:none!important}#libraryFolderFilters label{display:grid;gap:5px;font-size:12px;color:#535a6d}#libraryFolderFilters input{height:40px;border:1px solid #8a92a6;border-radius:7px;padding:0 10px}#libraryFolderFilters button{height:40px;border:0;border-radius:7px;background:#31316b;color:#fff;padding:0 18px}
  .approvedLibraryContent{display:grid;grid-template-columns:248px minmax(0,1fr);gap:24px;align-items:start}
  .psLibrary #libraryTreePanel{position:static!important;display:block!important;width:auto!important;max-height:calc(100dvh - 260px);border:1px solid #dde0e8;border-radius:12px;background:#fff;overflow:auto}.psLibrary-treeHeader{height:50px;padding:0 12px}.psLibrary-treeHeader button{display:none}.psLibrary-tree{padding:0 10px 12px}.psLibrary-treeNode{min-height:36px;border-radius:7px;padding-left:calc(10px + var(--tree-depth)*14px)}
  .psLibrary-treeNode{width:100%;border:0;background:transparent;color:#3e4658;display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:center;text-align:left;font:500 13px/1.25 Inter,system-ui,sans-serif;cursor:pointer}.psLibrary-treeNode:hover{background:#f5f6f9}.psLibrary-treeNode[aria-current="true"]{background:#ececf6;color:#31316b;font-weight:700}.psLibrary-treeFolder{width:20px;height:16px;border:1.8px solid currentColor;border-radius:3px;position:relative}.psLibrary-treeFolder::before{content:"";position:absolute;left:1px;top:-5px;width:8px;height:5px;border:1.8px solid currentColor;border-bottom:0;border-radius:3px 3px 0 0}.psLibrary-treeLabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .psLibrary-contentPane{position:relative;min-width:0;padding-top:62px}.approvedSectionHeading{position:absolute;top:0;right:0;left:0;min-height:44px;margin:0;justify-content:flex-end}.approvedSectionHeading>div{display:none}.approvedSectionHeading button{height:44px;border:1px solid #dde0e8!important;border-radius:8px;background:#fff!important;color:#171a26!important;padding:0 18px!important}
  .psLibrary-documents{border:1px solid #dde0e8;border-radius:12px;background:#fff;overflow:hidden}.psLibrary-documents[data-view="grid"]{border:0;background:transparent;padding:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .psLibrary-documents[data-view="list"]::before{content:"Nome                         Tipo              Data          Páginas     Tamanho       Status";height:44px;padding:0 18px 0 72px;display:flex;align-items:center;white-space:pre;color:#535a6d;font-size:12px;font-weight:600;border-bottom:1px solid #dde0e8}
  .psLibrary-folder{min-height:58px}.psLibrary-document{min-height:60px;padding:7px 16px;display:grid;grid-template-columns:22px 36px minmax(180px,1.5fr) minmax(440px,2fr) 28px;gap:10px;align-items:center;border-bottom:1px solid #dde0e8}.psLibrary-document:last-child{border-bottom:0}.psLibrary-thumb{width:34px;height:44px}.psLibrary-docInfo>small,.psLibrary-docInfo>.psLibrary-badge{display:none}.psLibrary-docInfo strong{font-size:13px}.psLibrary-desktopMeta{display:grid;grid-template-columns:1fr .85fr .6fr .65fr 1.2fr;gap:12px;align-items:center;color:#535a6d;font-size:12px}.psLibrary-desktopStatus{justify-self:start;border-radius:14px;background:#e8f5ee;color:#17703f;padding:5px 9px;font-weight:600;white-space:nowrap}.psLibrary-document:has(.psLibrary-badge.warning) .psLibrary-desktopStatus{background:#fff0d7;color:#9a4a00}.psLibrary-rowChevron{font-size:0}.psLibrary-rowChevron::after{content:"⋮";font-size:20px}
  .psLibrary [data-view="grid"] .psLibrary-document{min-height:280px;display:grid;grid-template-columns:22px 1fr 22px;padding:12px}.psLibrary [data-view="grid"] .psLibrary-desktopMeta{display:none}.psLibrary [data-view="grid"] .psLibrary-docInfo>small,.psLibrary [data-view="grid"] .psLibrary-docInfo>.psLibrary-badge{display:block}
  .psLibrary[data-filter="trash"]{padding-top:28px!important}.psLibrary[data-filter="trash"] .psLibrary-inner{display:flex;flex-direction:column}.psLibrary[data-filter="trash"] .approvedLibraryHeader{display:flex;order:1}.psLibrary[data-filter="trash"] .approvedLibraryTabs{display:flex;order:2;padding-top:10px}.psLibrary[data-filter="trash"] .approvedTrashHeader,.psLibrary[data-filter="trash"] #libraryPathBar,.psLibrary[data-filter="trash"] .approvedLibraryToolbar,.psLibrary[data-filter="trash"] .approvedSectionHeading,.psLibrary[data-filter="trash"] #libraryTreePanel{display:none!important}.psLibrary[data-filter="trash"] .approvedTrashHint{order:3;margin:16px 0;padding:14px 16px;border-radius:8px;background:#ececf6;color:#31316b}.psLibrary[data-filter="trash"] .approvedLibraryContent{display:block;order:4}.psLibrary[data-filter="trash"] .psLibrary-contentPane{padding-top:0}.psLibrary[data-filter="trash"] .psLibrary-documents{width:100%}.psLibrary[data-filter="trash"] .psLibrary-status:not(:empty){padding:24px 16px;background:#fff;border:1px solid #dde0e8;border-radius:12px}

  .psImportSourceSheet[open],.psFilterSheet[open],.psScopeSheet[open],.psSortSheet[open],.psFolderPickerSheet[open],.psCustomExpirySheet[open],.psMoveSheet[open],.psTypeSheet[open]{inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(720px,calc(100vw - 96px));max-height:calc(100dvh - 96px);margin:0;border-radius:16px;padding-bottom:24px}.psImportSourceSheet .sheetHandle,.psFilterSheet .sheetHandle,.psScopeSheet .sheetHandle,.psSortSheet .sheetHandle,.psFolderPickerSheet .sheetHandle{display:none}

  .reviewFlow{max-width:1200px!important;margin:0 auto!important;padding:28px 32px 40px!important}.reviewTitleBar{height:auto;margin-bottom:20px}.reviewTitleBar button{display:none}.reviewTitleBar h1{font-size:28px}.approvedReview{position:relative;padding-right:360px}.reviewLead{font-size:14px}.reviewPagesWrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.capturedGrid{display:contents}.addPageTile{min-height:260px}.reviewBatchSummary,.reviewWarning{grid-column:1/-1}.reviewFixedAction{position:absolute;right:0;top:72px;width:340px;bottom:auto;border:1px solid #dde0e8;border-radius:12px;background:#fff;padding:20px}.reviewFixedAction::before{content:"Resumo do lote";display:block;margin-bottom:16px;font-size:18px;font-weight:600}
  .approvedSaveView.active{display:grid;grid-template-columns:290px minmax(0,1fr) 200px;gap:24px}.approvedSaveView>.reviewTitleBar{grid-column:1/-1}.saveModeBar,.savePagesSummary,.classificationCards,.detailDisclosure,.manualCorrectionPanel,.classificationReviewGate,.editOptionalButton,.saveFixedActions{grid-column:2}.inlineProcessing:not([hidden]){grid-column:1;grid-row:2/8;display:block;align-self:start;border:1px solid #dde0e8;border-radius:12px;background:#fff;padding:20px}.savePagesSummary{grid-column:3;grid-row:2/7;align-self:start;border:1px solid #dde0e8;border-radius:12px;background:#fff;padding:16px}.manualFields{grid-template-columns:1fr 1fr}.manualFields .wide{grid-column:auto}.saveFixedActions{position:static!important;display:flex!important;align-items:center;justify-content:flex-end;gap:12px;border-top:1px solid #dde0e8;padding:16px 0 0}.saveFixedActions #saveBtn{width:auto;order:3}.saveFixedActions #saveAndScanBtn{order:2;height:48px;border:1px solid #31316b;border-radius:8px;background:#fff;padding:0 18px}.saveFixedActions #clearBtn{order:1;margin-right:auto}

  .psViewer[open]{display:grid;grid-template-columns:140px minmax(0,1fr) 380px;grid-template-rows:64px minmax(0,1fr)}.psViewer-header{grid-column:1/-1;grid-row:1;grid-template-columns:48px minmax(260px,1fr) auto auto;padding:0 22px;border-bottom:1px solid rgba(255,255,255,.14)}.psViewer-header h2{font-size:16px}.psViewer-tabs{grid-column:2;grid-row:1;z-index:2;width:168px;height:44px;justify-self:center;align-self:center;margin:0}.psViewer-stage{grid-column:2;grid-row:2}.psViewer-actions{grid-column:1/-1;grid-row:1;z-index:3;width:auto;height:44px;justify-self:end;align-self:center;margin-right:72px;padding:0;display:flex;gap:12px;border:0;background:transparent}.psViewer-actions button{height:44px;min-width:110px;padding:0 16px;border:1px solid rgba(255,255,255,.35);border-radius:8px;display:flex;flex-direction:row;justify-content:center;font-size:14px}.psViewer-actions button:nth-child(2){background:#c23400;border-color:#c23400}.psViewer-actions #libraryViewerInfoBtn{display:none}.psViewer-actions span{font-size:18px}.psViewer-thumbnails{grid-column:1;grid-row:2;position:static!important;height:auto!important;padding:18px 20px!important;background:#151532!important;display:flex!important;flex-direction:column;box-shadow:none!important;border-right:1px solid rgba(255,255,255,.14);overflow-y:auto}.psViewer-thumbnails button{flex:0 0 124px!important;width:96px!important;height:124px!important}.psViewer-sheet{grid-column:3;grid-row:2;position:relative!important;display:block;max-height:none;border-radius:0;padding:24px;background:#fff;color:#171a26;border-left:1px solid #dde0e8;overflow:auto}.psViewer-sheet[hidden]{display:none!important}.psViewer-sheet#libraryViewerInfo:not([hidden]){display:block}.psViewer-sheet dl{grid-template-columns:130px minmax(0,1fr)}.psViewer-sheet dd{min-width:0;margin:0;overflow-wrap:anywhere}.psViewer-pageCount{bottom:18px}.psViewer-pages{padding:36px 28px 76px}.psLibrary-page{max-width:640px}.psViewer-documentAsk{left:auto;width:420px;padding:20px;box-shadow:-8px 0 24px rgba(0,0,0,.18)}

  .psSearch,.psAsk{max-width:1200px!important}.searchModeTabs{width:320px}.approvedSearchForm{max-width:760px}.approvedSearchResults,.recentSearches{max-width:760px;margin-left:0}.approvedChatMessages{max-width:760px;min-height:calc(100dvh - 230px)}.approvedChatForm{left:calc(var(--ps-desktop-sidebar) + 32px);right:auto;bottom:28px;width:min(760px,calc(100vw - var(--ps-desktop-sidebar) - 484px))}
  .psMore.active{display:grid;grid-template-columns:260px minmax(0,1fr);grid-template-rows:auto 1fr;gap:24px}.psMore .pageTitle{grid-column:1/-1}.moreUser{grid-column:1}.moreMenu{grid-column:2;grid-row:2;margin:0;border:1px solid #dde0e8;border-radius:12px;background:#fff;padding:10px 20px}.moreMenu h2:first-child{margin-top:6px}.moreMenu button{width:100%}

  .psAdministration{left:var(--ps-desktop-sidebar);top:var(--ps-desktop-header);background:#f5f6f9;padding:28px 32px}.adminPage{width:min(100%,1200px)!important;min-height:auto;margin:0 auto!important;border:1px solid #dde0e8;border-radius:12px;background:#fff;padding:0 0 32px}.adminHeader{padding:8px 24px;border-bottom:1px solid #dde0e8}.adminHub{display:grid;grid-template-columns:1fr 1fr;column-gap:32px;padding:20px 28px}.adminHub h2{grid-column:1/-1}.adminSearch{max-width:420px}.adminUserList,.adminSimpleList{padding:0 24px}.adminForm{max-width:760px;padding:24px}.adminSubmit{position:static;width:100%}.adminProcessingSummary{grid-template-columns:repeat(4,1fr)}

  .loginBody{background:#fff}.loginShell{width:100%;max-width:none;display:grid;grid-template-columns:1fr 1fr;padding:0}.loginBox,.accessFlow{width:400px;align-self:center;justify-self:center}.loginBrand{margin-bottom:28px}.loginBrand img:first-child{display:none}.loginBrand img:last-child{height:44px}.loginFooter{position:absolute;left:calc(25% - 140px);bottom:24px}.desktopLoginBenefits{grid-column:2;grid-row:1;min-height:100dvh;background:#f5f6f9;padding:80px max(48px,10vw);display:flex;flex-direction:column;justify-content:center;gap:30px}.desktopLoginBrand{display:flex!important;align-items:center;gap:12px;margin-bottom:30px}.desktopLoginBrand img{width:44px;height:44px}.desktopLoginBrand strong{font-size:25px;color:#31316b}.desktopLoginBenefits>div:not(.desktopLoginBrand){display:grid;grid-template-columns:48px minmax(0,1fr);gap:16px;align-items:start}.desktopLoginBenefits>div>span{width:48px;height:48px;border-radius:12px;background:#ececf6;color:#31316b;display:grid;place-items:center;font-size:23px}.desktopLoginBenefits p{margin:0;color:#535a6d;line-height:22px}.desktopLoginBenefits p strong{display:block;color:#171a26;margin-bottom:4px}
}

@media (min-width:1024px) and (max-width:1279px){
  :root{--ps-desktop-sidebar:80px}.appBrand{width:80px;padding:0 20px}.appBrand strong{display:none}.companySwitcher{left:12px;width:56px;padding:0;justify-content:center}.companySwitcher>span,.companySwitcher .chevron{display:none}.bottomNav{width:80px;padding:90px 8px 76px}.bottomNav button,.bottomNav .desktopOnlyNav{height:52px;min-height:52px;padding:5px 2px;display:flex;flex-direction:column;gap:2px;justify-content:center;align-items:center;text-align:center;font-size:10px}.bottomNav button.active:not(.navScan)::before{left:-8px;height:52px}.bottomNav button>svg{width:20px}.desktopNavSection,.desktopOnlyNav,.desktopIdentity{display:none!important}.appTop{padding-left:24px;padding-right:20px}.approvedLibraryContent{grid-template-columns:1fr}.psLibrary #libraryTreePanel{display:none!important}.psLibrary-documents[data-view="list"]::before{content:"Nome                       Tipo            Data          Páginas       Status"}.psLibrary-document{grid-template-columns:22px 36px minmax(170px,1.3fr) minmax(400px,2fr) 28px}.psLibrary-desktopMeta{grid-template-columns:1fr .8fr .6fr 0 1.1fr}.psLibrary-desktopSize{display:none}.approvedSectionHeading{margin-top:-72px}.approvedChatForm{left:104px;width:min(760px,calc(100vw - 552px))}
}

@media (min-width:1920px){.screen.active:not(.scannerScreen),.psLibrary-inner,.adminPage{max-width:1200px!important}}

/* Logos fornecidas: assinatura no sidebar expandido, simbolo no rail compacto. */
@media (min-width:1024px){
  .appBrand .brandLogoCompact,.appBrand .brandLogoIcon{display:none}
  .appBrand .brandLogoFull{display:block;width:194px;height:auto;max-height:46px;object-fit:contain}
  .loginBrand img.loginLogo:first-child{display:block;width:270px;height:auto;max-height:65px}
  .desktopLoginBrand img{width:142px;height:auto;max-height:72px;object-fit:contain}
}
@media (min-width:1024px) and (max-width:1279px){
  .appBrand .brandLogoFull,.appBrand .brandLogoCompact{display:none}
  .appBrand .brandLogoIcon{display:block;width:40px;height:40px;object-fit:contain}
}

/* Correção estrutural da Biblioteca — 04/11/2026.
   Colunas da linha, cabeçalho e seleção usam a mesma geometria.
   A coluna do checkbox só é exibida na seleção e substitui a miniatura. */
@media (min-width: 1024px) {
  #documents[data-view="list"] {
    --ps-doc-grid: 34px minmax(160px, 2.15fr) minmax(78px, 1fr) 90px 47px 62px minmax(115px, 1.05fr) 36px;
    --ps-doc-gap: 8px;
  }
  .psLibrary #documents[data-view="list"]::before { content: none; display: none; }
  #documents[data-view="list"] .psLibrary-listHeader {
    display: grid; grid-template-columns: var(--ps-doc-grid); gap: var(--ps-doc-gap);
    align-items: center; min-height: 44px; padding: 0 12px;
    color: #535a6d; font-size: 11px; font-weight: 600;
    border-bottom: 1px solid #dde0e8;
  }
  #documents[data-view="list"] .psLibrary-listHeader span {
    min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .psLibrary #documents[data-view="list"] .psLibrary-document:not(.psLibrary-trashDocument) {
    box-sizing: border-box; width: 100%; min-width: 0;
    min-height: 66px; padding: 9px 12px;
    display: grid; grid-template-columns: var(--ps-doc-grid); gap: var(--ps-doc-gap);
    align-items: center; border-bottom: 1px solid #dde0e8;
  }
  .psLibrary #documents[data-view="list"] .psLibrary-document:not(.psLibrary-trashDocument) .psLibrary-desktopMeta {
    display: contents;
  }
  #documents[data-view="list"] .psLibrary-document:not(.psLibrary-trashDocument) .psLibrary-thumb {
    width: 34px; height: 44px; min-width: 0; grid-column: 1;
  }
  #documents[data-view="list"] .psLibrary-document:not(.psLibrary-trashDocument) .psLibrary-docInfo {
    grid-column: 2; min-width: 0;
  }
  #documents[data-view="list"] .psLibrary-document:not(.psLibrary-trashDocument) .psLibrary-docTitle {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden; max-width: 100%; font-size: 13px; line-height: 18px;
    white-space: normal; word-break: normal; overflow-wrap: anywhere;
  }
  #documents[data-view="list"] .psLibrary-document:not(.psLibrary-trashDocument) .psLibrary-desktopMeta > span {
    min-width: 0; max-width: 100%; font-size: 12px; line-height: 17px;
  }
  #documents[data-view="list"] .psLibrary-document:not(.psLibrary-trashDocument) .psLibrary-desktopType {
    overflow: hidden; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  }
  #documents[data-view="list"] .psLibrary-document:not(.psLibrary-trashDocument) .psLibrary-desktopDate {
    white-space: nowrap;
  }
  #documents[data-view="list"] .psLibrary-document:not(.psLibrary-trashDocument) .psLibrary-desktopStatus {
    white-space: normal; text-align: left; line-height: 15px;
    padding: 5px 7px; font-size: 11px; border-radius: 12px;
  }
  #documents[data-view="list"] .psLibrary-document:not(.psLibrary-trashDocument) .psLibrary-desktopStatus[data-status="processing"] {
    background: #edeaf8; color: #494779;
  }
  #documents[data-view="list"] .psLibrary-document:not(.psLibrary-trashDocument) .psLibrary-rowActions {
    grid-column: 8; width: 36px; height: 36px;
  }
  .psLibrary[data-selecting="true"] #documents[data-view="list"] .psLibrary-document:not(.psLibrary-trashDocument) {
    grid-template-columns: var(--ps-doc-grid);
  }
  .psLibrary[data-selecting="true"] #documents[data-view="list"] .psLibrary-document:not(.psLibrary-trashDocument) .psLibrary-thumb {
    display: none;
  }
  .psLibrary[data-selecting="true"] #documents[data-view="list"] .psLibrary-document:not(.psLibrary-trashDocument) input[type="checkbox"]:not([hidden]) {
    display: block; grid-column: 1; position: static; opacity: 1;
    width: 20px; height: 20px; margin: 0 auto;
  }
  .psLibrary #documents[data-view="grid"] .psLibrary-document:not(.psLibrary-trashDocument) {
    grid-template-columns: 32px minmax(0,1fr) 36px;
    min-width: 0;
  }
  .psLibrary #documents[data-view="grid"] .psLibrary-document:not(.psLibrary-trashDocument) .psLibrary-rowActions {
    position: absolute; top: 10px; right: 10px;
  }
  /* O compartilhamento desktop é diálogo central, não folha móvel. */
  .psShareSheet[open] {
    position: fixed; left: 50%; right: auto; top: 50%; bottom: auto;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 80px));
    max-height: calc(100dvh - 72px);
    margin: 0; padding: 20px 24px 24px;
    border: 1px solid #dde0e8; border-radius: 16px;
    overflow-y: auto; box-shadow: 0 18px 55px rgba(14,18,40,.25);
  }
  .psShareSheet .sheetHandle { display: none; }
  .psShareSheet header { margin-bottom: 10px; }
  .psShareSheet .psLibrary-primary { min-height: 44px; }
}
/* Breakpoint decidido pelo espaço útil da tabela, não apenas pela largura da janela. */
@media (min-width: 1280px) and (max-width: 1399px) {
  .psLibrary .approvedLibraryContent { grid-template-columns: minmax(0,1fr); }
  .psLibrary #libraryTreePanel { display: none!important; }
}

/* Seleção em lote no desktop: barra contextual no fluxo, não overlay mobile. */
@media (min-width: 1024px) {
  .psLibrary .approvedSelection:not([hidden]) {
    position: relative !important;
    z-index: 3;
    inset: auto !important;
    top: auto !important; bottom: auto !important;
    width: 100%; max-width: 100%;
    min-height: 0 !important; height: auto;
    display: flex !important; flex-wrap: wrap;
    align-items: center; gap: 10px;
    padding: 10px 12px; margin: 0 0 12px;
    border: 1px solid #dde0e8; border-radius: 10px;
    background: #fff; pointer-events: auto;
  }
  .psLibrary .approvedSelection::before { display: none !important; }
  .psLibrary .approvedSelection > button { min-width: 36px; width: 36px; height: 36px; font-size: 24px; }
  .psLibrary .approvedSelection > label { padding: 0 10px 0 0; }
  .psLibrary .approvedSelection > label input { position: static; opacity: 1; }
  .psLibrary .approvedSelection .psLibrary-actions {
    position: static !important;
    z-index: auto !important; inset: auto !important;
    width: auto; height: auto;
    display: flex !important; flex-wrap: wrap; gap: 7px;
    margin: 0 0 0 auto; padding: 0;
    border: 0; background: transparent;
    pointer-events: auto;
  }
  .psLibrary .approvedSelection .psLibrary-actions button {
    display: inline-flex !important; flex-direction: row;
    align-items: center; gap: 6px;
    min-height: 40px; height: 40px;
    padding: 0 12px; border: 1px solid #dde0e8;
    border-radius: 8px; font-size: 12px;
    white-space: nowrap;
  }
}

/* Na Biblioteca desktop, usar o espaço à esquerda do botão Nova pasta para Voltar. */
@media (min-width:1024px) {
  .psLibrary .approvedSectionHeading .psLibrary-backFolder { margin-right: auto; }
}
/* O ajuste antigo de -72px sobrepunha Voltar/Nova pasta aos filtros no rail de 1024–1279. */
@media (min-width:1024px) and (max-width:1279px) {
  .psLibrary .approvedSectionHeading { margin-top: 0; }
}
