@font-face{font-family:Inter;src:url('/assets/inter-regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url('/assets/inter-semibold.ttf') format('truetype');font-weight:500 800;font-display:swap}
:root{
  --deep:#123F32;--green:#197355;--soft:#E8F3ED;--canvas:#F7F9F7;--text:#202B28;
  --line:#dbe7e0;--muted:#546760;--white:#fff;--danger:#942f31;
  --radius:15px;--nav-width:252px;
  font-family:Inter,system-ui,sans-serif;color:var(--text);background:var(--canvas);color-scheme:light;
}
:root, .content, #dialog, .toast, .content footer {
  --font-meta:calc(.75rem * var(--text-scale));
  --font-caption:calc(.8125rem * var(--text-scale));
  --font-ui:calc(.875rem * var(--text-scale));
  --font-body:calc(1rem * var(--text-scale));
  --font-heading:calc(1.125rem * var(--text-scale));
  --font-display:calc(1.5rem * var(--text-scale));
  --font-page:calc(clamp(1.5rem, 3vw, 2rem) * var(--text-scale));
}
:root, .content footer { --text-scale: 1; }
.content, #dialog, .toast { --text-scale: .9375; }
.content, #dialog, .toast, .content footer { font-size: var(--font-body); }
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-width:300px;font-size:var(--font-body);line-height:1.5}
h1,h2,h3,p{margin:0}
h1,h2,h3{color:var(--deep);line-height:1.2}
h1{font-size:var(--font-page);letter-spacing:-.045em}
h2{font-size:var(--font-heading);letter-spacing:-.023em}
p{color:var(--muted)}
[hidden]{display:none!important}
a,button,input,select,textarea{font:inherit}
code,pre,kbd,samp{font-family:inherit}
small{font-size:var(--font-caption)}
h3{font-size:var(--font-body)}
a{color:var(--green)}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.65}
:focus-visible{outline:3px solid #3da380;outline-offset:3px}
.icon{width:20px;height:20px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.skip{position:fixed;top:8px;left:8px;transform:translateY(-150%);z-index:20;background:white;padding:10px}
.skip:focus{transform:none}
.loading-screen{display:grid;place-content:center;justify-items:center;gap:18px;min-height:100dvh}
.signin {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 76px);
  background: radial-gradient(ellipse at 6% 12%, #e0eee5 0, transparent 55%), #f4f7f4;
}
.signin-frame {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1fr);
  width: min(100%, 1100px);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid #d9e6de;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 85px -42px #123f3260, 0 8px 25px -16px #123f322b;
}
.signin-brand {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 35px;
  padding: clamp(30px, 4.6vw, 64px);
  background: radial-gradient(ellipse at 100% 70%, #1d6e55 0, transparent 67%),
    linear-gradient(145deg, #102e27, #123f32 57%, #0d352b);
}
.signin-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 22% -15% -25% 14%;
  background-image: linear-gradient(#b8f0d51c 1px, transparent 1px),
    linear-gradient(90deg, #b8f0d51c 1px, transparent 1px);
  background-size: 32px 32px;
  transform: rotate(-24deg);
  mask-image: radial-gradient(ellipse at 66% 62%, #000 0, transparent 68%);
}
.signin-brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 340px;
  aspect-ratio: 1;
  right: -170px;
  bottom: -60px;
  border: 1px solid #a8e5c94a;
  border-radius: 44px;
  transform: rotate(32deg);
  box-shadow: 0 0 0 25px #a8e5c916, 0 0 0 54px #a8e5c90c;
}
.portal-logo { display: block; width: min(100%, 226px); height: auto; border-radius: 12px; }
.signin-intro { padding-block: 18px; }
.signin-accent { display: block; width: 36px; height: 3px; border-radius: 3px; margin-bottom: 23px; background: #7cdeb2; }
.signin-brand h2 { font-size: var(--font-page); letter-spacing: -.06em; line-height: 1.03; color: #fff; }
.signin-brand p { color: #d6ebe2; margin-top: 18px; font-size: var(--font-body); }
.signin-environment { color: #def2e7; }
.signin-panel { display: grid; place-items: center; padding: clamp(24px, 4.4vw, 64px); }
.signin-card { width: 100%; max-width: 385px; }
.signin-lock {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 21px;
  border: 1px solid #dcece3;
  border-radius: 14px;
  color: var(--green);
  background: var(--soft);
}
.signin-description { margin-top: 9px; font-size: var(--font-body); }
.signin-card .stack { margin-top: 26px; gap: 16px; }
.signin-card .field { font-size: var(--font-ui); }
.signin-card .field input { width: 100%; min-height: 49px; border-radius: 10px; font-size: var(--font-body); }
.signin-card .signin-submit {
  min-height: 49px;
  margin-top: 3px;
  border-radius: 10px;
  font-size: var(--font-body);
  box-shadow: 0 6px 14px -8px #123f32a0;
}
.signin-links { display: flex; justify-content: center; margin-top: 14px; }
.signin-links .button { min-height: 42px; }
.signin-recovery-notice {
  margin: 0 0 16px;
  padding: 12px 15px;
  border: 1px solid #e9b7b8;
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  background: #fff2f2;
  color: #802729;
}
.signin-recovery-notice p { margin: 4px 0 0; color: inherit; }
.signin-message { margin-top: 12px; font-size: var(--font-ui); }
.signin-message:empty { margin-top: 0; }
.password-control { position: relative; display: flex; }
.password-control input:not([type="checkbox"]) { min-width: 0; padding-right: 49px; }
.password-control input::-ms-reveal { display: none; }
.password-toggle {
  position: absolute;
  inset: 2px 2px 2px auto;
  display: grid;
  width: 43px;
  place-items: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--green);
}
.password-toggle:hover { background: var(--soft); }
.password-toggle:focus-visible { outline-offset: -2px; }
@media (max-width: 740px) {
  .signin { padding: 16px; }
  .signin-frame { max-width: 510px; min-height: 0; grid-template-columns: minmax(0, 1fr); border-radius: 21px; }
  .signin-brand {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 10px;
    align-items: center;
    padding: 22px 24px;
  }
  .portal-logo { width: min(100%, 174px); }
  .signin-intro { grid-area: 2 / 1 / 3 / -1; padding: 0; }
  .signin-brand p, .signin-accent { display: none; }
  .signin-panel { padding: 28px 24px 21px; }
  .signin-lock { width: 40px; height: 40px; margin-bottom: 12px; }
}
.brand-lockup{display:flex;align-items:center;gap:12px;height:54px;min-width:0}
.brand-lockup img:first-child{width:33px;height:38px;object-fit:contain}
.brand-lockup img:nth-child(2){width:124px;flex:0 0 auto;object-fit:contain}
.homologation{display:inline-flex;align-items:center;gap:7px;font-size:var(--font-meta);white-space:nowrap;font-weight:600}
.homologation::before{content:"";width:7px;height:7px;border-radius:50%;background:#5ca58a}
.layout{display:grid;grid-template-columns:var(--nav-width) minmax(0,1fr);min-height:100dvh}
.layout.compact{--nav-width:78px}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 19px 14px 16px;
  border-right: 1px solid #0e342a;
  color: #dceee5;
  background:
    linear-gradient(155deg, #0f3029 4%, #123f32 54%, #164d3d),
    var(--deep);
  isolation: isolate;
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(#b8f0d526 1px, transparent 1px),
    linear-gradient(90deg, #b8f0d526 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 100% 100%, #000, transparent 55%);
}
.sidebar .brand-lockup {
  justify-content: center;
  margin: 0 5px 7px;
  border-radius: 11px;
  background: #fff;
}
.sidebar-title { margin: 0 10px 20px; padding-top: 5px; color: #d5ebe0; font-size: var(--font-caption); }
.nav { display: flex; flex-direction: column; gap: 5px; overflow: auto; min-height: 0; padding: 4px; }
.nav-divider { flex: 0 0 1px; background: #a0d7bd36; margin: 7px 9px; }
.nav-button {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 8px 10px;
  color: #dceee5;
  font-size: var(--font-ui);
  text-decoration: none;
}
.nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-button .icon { width: 18px; height: 18px; color: #a5dac3; }
.nav-button:hover { background: #ffffff14; color: #fff; }
.nav-button:focus-visible { outline-offset: -2px; outline-color: #92e5bd; }
.nav-button[aria-current="page"] {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(100deg, #207459, #245c4b);
  border-color: #a1ddbf4d;
}
.nav-button[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 17px;
  border-radius: 0 3px 3px 0;
  background: #8ce7bc;
}
.nav-button[aria-current="page"] .icon { color: #d1f6e4; }
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid #a0d7bd36;
  padding: 13px 9px 2px;
  text-align: center;
  white-space: nowrap;
}
.version { color: #cfede0; font-size: var(--font-meta); font-variant-numeric: tabular-nums; }
.compact .sidebar { padding-inline: 10px; }
.compact .sidebar .brand-lockup { margin: 0 3px 20px; }
.compact .sidebar .brand-lockup img:nth-child(2), .compact .sidebar-title,
.compact .nav-label { display: none; }
.compact .nav-button { justify-content: center; padding-inline: 0; }
.compact .sidebar-footer { padding-inline: 0; }
.layout:has(> .client-sidebar):not(.compact) { --nav-width: 268px; }
.client-sidebar {
  background: radial-gradient(ellipse at 100% 100%, #116147, transparent 42%), #0b3229;
}
.client-sidebar .brand-lockup {
  justify-content: flex-start;
  padding-inline: 7px;
  background: transparent;
}
.client-sidebar .brand-lockup img:first-child {
  filter: brightness(0) saturate(100%) invert(83%) sepia(26%) saturate(784%) hue-rotate(86deg);
}
.client-sidebar .brand-lockup img:nth-child(2) { filter: brightness(0) invert(1); }
.client-sidebar .sidebar-title {
  border-top: 1px solid #a0d7bd36;
  margin: 6px 9px 9px;
  padding-top: 12px;
  color: #fff;
  font-size: var(--font-ui);
  font-weight: 600;
}
.client-sidebar .nav { gap: 12px; }
.nav-group { display: grid; gap: 3px; flex: 0 0 auto; }
.nav-group + .nav-group { border-top: 1px solid #a0d7bd36; padding-top: 12px; }
.client-sidebar .nav-button { gap: 9px; }
.client-sidebar .nav-label { white-space: normal; line-height: 1.25; }
.client-sidebar .nav-button .icon { color: currentColor; }
.client-sidebar .nav-button[aria-current="page"] { background: #14634c; border-color: transparent; }
.client-sidebar .nav-button[aria-current="page"]::before { display: none; }
@media (min-width: 761px) {
  .compact .client-sidebar .brand-lockup { justify-content: center; }
}
.main-frame { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(12px, 2.8vw, 34px);
  border-bottom: 1px solid #dce9e1;
  background: linear-gradient(105deg, #f4faf6f5, #fffffff5 58%);
  backdrop-filter: blur(14px);
}
.topbar-start, .topbar-end, .user-chip { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-start > span {
  color: var(--deep);
  font-weight: 600;
  font-size: var(--font-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-end { flex-shrink: 0; }
.topbar .icon-button { min-width: 42px; min-height: 42px; border-radius: 11px; background: #fff; }
.topbar .icon-button:hover { background: var(--soft); }
.user-chip {
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid #dce9e1;
  border-radius: 12px;
  background: #f7fbf8;
}
.topbar.client-topbar { min-height: 60px; padding-block: 6px; }
.client-topbar .topbar-start { flex: 1 1 0; }
.client-topbar .topbar-end { flex: 0 1 auto; gap: 12px; }
.client-topbar .notice-bell { position: relative; border: 0; color: var(--text); }
.client-topbar .notice-bell:has(.notice-dot:not([hidden])) { color: var(--danger); }
.notice-dot {
  position: absolute; top: 8px; right: 8px;
  width: 9px; height: 9px; border: 1px solid #fff; border-radius: 50%; background: currentColor;
}
#top-company { position: relative; min-width: 0; padding-left: 14px; }
#top-company::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 1px; height: 24px; transform: translateY(-50%); background: var(--line);
}
.top-company summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 3px 5px; border-radius: 8px; cursor: pointer; list-style: none;
}
.top-company summary::-webkit-details-marker { display: none; }
.top-company summary:hover, .top-company[open] summary { background: var(--canvas); }
.top-company-icon {
  display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px;
  border-radius: 50%; background: var(--soft); color: var(--deep);
}
.top-company-icon .icon { width: 18px; height: 18px; }
.top-company-copy { display: grid; min-width: 0; max-width: 270px; line-height: 1.35; }
.top-company-copy :is(strong, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-company-copy strong { color: var(--text); font-size: var(--font-ui); }
.top-company-copy small { color: var(--muted); font-size: var(--font-meta); }
.top-company summary > .icon { width: 15px; height: 15px; margin-left: 4px; }
.top-company[open] summary > .icon { transform: rotate(180deg); }
.top-company-menu {
  position: absolute; z-index: 1; top: calc(100% + 7px); right: 0;
  display: grid; gap: 7px; width: min(290px, calc(100vw - 26px)); padding: 11px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--white);
  box-shadow: 0 8px 24px #123f3219;
}
.top-company-picker { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.top-company-picker .company-picker { width: 100%; min-width: 0; }
.top-company-user { color: var(--muted); overflow-wrap: anywhere; }
.top-company-menu > :is(a, button) {
  padding: 7px 8px; border: 0; border-radius: 6px; text-align: left; text-decoration: none;
  background: transparent; color: var(--deep); font-size: var(--font-ui);
}
.top-company-menu > :is(a, button):hover { background: var(--soft); }
.user-chip .avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #267759, #154536);
  font-size: var(--font-caption);
  font-weight: 600;
}
.user-chip strong, .user-chip small { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip strong { font-size: var(--font-caption); }
.user-chip small { font-size: var(--font-meta); color: var(--muted); }
.icon-button{display:inline-grid;place-items:center;flex:0 0 auto;min-height:36px;min-width:36px;padding:7px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--deep)}
.icon-button:hover{background:var(--soft)}
.content{width:min(100%,1440px);padding:clamp(16px,3.3vw,40px);margin:auto}
.page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:0 0 24px}
.page-intro p{margin-top:8px}
.hero{background:var(--deep);position:relative;overflow:hidden;border-radius:var(--radius);padding:clamp(23px,4vw,45px);min-height:195px;display:flex;align-items:center;margin-bottom:23px}
.hero-copy{z-index:1;position:relative}
.hero h1,.hero p{color:white}
.hero p{margin-top:12px;color:#d6e9df;max-width:48ch}
.hero::after{content:"";position:absolute;right:-105px;top:-166px;width:446px;height:446px;border:1px solid #4f876f;border-radius:50%;box-shadow:0 0 0 34px #1b493b,0 0 0 35px #40725e,0 0 0 69px #174538,0 0 0 70px #345e50}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:21px}
.metrics.few{grid-template-columns:repeat(2,minmax(0,1fr))}
.metric,.panel{border:1px solid var(--line);border-radius:var(--radius);background:white;min-width:0}
.metric{padding:16px 17px;display:grid;justify-items:start;gap:7px}
.metric-symbol{display:grid;place-items:center;width:36px;height:35px;color:var(--green);background:var(--soft);border-radius:9px}
.metric strong{font-size:var(--font-display);line-height:1.15;letter-spacing:-.06em;color:var(--deep)}
.metric span:last-child{color:var(--muted);font-size:var(--font-ui)}
.columns{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:17px}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 19px;border-bottom:1px solid var(--line)}
.panel-body{padding:18px 19px}
.panel-body>p+p{margin-top:10px}
.row-list{list-style:none;margin:0;padding:0}
.row-list li{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid var(--line)}
.row-list li:last-child{border-bottom:0}
.list-main{min-width:0;overflow-wrap:anywhere}
.list-main small,.row-list time{display:block;color:var(--muted);font-size:var(--font-meta)}
.row-list time{text-align:right}
.empty{min-height:142px;display:grid;align-content:center;justify-items:start;gap:8px}
.empty .metric-symbol{margin-bottom:2px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;padding:9px 14px;min-height:39px;border:1px solid var(--green);border-radius:9px;background:var(--green);color:white;text-decoration:none;font-weight:600;font-size:var(--font-ui)}
.button:hover{background:var(--deep)}
.button.secondary{background:white;color:var(--deep);border-color:var(--line)}
.button.secondary:hover{background:var(--soft)}
.button.danger{background:#fff;color:var(--danger);border-color:#e9caca}
.button.text{background:transparent;color:var(--green);border-color:transparent;min-height:30px;padding:5px 4px}
.button.text:hover{color:var(--deep);text-decoration:underline}
.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.filterbar{display:flex;gap:12px;align-items:end;padding:15px 19px;border-bottom:1px solid var(--line)}
.filterbar label{max-width:340px;width:100%}
.filterbar .company-picker{max-width:390px}
.field{display:grid;gap:5px;color:var(--deep);font-weight:600;font-size:var(--font-ui);min-width:0}
input:not([type="checkbox"]),select{display:block;width:100%;min-height:40px;border-radius:8px;border:1px solid #bdcfc5;color:var(--text);background:#fff;padding:7px 9px}
input::placeholder{color:#697c73}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;font-size:var(--font-ui);text-align:left}
th{color:var(--deep);font-weight:600;background:#f2f7f3}
th,td{padding:11px 15px;border-bottom:1px solid var(--line);vertical-align:middle}
td{overflow-wrap:anywhere}
tbody tr:last-child td{border-bottom:0}
.pill{display:inline-flex;align-items:center;white-space:nowrap;border-radius:40px;background:var(--soft);color:var(--deep);padding:3px 9px;font-size:var(--font-meta);font-weight:600}
.pill.neutral{background:#edf0ee;color:#52645b}
.pill.attention{background:#fbf3dd;color:#755416}
.manage-actions{white-space:nowrap}
.manage-actions .button{margin-right:4px}
.stack{display:grid;gap:13px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.company-form-section { border-top: 1px solid var(--line); padding-top: 9px; font-size: var(--font-ui); }
.full{grid-column:1/-1}
.check{display:flex;align-items:center;gap:9px;font-size:var(--font-ui);color:var(--deep);font-weight:600}
input[type="checkbox"]{accent-color:var(--green);width:17px;height:17px}
.hint{font-size:var(--font-caption);color:var(--muted)}
.error{background:#f9e9e9;color:var(--danger);border-radius:8px;padding:10px 12px;font-size:var(--font-ui)}
dialog{width:min(640px,calc(100% - 24px));max-height:calc(100dvh - 28px);border:1px solid var(--line);border-radius:var(--radius);background:white;color:var(--text);padding:0;box-shadow:0 22px 65px #10291e26}
dialog::backdrop{background:#102d23a0}
.dialog-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 21px;background:white;border-bottom:1px solid var(--line)}
.dialog-body{padding:18px 21px}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);padding:14px 21px;background:var(--canvas)}
.matrix{border:1px solid var(--line);border-radius:9px;overflow:auto}
.matrix table{min-width:465px}
.matrix th,.matrix td{padding:7px;text-align:center;font-size:var(--font-caption)}
.matrix th:first-child{text-align:left;padding-left:12px}
.providers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.provider{padding:18px;display:grid;gap:11px;justify-items:start;align-content:start}
.provider .icon{color:var(--green)}
.settings-list{display:grid;gap:12px;margin:0}
.settings-list div{display:flex;align-items:center;gap:10px;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid var(--line)}
.settings-list div:last-child{border-bottom:0;padding-bottom:0}
.settings-list dt{color:var(--muted)}
.settings-list dd{margin:0;color:var(--deep);font-weight:600;overflow-wrap:anywhere;text-align:right}
.toast{position:fixed;bottom:20px;right:18px;z-index:10;background:var(--deep);border-radius:9px;color:#fff;max-width:calc(100% - 36px);padding:11px 15px;box-shadow:0 6px 24px #133f3240}
.mobile-backdrop{display:none}
@media(max-width:1000px){
  .layout{--nav-width:235px}
  .metrics{gap:9px}
  .metric{padding:12px}
  .providers{grid-template-columns:1fr}
}
@media(max-width:760px){
  .layout,.layout.compact{display:block}
  .sidebar,.compact .sidebar{width:min(278px,84vw);height:100dvh;position:fixed;inset:0 auto 0 0;z-index:7;transform:translateX(-110%);box-shadow:0 0 0 transparent;transition:transform .2s ease;visibility:hidden}
  .layout.mobile-open .sidebar{transform:translateX(0);visibility:visible;box-shadow:12px 0 35px #0f30294d}
  .compact .sidebar{padding-inline:14px}
  .compact .sidebar .brand-lockup{margin:0 5px 7px}
  .compact .sidebar .brand-lockup img:nth-child(2),.compact .sidebar-title,.compact .nav-label{display:block}
  .compact .nav-button{justify-content:start;padding-inline:10px}
  .layout.mobile-open .mobile-backdrop{display:block;position:fixed;inset:0;z-index:6;border:0;background:#152c24a0}
  .columns{grid-template-columns:1fr}
  .topbar{min-height:61px}
  .content{padding-inline:13px}
  .page-intro{align-items:flex-start}
  .topbar-end{gap:8px}
  .user-chip strong,.user-chip small{max-width:104px}
  .hero::after{right:-295px}
}
@media(max-width:460px){
  .metrics,.metrics.few{grid-template-columns:repeat(2,minmax(0,1fr))}
  .topbar-start{gap:8px}
  .topbar-start>span{font-size:var(--font-ui)}
  .client-topbar .topbar-start > span { display: none; }
  .client-topbar .topbar-end { gap: 5px; }
  #top-company { padding-left: 6px; }
  .top-company summary { gap: 5px; }
  .user-chip{padding:3px}
  .user-chip>div{display:none}
  .page-intro{flex-wrap:wrap}
  .form-grid{grid-template-columns:1fr}
  .panel-head,.panel-body{padding-inline:13px}
  th,td{padding-inline:10px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

.document-frame { width: 100%; height: min(65vh, 48rem); border: 0; }
.document-image { max-width: 100%; max-height: 65vh; display: block; margin: auto; object-fit: contain; }
.dialog:has(.document-frame), .dialog:has(.document-image) { width: min(70rem, calc(100% - 2rem)); }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.catalog-grid .row-list li { gap: 10px; }

/* Client dashboard */
:is(.client-documents-layout, .client-account-layout, .client-home-layout, .client-pending-layout, .client-notices-layout, .client-support-layout, .client-knowledge-layout, .client-finance-layout) .main-frame { min-height: 100dvh; display: flex; flex-direction: column; }
:is(.client-documents-layout, .client-account-layout, .client-home-layout, .client-pending-layout, .client-notices-layout, .client-support-layout, .client-knowledge-layout, .client-finance-layout) .content {
  width: 100%; flex: 1; display: flex; flex-direction: column;
  margin-block: 0; padding: 12px clamp(14px, 1.4vw, 25px);
}
.client-finance-layout .content { max-width: none; }
:is(.client-documents-layout, .client-account-layout, .client-home-layout, .client-pending-layout, .client-notices-layout, .client-support-layout, .client-knowledge-layout, .client-finance-layout) .client-topbar { min-height: 54px; padding-block: 4px; }
.client-home, .kb-page { display: flex; flex: 1; flex-direction: column; gap: 12px; }
.home-welcome {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  min-height: 76px; padding: 10px 15px; border-radius: 11px;
  background: linear-gradient(90deg, #f3faf6 35%, #edf8f265 62%, transparent 84%),
    url("/assets/home-architecture.webp") right 15% / auto 220% no-repeat, #e7f4ee;
}
.home-welcome h1, .finance-hero h1, .kb-intro-copy h2 { font-size: 1.75rem; }
.home-welcome p, .finance-hero p, .kb-intro-copy p { font-size: var(--font-ui); }
.home-welcome p { margin-top: 2px; color: var(--muted); }
.home-welcome img { width: 32px; height: 32px; padding: 4px; border-radius: 7px; background: #e4f5ecdd; object-fit: contain; flex: none; }
.client-quick-links, .home-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.client-card { min-width: 0; padding: 11px 13px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.client-home .client-card { box-shadow: 0 2px 4px #122f2310; }
.client-card h2 { color: var(--text); }
.client-shortcut, .home-metric {
  display: flex; align-items: flex-start; gap: 10px; text-decoration: none; color: var(--text);
}
.client-shortcut:hover, .home-metric:hover { border-color: #a5c8b7; background-color: #f5fbf8; }
.client-shortcut h2 { margin: 0 0 3px; font-size: var(--font-ui); line-height: 1.2; }
.kb-topics small { font-size: var(--font-meta); }
.client-shortcut p { margin: 0; color: var(--muted); font-size: var(--font-meta); line-height: 1.25; }
.client-shortcut-action { display: inline-block; color: var(--deep); margin-top: 3px; font-size: var(--font-caption); font-weight: 600; text-decoration: underline; }
.client-symbol, .upcoming-calendar {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 9px; background: var(--soft); color: var(--deep);
}
.upcoming-calendar { width: 26px; height: 26px; color: #875313; background: #fcf1dd; }
.client-symbol .icon { width: 22px; height: 22px; }
.upcoming-calendar .icon { width: 16px; height: 16px; }
.home-metric { align-items: center; background: #edf4ef; padding-block: 7px; }
.home-metric span:not(.client-symbol) { display: block; font-size: var(--font-caption); font-weight: 600; }
.home-metric strong { display: block; font-size: 1.52rem; line-height: 1.08; color: #10281e; }
.home-metric-documents { background: #e1f2e6; }
.home-metric-documents .client-symbol { background: #d3ebda; }
.home-metric-pending { background: #fbf5e9; }
.home-metric-pending .client-symbol { background: #faedd3; color: #86500e; }
.home-company-grid, .home-summary-grid { display: grid; gap: 10px; }
.home-company-grid { grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); flex: 1 0 auto; }
.home-summary-grid {
  --summary-row-height: 33px;
  --summary-row-gap: 5px;
  --summary-heading-space: 3.375rem;
  --summary-padding: 11px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-summary-grid > .client-card {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 6px;
  padding-block: var(--summary-padding);
}
.home-summary-grid .home-panel-heading { margin-bottom: 0; }
.client-home .home-summary-grid .client-upcoming {
  display: grid; gap: var(--summary-row-gap); margin: 0; padding: 0;
}
.client-home .home-summary-grid .client-upcoming li {
  height: var(--summary-row-height); min-height: 0; padding-block: 2px;
}
.home-summary-grid .home-summary-body { min-height: calc(4 * var(--summary-row-height) + 3 * var(--summary-row-gap)); }
.home-summary-body { min-height: 0; overflow: auto; }
.home-summary-grid .home-essential-list { gap: var(--summary-row-gap); }
.home-summary-grid .home-essential { height: var(--summary-row-height); min-height: 0; }
.home-panel-heading { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.home-panel-heading > .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--deep); flex: none; }
.home-panel-heading > div { min-width: 0; }
.home-panel-heading h2, .finance-page h2, .kb-heading h2, .kb-section h2, .support-page .client-card h2 { font-size: var(--font-body); }
.home-panel-heading p { font-size: var(--font-meta); line-height: 1.2; color: var(--muted); margin-top: 2px; }
.home-panel-heading > :is(a, .home-panel-link) {
  margin-left: auto; align-self: center; flex: none; font-size: var(--font-meta); font-weight: 600; white-space: nowrap;
}
.home-panel-link { padding: 0; border: 0; background: transparent; color: var(--deep); text-decoration: underline; }
.home-company-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-left: auto; }
.home-company-actions a { font-size: var(--font-meta); font-weight: 600; white-space: nowrap; }
.home-company-status { color: var(--muted); font-size: var(--font-meta); line-height: 1.2; white-space: nowrap; }
.home-company-status strong { margin-left: 4px; padding: 2px 6px; background: #d4ead9; color: var(--deep); border-radius: 10px; }
.home-company-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px;
  margin: 0; font-size: var(--font-caption); line-height: 1.15;
}
.home-company-list > div { min-width: 0; }
.home-company-list dt { color: var(--muted); font-size: var(--font-meta); }
.home-company-list dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.home-company-identity { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 10px; background: #f2f7f4; border-radius: 6px; }
.home-company-identity > div { grid-column: 1; }
.home-company-identity [data-field="cnpj"] { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.home-company-identity [data-field="cnpj"] dd { color: var(--deep); font-weight: 600; }
.home-company-identity > :not([data-field="cnpj"]) dt,
.home-company-details dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.home-company-identity > div:first-child dd, .home-company-legal [data-field="legal_name"] dd { font-weight: 650; }
.home-company-identity > div:first-child dd { font-size: var(--font-body); color: var(--deep); }
.home-company-identity > div:nth-child(2) dd { color: var(--muted); }
.home-company-profile { container: company-profile / inline-size; display: flex; flex-direction: column; gap: 6px; }
.home-company-details { flex: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: space-between; gap: 12px 18px; }
.home-company-details section { min-width: 0; }
.home-company-details h3 { color: var(--deep); font-size: var(--font-caption); margin-bottom: 6px; }
.home-company-fiscal { grid-column: 1 / -1; }
.home-company-fiscal .home-company-list { grid-template-columns: minmax(0,1fr) minmax(0,1.45fr); gap: 8px 12px; }
.home-company-contact .home-company-list, .home-company-legal .home-company-list { grid-template-columns: minmax(0,1fr); gap: 6px; }
@container company-profile (max-width: 365px) {
  .home-company-details { grid-template-columns: minmax(0,1fr); }
  .home-company-identity { grid-template-columns: minmax(0,1fr); }
  .home-company-identity [data-field="cnpj"] { grid-column: 1; grid-row: auto; margin-top: 4px; }
}
#account-company { scroll-margin-top: 70px; }
#account-company .panel-body { padding: 14px; }

.home-essential-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.home-essential { display: flex; align-items: center; min-width: 0; gap: 5px; border: 1px solid var(--line); border-radius: 7px; background: #f8faf9; padding: 2px 5px; min-height: 33px; }
.home-essential .document-name { min-width: 0; gap: 4px; }
.home-essential .document-title, .home-certificate-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--font-caption); }
.home-essential .document-size { display: none; }
.home-essential .file-type-icon { flex: 0 0 19px; width: 19px; height: 19px; }
.home-file-actions { display: flex; margin-left: auto; gap: 3px; }
.home-file-actions .icon-button { min-width: 24px; min-height: 24px; padding: 3px; border-radius: 6px; }
.home-file-actions .icon { width: 15px; height: 15px; }
.home-status { padding: 2px 6px; border-radius: 20px; font-size: .66rem; font-weight: 600; line-height: 1.12; flex: none; white-space: nowrap; }
.home-status-valid { background: #d9efe0; color: #166534; }
.home-status-soon { background: #fdf0d6; color: #794900; }
.home-status-expired { background: #fde2e2; color: #a32124; }
.home-status-unknown { background: #e9efeb; color: #43564a; }
.home-certificate-list li > .icon { color: var(--green); width: 17px; height: 17px; flex: none; }
.home-certificate-list strong { flex: 1; }
.home-certificate-list time { flex: none; white-space: nowrap; }
.home-filter-label { padding: 8px 12px; margin-bottom: 10px; background: var(--soft); border-radius: 8px; font-size: var(--font-ui); }
.home-filter-label a { margin-left: 8px; }
.home-skeleton { display: grid; gap: 10px; }
.home-skeleton span { height: 78px; border-radius: 10px; background: #e8f0eb; }
.home-skeleton span:last-child { height: 240px; }
.client-empty { margin: 0; padding-top: 9px; color: var(--muted); font-size: var(--font-ui); }
.client-home .row-list { margin-top: 5px; }
.client-home .row-list li { gap: 8px; padding: 6px 0; min-height: 41px; }
.client-home .row-list li:last-child { padding-bottom: 0; }
.client-home .row-list .list-main, .client-recent-list .document-name { min-width: 0; }
.client-home .row-list .list-main > *, .client-recent-list .document-title {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.client-home .row-list .list-main strong, .client-recent-list .document-title { color: var(--text); font-size: var(--font-ui); }
.client-home .row-list .button {
  flex-shrink: 0; min-height: 28px; padding: 2px 8px;
  font-size: var(--font-meta); white-space: nowrap;
}
.client-upcoming li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto;
  --due-tile: #fcf1dd; --due-ink: #754709;
}
.client-upcoming li:is(.upcoming-today, .upcoming-soon) { --due-tile: #fbf1db; --due-ink: #754709; }
.client-upcoming li.upcoming-overdue { --due-tile: #fff1ef; --due-ink: #a1262b; }
.upcoming-calendar { background: var(--due-tile); color: var(--due-ink); }
.upcoming-deadline { display: grid; text-align: right; color: var(--due-ink); }
.upcoming-deadline .upcoming-due {
  color: inherit; font-size: var(--font-ui); font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.client-recent-list .document-name :is(.document-size, time) { display: inline; font-size: var(--font-meta); white-space: nowrap; }
.client-recent-list .document-size::after { content: " · "; }
.client-recent-list .document-name-copy { line-height: 1.15; }
.client-recent-list .document-name time { white-space: normal; }
.home-summary-grid .row-list { line-height: 1.2; }
.home-summary-grid .row-list li { gap: 5px; min-height: var(--summary-row-height); padding-block: 2px; }
.home-summary-grid .upcoming-deadline { font-size: var(--font-meta); }
.client-home .row-list .file-type-icon { flex: 0 0 24px; }
.client-banner {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); padding: 8px 16px;
  border-radius: 8px; background: linear-gradient(155deg, #0f3029, #164d3d); color: #fff;
}
.client-banner .brand-lockup img { max-height: 30px; width: auto; filter: brightness(0) invert(1); }
.client-banner p {
  display: flex; flex-wrap: wrap; gap: 3px 8px; margin: 0; padding-left: 12px;
  border-left: 1px solid #bedbd0; color: #dceee5; font-size: var(--font-meta);
}
.client-banner strong { color: #fff; }
.finance-page { display: flex; flex: 1; flex-direction: column; gap: 12px; font-size: var(--font-ui); }
.finance-welcome { justify-content: flex-start; align-items: center; }
.finance-page h3 { font-size: var(--font-ui); color: var(--text); }
.finance-page a { font-weight: 600; }
.finance-page .client-card { box-shadow: 0 2px 4px #122f2310; }
.finance-services { background: var(--soft); }
.finance-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.finance-service-grid article { display: flex; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.finance-service-grid p, .finance-caption { margin-top: 3px; font-size: var(--font-caption); }
.finance-service-grid a, .finance-side a { display: inline-block; margin-top: 4px; }
.finance-columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); flex: 1; gap: 12px; }
.finance-columns header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.finance-columns header .icon { width: 17px; height: 17px; margin-right: 4px; color: var(--deep); }
.finance-side { display: flex; flex-direction: column; min-width: 0; gap: 12px; }
.finance-files { padding: 0; margin: 8px 0 0; list-style: none; }
.finance-files li { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 8px; padding: 5px 0; }
.finance-files li + li { border-top: 1px solid var(--line); }
.finance-files .document-name { grid-area: 1 / 1; min-width: 0; }
.finance-files .document-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finance-files .document-size { display: none; }
.finance-file-meta { grid-area: 2 / 1; margin-left: 26px; color: var(--muted); font-size: var(--font-meta); }
.finance-files .home-file-actions { grid-area: 1 / 2 / span 2; }
.finance-files .home-file-actions a { display: inline-grid; margin-top: 0; }
.finance-charges { min-width: 0; }
.finance-table-wrap { overflow-x: auto; margin-top: 8px; }
.finance-table-wrap table { min-width: 32rem; }
.finance-table-wrap th, .finance-table-wrap td { padding: 8px; }
.finance-table-wrap tbody th { background: transparent; }
.finance-attachment { display: grid; gap: 3px; min-width: 6rem; overflow-wrap: anywhere; }
.finance-attachment + .finance-attachment { margin-top: 8px; }
.finance-attachment .home-file-actions { margin-left: 0; }
.finance-missing { color: var(--muted); }
.finance-pages { display: flex; gap: 14px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.finance-pages span { color: var(--muted); }
@media (max-height: 900px) {
  .client-finance-layout .content { padding-block: 8px; }
  .finance-page, .finance-columns, .finance-side { gap: 8px; }
  .finance-page .client-card { padding: 8px 10px; }
  .finance-welcome { min-height: 64px; padding-block: 6px; }
  .finance-page .client-banner .brand-lockup { height: 34px; }
}
@media (min-width: 761px) and (max-height: 700px) {
  .finance-service-grid article { padding: 6px 9px; }
  .finance-files li { padding-block: 3px; }
}
@media (max-width: 760px) {
  .finance-service-grid, .finance-columns { grid-template-columns: minmax(0, 1fr); }
}
.client-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.back-to-client-home { display: inline-block; margin-bottom: 4px; }
.content-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.knowledge-entry { padding: 12px 0; }
.knowledge-entry + .knowledge-entry { border-top: 1px solid var(--line); }
.knowledge-entry summary { cursor: pointer; font-weight: 600; }
.publication-files { display: grid; gap: 8px; max-height: 180px; overflow: auto; padding: 8px 0; }
@media (min-width: 1101px) {
  .home-company-profile { min-height: 230px; }
  .client-home .client-recent { display: flex; flex-direction: column; }
  .client-recent-body { container: recent-documents / size; flex: 1 1 0; min-height: 120px; }
}
@container recent-documents (height < 200px) {
  .client-home .client-recent-list > li:nth-child(n+5) { display: none; }
}
@container recent-documents (height < 160px) {
  .client-home .client-recent-list > li:nth-child(n+4) { display: none; }
}
@media (min-width: 1101px) and (max-height: 900px) {
  .client-home, .kb-page { gap: 8px; }
  :is(.client-documents-layout, .client-account-layout, .client-home-layout, .client-pending-layout, .client-notices-layout, .client-support-layout, .client-knowledge-layout) .content { padding-block: 8px; }
  .client-quick-links, .home-metrics, .home-company-grid, .home-summary-grid { gap: 8px; }
  .client-home .client-card { padding: 6px 9px; }
  .home-welcome { min-height: 64px; padding-block: 6px; }
  .client-shortcut-action { line-height: 1.2; }
  .home-company-profile { min-height: 203px; }
  .home-essential { min-height: 30px; }
  .home-summary-grid { --summary-row-height: 30px; --summary-padding: 6px; }
  .client-home .row-list { margin-top: 2px; line-height: 1.15; }
  .client-home .row-list li { min-height: 29px; padding-block: 2px; }
  .home-summary-grid .row-list li { min-height: var(--summary-row-height); }
  .client-home .row-list .button { min-height: 24px; padding-block: 1px; }
  .client-banner { padding-block: 4px; }
  .client-banner .brand-lockup { height: 34px; }
}
@media (max-width: 1200px) {
  .home-summary-grid { --summary-heading-space: 4.25rem; }
  .home-panel-heading { flex-wrap: wrap; }
  .home-panel-heading > :is(a, .home-panel-link) { margin-left: 26px; }
}
@media (max-width: 1100px) {
  .client-quick-links, .home-metrics, .home-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-company-grid { grid-template-columns: minmax(0, 1fr); flex: 0 0 auto; }
}
@media (max-width: 610px) {
  .home-summary-grid { --summary-row-height: 38px; }
  .client-quick-links, .home-metrics, .home-summary-grid { grid-template-columns: minmax(0, 1fr); }
  .home-welcome { min-height: 90px; background-size: auto 136%; }
  .home-welcome p { max-width: 85%; }
  .home-panel-heading > :is(a, .home-panel-link) { margin-left: auto; }
  .client-upcoming li { grid-template-columns: minmax(0, 1fr) auto auto; }
  .upcoming-calendar { display: none; }
  .home-file-actions .icon-button { min-width: 32px; min-height: 32px; }
}
.client-home .client-recent-list { margin-block: 0; }
.client-home .client-recent-list > li { height: 40px; min-height: 40px; padding-block: 0; }
@media (max-width: 1100px) {
  .client-home .client-recent-list > li { height: auto; padding-block: 6px; }
}

.document-company {
  flex: 0 1 280px; min-width: 0; max-width: 100%; overflow-wrap: anywhere;
}
.document-company > span { display: block; color: var(--muted); font-size: var(--font-ui); }
.document-company > strong { color: var(--deep); }
.document-empty { padding: 0 15px 17px; }
.document-categories {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)); gap: 10px;
  margin: 0 0 18px;
}
.document-category {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--text); line-height: 1.3;
}
.document-category[aria-pressed="true"] { background: #e1f1e7; border-color: #9bc9b5; color: var(--deep); }
.document-category:hover { border-color: var(--green); }
.document-category .icon { width: 21px; height: 21px; color: var(--green); }
.document-category span, .document-category small { font-size: var(--font-caption); color: var(--muted); }
.document-category small { padding-top: 2px; }
.document-columns { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(235px, 1fr); gap: 16px; align-items: start; }
.document-list-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 15px; }
.document-list-heading .field { flex: 0 1 235px; }
.document-list-heading input { min-height: 39px; }
.document-list .table-wrap { margin: 0 13px; }
.document-list table { width: 100%; min-width: 500px; }
.document-list td, .document-list th { padding: 9px; }
.document-list th { background: #f1f5f3; white-space: nowrap; }
.document-name { display: flex; gap: 9px; align-items: center; }
.document-name .file-type-icon { width: 24px; height: 24px; color: var(--muted); }
.document-name .file-type-pdf { color: #bd2d3a; }
.document-name .file-type-word { color: #235ca7; }
.document-name .file-type-excel { color: #197355; }
.document-name .file-type-image { color: #7447a1; }
.document-name .file-type-archive { color: #8d5813; }
.document-name .file-type-xml { color: #0c686c; }
.document-name-copy { min-width: 0; overflow-wrap: anywhere; }
.document-name small { display: block; color: var(--muted); font-size: var(--font-caption); }
.document-name .button { min-height: 30px; padding: 0; text-align: left; overflow-wrap: anywhere; }
.document-category-label, .document-new {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: var(--font-caption);
  line-height: 1.4;
}
.document-category-label { background: var(--category-bg, var(--soft)); color: var(--category-text, var(--deep)); font-weight: 500; }
.category-tone-amber { --category-bg: #fcf0d8; --category-text: #704609; }
.category-tone-blue { --category-bg: #e8f1fd; --category-text: #214b7c; }
.category-tone-violet { --category-bg: #f0e9fb; --category-text: #593780; }
.category-tone-teal { --category-bg: #dff4f4; --category-text: #205b60; }
.category-tone-rose { --category-bg: #fae7ee; --category-text: #813753; }
.category-tone-green { --category-bg: #e1f3e7; --category-text: #235b40; }
.category-tone-gray { --category-bg: #edf0f2; --category-text: #43515b; }
.document-mobile-category { display: none; }
.document-new { display: block; width: fit-content; margin-top: 3px; background: #e9f2ff; color: #174f91; }
.document-download { display: inline-flex; align-items: center; justify-content: center; background: #edf4f0; color: var(--deep); }
.document-more { margin: 6px 13px; }
.document-side { display: grid; gap: 14px; }
.document-timeline, .document-help { padding: 16px; }
.document-timeline h2 .icon { margin-right: 4px; }
.document-timeline ol { list-style: none; margin: 12px 0 0 5px; padding: 0; }
.document-timeline li { border-left: 2px solid #c5e1d2; padding: 0 0 13px 14px; position: relative; }
.document-timeline li:last-child { padding-bottom: 0; }
.document-timeline li::before { content: ""; position: absolute; top: 5px; left: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.document-timeline time, .document-timeline small { display: block; color: var(--muted); font-size: var(--font-caption); }
.document-timeline strong { display: block; overflow-wrap: anywhere; }
.document-help { background: var(--soft); border-radius: 12px; }
.document-help p, .document-timeline > p { margin-top: 8px; }
.document-help .button { margin-top: 10px; }
@media (max-width: 1050px) {
  .document-columns { grid-template-columns: minmax(0, 1fr); }
  .document-side { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 450px) {
  .document-company { flex-basis: 100%; }
  .document-list table { min-width: 0; }
  .document-list th:nth-child(2), .document-list td:nth-child(2):not([colspan]) { display: none; }
  .document-name { gap: 5px; }
  .document-name .file-type-icon { width: 20px; height: 20px; }
  .document-mobile-category { display: block; margin-top: 4px; }
  .document-list td, .document-list th { padding-inline: 5px; }
}

.pending-count {
  min-width: 20px; height: 20px; padding: 0 4px; border-radius: 20px;
  display: grid; place-items: center; background: #197355; color: #fff; font-size: var(--font-meta); font-weight: 700;
}
.pending-count { margin-left: auto; }
.compact .pending-count { position: absolute; right: 2px; top: 1px; }
.pending-center { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pending-card { min-width: 0; }
.pending-page { font-size: var(--font-ui); }
.pending-center { gap: inherit; flex: 1; }
.pending-page .client-banner { flex: none; }
.pending-card .home-panel-heading { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
@media (min-width: 1021px) and (min-height: 600px) {
  .client-pending-layout .main-frame { height: 100dvh; }
  .client-pending-layout .content, .pending-page { min-height: 0; }
  .pending-center { min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .pending-card { display: flex; flex-direction: column; min-height: 0; }
  .pending-list { overflow-y: auto; }
}
.pending-center .pending-item { flex-wrap: nowrap; }
.pending-date {
  flex: 0 0 auto; display: grid; place-content: center; text-align: center;
  min-width: 58px; min-height: 50px; padding: 5px 8px; border-radius: 8px;
  background: var(--soft); color: var(--deep);
}
.pending-date small { font-size: var(--font-meta); }
.pending-date strong { font-size: var(--font-body); }
.pending-center .pending-date strong { margin: 0; }
.pending-copy { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.pending-copy .pill { margin-top: 5px; }
.pending-kind { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 8px; background: var(--soft); color: var(--deep); }
.pending-center .pending-actions { justify-content: flex-end; }
.pending-center .button { flex-shrink: 0; }
@media (max-width: 1250px) {
  .pending-center .pending-notification { flex-wrap: wrap; }
}
@media (max-width: 1020px) {
  .pending-center { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .pending-center .pending-item { flex-wrap: wrap; }
  .pending-center .pending-copy { flex-basis: calc(100% - 80px); }
}
.pending-page .pending-list { padding: 0; }
.pending-copy small { font-size: var(--font-meta); }
.pending-list { list-style: none; padding: 0 15px; margin: 0; }
.pending-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 15px; padding: 14px 0; }
.pending-list:not(.row-list) .pending-item + .pending-item { border-top: 1px solid var(--line); }
.pending-item > div:first-child { min-width: 0; flex: 1 1 220px; overflow-wrap: anywhere; }
.pending-item strong { display: block; margin-top: 4px; }
.pending-item p { white-space: pre-wrap; }
.pending-item small { color: var(--muted); }
.pending-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.pending-empty { padding: 15px; }
.pill.pending-today { background: #fff0d9; color: #744509; }
[data-form="important-notice"] textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; resize: vertical; width: 100%;
}

.agenda-section { margin-top: 15px; scroll-margin-top: 80px; }
.agenda-toolbar, .agenda-modes, .agenda-period { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; }
.agenda-toolbar { margin-bottom: 13px; }
.agenda-toolbar .agenda-modes { margin-right: auto; }
.agenda-modes button[aria-pressed="true"], .agenda-summary button[aria-pressed="true"] {
  border-color: var(--green); background: var(--soft); color: var(--deep);
}
.agenda-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 13px; }
.agenda-filters .field { flex: 1 1 125px; min-width: 0; }
.agenda-filters .field:first-child { flex: 2 1 180px; }
.agenda-filters input, .agenda-filters select { min-width: 0; }
.agenda-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 14px 0; }
.agenda-summary button {
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 13px; background: #fff;
  color: var(--deep); text-align: left; display: grid; gap: 2px;
}
.agenda-summary button strong { font-size: var(--font-display); }
.agenda-period { margin-bottom: 13px; }
.agenda-calendar { padding: 9px; margin-bottom: 14px; }
.agenda-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
.agenda-grid > strong { text-align: center; color: var(--muted); padding: 4px; }
.agenda-day { min-width: 0; min-height: 84px; border: 1px solid var(--line); border-radius: 6px; padding: 3px; }
.agenda-day > button { max-width: 100%; border: 0; color: var(--deep); background: transparent; border-radius: 5px; }
.agenda-day > button:first-child { min-width: 27px; min-height: 25px; font-weight: 600; }
.agenda-day.agenda-current > button:first-child, .agenda-day > button[aria-pressed="true"] { background: var(--deep); color: #fff; }
.agenda-day > .agenda-calendar-event {
  display: block; width: 100%; margin-top: 3px; padding: 3px 4px; text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--font-meta); background: var(--soft);
}
.agenda-table { min-width: 850px; }
.agenda-table th .button { min-height: 0; padding: 0; text-align: left; white-space: nowrap; }
.agenda-table th[aria-sort="ascending"] .button::after { content: ' ↑'; }
.agenda-table th[aria-sort="descending"] .button::after { content: ' ↓'; }
dialog.agenda-drawer { margin: 0 0 0 auto; width: min(570px,100%); height: 100dvh; max-height: 100dvh; border-radius: 12px 0 0 12px; }
.agenda-details-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 15px; margin: 0; }
.agenda-details-grid dt { color: var(--muted); font-size: var(--font-caption); }
.agenda-details-grid dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 540px) {
  .agenda-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .agenda-calendar { padding: 5px; }
  .agenda-grid { gap: 2px; }
  .agenda-day { min-height: 65px; padding: 2px; }
  .agenda-day > .agenda-calendar-event { padding-inline: 2px; }
}

/* Pericon visual guide for page content and its dialogs. */
:where(.main-frame, .signin, #dialog, .toast, .loading-screen) {
  --deep: #18261f;
  --green: #185039;
  --pericon-accent: #a8d5a8;
  --soft: #e9f3e9;
  --canvas: #f4f7f5;
  --text: #2e3732;
  --muted: #66706b;
  --line: #d9e0dd;
  --radius: 10px;
  --table-heading: #eef2f0;
  --focus: #2563a6;
  color: var(--text);
}
.main-frame, .client-home-layout .main-frame, .loading-screen { background: var(--canvas); }
.topbar { background: var(--white); border-bottom-color: var(--line); }
.topbar .user-chip { background: var(--canvas); border-color: var(--line); }
.topbar .avatar { background: #526e5e; color: var(--white); }

:where(.content, .signin, #dialog) :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
:where(.content, .signin, #dialog) .button {
  background: var(--deep); border-color: var(--deep); color: var(--white); border-radius: 7px;
}
:where(.content, .signin, #dialog) .button:hover { background: var(--green); border-color: var(--green); }
:where(.content, .signin, #dialog) .button.secondary {
  background: var(--white); border-color: var(--green); color: var(--green);
}
:where(.content, .signin, #dialog) .button.secondary:hover { background: var(--soft); }
:where(.content, .signin, #dialog) .button.text {
  background: transparent; border-color: transparent; color: var(--green);
}
:where(.content, .signin, #dialog) .button.text:hover { color: var(--deep); }
:where(.content, .signin, #dialog) .button.danger {
  background: var(--white); border-color: #e9caca; color: var(--danger);
}
:where(.content, .signin, #dialog) .button.danger:hover { background: #fff0ef; }
:where(.content, .signin, #dialog) .button:disabled {
  opacity: 1; background: #d9e0dd; border-color: #d9e0dd; color: #424d46;
}

:where(.content, .signin, #dialog) :is(input:not([type="checkbox"]), select, textarea) {
  border-color: var(--line); border-radius: 7px; background: var(--white);
}
:where(.content, .signin, #dialog) input::placeholder { color: var(--muted); }
:where(.content, .signin, #dialog) :is(input:not([type="checkbox"]), select, textarea):focus-visible {
  border-color: var(--focus); outline-offset: 0;
}
:where(.content, .signin, #dialog) :is(input, select, textarea):is([aria-invalid="true"], :user-invalid) {
  border-color: #b8373c; background: #fff5f5;
}
:where(.content, #dialog) th { background: var(--table-heading); color: var(--text); }
:where(.content, #dialog) td { border-bottom-color: #e9eeeb; }
:where(.content, #dialog) tbody tr:hover td { background: #f8faf8; }

:where(.content) :is(.client-card, .document-category, .document-company, .agenda-summary button) {
  border-color: var(--line); border-radius: var(--radius);
}
.page-intro { margin-bottom: 18px; }
.hero {
  background: var(--white); border: 1px solid var(--line);
  min-height: 0; padding: clamp(17px, 2.4vw, 27px); margin-bottom: 16px;
}
.hero h1, .home-welcome h1 { color: var(--deep); }
.hero p { color: var(--muted); max-width: none; margin-top: 6px; }
.hero::after { content: none; }
.metric { background: var(--soft); }
.metric:nth-child(2) { background: #eef4fc; }
.metric-symbol { background: var(--white); border-radius: 9px; }
.metric:nth-child(2) .metric-symbol { color: #245a98; }

.client-table-scroll { border-radius: 7px; }
.client-table th { background: var(--table-heading); }

.content .document-category[aria-pressed="true"] {
  background: var(--soft); border-color: var(--pericon-accent); color: var(--deep);
}
.content .document-list th { background: var(--table-heading); }
.document-help .button { background: var(--white); border-color: var(--green); color: var(--green); }
.document-help .button:hover { background: var(--soft); }
.content .agenda-summary button[aria-pressed="true"] {
  background: var(--soft); border-color: var(--green);
}

.signin { background: var(--soft); }
.signin-frame { border-color: var(--line); border-radius: 14px; box-shadow: 0 14px 38px #18261f18; }
.signin-brand { background: linear-gradient(145deg, var(--deep), #233d2f); }
.signin-accent { background: var(--pericon-accent); }
.signin-card .signin-submit { box-shadow: none; }
.signin-lock { border-color: var(--line); }

.finance-hero {
  background: linear-gradient(90deg, #123f32 0%, #123f32 48%, #123f32d9 55%, transparent 78%),
    url("/assets/finance-office.webp") right 54% / 55% auto no-repeat, #123f32;
  border-radius: 10px;
  padding: clamp(18px, 2.6vw, 34px);
}
.finance-hero > div { max-width: 54%; }
.finance-hero h1 { color: white; }
.finance-hero p { color: #e3f0e8; margin: 6px 0 0; }
.finance-table-wrap table { min-width: 25rem; width: 100%; }
.finance-table-wrap th, .finance-table-wrap td { padding: 5px 8px; vertical-align: middle; }
.finance-table-wrap .home-file-actions { margin: 0; }
.finance-due { min-height: 24px; display: flex; align-items: center; }
.finance-due + .finance-due, .finance-table-wrap .home-file-actions + .home-file-actions { margin-top: 4px; }
.finance-other, .finance-contract h3 { margin-top: 12px; }
.finance-extra { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.finance-contract { overflow-wrap: anywhere; }
.finance-contract p { margin: 5px 0; }
.contract-description { white-space: pre-line; }
.finance-contract .home-file-actions { margin: 10px 0 0; }
.finance-side .home-file-actions a { margin: 0; display: inline-grid; }
.finance-information ul { margin: 10px 0 12px; padding: 0; list-style: none; }
.finance-information li { display: flex; align-items: flex-start; gap: 8px; }
.finance-information li .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #197355; }
.finance-information li + li { margin-top: 6px; }
.finance-information .button { display: inline-flex; background: #197355; border-color: #197355; color: white; }
.finance-information .button:hover { background: #123f32; }
@media (max-width: 760px) {
  .finance-hero { background-size: auto, auto 100%, auto; }
  .finance-hero > div { max-width: 65%; }
  .finance-due { min-height: 32px; }
}

.finance-contract header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.contract-status { border-radius: 16px; padding: 3px 10px; font-weight: 600; color: #47534d; background: #edf0ee; }
.contract-status.active { background: #e8f3ed; color: #123f32; }
.contract-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 18px 0; }
.contract-terms dt { color: var(--muted); }
.contract-terms dd { margin: 3px 0 0; color: #202b28; font-weight: 600; }
.contract-actions { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid #d6e1da; padding-top: 12px; margin-top: 12px; }
.finance-contract .contract-actions > * { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; margin: 0; padding: 8px 14px; border: 1px solid #197355; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.finance-contract .contract-actions button { color: white; background: #197355; }
.finance-contract .contract-actions button:hover { background: #123f32; }
.finance-contract .contract-actions a { color: #197355; background: white; }
.finance-contract .contract-actions a:hover { background: #e8f3ed; }
.finance-contract .contract-actions > *, .finance-information .button { font-size: var(--font-caption); }
.contract-actions .icon { color: inherit; width: 18px; height: 18px; }

.finance-period { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.finance-period .icon { width: 16px; height: 16px; flex: none; }
.finance-period .file-type-pdf { color: #bd2d3a; }
.finance-table-wrap tbody tr > * { border-bottom: 1px solid #d6e1da; }
.finance-table-wrap tbody tr:last-child > * { border-bottom: 0; }

.kb-page { min-width: 0; }
.kb-page, .support-page { font-size: var(--font-ui); }
.client-knowledge-layout .kb-results { flex: 1; align-items: stretch; }
.kb-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.kb-search-field { position: relative; flex: 1 1 220px; }
.kb-search-field > .icon { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: #197355; pointer-events: none; }
.kb-search-field input { width: 100%; padding: 10px 12px 10px 42px; }
.kb-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kb-heading h2, .kb-section h2 { margin: 0; }
.kb-heading button { background: transparent; border: 0; color: #197355; font: inherit; font-weight: 600; cursor: pointer; }
.kb-topics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(155px,100%),1fr)); gap: 10px; }
.kb-topics button { background: white; color: #202b28; padding: 14px; text-align: left; display: grid; align-content: start; gap: 6px; border: 1px solid #d4e0d9; border-radius: 8px; font: inherit; cursor: pointer; }
.kb-topics button .icon, .kb-section h2 .icon { color: #197355; }
.kb-topics button .icon { box-sizing: border-box; width: 34px; height: 34px; padding: 7px; background: #e8f3ed; border-radius: 8px; }
.kb-topics small, .kb-empty, .kb-count { color: #50625a; }
.kb-topics button:hover, .kb-topics button[aria-pressed=true] { background: #e8f3ed; border-color: #197355; }
.kb-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: start; }
.kb-section h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.kb-section summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.kb-section details { overflow-wrap: anywhere; border-top: 1px solid #dce6e0; }
.kb-section details a { color: #197355; text-decoration: underline; }
.kb-count:empty { display: none; }
.kb-page [hidden] { display: none; }
@media (max-width: 720px) { .kb-results { grid-template-columns: 1fr; } }

.kb-intro-banner { display: flex; align-items: center; min-height: 155px; position: relative; overflow: hidden; border-radius: 10px; background: #073e31; }
.kb-intro-copy { width: 55%; padding: 16px clamp(16px, 3vw, 48px); }
.kb-intro-copy h2 { margin: 0; color: white; }
.kb-intro-copy p { margin: 6px 0 0; color: #edf8f2; }
.kb-intro-photo { position: absolute; inset: 0 0 0 auto; width: 44%; height: 100%; mask-image: linear-gradient(to right, transparent, black 18%); }
@media (max-width: 600px) {
  .kb-intro-banner { flex-direction: column; align-items: stretch; }
  .kb-intro-copy { width: auto; }
  .kb-intro-photo { position: static; width: 100%; height: auto; aspect-ratio: 466 / 136; mask-image: none; }
}

.support-photo { object-fit: cover; object-position: center; }
.support-title, .support-page .client-card h2 { display: flex; align-items: center; gap: 10px; }
.support-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.support-page .client-card { padding: 16px; }
.support-page .client-card h2 { margin: 0; }
.support-page .client-card p, .support-page address { margin: 8px 0 14px; font-style: normal; line-height: 1.5; }
.support-grid .client-card { display: flex; flex-direction: column; }
.support-page .support-hours { background: #e8f3ed; }
.support-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.support-emails { margin-top: auto; }
.support-command { font-size: var(--font-caption); display: inline-flex; justify-content: center; align-items: center; min-height: 38px; padding: 6px 12px; border: 1px solid #197355; border-radius: 7px; color: #155e47; font-weight: 600; cursor: pointer; text-decoration: none; }
.support-command:hover { background: #e8f3ed; }
.support-command.primary { background: #197355; color: white; }
.support-command.primary:hover { background: #123f32; }
.support-emails a { display: grid; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; color: #155e47; }
.support-lower { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.support-side { display: grid; gap: 12px; }
.support-subjects { min-height: 115px; }
.support-page .kb-intro-copy { position: relative; padding-left: clamp(34px, 4vw, 64px); }
.support-page .kb-intro-copy::before { content: ""; position: absolute; top: 18px; bottom: 18px; left: clamp(16px, 2.6vw, 42px); width: 4px; border-radius: 4px; background: #31d991; }
.support-page .kb-intro-copy p { max-width: 50ch; }
.support-channel { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 12px; align-items: start; }
.support-page .support-channel h2 { font-size: var(--font-ui); }
.support-channel .client-symbol { width: 46px; height: 46px; }
.support-channel .icon { width: 26px; height: 26px; }
.support-actions .support-command { flex: 1 1 125px; white-space: nowrap; }
.support-emails summary.support-command { display: flex; width: 100%; gap: 8px; list-style: none; }
.support-emails summary::-webkit-details-marker { display: none; }
.support-emails summary .icon { width: 16px; height: 16px; }
.support-emails[open] summary .icon { transform: rotate(180deg); }
.support-page .support-office { background: #e8f3ed; }
.support-page .support-library { position: relative; padding-right: clamp(64px,7vw,112px); }
.support-doc-art { position: absolute; right: 12px; bottom: 14px; color: #83b9a1; pointer-events: none; }
.support-doc-art .icon { width: clamp(42px,5vw,80px); height: auto; stroke-width: 1; }
.support-page .client-banner { margin-top: auto; }
@media (max-width: 1150px) { .support-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 650px) { .support-grid, .support-lower { grid-template-columns: 1fr; } }

.support-channel p, .support-actions a[href^="tel:"] { font-size: var(--font-ui); }
.support-number { white-space: nowrap; }
.notices-list { flex: 1; font-size: var(--font-ui); }
.notices-list .home-panel-heading a { margin-left: auto; font-size: var(--font-caption); }

.notice-workspace { display:grid; grid-template-columns:minmax(230px,32%) minmax(0,1fr); gap:12px; flex:1; }
.notice-choices { list-style:none; padding:0; margin:12px 0 0; }
.notice-choices button { width:100%; display:grid; gap:3px; padding:12px; text-align:left; color:inherit; background:white; border:0; border-bottom:1px solid var(--line); }
.notice-choices button[aria-pressed=true], .notice-choices button:hover { background:#e8f3ed; }
.notice-choices strong, .notice-preview { overflow-wrap:anywhere; }
.notice-preview { display:flex; flex-direction:column; gap:10px; align-items:flex-start; font-size:var(--font-ui); }
.notice-preview h2 { font-size:var(--font-body); }
.notice-preview iframe { width:100%; min-height:55vh; flex:1; border:1px solid var(--line); }
[data-notice-targets] { max-height:220px; overflow:auto; border:1px solid var(--line); }
[data-notice-targets] label { display:block; }
@media(max-width:760px) { .notice-workspace {grid-template-columns:minmax(0,1fr);} .notice-choices {max-height:32vh;overflow:auto;} }

.client-notices-layout .main-frame { height:100dvh; overflow:hidden; }
.client-notices-layout .content, .notices-page, .notice-workspace { min-height:0; }
.notices-page .client-banner { flex:none; }
.notice-workspace { grid-template-rows:minmax(0,1fr); }
.notices-list { display:flex; flex-direction:column; min-height:0; }
.notice-choices { flex:1; min-height:0; overflow:hidden; }
.notice-inbox-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px; border-bottom:1px solid var(--line); }
.notice-inbox-heading nav { display:flex; gap:4px; }
.notice-inbox-heading nav a { display:inline-flex; align-items:center; padding:7px 9px; border-radius:6px 6px 0 0; color:var(--muted); text-decoration:none; }
.notice-inbox-heading nav a[aria-current] { color:var(--deep); background:var(--soft); box-shadow:inset 0 -2px var(--green); font-weight:600; }
.notice-inbox-heading > a { font-size:var(--font-meta); }
.notice-choices button { height:80px; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:22px 18px 16px; align-items:center; align-content:center; gap:2px 6px; padding:6px 10px; line-height:1.25; }
.notice-choices button > :is(strong,span) { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.notice-choices button strong { grid-row:1; grid-column:1/-1; font-size:var(--font-ui); font-weight:600; }
.notice-choices button[data-unread=true] strong { grid-column:1; }
.notice-choices button > span { grid-row:2; grid-column:1/-1; color:var(--muted); }
.notice-choices time { grid-row:3; grid-column:1/-1; font-size:var(--font-meta); color:var(--muted); }
.notice-choices .notice-status { grid-row:1; grid-column:2; }
.notice-choices button[aria-pressed=true] { box-shadow:inset 3px 0 #197355; }
.notice-pager { display:flex; align-items:center; justify-content:space-between; gap:4px; }
.notice-pager[hidden], .notice-choices li[hidden] { display:none; }
.notice-pager button { padding:4px; }
.notice-preview { min-height:0; overflow:auto; overscroll-behavior:contain; }
.notice-preview iframe { flex:1 0 12rem; min-height:12rem; }
.notice-confirmation { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); z-index:100; pointer-events:none; width:max-content; max-width:90vw; padding:16px 24px; border-radius:8px; background:#123f32; color:white; box-shadow:0 4px 18px #123f3233; }
@media(max-width:760px) {
  .notice-workspace { grid-template-rows:auto minmax(0,1fr); }
  .notice-choices { height:80px; flex:none; margin-top:4px; }
  .notices-page .home-welcome { min-height:0; }
}

.publication-tab-count { display:inline-grid; place-items:center; min-width:18px; height:18px; margin-inline-start:5px; padding-inline:4px; border-radius:1rem; background:#197355; color:white; font-size:var(--font-meta); font-weight:600; }

.notice-highlights { flex:none; padding:10px 12px; margin-bottom:10px; background:#f2f8f4; border:1px solid #d6e7dc; border-radius:8px; }
.notice-highlights h2 { display:flex; align-items:center; gap:6px; margin:0 0 3px; color:#197355; font-size:.875rem; }
.notice-highlights a { display:flex; align-items:center; gap:8px; padding:4px 0; color:#123f32; font-size:.875rem; font-weight:600; text-decoration:none; }
.notice-highlights a span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.notice-highlights a:hover span, .notice-highlights a:focus-visible span { text-decoration:underline; }
.notice-highlights small { flex:none; }
[data-feature-date][hidden] { display:none; }

.agenda-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: inherit; flex: 1; }
.agenda-columns .agenda-section { margin: 0; min-width: 0; }
.agenda-columns .agenda-summary { gap: 6px; margin: 8px 0; }
.agenda-columns .agenda-summary button { padding: 6px 8px; overflow-wrap: anywhere; font-size: var(--font-meta); }
.agenda-columns .agenda-summary strong { font-size: var(--font-body); }
.agenda-columns .agenda-day { min-height: 38px; }
.agenda-columns .agenda-toolbar, .agenda-columns .agenda-period { margin-bottom: 8px; }
.agenda-columns .agenda-calendar { margin-bottom: 0; }
.agenda-filter-disclosure summary { cursor: pointer; color: var(--green); font-weight: 600; }
.agenda-filter-disclosure .agenda-filters { margin-top: 6px; }
.agenda-columns .pending-list { overflow-wrap: anywhere; }
@media (min-width: 1021px) and (min-height: 600px) {
  .agenda-columns { min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .agenda-columns .agenda-section { overflow: auto; }
}
@media (max-width: 1020px) {
  .agenda-columns { grid-template-columns: minmax(0, 1fr); align-content: start; }
}

#pending-notifications .pending-list li { padding: 2px 0; }
.inbox-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-inline-start: 3px solid transparent; border-radius: 5px; background: white; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.inbox-copy { display: grid; gap: 2px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.inbox-copy small { color: var(--muted); font-size: var(--font-meta); }
.inbox-copy strong { font-weight: 400; }
.inbox-status { background: var(--canvas); color: var(--muted); border-radius: 6px; padding: 2px 8px; font-size: var(--font-meta); white-space: nowrap; }
.inbox-row[data-seen=false] { background: #f0f7f2; border-inline-start-color: var(--green); }
.inbox-row[data-seen=false] strong { font-weight: 600; }
.inbox-row[data-seen=false] .inbox-status { color: var(--green); background: #deeee2; font-weight: 600; }
.inbox-row:hover { box-shadow: inset 0 0 0 1px var(--line); }
.inbox-row:focus-visible { outline-offset: -2px; }

@media (min-width: 1021px) {
  .pending-center { grid-template-columns: minmax(0,3fr) minmax(0,1fr); }
}
.inbox-detail { min-width: 0; min-height: 0; overflow: auto; overflow-wrap: anywhere; }
.inbox-detail h2, #pending-notifications .home-panel-heading h2 { font-size: var(--font-heading); font-weight: 700; }
.inbox-copy strong { color: var(--text); font-weight: 600; font-size: var(--font-body); }
.inbox-row[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--green); }
.inbox-reader { display: grid; align-content: start; gap: 12px; }
.inbox-reader > header { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.inbox-reader > header small, .inbox-reader dt { color: var(--muted); font-size: var(--font-meta); }
.inbox-reader > header h2 { margin-top: 4px; color: var(--deep); font-size: var(--font-display); }
.inbox-reader .dialog-body { padding: 0; }
.inbox-reader .agenda-details-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,120px),1fr)); gap: 10px; }
.inbox-reader dd { font-weight: 600; }
.inbox-reader section { border-top: 1px solid var(--line); padding-top: 9px; }
.inbox-reader h3 { font-size: var(--font-body); margin-bottom: 5px; }
.inbox-reader .pill { justify-self: start; width: fit-content; }
.inbox-reader iframe, .inbox-reader .document-frame { width: 100%; height: 34vh; min-height: 160px; border: 1px solid var(--line); }
.inbox-reader .pending-item { flex-wrap: wrap; padding: 4px 0; }
.inbox-reader ul { padding-left: 1.2em; }
.inbox-reader .pending-list { padding: 0; }
@media (max-width:1020px) {
  #pending-notifications .pending-list { max-height: 47vh; overflow: auto; }
  .inbox-detail { scroll-margin-top: 64px; }
}

.home-campaigns { display: grid; grid-auto-rows: minmax(0, 1fr); gap: 7px; min-width: 0; }
.client-home .home-campaigns { padding: 5px; }
.home-campaign { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: clamp(7px,.65vw,12px); min-width: 0; padding: 6px clamp(8px,.7vw,14px); border: 1px solid var(--line); border-radius: 11px; color: #172a23; text-decoration: none; background: var(--canvas); cursor: pointer; transition: background-color 170ms,border-color 170ms; }
.home-campaign[data-theme="mint"] { background: linear-gradient(105deg,#fff9,transparent),#edf7f1; }
.home-campaign::after { content: ""; position: absolute; z-index: -1; right: -22px; bottom: -52px; width: 118px; height: 118px; border-radius: 80% 20% 0 0; background: linear-gradient(130deg,#cdeddc,#e7f6ed); }
.campaign-symbol { display: grid; place-items: center; width: clamp(40px,2.9vw,54px); aspect-ratio: 1; border-radius: 11px; background: #d9f3e4; color: #197355; }
.campaign-symbol .icon, .campaign-symbol img { width: 60%; height: 60%; object-fit: contain; }
.campaign-copy { display: grid; gap: 3px; min-width: 0; }
.campaign-copy strong { font-size: clamp(.875rem,.88vw,1rem); line-height: 1.15; color: #172a23; }
.campaign-copy > span { font-size: .72rem; line-height: 1.22; color: #43594f; }
.campaign-arrow { display: grid; color: #197355; transition: transform 170ms; }
.campaign-arrow .icon { width: 20px; height: 20px; }
.home-campaign:is(:hover,:focus-visible) { background-color: #d9f3e4; border-color: #84b79a; }
.home-campaign:is(:hover,:focus-visible) .campaign-arrow { transform: translateX(3px); }
#finance-services { scroll-margin-top: 70px; }
@media(min-width:1280px) {
  .home-company-grid:has(.home-campaigns) { grid-template-columns: minmax(0,35fr) minmax(0,37fr) minmax(0,28fr); }
  .home-company-grid .home-panel-heading { flex-wrap: wrap; }
  .home-company-grid .home-company-details { gap: 7px 12px; }
}
@media(min-width:761px) and (max-width:1279px) {
  .home-company-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-campaigns { grid-column: 1/-1; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .home-campaign { min-height: 82px; }
}
@media(max-width:760px) {
  .home-company-grid { grid-template-columns: minmax(0,1fr); }
  .home-campaign { min-height: 76px; }
}
@media(prefers-reduced-motion: reduce) {
  .home-campaign, .campaign-arrow { transition: none; }
  .home-campaign:is(:hover,:focus-visible) .campaign-arrow { transform: none; }
}
@media(min-width:1280px) {
  .home-company-grid .home-company-details { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-company-grid .home-company-identity { grid-template-columns: minmax(0,1fr) auto; }
  .home-company-grid .home-company-identity [data-field="cnpj"] { grid-column: 2; grid-row: 1 / span 2; }
}

.account-page .support-title { min-width: 0; overflow-wrap: anywhere; }
.account-grid { display: grid; gap: 12px; align-items: start; }
.account-grid .home-panel-heading h2 { font-size: var(--font-heading); }
.account-grid .client-card { overflow-wrap: anywhere; }
.account-grid .field { min-width: 0; }
.account-grid .field input { width: 100%; min-width: 0; }
.account-grid .stack, .account-grid .form-grid { gap: 10px; }
.account-password form { margin-top: 12px; }
.account-password button { justify-self: start; }
.account-password [data-auth-message]:empty { display: none; }
@media (min-width: 1021px) {
  .account-grid { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
  .account-grid:has(#account-company:first-child) { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
  .account-grid .form-grid > .field:first-of-type,
  .account-grid .form-grid > .company-form-section + .field { grid-column: 1 / -1; }
}

.documents-page { font-size: var(--font-ui); }
.documents-page .home-welcome { align-items: center; flex-wrap: wrap; }
.documents-page .support-title { min-width: 0; }
.documents-page .document-company select { width: 100%; }
.documents-page .document-categories {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  margin-bottom: 12px;
}
.documents-page .document-category { font: inherit; gap: 3px; overflow-wrap: anywhere; }
.documents-page .document-category .icon { width: 18px; height: 18px; }
.documents-page .document-columns, .documents-page .document-side { min-width: 0; gap: 12px; }
.documents-page :is(.document-list, .document-timeline, .document-help) {
  min-width: 0; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 2px 4px #122f2310;
}
.documents-page h2 { display: flex; align-items: center; gap: 8px; font-size: var(--font-heading); }
.documents-page h2 .icon { flex: none; width: 18px; height: 18px; margin: 0; color: var(--deep); }
.documents-page .document-list-heading { padding: 0 0 8px; }
.documents-page .document-list .table-wrap { margin: 0; }
.documents-page .document-empty { padding: 0; }
.documents-page .client-banner { margin-top: auto; }
@media (max-width: 600px) {
  .documents-page .document-company, .documents-page .document-list-heading .field { flex-basis: 100%; }
  .documents-page .document-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .documents-page .document-side { grid-template-columns: minmax(0, 1fr); }
}
.document-category-label .icon { width: 1em; height: 1em; vertical-align: -.15em; }
.document-center .document-category .icon { color: var(--category-text, var(--green)); }
.document-center .document-category[aria-pressed="true"] { background: var(--category-bg, var(--soft)); }
.document-subfilter { max-width: 30rem; margin-bottom: 12px; }
.folder-settings li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.folder-settings li .button { margin-left: auto; }
.access-matrix th[scope="row"] { white-space: normal; overflow-wrap: anywhere; }
.access-matrix th[scope="row"] .icon { width: 1rem; height: 1rem; vertical-align: middle; color: var(--green); }
.access-matrix th[scope="row"] small { display: block; margin-top: 3px; color: var(--muted); font-weight: 400; }
.access-matrix th[scope="row"]:not(:has(.icon)) { padding-left: 2rem; font-weight: 400; }

.documents-page .document-subfilter {
  max-width: none;
  min-width: 0;
  margin: 0;
}
.documents-page .document-subfilter select { width: 100%; }
.documents-page .document-list .table-wrap { max-height: 55dvh; }
.documents-page .document-list thead th { position: sticky; top: 0; z-index: 1; }

@media (min-width: 1021px) {
  .documents-page .document-columns {
    grid-template-columns: minmax(0, 2.1fr) minmax(235px, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .documents-page .document-columns:has(> .document-subfilter:not([hidden])) {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .documents-page .document-list { grid-column: 1; grid-row: 1 / -1; }
  .documents-page .document-subfilter, .documents-page .document-side { grid-column: 2; }
  .documents-page .document-side { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1021px) and (min-height: 540px) {
  .client-documents-layout .main-frame { height: 100dvh; }
  .client-documents-layout .content, .documents-page { min-height: 0; }
  .documents-page > :is(.home-welcome, .home-filter-label, .client-banner) { flex: none; }
  .documents-page .document-center {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .documents-page .document-categories { max-height: 28%; overflow-y: auto; flex: none; }
  .documents-page .document-columns { flex: 1; min-height: 0; align-items: stretch; }
  .documents-page .document-list { display: flex; flex-direction: column; min-height: 0; }
  .documents-page .document-list-heading, .documents-page .document-more { flex: none; }
  .documents-page .document-more { align-self: flex-start; }
  .documents-page .document-list .table-wrap { flex: 1; min-height: 0; max-height: none; overflow: auto; }
  .documents-page .document-side { align-content: start; min-height: 0; overflow-y: auto; }
}

.documents-page .document-subfilter {
  align-self: start;
  padding: 9px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--green);
  border-radius: var(--radius);
}
.subfilter-heading { display: flex; gap: 7px; align-items: center; font-size: var(--font-ui); }
.subfilter-heading .icon { width: 17px; height: 17px; color: var(--green); }
.documents-page .document-subfilter select { min-height: 32px; padding-block: 4px; font-size: var(--font-ui); }
.documents-page .document-list table { font-size: var(--font-ui); line-height: 1.25; }
.documents-page .document-list :is(th,td) { padding: 3px 6px; }
.documents-page .document-list th { font-size: var(--font-caption); padding-block: 6px; }
.documents-page .document-list .document-name { gap: 6px; }
.documents-page .document-list .file-type-icon { width: 19px; height: 19px; flex: none; }
.documents-page .document-list .document-title,
.documents-page .document-list .document-title .button { min-height: 0; font: inherit; line-height: 1.25; }
.documents-page .document-list .document-download { width: 26px; height: 26px; min-height: 0; padding: 4px; }
.documents-page .document-list .document-download .icon { width: 16px; height: 16px; }
.documents-page .document-list .document-category-label { line-height: 1.2; }
.documents-page .doc-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-due { padding: 2px 5px; color: #704609; background: #fcf0d8; border-radius: 4px; font-weight: 600; }
.documents-page tr[data-seen="false"] td { background: #f0f7f2; }
.documents-page tr[data-seen="false"] td:first-child { box-shadow: inset 3px 0 var(--green); }
.documents-page tr[data-seen="false"] .document-title { font-weight: 600; }
.documents-page tr[data-seen="false"] .inbox-status { background: #deeee2; color: var(--green); font-weight: 600; }
@media (min-width: 1021px) {
  .documents-page .document-columns { grid-template-columns: minmax(0,3fr) minmax(230px,1fr); }
}
@media (max-width: 600px) {
  .documents-page .document-list table { min-width: 32rem; }
}
.documents-page .document-list table { min-width: 38rem; }
.documents-page .document-list .document-category-label {
  max-width: 10rem; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; vertical-align: middle;
}
.documents-page .document-list .document-name-copy { flex: 1; }
@media (max-width: 450px) {
  .documents-page .document-list table { min-width: 31rem; }
  .documents-page .document-list .document-mobile-category { margin-top: 1px; }
}
