:root {
  --ink:#172c4a;
  --navy:#122b51;
  --blue:#2858b0;
  --pale:#edf3f9;
  --line:#dce5ef;
  --muted:#60718a;
  --green:#26705e;
  --white:#fff;
  --amber:#8b571e;
  font-family:"Avenir Next","Segoe UI",system-ui,sans-serif;
  color:var(--ink);
  background:var(--pale);
  font-size:14px
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
a {
  color:var(--blue);
  text-decoration:none
}
a:hover {
  text-decoration:underline
}
button,input,select {
  font:inherit
}
button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
button:disabled {
  cursor:not-allowed;
  opacity:.5
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid #7199e5;
  outline-offset:3px
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:34px;
  line-height:1.15;
  letter-spacing:-1.1px;
  font-weight:650
}
h2 {
  font-size:19px;
  letter-spacing:-.35px;
  font-weight:650
}
.eyebrow {
  font-size:10px;
  letter-spacing:1.65px;
  font-weight:750;
  display:block;
  margin-bottom:12px
}
.sidebar {
  width:216px;
  background:var(--navy);
  color:#e7effb;
  position:fixed;
  inset:0 auto 0 0;
  padding:36px 22px 22px;
  display:flex;
  flex-direction:column
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  color:inherit;
  font-size:24px;
  font-weight:600;
  letter-spacing:-.7px
}
.brand:hover {
  text-decoration:none
}
.brand-mark {
  display:flex;
  align-items:center;
  justify-content:center;
  width:43px;
  height:48px;
  border:1.5px solid #8fa8cc;
  border-radius:5px 12px 5px 5px;
  font-size:23px;
  position:relative
}
.brand-mark span {
  font-size:13px;
  align-self:flex-end;
  padding-bottom:9px
}
.brand-by {
  display:block;
  font-size:8px;
  letter-spacing:2.5px;
  margin-top:2px;
  font-weight:500;
  opacity:.65
}
.sidebar-section {
  font-size:9px;
  font-weight:600;
  letter-spacing:1.5px;
  color:#9db2ce;
  margin-top:64px;
  margin-bottom:16px
}
.nav-item {
  padding:13px 12px;
  margin-left:-4px;
  margin-right:-4px;
  border-radius:7px;
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  font-size:13px
}
.nav-item.active {
  background:#27476f
}
.nav-item span {
  font-size:22px
}
.sidebar-note {
  font-size:12px;
  margin-top:34px;
  padding:0 7px;
  line-height:1.8;
  color:#d1dff1
}
.sidebar-note p {
  font-size:11px;
  color:#9eb3cf;
  margin-top:6px
}
.small-dot {
  display:inline-block;
  width:6px;
  height:6px;
  background:#52aa8c;
  border-radius:50%;
  margin-right:6px
}
.account {
  margin-top:auto;
  border-top:1px solid #355071;
  padding-top:22px;
  display:flex;
  gap:10px;
  align-items:center
}
.account strong {
  display:block;
  font-size:12px;
  max-width:120px;
  overflow:hidden;
  text-overflow:ellipsis
}
.account a {
  display:block;
  font-size:11px;
  color:#b5c8e2;
  margin-top:5px
}
.avatar {
  width:32px;
  height:32px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#304e74;
  color:#dceaff;
  font-weight:600
}
.logout {
  margin-top:21px
}
.logout button {
  border:0;
  background:none;
  color:#b5c8e2;
  font-size:12px;
  display:flex;
  justify-content:space-between;
  width:100%;
  padding:7px
}
.workspace {
  margin-left:216px;
  padding:43px 38px 24px;
  max-width:1800px
}
.page-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:30px;
  gap:20px
}
.page-header .eyebrow {
  color:var(--blue)
}
.page-header p {
  color:var(--muted);
  margin-top:10px;
  font-size:13px
}
.private-badge {
  color:var(--muted);
  border:1px solid var(--line);
  background:#f8fbfe;
  font-size:11px;
  padding:8px 11px;
  border-radius:20px;
  white-space:nowrap
}
.private-badge span {
  font-size:7px;
  color:var(--green);
  margin-right:5px
}
.filter-panel {
  background:var(--white);
  border:1px solid var(--line);
  padding:19px;
  border-radius:10px
}
.filter-panel form {
  display:grid;
  grid-template-columns:minmax(170px,1.8fr) minmax(115px,1fr) minmax(150px,1.2fr) 131px 131px auto auto;
  align-items:end;
  gap:12px
}
label {
  display:block;
  font-size:10px;
  font-weight:650;
  color:var(--muted);
  margin-bottom:7px
}
input,select {
  border:1px solid #cbd7e5;
  background:#fff;
  border-radius:5px;
  padding:10px 11px;
  color:var(--ink);
  min-width:0;
  width:100%;
  height:39px;
  font-size:12px
}
input::placeholder {
  color:#8491a4
}
input[type=date] {
  padding:9px 8px
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid transparent;
  border-radius:5px;
  padding:10px 15px;
  font-size:12px;
  font-weight:650;
  min-height:39px;
  white-space:nowrap
}
.button:hover {
  text-decoration:none;
  filter:brightness(.96)
}
.primary {
  background:var(--blue);
  color:#fff
}
.secondary {
  background:#fff;
  color:var(--blue);
  border-color:#cbd8ea
}
.clear {
  font-size:11px;
  padding:12px 2px;
  white-space:nowrap
}
.archive-overview {
  display:flex;
  align-items:center;
  padding:25px 0 21px;
  gap:36px;
  flex-wrap:wrap
}
.overview-title .eyebrow {
  font-size:9px;
  color:var(--muted);
  margin-bottom:6px
}
.overview-title>strong {
  font-size:29px;
  font-weight:650;
  letter-spacing:-1px
}
.overview-title strong span {
  font-size:13px;
  font-weight:450;
  letter-spacing:0;
  margin-left:4px;
  color:var(--muted)
}
.overview-count {
  padding-left:26px;
  border-left:1px solid #ccd8e6
}
.overview-count strong {
  display:block;
  font-size:22px;
  line-height:1.1;
  font-weight:600
}
.overview-count span {
  font-size:10px;
  color:var(--muted);
  display:block;
  margin-top:7px
}
.sync-state {
  margin-left:auto;
  font-size:11px;
  max-width:250px
}
.sync-state strong {
  font-weight:550
}
.sync-state>span:last-child {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:7px;
  padding-left:12px
}
.state-rail {
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 0 21px;
  flex-wrap:wrap
}
.rail-label {
  font-size:9px;
  letter-spacing:1px;
  color:var(--muted);
  margin-right:8px
}
.state-tab {
  display:inline-flex;
  align-items:center;
  border:1px solid #d0dceb;
  background:#f8fbfe;
  border-radius:5px;
  font-size:11px;
  color:#4e6586;
  padding:7px 10px;
  gap:16px
}
.state-tab strong {
  font-size:12px;
  color:var(--ink);
  font-weight:650
}
.state-tab.selected {
  background:#e0eafb;
  border-color:#8daade;
  color:var(--blue)
}
.documents-panel {
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden
}
.list-toolbar {
  padding:24px 22px 13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px
}
.list-toolbar h2 {
  display:flex;
  align-items:center;
  gap:10px
}
.result-count {
  font-size:11px;
  background:#edf2f8;
  padding:4px 7px;
  border-radius:5px;
  color:#506683;
  letter-spacing:0
}
.list-toolbar p {
  font-size:11px;
  color:var(--muted);
  margin-top:7px
}
.button-count {
  font-size:10px;
  border-left:1px solid #cbd8ea;
  padding-left:10px
}
.download-note {
  font-size:10px;
  color:var(--muted);
  padding:0 22px 19px
}
.table-scroll {
  overflow:auto
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left
}
th {
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--muted);
  font-weight:650;
  background:#f8fafc;
  padding:12px 18px;
  border-top:1px solid #edf1f6;
  border-bottom:1px solid var(--line);
  white-space:nowrap
}
td {
  padding:18px;
  border-bottom:1px solid #edf1f6;
  font-size:12px
}
tbody tr:last-child td {
  border-bottom:0
}
tbody tr:hover {
  background:#fbfdff
}
.date-cell {
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  width:80px
}
.date-cell>span {
  display:block;
  font-size:14px
}
.date-cell small {
  display:block;
  color:#8b99ac;
  font-size:10px;
  margin-top:3px
}
.supplier {
  min-width:210px;
  max-width:360px
}
.supplier>strong {
  font-size:11px;
  display:block;
  line-height:1.5;
  font-weight:650
}
.supplier summary {
  font-size:10px;
  color:var(--muted);
  margin-top:5px;
  cursor:pointer
}
.key-tail {
  font-family:ui-monospace,monospace;
  font-size:9px;
  color:#8391a6
}
.key-detail {
  font-size:10px;
  color:var(--muted);
  margin-top:10px;
  max-width:290px
}
.key-detail code {
  display:block;
  overflow-wrap:anywhere;
  margin-top:5px;
  line-height:1.6;
  color:var(--ink);
  user-select:all
}
.uf-badge {
  display:inline-block;
  background:#eef2f7;
  color:#5d718e;
  font-size:10px;
  font-weight:700;
  padding:5px 7px;
  border-radius:4px
}
.uf-badge.para {
  background:#e6f2ed;
  color:#24644f
}
.money {
  text-align:right;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
  font-size:12px
}
.document-status {
  font-size:10px;
  white-space:nowrap
}
.document-status.complete {
  color:var(--green)
}
.document-status.pending {
  color:var(--amber)
}
.document-status span {
  font-size:12px
}
.cancelled {
  display:block;
  color:#a24348;
  font-size:9px;
  margin-top:5px
}
.downloads {
  text-align:right;
  white-space:nowrap
}
.download-actions {
  display:flex;
  gap:6px;
  justify-content:flex-end
}
.download-actions a {
  display:inline-flex;
  align-items:center;
  gap:9px;
  border:1px solid #dbe4ef;
  border-radius:4px;
  padding:6px 8px;
  font-size:9px;
  font-weight:650
}
.download-actions a:hover {
  background:#edf3fd;
  text-decoration:none
}
.unavailable {
  font-size:10px;
  color:#7c8ba0
}
.pagination {
  border-top:1px solid var(--line);
  padding:15px 22px;
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:10px;
  gap:12px
}
.pagination>div {
  display:flex;
  gap:20px;
  align-items:center
}
.page-footer {
  color:#76869c;
  font-size:10px;
  line-height:1.8;
  margin-top:22px;
  max-width:850px
}
.page-footer span {
  display:block
}
.refresh-notice {
  font-size:11px;
  color:var(--amber);
  line-height:1.5
}
.refresh-notice:not(:empty) {
  margin-top:12px
}
.form-alert {
  background:#fff4e7;
  border:1px solid #efdabd;
  border-radius:5px;
  padding:12px;
  font-size:12px;
  margin-top:15px;
  color:#805321
}
.form-alert ul {
  margin:4px 0;
  padding-left:18px
}
.empty-state {
  padding:60px 20px;
  text-align:center;
  border-top:1px solid var(--line)
}
.empty-state>span {
  font-size:40px;
  color:#8ca8d4
}
.empty-state h3 {
  font-size:18px;
  margin-top:10px
}
.empty-state p {
  font-size:12px;
  color:var(--muted);
  margin:10px 0 22px
}
.auth-shell {
  min-height:100vh;
  display:flex
}
.auth-story {
  background:var(--navy);
  color:#fff;
  flex:0 0 45%;
  padding:58px 65px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:100vh
}
.auth-story h1 {
  font-size:clamp(40px,4.5vw,70px);
  font-weight:500;
  letter-spacing:-2px;
  line-height:1.08;
  margin:25px 0
}
.auth-story p {
  font-size:14px;
  line-height:1.8;
  color:#c2d2e8;
  max-width:330px
}
.auth-story .eyebrow {
  color:#97b3d8
}
.auth-states {
  display:flex;
  gap:9px;
  margin-top:40px
}
.auth-states span {
  border:1px solid #3f5b80;
  border-radius:5px;
  padding:9px 14px;
  font-size:11px;
  color:#bacee8
}
.auth-panel {
  display:grid;
  place-items:center;
  flex:1;
  padding:60px 35px
}
.auth-form {
  width:100%;
  max-width:340px
}
.auth-form .eyebrow {
  color:var(--blue)
}
.auth-form h2 {
  font-size:27px;
  letter-spacing:-.6px
}
.auth-form>p {
  color:var(--muted);
  font-size:12px;
  margin:12px 0 32px
}
.auth-form label {
  margin-top:20px;
  font-size:12px
}
.auth-form input {
  height:46px;
  background:#fafdff;
  font-size:14px
}
.auth-form .button {
  width:100%;
  margin-top:24px;
  justify-content:space-between;
  height:46px;
  font-size:13px
}
.auth-form p.auth-help {
  font-size:10px;
  line-height:1.8;
  margin-top:24px;
  color:#8390a3
}
.message-panel {
  max-width:580px;
  padding:42px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  margin:auto
}
.message-panel h1 {
  font-size:28px
}
.message-panel p {
  line-height:1.8;
  margin:18px 0 24px;
  color:var(--muted)
}
.message-panel .eyebrow {
  color:var(--blue)
}
.password-panel {
  margin:30px 0
}
.password-panel .helptext {
  display:block;
  font-size:11px;
  line-height:1.7
}
.password-panel ul {
  font-size:11px;
  line-height:1.7;
  padding-left:18px
}
.password-panel input {
  max-width:360px
}
.password-panel .clear {
  margin-left:14px
}
.skip {
  position:fixed;
  top:-60px;
  left:20px;
  background:#fff;
  padding:12px;
  z-index:100
}
.skip:focus {
  top:10px
}
.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
@media(min-width:1600px) {
  .workspace {
    padding:50px 60px
  }
  .filter-panel form {
    grid-template-columns:minmax(200px,2fr) 150px 190px 150px 150px auto auto
  }
}
@media(max-width:1250px) {
  .filter-panel form {
    grid-template-columns:2fr 1fr 1.4fr
  }
  .filter-panel .search-field {
    grid-column:auto
  }
  .workspace {
    padding:32px 24px
  }
  .overview-count {
    padding-left:16px
  }
  .archive-overview {
    gap:20px
  }
  .sync-state {
    margin-left:0
  }
}
@media(max-width:850px) {
  .sidebar {
    width:175px;
    padding:28px 16px
  }
  .workspace {
    margin-left:175px;
    padding:28px 18px
  }
  .brand {
    font-size:21px
  }
  .page-header {
    align-items:flex-start
  }
  .private-badge {
    display:none
  }
  .filter-panel form {
    grid-template-columns:1fr 1fr
  }
  .search-field {
    grid-column:1/-1!important
  }
  .filter-panel form>.button {
    grid-column:1
  }
  .clear {
    justify-self:start
  }
  .archive-overview {
    gap:18px
  }
  .overview-title {
    width:100%
  }
  .overview-count:first-of-type {
    padding-left:0
  }
  .sync-state {
    width:100%;
    max-width:none
  }
  .auth-story {
    padding:45px 35px;
    flex-basis:42%
  }
}
@media(max-width:600px) {
  .sidebar {
    position:static;
    width:100%;
    height:auto;
    padding:16px 20px;
    flex-direction:row;
    align-items:center;
    gap:10px
  }
  .brand {
    font-size:19px;
    gap:9px
  }
  .brand-mark {
    width:31px;
    height:34px;
    font-size:18px;
    border-radius:3px 8px 3px 3px
  }
  .brand-mark span {
    font-size:10px;
    padding-bottom:5px
  }
  .brand-by {
    font-size:7px
  }
  .sidebar-section,.nav-item,.sidebar-note,.account {
    display:none
  }
  .logout {
    margin:0 0 0 auto
  }
  .logout button {
    gap:20px
  }
  .workspace {
    margin:0;
    padding:27px 15px
  }
  .page-header {
    margin-bottom:23px
  }
  h1 {
    font-size:29px
  }
  .page-header p {
    font-size:12px;
    line-height:1.6
  }
  .eyebrow {
    font-size:9px
  }
  .filter-panel {
    padding:15px
  }
  .filter-panel form {
    gap:13px 10px
  }
  .filter-panel label {
    font-size:9px
  }
  .archive-overview {
    padding:23px 3px 18px;
    gap:18px
  }
  .overview-title {
    width:auto;
    margin-right:10px
  }
  .overview-title>strong {
    font-size:27px
  }
  .overview-title strong span {
    display:block;
    margin:2px 0 0;
    font-size:10px
  }
  .overview-count {
    padding-left:16px
  }
  .overview-count strong {
    font-size:21px
  }
  .overview-count span {
    font-size:9px;
    max-width:70px;
    line-height:1.4
  }
  .sync-state {
    margin-top:5px
  }
  .rail-label {
    width:100%;
    margin-bottom:2px
  }
  .state-tab {
    gap:12px;
    padding:7px 9px
  }
  .list-toolbar {
    padding:18px 15px;
    align-items:flex-start
  }
  .list-toolbar h2 {
    font-size:17px
  }
  .list-toolbar p {
    font-size:10px;
    max-width:160px;
    line-height:1.5
  }
  .list-toolbar .button {
    padding:9px 10px;
    font-size:10px;
    gap:7px
  }
  .download-note {
    padding:0 15px 15px;
    line-height:1.6
  }
  .documents-panel {
    border-radius:8px
  }
  th,td {
    padding:14px 12px
  }
  .pagination {
    padding:14px;
    font-size:9px;
    align-items:center
  }
  .pagination>div {
    gap:10px
  }
  .pagination>div>span {
    display:none
  }
  .auth-shell {
    display:block
  }
  .auth-story {
    min-height:0;
    padding:25px
  }
  .auth-story>div:nth-child(2) {
    margin:40px 0 0
  }
  .auth-story h1 {
    font-size:40px;
    letter-spacing:-1px;
    margin:16px 0
  }
  .auth-story p {
    font-size:12px
  }
  .auth-states {
    display:none
  }
  .auth-panel {
    padding:40px 25px 55px
  }
  .auth-form h2 {
    font-size:25px
  }
  .message-panel {
    padding:28px;
    margin:25px 15px
  }
  .password-panel {
    margin:0
  }
  .page-footer {
    font-size:9px
  }
  .key-tail {
    display:none
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    animation:none!important;
    transition:none!important
  }
}
.mobile-password {
  display:none
}
@media(max-width:600px) {
  .mobile-password {
    display:block;
    margin-left:auto;
    font-size:11px;
    color:#b5c8e2
  }
  .logout {
    margin-left:8px
  }
  .logout button {
    gap:9px;
    font-size:11px
  }
  .table-scroll {
    overflow:visible
  }
  table,tbody {
    display:block
  }
  thead {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0,0,0,0)
  }
  tbody tr {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:13px 10px;
    padding:19px 14px;
    border-bottom:1px solid var(--line)
  }
  tbody tr:last-child {
    border-bottom:0
  }
  td {
    display:block;
    padding:0;
    border:0
  }
  .supplier {
    grid-column:1/-1;
    grid-row:1;
    min-width:0;
    max-width:none;
    padding-right:45px
  }
  .supplier>strong {
    font-size:12px;
    line-height:1.5
  }
  .supplier summary {
    font-size:10px
  }
  .uf-cell {
    grid-column:2;
    grid-row:1;
    justify-self:end
  }
  .date-cell {
    grid-column:1;
    grid-row:2;
    width:auto;
    align-self:center;
    color:var(--muted)
  }
  .date-cell:before {
    content:'Emissão · ';
    font-size:9px
  }
  .date-cell>span,.date-cell small {
    display:inline;
    font-size:10px
  }
  .date-cell small {
    margin-left:4px
  }
  td.money {
    grid-column:2;
    grid-row:2;
    font-size:12px;
    align-self:center
  }
  .status-cell {
    grid-column:1;
    grid-row:3;
    align-self:center
  }
  td.downloads {
    grid-column:2;
    grid-row:3;
    align-self:center
  }
  .download-actions a {
    font-size:10px;
    padding:7px 8px;
    gap:8px
  }
  .document-status {
    font-size:9px
  }
  .unavailable {
    font-size:9px
  }
}
