/* PAINT | RAINT — biblioteca de documentos: CSS isolado do módulo. */
body.paint-raint-page .docs-page{
  width:100%;max-width:1200px;padding:26px 24px 72px;margin:0 auto;
  position:relative;z-index:1;min-width:0;
}
body.paint-raint-page .docs-hero{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:26px 30px;margin:0 0 20px;
  background:linear-gradient(115deg,#1a3569 0%,#254986 60%,#213e72 100%);
  border:1px solid #3b5a90;border-radius:20px;
  box-shadow:0 12px 32px rgba(18,37,78,.15);
  color:#fff;
}
body.paint-raint-page .docs-hero-text{min-width:0}
body.paint-raint-page .docs-hero .eyebrow{
  color:#b9dcff!important;font-size:.73rem!important;letter-spacing:.09em;
  margin:0 0 9px!important;font-weight:750;
}
body.paint-raint-page .docs-hero h1{
  color:#fff!important;margin:0 0 7px!important;font-size:clamp(1.65rem,2.7vw,2.25rem)!important;
  letter-spacing:.012em;line-height:1.15;
}
body.paint-raint-page .docs-hero p:not(.eyebrow){
  color:#deebff!important;margin:0!important;max-width:650px;
  font-size:.92rem!important;line-height:1.55;
}
body.paint-raint-page .add-doc-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  white-space:nowrap;flex-shrink:0;min-height:44px;
  padding:11px 17px!important;border:1px solid #9ecaff!important;
  border-radius:11px!important;color:#fff!important;background:#4276c6!important;
  box-shadow:0 4px 10px rgba(8,24,57,.15);font-weight:700;
}
body.paint-raint-page .add-doc-btn:hover{background:#568add!important}
body.paint-raint-page .add-doc-btn span{font-size:1.3em;line-height:1}
body.paint-raint-page .docs-filters{
  display:grid;grid-template-columns:minmax(0,210px) minmax(0,215px) max-content;
  align-items:end;justify-content:start;gap:15px;min-width:0;
  padding:17px 20px;margin:0 0 19px;
  border-radius:15px;border:1px solid #dbe4f0;
  background:#fff;box-shadow:0 4px 14px rgba(18,37,78,.04);
}
body.paint-raint-page .docs-filters label{
  min-width:0;display:grid;gap:7px;
  color:#293d5d!important;font-size:.81rem!important;font-weight:700;
}
body.paint-raint-page .docs-filters select{
  width:100%;min-width:0;height:44px;border:1px solid #bdcde2;
  border-radius:10px;padding:0 12px!important;color:#233956!important;
  background:#f9fbfe!important;
}
body.paint-raint-page .docs-filters #reload{
  min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:10px 15px!important;color:#264778!important;
  background:#eef4ff!important;border:1px solid #c2d3ee!important;
  border-radius:10px!important;font-weight:650;white-space:nowrap;
}
body.paint-raint-page .docs-filters #reload:hover{background:#e2edfc!important}
body.paint-raint-page #notice:empty{display:none}
body.paint-raint-page #notice:not(:empty){padding:10px 14px;border-radius:10px;line-height:1.5}
body.paint-raint-page .docs-collection{display:grid;gap:23px;min-width:0}
body.paint-raint-page .year-section{min-width:0}
body.paint-raint-page .year-header{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  margin:0 0 13px;padding:0 2px 10px;border-bottom:1px solid #dce6f2;
}
body.paint-raint-page .year-header h2{
  margin:0!important;color:#1b3767!important;
  font-size:1.4rem!important;font-weight:800;line-height:1.25;
}
body.paint-raint-page .year-count{
  color:#69809f;font-weight:650;font-size:.82rem;
  background:#eaf0fa;padding:5px 10px;border-radius:999px;white-space:nowrap;
}
body.paint-raint-page .documents-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));
  gap:15px;min-width:0;margin:0;
}
body.paint-raint-page #documents .document{
  display:flex;flex-direction:column;gap:11px;
  min-width:0;min-height:206px;padding:18px 19px;
  border:1px solid #d7e2f1;border-radius:17px;
  background:#fff!important;box-shadow:0 5px 18px rgba(22,44,86,.045);
  color:#223957!important;transition:border-color .15s ease,box-shadow .15s ease;
}
body.paint-raint-page #documents .document:hover{
  border-color:#a6c0e6;box-shadow:0 9px 23px rgba(22,44,86,.10);
}
body.paint-raint-page .doc-card-top{
  display:flex;align-items:center;gap:10px;min-width:0;
}
body.paint-raint-page .doc-pdf-symbol{
  width:37px;height:37px;flex:0 0 37px;border-radius:10px;
  display:grid;place-items:center;
  background:#e9f1ff;color:#345f9d;
}
body.paint-raint-page .doc-pdf-symbol svg{width:20px;height:20px}
body.paint-raint-page .doc-badge{
  display:inline-flex;align-items:center;
  padding:6px 10px;background:#eef3fb;border:1px solid #dce7f6;
  border-radius:999px;color:#365780;font-weight:750;font-size:.75rem!important;
}
body.paint-raint-page .doc-card-body{min-width:0;flex:1}
body.paint-raint-page .doc-title{
  margin:0 0 6px!important;font-size:1rem!important;line-height:1.38;
  font-weight:750;color:#17315d!important;
  overflow-wrap:anywhere;word-break:normal;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;
  line-clamp:3;overflow:hidden;
}
body.paint-raint-page .doc-description{
  margin:0!important;color:#72829c!important;font-size:.80rem!important;
}
body.paint-raint-page .doc-actions{
  display:flex;gap:9px;flex-wrap:wrap;align-items:center;
  margin-top:auto;padding-top:11px;border-top:1px solid #e8eef7;
}
body.paint-raint-page .doc-actions button{
  display:inline-flex;justify-content:center;align-items:center;gap:8px;
  min-width:0;min-height:39px;border-radius:10px!important;
  padding:9px 14px!important;font-size:.83rem!important;font-weight:700;
  white-space:nowrap;
}
body.paint-raint-page .doc-actions .doc-view{
  background:#335fa7!important;color:#fff!important;border:1px solid #335fa7!important;
}
body.paint-raint-page .doc-actions .doc-view:hover{background:#254f93!important}
body.paint-raint-page .doc-actions .doc-delete{
  background:#fff!important;color:#aa3036!important;border:1px solid #e9cbd0!important;
}
body.paint-raint-page .doc-actions .doc-delete:hover{background:#fff3f3!important}
body.paint-raint-page .doc-action-icon{display:inline-flex;align-items:center;justify-content:center}
body.paint-raint-page .doc-action-icon svg{width:17px;height:17px}
body.paint-raint-page .documents-grid.single-document .document{
  min-height:170px;display:grid;grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto 1fr;align-items:start;column-gap:22px;
}
body.paint-raint-page .documents-grid.single-document .doc-card-top{grid-column:1;grid-row:1}
body.paint-raint-page .documents-grid.single-document .doc-card-body{grid-column:1;grid-row:2}
body.paint-raint-page .documents-grid.single-document .doc-actions{
  grid-column:2;grid-row:1 / span 2;align-self:center;
  margin:0;padding:0;border:0;flex-wrap:nowrap;
}
body.paint-raint-page .docs-empty{
  padding:30px;text-align:center;border:1px dashed #bdcde2;
  background:rgba(255,255,255,.65);border-radius:14px;color:#596c87;
}
/* Leitor de PDFs e editor mantêm as funções já existentes. */
body.paint-raint-page #uploadNotice{color:#ae3430}
body.paint-raint-page #viewer{
  width:min(1100px,calc(100% - 16px));height:94dvh;max-height:94dvh;
  padding:16px;overflow:hidden;
}
body.paint-raint-page #viewer[open]{display:flex;flex-direction:column}
body.paint-raint-page .viewer-head{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
}
body.paint-raint-page .viewer-head h2{
  font-size:1.05rem!important;overflow-wrap:anywhere;margin:4px 0!important;
}
body.paint-raint-page .viewer-controls{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0;
}
body.paint-raint-page .viewer-controls button,body.paint-raint-page .viewer-controls select{
  padding:10px;border:1px solid #bac7dc;background:#fff;color:#17295c;border-radius:8px;
}
body.paint-raint-page #canvasWrap{overflow:auto;flex:1;min-height:0;background:#e7ebf2;padding:8px}
body.paint-raint-page #pdfCanvas{display:block;margin:auto;background:#fff}
body.paint-raint-page #viewerNotice{margin:4px 0;color:#60708a}
body.paint-raint-page .sr-only{
  position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);
}
/* Modo escuro com contraste em todos os controles desta página. */
html[data-theme="dark"] body.paint-raint-page .docs-hero{
  background:linear-gradient(115deg,#1b335e,#244371)!important;border-color:#3b5a88;
}
html[data-theme="dark"] body.paint-raint-page .docs-filters{
  background:#202e44!important;border-color:#435a79!important;box-shadow:none;
}
html[data-theme="dark"] body.paint-raint-page .docs-filters label{color:#ecf4ff!important}
html[data-theme="dark"] body.paint-raint-page .docs-filters select{
  color:#f2f7ff!important;background:#142338!important;border-color:#617693!important;
}
html[data-theme="dark"] body.paint-raint-page .docs-filters #reload{
  background:#304a6c!important;color:#f1f7ff!important;border-color:#5a79a5!important;
}
html[data-theme="dark"] body.paint-raint-page .year-header{
  border-bottom-color:#394e6a;
}
html[data-theme="dark"] body.paint-raint-page .year-header h2{color:#f0f6ff!important}
html[data-theme="dark"] body.paint-raint-page .year-count{
  background:#293e5b;color:#d3e5fb;
}
html[data-theme="dark"] body.paint-raint-page #documents .document{
  background:#1e2e45!important;border-color:#455d7b!important;
  color:#eff6ff!important;box-shadow:none!important;
}
html[data-theme="dark"] body.paint-raint-page #documents .document:hover{
  border-color:#769ac7!important;
}
html[data-theme="dark"] body.paint-raint-page .doc-title{color:#f0f6ff!important}
html[data-theme="dark"] body.paint-raint-page .doc-description{color:#b8cae1!important}
html[data-theme="dark"] body.paint-raint-page .doc-pdf-symbol{
  background:#314c70;color:#cbe6ff;
}
html[data-theme="dark"] body.paint-raint-page .doc-badge{
  background:#304664;color:#dfedff;border-color:#4e688d;
}
html[data-theme="dark"] body.paint-raint-page .doc-actions{border-top-color:#3c526f}
html[data-theme="dark"] body.paint-raint-page .doc-actions .doc-view{
  background:#4576b9!important;color:white!important;border-color:#5584c3!important;
}
html[data-theme="dark"] body.paint-raint-page .doc-actions .doc-delete{
  background:#322b38!important;color:#ffd9da!important;border-color:#895d69!important;
}
html[data-theme="dark"] body.paint-raint-page .docs-empty{
  background:#1d2b40;border-color:#526682;color:#d3e3f8;
}
html[data-theme="dark"] body.paint-raint-page #viewerNotice{color:#d5e5fa}
html[data-theme="dark"] body.paint-raint-page .viewer-controls :is(button,select){
  background:#304968!important;color:#f0f6ff!important;border-color:#5d789b!important;
}
/* Digitais institucionais discretas somente no módulo de documentos. */
html body.paint-raint-page::before,html body.paint-raint-page::after{
  background-image:url("icons/audin-fingerprint.svg"),url("icons/audin-fingerprint.svg")!important;
  background-repeat:no-repeat,no-repeat!important;
  background-size:44px 48px,37px 41px!important;
  background-position:center 23%,center 78%!important;
  opacity:.21!important;filter:none!important;
}
html[data-theme="dark"] body.paint-raint-page::before,
html[data-theme="dark"] body.paint-raint-page::after{
  opacity:.36!important;filter:brightness(1.7)!important;
}
@media(max-width:1200px){
  html body.paint-raint-page::before,html body.paint-raint-page::after{display:none!important}
}
@media(max-width:850px){
 body.paint-raint-page .docs-page{padding:20px 16px 56px!important}
 body.paint-raint-page .docs-hero{padding:22px 23px;gap:15px}
 body.paint-raint-page .documents-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.paint-raint-page .documents-grid.single-document .document{
  display:flex;flex-direction:column;min-height:206px;
 }
 body.paint-raint-page .documents-grid.single-document .doc-actions{
  margin-top:auto;padding-top:11px;border-top:1px solid #e8eef7;flex-wrap:wrap;
 }
 html[data-theme="dark"] body.paint-raint-page .documents-grid.single-document .doc-actions{border-color:#3c526f}
}
@media(max-width:650px){
 body.paint-raint-page .docs-page{padding:15px 12px 40px!important}
 body.paint-raint-page .docs-hero{
  padding:19px!important;flex-direction:column;align-items:stretch;gap:17px;
  border-radius:16px;margin-bottom:13px;
 }
 body.paint-raint-page .docs-hero h1{font-size:1.8rem!important}
 body.paint-raint-page .docs-hero p:not(.eyebrow){font-size:.83rem!important}
 body.paint-raint-page .add-doc-btn{width:100%;min-height:46px}
 body.paint-raint-page .docs-filters{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;padding:13px;margin-bottom:16px;border-radius:13px;
 }
 body.paint-raint-page .docs-filters #reload{grid-column:1/-1;width:100%}
 body.paint-raint-page .docs-filters select{height:43px;font-size:16px!important}
 body.paint-raint-page .documents-grid{grid-template-columns:1fr}
 body.paint-raint-page #documents .document{padding:16px;min-height:192px}
 body.paint-raint-page .doc-title{font-size:.96rem!important;-webkit-line-clamp:3;line-clamp:3}
 body.paint-raint-page .doc-actions button{flex:1}
 body.paint-raint-page .year-header h2{font-size:1.25rem!important}
 body.paint-raint-page #viewer{padding:10px;height:95dvh;max-height:95dvh}
 body.paint-raint-page .viewer-controls{gap:6px}
 body.paint-raint-page .viewer-controls button,body.paint-raint-page .viewer-controls select{padding:8px}
}
@media(max-width:390px){
 body.paint-raint-page .docs-filters{grid-template-columns:1fr}
 body.paint-raint-page .docs-filters #reload{grid-column:auto}
 body.paint-raint-page .doc-actions button{padding:9px 11px!important}
}


/* PAINT | RAINT — visual compacto: mais documentos visíveis sem rolar. */
body.paint-raint-page .docs-page{
  padding:16px 22px 45px!important;
}
body.paint-raint-page .docs-hero{
  min-height:0!important;
  gap:14px!important;
  padding:15px 20px!important;
  margin-bottom:11px!important;
  border-radius:14px!important;
  box-shadow:0 5px 16px rgba(18,37,78,.11)!important;
}
body.paint-raint-page .docs-hero .eyebrow{
  font-size:.69rem!important;
  margin-bottom:4px!important;
}
body.paint-raint-page .docs-hero h1{
  font-size:clamp(1.4rem,2.25vw,1.8rem)!important;
  margin-bottom:3px!important;
}
body.paint-raint-page .docs-hero p:not(.eyebrow){
  font-size:.82rem!important;
  line-height:1.35!important;
}
body.paint-raint-page .add-doc-btn{
  min-height:38px!important;
  padding:8px 13px!important;
  border-radius:9px!important;
  font-size:.81rem!important;
}
body.paint-raint-page .docs-filters{
  grid-template-columns:minmax(0,175px) minmax(0,180px) max-content;
  gap:10px!important;
  padding:11px 14px!important;
  margin-bottom:11px!important;
  border-radius:12px!important;
}
body.paint-raint-page .docs-filters label{
  gap:4px!important;
  font-size:.76rem!important;
}
body.paint-raint-page .docs-filters select,
body.paint-raint-page .docs-filters #reload{
  min-height:36px!important;
  height:36px!important;
  border-radius:8px!important;
  font-size:.80rem!important;
}
body.paint-raint-page .docs-filters select{padding:0 9px!important}
body.paint-raint-page .docs-filters #reload{padding:7px 12px!important}
body.paint-raint-page .docs-collection{gap:14px!important}
body.paint-raint-page .year-header{
  gap:8px!important;
  padding-bottom:6px!important;
  margin-bottom:8px!important;
}
body.paint-raint-page .year-header h2{
  font-size:1.12rem!important;
}
body.paint-raint-page .year-count{
  padding:3px 8px!important;
  font-size:.73rem!important;
}
body.paint-raint-page .documents-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
  gap:10px!important;
}
body.paint-raint-page #documents .document{
  min-height:145px!important;
  padding:12px 14px!important;
  gap:7px!important;
  border-radius:12px!important;
}
body.paint-raint-page .doc-card-top{gap:8px!important}
body.paint-raint-page .doc-pdf-symbol{
  width:30px!important;height:30px!important;flex-basis:30px!important;
  border-radius:8px!important;
}
body.paint-raint-page .doc-pdf-symbol svg{width:17px!important;height:17px!important}
body.paint-raint-page .doc-badge{
  padding:4px 8px!important;
  font-size:.72rem!important;
}
body.paint-raint-page .doc-title{
  font-size:.89rem!important;
  line-height:1.28!important;
  margin:0!important;
  -webkit-line-clamp:2;
  line-clamp:2;
}
body.paint-raint-page .doc-description{display:none!important}
body.paint-raint-page .doc-actions{
  gap:7px!important;
  padding-top:7px!important;
}
body.paint-raint-page .doc-actions button{
  min-height:34px!important;
  padding:7px 10px!important;
  border-radius:8px!important;
  font-size:.77rem!important;
  gap:6px!important;
}
body.paint-raint-page .doc-action-icon svg{width:15px!important;height:15px!important}
/* Quando há somente um documento no ano, exibir uma linha compacta. */
body.paint-raint-page .documents-grid.single-document .document{
  min-height:104px!important;
  gap:7px 15px!important;
  padding:11px 15px!important;
}
body.paint-raint-page .documents-grid.single-document .doc-actions{
  padding:0!important;
  gap:7px!important;
}
body.paint-raint-page .documents-grid.single-document .doc-title{
  -webkit-line-clamp:2;
  line-clamp:2;
}
@media(max-width:850px){
  body.paint-raint-page .docs-page{padding:14px 16px 42px!important}
  body.paint-raint-page .docs-hero{padding:13px 15px!important}
  body.paint-raint-page .documents-grid.single-document .document{
    min-height:135px!important;
    display:flex;
    flex-direction:column;
    gap:7px!important;
  }
  body.paint-raint-page .documents-grid.single-document .doc-actions{
    margin-top:auto!important;
    padding-top:7px!important;
  }
}
@media(max-width:650px){
  body.paint-raint-page .docs-page{padding:12px 12px 32px!important}
  body.paint-raint-page .docs-hero{
    padding:14px!important;
    margin-bottom:10px!important;
    flex-direction:column;
    align-items:stretch;
    gap:10px!important;
    border-radius:12px!important;
  }
  body.paint-raint-page .docs-hero h1{font-size:1.52rem!important}
  body.paint-raint-page .docs-hero p:not(.eyebrow){font-size:.79rem!important}
  body.paint-raint-page .add-doc-btn{width:100%;min-height:38px!important}
  body.paint-raint-page .docs-filters{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    padding:10px!important;
    margin-bottom:10px!important;
  }
  body.paint-raint-page .docs-filters #reload{
    grid-column:1/-1!important;
    width:100%!important;
  }
  body.paint-raint-page .docs-filters select{font-size:16px!important}
  body.paint-raint-page .documents-grid{grid-template-columns:1fr!important}
  body.paint-raint-page #documents .document{padding:11px 12px!important;min-height:136px!important}
  body.paint-raint-page .documents-grid.single-document .document{min-height:130px!important}
  body.paint-raint-page .doc-title{font-size:.88rem!important}
  body.paint-raint-page .doc-actions button{flex:1}
  body.paint-raint-page .year-header h2{font-size:1.08rem!important}
}


/* 13/10 — Lista densa de PDFs. Substitui visual de cards sem mexer no leitor. */
body.paint-raint-page .docs-page{
  padding:10px 18px 32px!important;max-width:1240px!important;
}
body.paint-raint-page .docs-hero{
  padding:10px 16px!important;margin:0 0 8px!important;
  min-height:0!important;border-radius:11px!important;
  gap:12px!important;align-items:center!important;
  box-shadow:none!important;
}
body.paint-raint-page .docs-hero .eyebrow,
body.paint-raint-page .docs-hero p:not(.eyebrow){display:none!important}
body.paint-raint-page .docs-hero h1{
  font-size:1.35rem!important;line-height:1.15!important;margin:0!important;
}
body.paint-raint-page .add-doc-btn{
  min-height:36px!important;padding:7px 13px!important;
  border-radius:8px!important;font-size:.79rem!important;
}
body.paint-raint-page .docs-filters{
  display:grid!important;grid-template-columns:minmax(100px,138px) minmax(118px,150px) minmax(170px,1fr) auto!important;
  align-items:end!important;justify-content:stretch!important;
  padding:8px 10px!important;gap:9px!important;
  margin:0 0 9px!important;border-radius:10px!important;
  box-shadow:none!important;
}
body.paint-raint-page .docs-filters label{
  font-size:.75rem!important;gap:3px!important;min-width:0!important;
}
body.paint-raint-page .docs-filters select,
body.paint-raint-page .docs-filters input,
body.paint-raint-page .docs-filters #reload{
  width:100%!important;height:35px!important;min-height:35px!important;
  border-radius:7px!important;padding:5px 9px!important;
  font-size:.81rem!important;
}
body.paint-raint-page .docs-filters input{
  background:#f9fbfe!important;color:#223956!important;border:1px solid #bdcde2!important;
}
body.paint-raint-page .docs-filters #reload{width:auto!important;min-width:94px!important;white-space:nowrap}
body.paint-raint-page .docs-collection{display:grid!important;gap:10px!important}
body.paint-raint-page .year-section{margin:0!important;min-width:0!important}
body.paint-raint-page .year-header{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:10px!important;margin:0 0 4px!important;padding:0 2px 5px!important;
}
body.paint-raint-page .year-header h2{
  font-size:1rem!important;margin:0!important;line-height:1.1!important;
}
body.paint-raint-page .year-count{
  padding:2px 7px!important;font-size:.72rem!important;
}
body.paint-raint-page .documents-list{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  gap:3px!important;min-width:0!important;
}
body.paint-raint-page #documents .document.doc-list-row{
  display:grid!important;
  grid-template-columns:104px minmax(0,1fr) auto!important;
  grid-template-rows:auto!important;align-items:center!important;
  gap:9px!important;min-height:45px!important;
  padding:5px 10px!important;margin:0!important;
  border-radius:8px!important;border:1px solid #dce5f0!important;
  background:#fff!important;box-shadow:none!important;
  overflow:hidden!important;
}
body.paint-raint-page #documents .document.doc-list-row:hover{
  border-color:#a7bedf!important;background:#f6f9ff!important;
  box-shadow:none!important;
}
body.paint-raint-page .doc-list-row .doc-card-top{
  display:flex!important;align-items:center!important;min-width:0!important;
  gap:6px!important;grid-column:1!important;grid-row:1!important;
}
body.paint-raint-page .doc-list-row .doc-pdf-symbol{
  display:inline-grid!important;place-items:center!important;
  width:26px!important;height:26px!important;flex:0 0 26px!important;
  border-radius:6px!important;
}
body.paint-raint-page .doc-list-row .doc-pdf-symbol svg{width:15px!important;height:15px!important}
body.paint-raint-page .doc-list-row .doc-badge{
  padding:3px 6px!important;font-size:.71rem!important;
  border-radius:6px!important;white-space:nowrap!important;
}
body.paint-raint-page .doc-list-row .doc-card-body{
  grid-column:2!important;grid-row:1!important;
  min-width:0!important;width:100%!important;flex:none!important;
}
body.paint-raint-page .doc-list-row .doc-title{
  display:block!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
  width:100%!important;max-width:100%!important;
  font-size:.85rem!important;line-height:1.3!important;
  margin:0!important;word-break:normal!important;
  color:#17315d!important;
}
body.paint-raint-page .doc-list-row .doc-description{display:none!important}
body.paint-raint-page .doc-list-row .doc-actions{
  grid-column:3!important;grid-row:1!important;
  display:flex!important;align-items:center!important;
  justify-content:flex-end!important;flex-wrap:nowrap!important;
  gap:5px!important;margin:0!important;padding:0!important;
  border:0!important;white-space:nowrap!important;
}
body.paint-raint-page .doc-list-row .doc-actions button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:5px!important;flex:0 0 auto!important;
  min-height:33px!important;height:33px!important;
  padding:5px 9px!important;border-radius:7px!important;
  font-size:.77rem!important;white-space:nowrap!important;
}
body.paint-raint-page .doc-list-row .doc-action-icon svg{width:15px!important;height:15px!important}
body.paint-raint-page .docs-empty{
  padding:15px!important;margin:0!important;border-radius:9px!important;
  font-size:.84rem!important;
}
html[data-theme="dark"] body.paint-raint-page .docs-filters input{
  background:#142338!important;color:#f2f7ff!important;border-color:#617693!important;
}
html[data-theme="dark"] body.paint-raint-page #documents .document.doc-list-row{
  background:#1e2e45!important;border-color:#415773!important;
}
html[data-theme="dark"] body.paint-raint-page #documents .document.doc-list-row:hover{
  background:#263b56!important;border-color:#779bc6!important;
}
html[data-theme="dark"] body.paint-raint-page .doc-list-row .doc-title{color:#f1f6ff!important}
@media(max-width:750px){
  body.paint-raint-page .docs-page{padding:10px 12px 26px!important}
  body.paint-raint-page .docs-filters{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;padding:9px!important;
  }
  body.paint-raint-page .docs-filters .doc-search-field{grid-column:1!important}
  body.paint-raint-page .docs-filters #reload{grid-column:2!important;width:100%!important}
}
@media(max-width:650px){
  body.paint-raint-page .docs-hero{
    flex-direction:row!important;align-items:center!important;
    padding:10px!important;gap:7px!important;
  }
  body.paint-raint-page .docs-hero h1{font-size:1.2rem!important}
  body.paint-raint-page .add-doc-btn{width:auto!important;min-height:35px!important;flex-shrink:0}
  body.paint-raint-page .docs-filters select,body.paint-raint-page .docs-filters input{
    font-size:16px!important;
  }
  body.paint-raint-page #documents .document.doc-list-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    column-gap:8px!important;row-gap:3px!important;
    min-height:65px!important;padding:7px 9px!important;
  }
  body.paint-raint-page .doc-list-row .doc-card-top{
    grid-column:1!important;grid-row:1!important;
  }
  body.paint-raint-page .doc-list-row .doc-card-body{
    grid-column:1!important;grid-row:2!important;
  }
  body.paint-raint-page .doc-list-row .doc-title{
    font-size:.83rem!important;white-space:normal!important;
    display:-webkit-box!important;-webkit-line-clamp:2!important;
    line-clamp:2!important;-webkit-box-orient:vertical!important;
    overflow-wrap:anywhere!important;line-height:1.3!important;
  }
  body.paint-raint-page .doc-list-row .doc-actions{
    grid-column:2!important;grid-row:1 / span 2!important;
    gap:5px!important;align-self:center!important;
  }
  body.paint-raint-page .doc-list-row .doc-actions button{
    font-size:0!important;padding:0!important;
    width:36px!important;min-width:36px!important;
    height:36px!important;min-height:36px!important;
    flex:0 0 36px!important;
  }
  body.paint-raint-page .doc-list-row .doc-action-icon svg{
    width:18px!important;height:18px!important;
  }
}
@media(max-width:390px){
  body.paint-raint-page .docs-hero h1{font-size:1.05rem!important}
  body.paint-raint-page .add-doc-btn{padding:7px 9px!important;font-size:.73rem!important}
  body.paint-raint-page .docs-filters{gap:6px!important}
  body.paint-raint-page .docs-filters input{min-width:0}
}


/* Linha institucional: ano apenas no agrupamento, tipo + descrição simples por documento. */
@media(min-width:651px){
  body.paint-raint-page #documents .document.doc-list-row{
    grid-template-columns:92px minmax(0,1fr) auto!important;
  }
}
body.paint-raint-page .doc-list-row .doc-badge{
  min-width:48px;justify-content:center;
  letter-spacing:.01em;
}
body.paint-raint-page .doc-list-row .doc-title{
  font-weight:600!important;
  font-size:.84rem!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
@media(max-width:650px){
  body.paint-raint-page .doc-list-row .doc-title{
    font-weight:600!important;
    font-size:.80rem!important;
  }
}
