*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:#f4f7f9;color:#17212b}.layout{display:flex;min-height:100vh}.sidebar{width:245px;background:#102f3d;color:#fff;position:fixed;left:0;top:0;bottom:0;padding:22px 15px;z-index:10}.brand{display:flex;align-items:center;gap:11px;padding:8px 10px 28px}.brand-mark{width:40px;height:40px;border-radius:10px;background:#fff;color:#102f3d;display:grid;place-items:center;font-weight:800}.brand small{display:block;opacity:.65;font-size:11px;margin-top:2px}.sidebar nav a,.sidebar-bottom a{display:flex;gap:12px;align-items:center;padding:13px 12px;color:#d9e6eb;text-decoration:none;border-radius:9px;margin:4px 0}.sidebar nav a:hover,.sidebar-bottom a:hover{background:#1b4657;color:#fff}.sidebar-bottom{position:absolute;bottom:18px;left:15px;right:15px}.main{margin-left:245px;width:calc(100% - 245px)}.topbar{height:68px;background:#fff;border-bottom:1px solid #e2e8eb;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.user-box{font-size:13px;color:#52636c}.menu-btn{display:none}.content{padding:28px}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.page-head h1{margin:0;font-size:25px}.btn{display:inline-block;background:#12647b;color:#fff;text-decoration:none;border:0;padding:11px 16px;border-radius:8px;cursor:pointer}.btn.secondary{background:#e7eef1;color:#23404c}.btn.danger{background:#b33a3a}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card{background:#fff;border:1px solid #e4eaed;border-radius:12px;padding:20px}.card .label{font-size:13px;color:#667780}.card .number{font-size:30px;font-weight:750;margin-top:8px}.panel{background:#fff;border:1px solid #e4eaed;border-radius:12px;padding:20px;margin-top:20px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:12px 10px;border-bottom:1px solid #edf1f3;font-size:14px}.table th{font-size:12px;text-transform:uppercase;color:#657780}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.field label{display:block;font-size:13px;font-weight:650;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;padding:11px;border:1px solid #ccd7dc;border-radius:7px;background:#fff;font:inherit}.field textarea{min-height:100px;resize:vertical}.full{grid-column:1/-1}.actions{display:flex;gap:8px;margin-top:18px}.badge{display:inline-block;padding:5px 9px;border-radius:20px;background:#edf3f5;font-size:12px}.flash{padding:12px 15px;border-radius:8px;background:#e5f4ea;margin-bottom:16px}.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#102f3d,#1c5b6d)}.login-card{width:390px;max-width:92%;background:#fff;border-radius:16px;padding:35px;box-shadow:0 18px 60px #071d2670}.login-card h1{margin:0 0 4px}.login-card p{color:#6b7b82;margin-top:5px}.login-card .field{margin-top:18px}.login-card .btn{width:100%;margin-top:22px}.error{background:#fae7e7;color:#8e2d2d;padding:10px;border-radius:7px;font-size:13px}.empty{text-align:center;color:#788991;padding:30px}.mini-list{display:grid;gap:10px}.mini-item{padding:12px;background:#f7f9fa;border-radius:8px}.priority-Urgente{color:#a51f1f;font-weight:700}.priority-Alta{color:#c55a00;font-weight:700}.priority-Média{color:#8a6900;font-weight:700}@media(max-width:850px){.sidebar{transform:translateX(-100%);transition:.2s}.menu-open .sidebar{transform:translateX(0)}.main{margin-left:0;width:100%}.menu-btn{display:block;border:0;background:none;font-size:22px}.topbar{padding:0 16px}.content{padding:18px}.cards{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}}@media(max-width:500px){.cards{grid-template-columns:1fr}.page-head{align-items:flex-start;gap:10px;flex-direction:column}}

.version-top{display:inline-block;background:#edf3f5;color:#38505b;padding:4px 8px;border-radius:20px;font-size:11px;font-weight:700}.version-label{font-size:12px;color:#788991;margin-top:5px}.sidebar-version{position:absolute;bottom:68px;left:27px;color:#9db3bc;font-size:11px}.sidebar-version small{display:block;margin-top:2px;opacity:.7}.deadline{white-space:nowrap;font-weight:650}.deadline-overdue{display:inline-block;white-space:nowrap;background:#fae7e7;color:#9b2626;padding:5px 8px;border-radius:6px;font-size:12px;font-weight:750}.movements-table td{vertical-align:top}.movements-table td:nth-child(4),.movements-table td:nth-child(5){min-width:180px}
.cell-muted{font-size:11px;color:#7a8a92;margin-top:4px}.table-actions{white-space:nowrap}.btn-small{padding:7px 9px;font-size:12px}.movement-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.summary-value{font-size:18px;font-weight:700;margin-top:10px}.description-text{line-height:1.6;color:#40535d}.panel-title-row,.timeline-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.timeline{position:relative;margin-top:20px}.timeline:before{content:"";position:absolute;left:8px;top:8px;bottom:8px;width:2px;background:#dce6ea}.timeline-item{position:relative;padding-left:34px;margin-bottom:18px}.timeline-dot{position:absolute;left:1px;top:18px;width:16px;height:16px;border-radius:50%;background:#12647b;border:3px solid #fff;box-shadow:0 0 0 2px #cbdade}.timeline-card{background:#f8fafb;border:1px solid #e2e9ec;border-radius:10px;padding:16px}.timeline-head span{font-size:12px;color:#70818a}.timeline-note{margin:12px 0;padding:10px 12px;background:#fff;border-radius:7px;border-left:3px solid #12647b}.history-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px}.history-grid>div{background:#fff;border-radius:7px;padding:10px}.history-grid small{display:block;color:#74858d;margin-bottom:5px}.history-grid span{font-size:13px}.no-margin{margin-top:0}@media(max-width:850px){.movement-summary{grid-template-columns:repeat(2,1fr)}.history-grid{grid-template-columns:1fr}}@media(max-width:500px){.movement-summary{grid-template-columns:1fr}.panel-title-row,.timeline-head{align-items:flex-start;flex-direction:column}.table-actions{white-space:normal}}

.mini-item-action{display:flex;align-items:center;justify-content:space-between;gap:14px}.btn:disabled{opacity:.45;cursor:not-allowed}@media(max-width:600px){.mini-item-action{align-items:flex-start;flex-direction:column}}

/* V1.4.0 - ações compactas e departamentos */
.icon-actions{display:flex;align-items:center;gap:6px}.icon-btn{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d7e1e5;border-radius:8px;background:#f7fafb;color:#23404c;text-decoration:none;transition:.15s;vertical-align:middle}.icon-btn:hover{background:#e9f1f4;border-color:#b9cbd2;transform:translateY(-1px)}.icon-btn svg{width:17px;height:17px;fill:currentColor}.icon-btn.advance{color:#12647b;background:#eef7f9}.icon-btn.danger-soft{color:#a73636;background:#fff4f4}.icon-btn.success-soft{color:#287447;background:#eff9f2}.badge-active{background:#e8f5ec;color:#287447}.badge-inactive{background:#f1f2f3;color:#68777e}.checkbox-field label{display:flex;align-items:center;gap:8px}.checkbox-field input{width:auto}.mini-item-action .icon-btn{flex:0 0 auto}

.nav-main{width:100%;border:0;background:none;text-align:left;font:inherit;cursor:pointer;display:flex;align-items:center}
.nav-main b{margin-left:auto;font-size:12px;transition:.2s}.submenu{display:none;padding:2px 0 6px 20px}.submenu.open{display:block}.submenu a{font-size:13px;padding:9px 12px!important;margin:1px 0!important}.version{font-size:11px;opacity:.65;padding:0 12px 8px}.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.filters select,.filters input{padding:9px 10px;border:1px solid #ccd7dc;border-radius:7px;background:#fff}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.bar-row{display:grid;grid-template-columns:180px 1fr 40px;gap:10px;align-items:center;margin:10px 0}.bar{height:8px;background:#e9eef0;border-radius:10px;overflow:hidden}.bar span{display:block;height:100%;background:#12647b}.icon-action{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:7px;border:1px solid #d9e2e6;background:#fff;text-decoration:none;color:#23404c}.icon-action:hover{background:#eef4f6}.icon-action svg{width:17px;height:17px}
@media(max-width:850px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.bar-row{grid-template-columns:120px 1fr 30px}}

:root{--sidebar-w:245px;--sidebar-mini:78px}
.sidebar{width:var(--sidebar-w);transition:width .22s ease,transform .22s ease;overflow-x:hidden}
.sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sidebar .brand{padding:8px 8px 24px;min-width:190px}
.sidebar-collapse{width:34px;height:34px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:rgba(255,255,255,.06);color:#fff;cursor:pointer;flex:0 0 auto}
.nav-icon{width:22px;display:inline-grid;place-items:center;flex:0 0 22px}
.nav-label,.brand-text,.version,.nav-toggle b{transition:opacity .15s ease}
.sidebar-collapsed .sidebar{width:var(--sidebar-mini)}
.sidebar-collapsed .main{margin-left:var(--sidebar-mini);width:calc(100% - var(--sidebar-mini))}
.sidebar-collapsed .brand-text,.sidebar-collapsed .nav-label,.sidebar-collapsed .version,.sidebar-collapsed .nav-toggle b{display:none}
.sidebar-collapsed .sidebar .brand{min-width:0;padding-left:4px}
.sidebar-collapsed .sidebar-head{justify-content:center;flex-direction:column}
.sidebar-collapsed .sidebar-collapse{margin-bottom:8px}
.sidebar-collapsed .nav-main,.sidebar-collapsed .sidebar-bottom a{justify-content:center;padding-left:0;padding-right:0}
.sidebar-collapsed .submenu{display:none!important}
.sidebar-collapsed .sidebar-bottom{left:10px;right:10px}
.main{transition:margin-left .22s ease,width .22s ease}

.dashboard-hero{display:grid;grid-template-columns:1.45fr .85fr;gap:18px;margin-bottom:18px}
.hero-card{background:linear-gradient(135deg,#123847,#1c5f71);color:#fff;border-radius:16px;padding:26px;position:relative;overflow:hidden}
.hero-card:after{content:"";position:absolute;right:-60px;top:-70px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.07)}
.hero-card h2{margin:0 0 8px;font-size:28px}
.hero-card p{margin:0;color:#dbe9ee;max-width:620px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.hero-actions .btn{background:#fff;color:#123847}
.hero-actions .btn.secondary{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.2)}
.summary-card{background:#fff;border:1px solid #e1e8eb;border-radius:16px;padding:22px}
.summary-card h3{margin-top:0}
.summary-line{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid #edf1f3}
.summary-line:last-child{border-bottom:0}
.dashboard-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:18px}
.dashboard-grid .panel{margin-top:0}
.stat-card{position:relative;overflow:hidden}
.stat-card .stat-icon{position:absolute;right:16px;top:16px;width:38px;height:38px;border-radius:10px;background:#eef5f7;display:grid;place-items:center;font-size:18px}
.stat-card .number{font-size:32px}
.card-sub{font-size:12px;color:#819097;margin-top:5px}
.deadline-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #edf1f3}
.deadline-row:last-child{border-bottom:0}
.deadline-date{font-weight:700;font-size:13px}
.deadline-date.late{color:#b33a3a}
.quick-links{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.quick-link{border:1px solid #e2e9ec;border-radius:10px;padding:14px;text-decoration:none;color:#23404c;background:#fbfcfd}
.quick-link:hover{background:#f2f7f8}
.quick-link strong{display:block;margin-bottom:4px}
.quick-link small{color:#7a8a91}
@media(max-width:1000px){.dashboard-hero,.dashboard-grid{grid-template-columns:1fr}}
@media(max-width:850px){.sidebar-collapsed .main{margin-left:0;width:100%}.sidebar-collapsed .sidebar{width:245px;transform:translateX(-100%)}.menu-open.sidebar-collapsed .sidebar{transform:translateX(0)}}
@media(max-width:600px){.quick-links{grid-template-columns:1fr}.deadline-row{grid-template-columns:1fr auto}}

/* ===== V1.7 Modern SaaS Sidebar ===== */
.modern-sidebar{position:fixed;left:0;top:0;bottom:0;width:264px;background:#102f3a;color:#d9e6e9;z-index:1000;display:flex;flex-direction:column;padding:16px 12px;box-sizing:border-box;transition:width .22s ease;box-shadow:8px 0 30px rgba(13,38,48,.08)}
.ms-brand{height:48px;display:flex;align-items:center;gap:11px;padding:0 4px 10px}
.ms-logo{width:38px;height:38px;border-radius:11px;background:#fff;color:#123b49;display:grid;place-items:center;font-weight:800;font-size:20px;flex:0 0 38px}
.ms-brand-copy{display:flex;flex-direction:column;min-width:0;line-height:1.05}
.ms-brand-copy strong{font-size:15px;letter-spacing:1.2px;color:#fff}
.ms-brand-copy span{font-size:10px;color:#91adb6;margin-top:5px}
.ms-collapse{margin-left:auto;border:0;background:rgba(255,255,255,.07);color:#dbe9ec;width:28px;height:28px;border-radius:8px;font-size:22px;line-height:1;cursor:pointer}
.ms-search{height:39px;background:rgba(255,255,255,.065);border:1px solid rgba(255,255,255,.07);border-radius:10px;display:flex;align-items:center;padding:0 11px;gap:9px;margin:9px 2px 16px}
.ms-search svg,.ms-icon svg,.ms-chevron svg,.ms-logout svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ms-search span{height:18px;color:#8faab3}
.ms-search input{border:0!important;outline:0!important;background:transparent!important;color:#fff!important;width:100%;padding:0!important;font-size:12px;box-shadow:none!important}
.ms-search input::placeholder{color:#7997a1}
.ms-nav{overflow-y:auto;overflow-x:hidden;flex:1;padding-right:2px;scrollbar-width:thin}
.ms-section-title{font-size:9px;font-weight:700;letter-spacing:1.35px;color:#66858f;padding:15px 12px 7px;white-space:nowrap}
.ms-item{width:100%;height:42px;border:0;background:transparent;color:#b9cdd3;border-radius:9px;display:flex;align-items:center;gap:11px;padding:0 11px;text-decoration:none;font:inherit;font-size:13px;cursor:pointer;box-sizing:border-box;text-align:left;margin:2px 0;transition:.15s ease}
.ms-item:hover,.ms-item.active{background:rgba(255,255,255,.075);color:#fff}
.ms-item.active{box-shadow:inset 3px 0 0 #6eb5c7}
.ms-icon{width:20px;height:20px;display:grid;place-items:center;flex:0 0 20px}
.ms-chevron{margin-left:auto;height:18px;transition:transform .18s}
.ms-toggle.open .ms-chevron{transform:rotate(90deg)}
.ms-submenu{display:none;margin:1px 0 7px 31px;padding-left:12px;border-left:1px solid rgba(255,255,255,.10)}
.ms-submenu.open{display:block}
.ms-submenu a{display:block;text-decoration:none;color:#91aab2;font-size:12px;padding:8px 10px;border-radius:7px;margin:1px 0}
.ms-submenu a:hover,.ms-submenu a.active{color:#fff;background:rgba(255,255,255,.055)}
.ms-footer{border-top:1px solid rgba(255,255,255,.075);padding-top:12px;margin-top:8px}
.ms-user{display:flex;align-items:center;gap:10px;padding:6px 4px}
.ms-avatar{width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:#dcebed;color:#143b48;display:grid;place-items:center;font-size:11px;font-weight:800}
.ms-user-copy{display:flex;flex-direction:column;min-width:0;line-height:1.2;flex:1}
.ms-user-copy strong{font-size:11px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-user-copy span{font-size:9px;color:#76949e;margin-top:3px}
.ms-logout{color:#809ca5;width:26px;height:26px;display:grid;place-items:center}
.ms-version{text-align:center;color:#55747e;font-size:9px;padding-top:7px}
body:not(.sidebar-collapsed) .main{margin-left:264px;width:calc(100% - 264px)}
body.sidebar-collapsed .modern-sidebar{width:76px}
body.sidebar-collapsed .main{margin-left:76px;width:calc(100% - 76px)}
body.sidebar-collapsed .ms-brand-copy,body.sidebar-collapsed .ms-search input,body.sidebar-collapsed .ms-section-title,body.sidebar-collapsed .ms-label,body.sidebar-collapsed .ms-chevron,body.sidebar-collapsed .ms-user-copy,body.sidebar-collapsed .ms-logout,body.sidebar-collapsed .ms-version{display:none}
body.sidebar-collapsed .ms-brand{flex-direction:column;height:auto;padding-bottom:6px}
body.sidebar-collapsed .ms-collapse{margin:4px auto 0;transform:rotate(180deg)}
body.sidebar-collapsed .ms-search{justify-content:center;padding:0;width:42px;margin:8px auto 14px}
body.sidebar-collapsed .ms-item{justify-content:center;padding:0;width:46px;margin:3px auto}
body.sidebar-collapsed .ms-submenu{display:none!important}
body.sidebar-collapsed .ms-user{justify-content:center;padding:6px 0}
body.sidebar-collapsed .ms-logo{margin:auto}
@media(max-width:850px){.modern-sidebar{transform:translateX(-100%);width:264px!important}.main,body.sidebar-collapsed .main,body:not(.sidebar-collapsed) .main{margin-left:0;width:100%}.menu-open .modern-sidebar{transform:translateX(0)}}

/* V1.9.0 - Regularidade */
.reg-regular{background:#e8f5ec;color:#287447}.reg-a_vencer{background:#fff5d6;color:#826300}.reg-vencido{background:#fae7e7;color:#9b2626}.reg-sem_vencimento{background:#edf1f3;color:#667780}@media print{.modern-sidebar,.topbar,.page-head .btn,.filters{display:none!important}.main,body:not(.sidebar-collapsed) .main{margin:0!important;width:100%!important}.content{padding:0}.panel{border:0;box-shadow:none}}

/* V1.9.1 - Consulta automática CPF/CNPJ */
.document-lookup-row{display:flex;gap:8px;align-items:stretch}.document-lookup-row input{flex:1}.document-lookup-row .btn{white-space:nowrap}.lookup-status{font-size:12px;margin-top:7px;min-height:17px;color:#667780}.lookup-status.success{color:#287447}.lookup-status.error{color:#9b2626}.lookup-status.loading{color:#12647b}.lookup-status.info{color:#52636c}@media(max-width:600px){.document-lookup-row{flex-direction:column}.document-lookup-row .btn{width:100%}}


/* V1.9.2 - CEP automático e QSA */
.qsa-panel{margin-top:22px;border-top:1px solid #e5ecef;padding-top:20px}.qsa-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.qsa-head h3{margin:0 0 5px;font-size:17px}.qsa-head p{margin:0;color:#6d7e86;font-size:12px;max-width:760px;line-height:1.5}.qsa-table strong{font-weight:700}.qsa-empty{padding:22px 10px}.qsa-panel .table-wrap{border:1px solid #edf1f3;border-radius:9px}@media(max-width:700px){.qsa-head{flex-direction:column}.qsa-table{min-width:800px}}


/* V1.9.3 - Central de Certidões */
.cert-cards{margin-bottom:18px}
.cert-info{margin-top:0;background:#f7fafb}
.cert-info p,.cert-note p{margin:8px 0 0;line-height:1.55;color:#52636c;font-size:13px}
.cert-table td{vertical-align:middle}
.cert-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;min-width:310px}
.cert-primary{background:#12647b!important;color:#fff!important}
.cert-regular{background:#e8f5ec;color:#287447}
.cert-a_vencer{background:#fff5d6;color:#826300}
.cert-vencido{background:#fae7e7;color:#9b2626}
.cert-sem,.cert-sem_vencimento{background:#edf1f3;color:#667780}
.cnd-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
@media(max-width:700px){.cert-table{min-width:1050px}.cert-actions{min-width:280px}}


/* V1.9.4 - Integração SERPRO CND */
.section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}
.section-title h2{margin:0 0 4px;font-size:19px}
.section-title small{color:#718089}
.toggle-line{display:flex!important;align-items:center;gap:9px;font-weight:500!important;padding-top:9px}
.toggle-line input{width:auto!important}
.warning{padding:12px 14px;border-radius:8px;background:#fff5d6;color:#715a00;margin-bottom:14px}
.warning .btn{margin-left:8px}

/* V1.9.5 - Central de Certidões simplificada */
.text-right{text-align:right}
.cert-action-cell{text-align:right;white-space:nowrap}
.cert-action-wrap{position:relative;display:inline-flex;align-items:center;gap:5px}
.cert-more{width:34px;height:32px;border:1px solid #d7e0e4;border-radius:7px;background:#fff;cursor:pointer;font-size:21px;line-height:1;color:#52636c}
.cert-more:hover{background:#f3f6f7}
.cert-menu{display:none;position:absolute;right:0;top:38px;z-index:100;width:245px;padding:7px;background:#fff;border:1px solid #dfe6e9;border-radius:10px;box-shadow:0 12px 30px rgba(31,48,58,.16);text-align:left}
.cert-action-wrap.open .cert-menu{display:block}
.cert-menu a,.cert-menu-link{display:block;width:100%;padding:9px 10px;border:0;background:transparent;border-radius:6px;color:#31444d;text-decoration:none;font:inherit;text-align:left;cursor:pointer}
.cert-menu a:hover,.cert-menu-link:hover{background:#f2f6f7}
.cert-menu-sep{height:1px;background:#e9eef0;margin:5px 0}
.bulk-toolbar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:14px}
.bulk-toolbar #bulkCount{color:#667780;margin-left:auto}
@media(max-width:850px){.cert-action-cell{text-align:left}.cert-menu{right:auto;left:0}}


/* V1.9.6 - Ações por ícones e abertura segura de arquivos */
.cert-icon-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}
.icon-btn{
  width:34px;
  height:34px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d7e0e4;
  border-radius:8px;
  background:#fff;
  color:#52636c;
  cursor:pointer;
  text-decoration:none;
  transition:.15s ease;
}
.icon-btn:hover{
  background:#f2f6f7;
  border-color:#becbd1;
  color:#173f4c;
  transform:translateY(-1px);
}
.icon-btn svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.icon-primary{
  background:#12647b;
  border-color:#12647b;
  color:#fff;
}
.icon-primary:hover{
  background:#0e5367;
  border-color:#0e5367;
  color:#fff;
}
@media(max-width:850px){
  .cert-icon-actions{justify-content:flex-start}
}


/* V1.9.7 - Leitura inteligente e layouts de certidão */
.pdf-analysis{margin-top:14px;padding:14px;border:1px solid #dce5e8;border-radius:10px;background:#f8fbfc}
.pdf-analysis-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:7px}
.pdf-data-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
.pdf-data-grid>div{padding:9px 10px;border:1px solid #e2e9ec;border-radius:7px;background:#fff}
.pdf-data-grid span{display:block;font-size:11px;color:#73828a;margin-bottom:3px}
.pdf-data-grid strong{font-size:13px;color:#253b45}
.pdf-data-grid .full{grid-column:1/-1}
@media(max-width:850px){.pdf-data-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.pdf-data-grid{grid-template-columns:1fr}}


/* V1.9.8 - Registro único por cliente/documento */
.inline-form{display:inline-flex;margin:0;padding:0}
.icon-danger{color:#a63838}
.icon-danger:hover{background:#fff1f1;border-color:#e8bcbc;color:#8d2626}
.read-value{min-height:42px;padding:10px 12px;border:1px solid #e2e9ec;border-radius:7px;background:#f9fbfc;color:#253b45}
.history-current{border-left:4px solid #12647b}
.history-summary{display:flex;gap:22px;flex-wrap:wrap;margin-top:8px;color:#52636c}


/* V1.9.9 - Controle de documentos por cliente */
.reg-pendente{background:#eef1f4;color:#5b6970}
.regularity-client-panel{margin-top:18px;padding:16px;border:1px solid #dce5e8;border-radius:12px;background:#fbfcfd}
.regularity-config-body{display:none;margin-top:16px}
.regularity-config-body.open{display:block}
.profile-row{display:flex;gap:8px;align-items:center}
.profile-row select{flex:1}
.regularity-doc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:10px}
.regularity-doc-card{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid #dde6e9;border-radius:9px;background:#fff;cursor:pointer}
.regularity-doc-card:hover{border-color:#b8cbd2;background:#f8fbfc}
.regularity-doc-card input{width:auto!important;margin-top:3px}
.regularity-doc-card span{display:block;min-width:0}
.regularity-doc-card strong{display:block;font-size:13px;color:#263e48}
.regularity-doc-card small{display:block;margin-top:3px;color:#718089;font-size:11px;line-height:1.35}
.regularity-selected-summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid #e7edef}
.regularity-confirm h2{font-size:18px;margin:0 0 6px}
.regularity-confirm p{color:#5d6d75}
.pending-doc-list{display:grid;gap:7px;margin:16px 0}
.pending-doc-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e1e8eb;border-radius:8px;background:#fff}
.pending-doc-item strong,.pending-doc-item small{display:block}
.pending-doc-item small{margin-top:3px;color:#74838a}
@media(max-width:800px){
 .regularity-doc-grid{grid-template-columns:1fr}
 .profile-row{align-items:stretch;flex-direction:column}
}


/* V1.10.0 - Teste e reconhecimento tolerante de layouts */
.layout-test-result{margin-top:18px;border-top:1px solid #e4eaed;padding-top:16px}
.layout-test-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.score-ring{width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;border:5px solid #d8e1e5;background:#fff;color:#586971}
.score-ok{border-color:#78b68c;color:#2b7247}
.score-bad{border-color:#df9d9d;color:#9a3030}
.layout-test-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
.layout-test-columns h3{font-size:14px;margin:0 0 8px}
.term-list{display:grid;gap:6px}
.term-chip{font-size:12px;padding:7px 9px;border-radius:7px;border:1px solid #e0e7ea;background:#fff}
.term-chip.ok{color:#2d6c46;background:#f3faf5;border-color:#cfe5d6}
.term-chip.bad{color:#8a3333;background:#fff7f7;border-color:#efd3d3}
#extractedTextWrap,#suggestedTermsWrap{margin-top:14px}
#extractedText{width:100%;font-family:Consolas,monospace;font-size:12px;line-height:1.45}
.suggested-term-list{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.suggested-term{border:1px solid #d9e2e5;background:#fff;border-radius:999px;padding:6px 10px;font-size:12px;cursor:pointer;color:#3e525c}
.suggested-term:hover{background:#f2f7f8}
.suggested-term.used{background:#edf7f0;border-color:#cde3d4;color:#2e7148}
@media(max-width:800px){.layout-test-columns{grid-template-columns:1fr}}


/* V1.10.1 - construtor de layout orientado por documento-base */
.layout-builder-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.builder-step{display:flex;align-items:center;gap:10px;padding:11px 13px;border:1px solid #dde5e8;border-radius:10px;background:#fff;opacity:.68}
.builder-step>span{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#edf2f4;font-weight:700}
.builder-step strong,.builder-step small{display:block}
.builder-step small{color:#738189;margin-top:2px}
.builder-step.active,.builder-step.done{opacity:1;border-color:#bfcfd5}
.builder-step.active>span,.builder-step.done>span{background:#dfecef}
.base-pdf-box{border:1px dashed #cbd7db;border-radius:10px;padding:14px;background:#fbfcfd}
.base-pdf-box.loaded{border-style:solid}
.reader-status{display:none;margin-top:12px;padding:11px 12px;border-radius:8px;background:#f4f7f8}
.reader-status.visible{display:block}
.reader-status strong,.reader-status span{display:block}
.reader-status span{margin-top:3px;color:#68777e;font-size:12px}
.reader-status.success-state{background:#f0f8f2;border:1px solid #cfe3d5}
.reader-status.error-state{background:#fff4f4;border:1px solid #efd1d1}
.layout-builder-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr);gap:14px;align-items:start}
.layout-builder-grid.builder-disabled{opacity:.52;pointer-events:none;filter:grayscale(.1)}
.builder-preview-panel{position:sticky;top:14px}
.score-live-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.score-live-head h2{margin:0}
.score-live-head small{display:block;margin-top:4px;color:#708087}
.recognition-bar{height:9px;background:#e9eef0;border-radius:99px;overflow:hidden;margin:14px 0 8px}
.recognition-bar span{display:block;height:100%;width:0;transition:width .18s ease}
.recognition-bar span.ok{background:#6da47d}
.recognition-bar span.bad{background:#c98a8a}
.recognition-message{font-size:13px;margin-bottom:14px;color:#53656d}
.document-source-head{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid #e6ecee}
.document-source-head strong,.document-source-head small{display:block}
.document-source-head small{margin-top:3px;color:#738189}
.document-source-head input{max-width:220px}
.base-text-viewer{white-space:pre-wrap;max-height:430px;overflow:auto;margin-top:9px;padding:13px;border:1px solid #dfe7ea;border-radius:8px;background:#f9fbfb;font-family:Consolas,monospace;font-size:11px;line-height:1.5;color:#334951}
.suggestion-box{margin-top:14px;padding-top:12px;border-top:1px solid #e6ecee}
.suggestion-box>strong,.suggestion-box>small{display:block}
.suggestion-box>small{margin-top:3px;color:#718088}
.builder-advanced{border:1px solid #e1e8ea;border-radius:8px;padding:10px 12px;background:#fbfcfd}
.builder-advanced summary{cursor:pointer;font-weight:600}
.advanced-grid{margin-top:12px}
@media(max-width:1050px){
 .layout-builder-grid{grid-template-columns:1fr}
 .builder-preview-panel{position:static}
}
@media(max-width:700px){
 .layout-builder-steps{grid-template-columns:1fr}
 .document-source-head{align-items:stretch;flex-direction:column}
 .document-source-head input{max-width:none}
}

/* V1.10.2 - leitura PDF via navegador */
.pdf-reader-health{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:10px}
.diagnostic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.diagnostic-card{border:1px solid #e0e7ea;border-radius:10px;padding:14px;background:#fbfcfd}
.diagnostic-card h3{margin-top:0}
.diagnostic-card p{color:#66767d}
@media(max-width:760px){.diagnostic-grid{grid-template-columns:1fr}}


/* V1.10.3 - Upload inteligente no Controle de Regularidade */
.reg-upload-btn{cursor:pointer}
.reg-upload-modal[hidden]{display:none!important}
.reg-upload-modal{
 position:fixed;inset:0;z-index:9999;background:rgba(19,37,45,.48);
 display:flex;align-items:center;justify-content:center;padding:20px
}
.reg-upload-dialog{
 width:min(620px,100%);background:#fff;border-radius:14px;padding:18px;
 box-shadow:0 22px 70px rgba(0,0,0,.22)
}
.reg-upload-dialog-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.reg-upload-dialog-head strong,.reg-upload-dialog-head small{display:block}
.reg-upload-dialog-head strong{font-size:18px}
.reg-upload-dialog-head small{color:#6f8088;margin-top:4px}
.reg-upload-close{border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:#65777f}
.reg-upload-progress{height:9px;background:#e8eef0;border-radius:999px;overflow:hidden;margin:17px 0 11px}
.reg-upload-progress span{display:block;height:100%;width:0;background:#5d8e9e;transition:width .18s ease}
.reg-upload-progress span.success{background:#65a077}
.reg-upload-progress span.error{background:#be7070}
.reg-upload-status{font-size:14px;line-height:1.5}
.reg-upload-details{margin-top:13px}
.upload-result-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:11px
}
.upload-result-grid>div{border:1px solid #e1e8ea;border-radius:8px;padding:9px 10px;background:#fbfcfd}
.upload-result-grid span,.upload-result-grid strong{display:block}
.upload-result-grid span{font-size:11px;color:#728189;margin-bottom:3px}
.upload-result-grid strong{font-size:13px;overflow-wrap:anywhere}
.success.compact,.warning.compact,.error.compact{padding:9px 11px;margin-top:8px}
@media(max-width:620px){.upload-result-grid{grid-template-columns:1fr}}


/* V1.10.5 - Assistente visual de extração */
.extraction-assistant{
 border:1px solid #dfe7ea;
 border-radius:10px;
 padding:14px;
 background:#fbfcfd;
}
.compact-title{margin-bottom:10px}
.compact-title h3{margin:0}
.assistant-selection-box textarea{width:100%;font-family:Consolas,monospace}
.assistant-actions{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 12px}
.assistant-generated-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px
}
.assistant-generated-grid>div{
 border:1px solid #e1e8ea;border-radius:8px;padding:9px;background:#fff
}
.assistant-generated-grid span,.assistant-generated-grid code{display:block}
.assistant-generated-grid span{font-size:11px;color:#738189;margin-bottom:4px}
.assistant-generated-grid code{
 font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;color:#344951
}
.assistant-test-result{margin-top:12px}
.extract-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.extract-row{border:1px solid #e0e7ea;border-radius:8px;padding:9px;background:#fff}
.extract-row span,.extract-row strong,.extract-row small{display:block}
.extract-row span{font-size:11px;color:#738189}
.extract-row strong{margin-top:3px;font-size:13px;overflow-wrap:anywhere}
.extract-row small{margin-top:3px;color:#7a878d}
.extract-row.ok{border-color:#cfe3d5;background:#f4faf6}
.extract-row.bad{border-color:#efd3d3;background:#fff7f7}
.suggested-term-wrap{
 display:flex;align-items:stretch;border:1px solid #d9e2e5;border-radius:999px;overflow:hidden;background:#fff
}
.suggested-term-wrap .suggested-term{
 border:0;border-radius:0;background:transparent;margin:0
}
.suggested-term-add{
 border:0;border-left:1px solid #e1e7e9;background:#f6f9fa;padding:0 10px;font-size:11px;cursor:pointer;color:#47616b
}
.suggested-term-wrap.used{background:#edf7f0;border-color:#cde3d4}
@media(max-width:760px){
 .assistant-generated-grid,.extract-grid{grid-template-columns:1fr}
}


/* V1.10.6 - Inserção inteligente e Central de Documentos */
.intelligent-document-dialog{width:min(760px,100%)}
.document-stepbar{
 display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:16px
}
.document-stepbar span{
 font-size:11px;text-align:center;padding:7px 5px;border-radius:999px;
 background:#edf1f3;color:#7a878d
}
.document-stepbar span.active{background:#dcebed;color:#315d68;font-weight:700}
.document-recognition-card{border:1px solid #dfe7e9;border-radius:10px;padding:13px;background:#fbfcfd}
.recognition-ok{font-weight:700;margin-bottom:10px}
.document-identification-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px
}
.document-identification-grid>div{
 border:1px solid #e1e8ea;background:#fff;border-radius:8px;padding:10px
}
.document-identification-grid span,
.document-identification-grid strong,
.document-identification-grid small{display:block}
.document-identification-grid span{font-size:11px;color:#718087;margin-bottom:3px}
.document-identification-grid strong{font-size:13px;overflow-wrap:anywhere}
.document-identification-grid small{font-size:11px;color:#7a878d;margin-top:3px}
.document-date-compare{
 display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;margin-top:12px
}
.document-date-compare>div:not(.compare-arrow){
 border:1px solid #e1e8ea;border-radius:8px;padding:10px;background:#fff
}
.document-date-compare span,.document-date-compare strong{display:block}
.document-date-compare span{font-size:11px;color:#718087;margin-bottom:3px}
.compare-arrow{font-size:22px;color:#6e858d}
.document-confirm-question{
 margin-top:12px;padding:12px;border-radius:8px;background:#f0f6f7
}
.document-confirm-question strong,.document-confirm-question small{display:block}
.document-confirm-question small{margin-top:4px;color:#65777f;line-height:1.45}
.intelligent-actions{justify-content:flex-end;margin-top:14px}
.intelligent-note{margin-top:8px;line-height:1.45}
@media(max-width:680px){
 .document-stepbar{grid-template-columns:repeat(2,1fr)}
 .document-identification-grid{grid-template-columns:1fr}
 .document-date-compare{grid-template-columns:1fr}
 .compare-arrow{transform:rotate(90deg);text-align:center}
}

/* V1.10.8 - documentos com múltiplos CNPJs */
.multi-cnpj-note{
 margin-top:10px;
 padding:10px 12px;
 border:1px solid #d9e7ea;
 border-radius:8px;
 background:#f5f9fa;
}
.multi-cnpj-note strong,.multi-cnpj-note small{display:block}
.multi-cnpj-note small{margin-top:4px;color:#667980;line-height:1.4}

/* V1.10.9 */
.cnpj-rule-hint{
 margin-top:8px;
 padding:8px 10px;
 border-radius:7px;
 background:#f3f7f8;
 line-height:1.4;
}

/* V1.10.10 - modos de vencimento */
.expiration-mode-card{
 border:1px solid #dfe7ea;
 border-radius:10px;
 padding:12px;
 background:#fbfcfd;
}
.expiration-mode-options{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:8px;
 margin-top:7px;
}
.expiration-mode-options>label{
 display:flex;
 gap:8px;
 align-items:flex-start;
 padding:10px;
 border:1px solid #dfe7ea;
 border-radius:8px;
 background:#fff;
 cursor:pointer;
}
.expiration-mode-options span,.expiration-mode-options strong,.expiration-mode-options small{display:block}
.expiration-mode-options small{margin-top:3px;color:#718087;line-height:1.35}
.validity-days-wrap{
 margin-top:10px;
 padding-top:10px;
 border-top:1px solid #e2e8ea;
}
.validity-days-wrap input{max-width:180px}
.validity-days-wrap small{display:block;margin-top:4px;color:#718087}
@media(max-width:760px){
 .expiration-mode-options{grid-template-columns:1fr}
}

.regularity-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:14px 0}.regularity-card{display:flex;flex-direction:column;gap:6px;padding:13px;border:1px solid #dfe7ea;border-radius:10px;background:#fff;text-decoration:none;color:inherit}.regularity-card strong{font-size:24px}.regularity-card span{font-size:12px;color:#667980}.regularity-card.active{box-shadow:0 0 0 2px rgba(0,0,0,.08)}.regularity-filters{display:flex;gap:8px;align-items:center;margin-bottom:14px}.status-pill{display:inline-block;padding:5px 8px;border-radius:999px;font-size:12px;font-weight:600;background:#eef2f3}.status-regular{background:#edf7f0}.status-a_vencer{background:#fff6df}.status-vencido{background:#fbecec}.status-nao_emitida{background:#b42318;color:#fff;font-weight:800;box-shadow:0 0 0 3px rgba(180,35,24,.12)}.status-sem_vencimento{background:#eef4f7}.settings-hub{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.settings-card{display:flex;flex-direction:column;gap:7px;padding:18px;border:1px solid #dfe7ea;border-radius:12px;background:#fff;color:inherit;text-decoration:none}.settings-card span{color:#667980}@media(max-width:900px){.regularity-summary{grid-template-columns:repeat(3,1fr)}.settings-hub{grid-template-columns:1fr}}


/* V1.11.3 - refinamento visual das centrais de Regularidade */
.regularity-center{
  --reg-text:#1f2d35;
  --reg-muted:#6b7b83;
  --reg-border:#e2e8eb;
  --reg-soft:#f7f9fa;
  color:var(--reg-text);
}
.regularity-page-head{align-items:flex-start}
.regularity-page-head h1{
  font-size:24px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:-.015em;
}
.regularity-page-head p{
  margin:6px 0 0;
  font-size:13px;
  line-height:1.45;
  color:var(--reg-muted);
}
.regularity-primary-action{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:9px 13px;
  font-size:13px;
  font-weight:650;
}
.regularity-primary-action svg,
.regularity-filter-btn svg{
  width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}

.regularity-summary{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  margin:0 0 16px;
}
.regularity-card{
  min-height:78px;
  padding:13px 14px;
  border:1px solid var(--reg-border);
  border-radius:10px;
  background:#fff;
  box-shadow:0 1px 2px rgba(22,38,47,.025);
  transition:.15s ease;
}
.regularity-card:hover{
  border-color:#cbd7dc;
  transform:translateY(-1px);
  box-shadow:0 4px 14px rgba(22,38,47,.055);
}
.regularity-card.active{
  border-color:#9ebdc7;
  background:#f4f9fa;
  box-shadow:inset 0 0 0 1px #c7dde3;
}
.regularity-card span{
  font-size:11.5px;
  line-height:1.2;
  font-weight:600;
  color:var(--reg-muted);
}
.regularity-card strong{
  font-size:22px;
  line-height:1;
  font-weight:720;
  letter-spacing:-.02em;
  color:#173f4c;
}

.regularity-toolbar-card{
  margin-bottom:14px;
  padding:13px 14px;
  border:1px solid var(--reg-border);
  border-radius:10px;
  background:#fff;
}
.regularity-filters{
  display:grid;
  grid-template-columns:minmax(260px,1.6fr) minmax(220px,1fr) auto;
  gap:12px;
  align-items:end;
  margin:0;
}
.regularity-filter-field label{
  display:block;
  margin-bottom:5px;
  font-size:11px;
  line-height:1.2;
  font-weight:650;
  color:#65757d;
}
.regularity-filter-field select,
.regularity-search-box{
  width:100%;
  height:38px;
  border:1px solid #ccd7dc;
  border-radius:8px;
  background:#fff;
}
.regularity-filter-field select{
  padding:0 10px;
  font-family:inherit;
  font-size:13px;
  color:#263840;
}
.regularity-search-box{
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 10px;
}
.regularity-search-box svg{
  flex:0 0 auto;
  width:16px;height:16px;
  fill:none;stroke:#71828a;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}
.regularity-search-box input{
  width:100%;
  min-width:0;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  font-family:inherit;
  font-size:13px;
  color:#263840;
}
.regularity-filter-actions{
  display:flex;
  align-items:center;
  gap:7px;
}
.regularity-filter-actions .btn{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:8px 12px;
  font-size:12.5px;
  font-weight:650;
}

.regularity-table-card{
  overflow:hidden;
  border:1px solid var(--reg-border);
  border-radius:11px;
  background:#fff;
}
.regularity-table-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:49px;
  padding:10px 14px;
  border-bottom:1px solid var(--reg-border);
  background:#fff;
}
.regularity-table-head strong{
  display:block;
  font-size:13px;
  font-weight:700;
}
.regularity-table-head span{
  display:block;
  margin-top:2px;
  font-size:11px;
  color:var(--reg-muted);
}
.regularity-table-wrap{overflow:auto}
.regularity-table{
  width:100%;
  min-width:900px;
  border-collapse:separate;
  border-spacing:0;
  table-layout:auto;
}
.regularity-table th{
  padding:10px 12px;
  border-bottom:1px solid #dfe7ea;
  background:#f2f5f6;
  color:#60727a;
  text-align:left;
  font-size:10.5px;
  line-height:1.2;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.045em;
  white-space:nowrap;
}
.regularity-table td{
  padding:10px 12px;
  border-bottom:1px solid #e9eef0;
  color:#2a3a42;
  font-size:12.5px;
  line-height:1.35;
  vertical-align:middle;
}
.regularity-table tbody tr:nth-child(even){background:#f8fafb}
.regularity-table tbody tr:nth-child(odd){background:#fff}
.regularity-table tbody tr:hover{background:#f0f6f7}
.regularity-table tbody tr:last-child td{border-bottom:0}
.regularity-table .col-client{min-width:230px}
.regularity-table .col-document{min-width:180px}
.regularity-table .col-date{width:118px}
.regularity-table .col-status{width:120px}
.regularity-table .col-file{width:74px;text-align:center}
.regularity-table .col-actions{width:136px;text-align:center}
.regularity-client-cell strong{
  display:block;
  font-size:12.8px;
  line-height:1.35;
  font-weight:680;
  color:#20343d;
}
.regularity-client-cell small,
.regularity-date-cell small{
  display:block;
  margin-top:3px;
  font-size:10.5px;
  line-height:1.35;
  color:#7a8990;
}
.regularity-document-cell span{
  font-size:12.4px;
  font-weight:560;
  color:#30444c;
}
.regularity-date-cell{white-space:nowrap}
.regularity-date-cell strong{font-size:12.5px;font-weight:680}
.status-pill{
  padding:5px 8px;
  border-radius:999px;
  font-size:10.5px;
  line-height:1;
  font-weight:700;
  white-space:nowrap;
}
.regularity-file-cell{text-align:center}
.regularity-no-file{color:#a0abb0}
.regularity-actions-cell{text-align:center}
.regularity-actions-cell .icon-actions{
  justify-content:center;
  gap:5px;
}
.regularity-actions-cell .icon-btn,
.regularity-file-cell .icon-btn{
  width:31px;
  height:31px;
  border-radius:7px;
  background:#fff;
}
.regularity-actions-cell .icon-btn:hover,
.regularity-file-cell .icon-btn:hover{
  background:#eaf2f4;
  border-color:#b9cbd2;
}
.regularity-actions-cell .icon-btn svg,
.regularity-file-cell .icon-btn svg{
  width:15px;
  height:15px;
}
.regularity-empty{
  padding:34px 16px!important;
  text-align:center!important;
  color:#7b8b92!important;
  font-size:12.5px!important;
  background:#fff!important;
}

@media(max-width:1050px){
  .regularity-summary{grid-template-columns:repeat(3,1fr)}
  .regularity-filters{grid-template-columns:1fr 1fr}
  .regularity-filter-actions{grid-column:1/-1;justify-content:flex-end}
}
@media(max-width:680px){
  .regularity-page-head{gap:12px}
  .regularity-primary-action{width:100%;justify-content:center}
  .regularity-summary{grid-template-columns:repeat(2,1fr)}
  .regularity-filters{grid-template-columns:1fr}
  .regularity-filter-actions{grid-column:auto;justify-content:stretch}
  .regularity-filter-actions .btn{flex:1}
}


/* V1.11.4 - padrão global de grids zebrados */
.data-table,
table.data-table,
.table-card table,
.table-responsive table,
.grid-table,
table.grid,
table.list-table,
table.table {
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}

/* Zebra global para grids/tabelas administrativas */
.data-table tbody tr:nth-child(odd),
.table-card table tbody tr:nth-child(odd),
.table-responsive table tbody tr:nth-child(odd),
.grid-table tbody tr:nth-child(odd),
table.grid tbody tr:nth-child(odd),
table.list-table tbody tr:nth-child(odd),
table.table tbody tr:nth-child(odd) {
  background:#fff;
}

.data-table tbody tr:nth-child(even),
.table-card table tbody tr:nth-child(even),
.table-responsive table tbody tr:nth-child(even),
.grid-table tbody tr:nth-child(even),
table.grid tbody tr:nth-child(even),
table.list-table tbody tr:nth-child(even),
table.table tbody tr:nth-child(even) {
  background:#f8fafb;
}

/* Hover padronizado */
.data-table tbody tr:hover,
.table-card table tbody tr:hover,
.table-responsive table tbody tr:hover,
.grid-table tbody tr:hover,
table.grid tbody tr:hover,
table.list-table tbody tr:hover,
table.table tbody tr:hover {
  background:#f0f6f7;
}

/* Cabeçalho de grid padronizado */
.data-table thead th,
.table-card table thead th,
.table-responsive table thead th,
.grid-table thead th,
table.grid thead th,
table.list-table thead th,
table.table thead th {
  background:#f2f5f6;
  color:#60727a;
  font-size:10.5px;
  line-height:1.2;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.045em;
  border-bottom:1px solid #dfe7ea;
}

/* Células padronizadas */
.data-table tbody td,
.table-card table tbody td,
.table-responsive table tbody td,
.grid-table tbody td,
table.grid tbody td,
table.list-table tbody td,
table.table tbody td {
  border-bottom:1px solid #e9eef0;
}

/* Mantém linhas especiais sem zebra quando explicitamente marcadas */
tr.no-zebra,
tr.no-zebra:nth-child(odd),
tr.no-zebra:nth-child(even),
tr.empty-state-row,
tr.empty-state-row:nth-child(odd),
tr.empty-state-row:nth-child(even) {
  background:#fff !important;
}

/* V1.12.0 - configuração rápida de layouts */
.layout-preset-box{margin-bottom:14px;padding:13px;border:1px solid #dfe7ea;border-radius:10px;background:#f8fafb}
.layout-preset-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.layout-preset-btn{appearance:none;text-align:left;padding:11px;border:1px solid #d7e1e5;border-radius:9px;background:#fff;cursor:pointer;color:#263a43;font-family:inherit}
.layout-preset-btn strong,.layout-preset-btn small{display:block}.layout-preset-btn strong{font-size:12px;font-weight:700}.layout-preset-btn small{margin-top:3px;font-size:10.5px;color:#718087;line-height:1.3}
.layout-preset-btn:hover,.layout-preset-btn.active{border-color:#8fb6c2;background:#eef6f8;box-shadow:inset 0 0 0 1px #c7dfe5}
.layout-preset-help{margin-top:8px;font-size:10.5px;color:#728188}
@media(max-width:1100px){.layout-preset-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.layout-preset-grid{grid-template-columns:1fr 1fr}}

/* V1.12.2 - leitura de certificado digital A1 */
.certificate-smart-dialog{max-width:780px}
.certificate-security-note{
 display:flex;gap:10px;align-items:flex-start;margin:0 0 14px;padding:11px 12px;
 border:1px solid #dbe8ec;border-radius:9px;background:#f5fafb;font-size:12px;color:#526a73
}
.certificate-security-note strong{color:#274b58;white-space:nowrap}
.certificate-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.certificate-form-grid .field:last-child{grid-column:1/-1}
.certificate-form-grid label{display:block;margin-bottom:5px;font-size:11px;font-weight:700;color:#60727a}
.certificate-form-grid input,.certificate-form-grid select{
 width:100%;height:39px;padding:0 10px;border:1px solid #ccd7dc;border-radius:8px;background:#fff;font:inherit;font-size:13px
}
.certificate-form-actions,.certificate-confirm-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}
.certificate-status{margin-top:14px;padding:10px 12px;border-radius:8px;font-size:12px}
.certificate-status.is-info{background:#eef6f8;color:#31525e}
.certificate-status.is-error{background:#fff0f0;color:#8c3030}
.certificate-preview{margin-top:14px;padding-top:14px;border-top:1px solid #e4eaed}
.certificate-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.certificate-preview-grid>div{padding:10px 11px;border:1px solid #e2e8eb;border-radius:8px;background:#fafcfc}
.certificate-preview-grid span,.certificate-preview-grid small{display:block;font-size:10.5px;color:#73848b}
.certificate-preview-grid strong{display:block;margin-top:3px;font-size:12.5px;color:#263b44;word-break:break-word}
@media(max-width:680px){.certificate-form-grid,.certificate-preview-grid{grid-template-columns:1fr}.certificate-form-grid .field:last-child{grid-column:auto}}


/* V1.12.3 - calendário de Agendamentos */
.schedule-page{color:#243740}
.schedule-page-head h1{font-size:24px;line-height:1.2;margin-bottom:4px}
.schedule-page-head p{margin:0;color:#6c7d85;font-size:13px}
.schedule-new-btn{min-height:38px;display:inline-flex;align-items:center;padding:9px 13px;font-size:13px;font-weight:650}

.schedule-calendar-card,
.schedule-list-card{
  margin-bottom:16px;
  overflow:hidden;
  border:1px solid #e1e8eb;
  border-radius:12px;
  background:#fff;
}
.schedule-calendar-head{
  display:grid;
  grid-template-columns:42px 1fr 42px;
  align-items:center;
  gap:8px;
  min-height:66px;
  padding:10px 14px;
  border-bottom:1px solid #e4eaed;
}
.schedule-month-title{text-align:center}
.schedule-month-title span{display:block;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.055em;color:#77878e}
.schedule-month-title strong{display:block;margin-top:3px;font-size:17px;line-height:1.2;font-weight:720;color:#233c47}
.schedule-month-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border:1px solid #d7e0e4;
  border-radius:8px;
  background:#fff;
  color:#38545f;
  font-size:26px;
  line-height:1;
  text-decoration:none;
}
.schedule-month-nav:hover{background:#eef5f6;border-color:#bfd0d6}

.schedule-weekdays,
.schedule-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
}
.schedule-weekdays{
  border-bottom:1px solid #e6ecee;
  background:#f5f7f8;
}
.schedule-weekdays span{
  padding:8px 6px;
  text-align:center;
  font-size:10px;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#708188;
}
.schedule-calendar-grid{padding:8px;gap:6px}
.schedule-day{
  position:relative;
  min-height:76px;
  padding:9px;
  border:1px solid #e3e9ec;
  border-radius:9px;
  background:#fff;
  color:#2a3f48;
  text-decoration:none;
  transition:.14s ease;
}
.schedule-day:hover{
  background:#f2f7f8;
  border-color:#c6d6dc;
  transform:translateY(-1px);
}
.schedule-day.is-empty{
  border-color:transparent;
  background:transparent;
  pointer-events:none;
}
.schedule-day-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:28px;
  border-radius:50%;
  font-size:12.5px;
  font-weight:680;
}
.schedule-day.is-today .schedule-day-number{
  background:#e7f1f4;
  color:#184957;
  box-shadow:inset 0 0 0 1px #bcd5dc;
}
.schedule-day.is-selected{
  border-color:#7fa8b5;
  background:#edf6f8;
  box-shadow:inset 0 0 0 1px #a8c7cf;
}
.schedule-day.is-selected .schedule-day-number{
  background:#285d6d;
  color:#fff;
  box-shadow:none;
}
.schedule-day.has-events:after{
  content:"";
  position:absolute;
  right:9px;
  bottom:9px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#628f9c;
}
.schedule-day-count{
  position:absolute;
  top:10px;
  right:9px;
  min-width:22px;
  height:20px;
  padding:0 6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#eef3f4;
  color:#526971;
  font-size:10px;
  font-weight:700;
}
.schedule-day.is-selected .schedule-day-count{background:#d9eaee;color:#285d6d}

.schedule-calendar-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:48px;
  padding:8px 14px;
  border-top:1px solid #e6ecee;
  background:#fbfcfc;
}
.schedule-calendar-legend{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  font-size:10.5px;
  color:#74858c;
}
.schedule-calendar-legend span{display:flex;align-items:center;gap:5px}
.schedule-calendar-legend i{display:inline-block;width:10px;height:10px;border-radius:50%}
.legend-today{background:#e7f1f4;border:1px solid #9fc4ce}
.legend-selected{background:#285d6d}
.legend-event{background:#628f9c}
.schedule-clear-day{font-size:11.5px;min-height:32px;padding:6px 10px}

.schedule-list-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:54px;
  padding:10px 14px;
  border-bottom:1px solid #e2e8eb;
}
.schedule-list-head span{display:block;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#78888f}
.schedule-list-head strong{display:block;margin-top:3px;font-size:14px;color:#293f48}
.schedule-list-total{
  padding:6px 9px;
  border-radius:999px;
  background:#f0f4f5;
  color:#60727a;
  font-size:10.5px;
  font-weight:700;
}
.schedule-table th{white-space:nowrap}
.schedule-date-cell,.schedule-time-cell{white-space:nowrap}
.schedule-title-cell{font-size:12.5px;font-weight:650;color:#29404a}

@media(max-width:760px){
  .schedule-page-head{gap:12px}
  .schedule-new-btn{width:100%;justify-content:center}
  .schedule-calendar-grid{gap:4px;padding:5px}
  .schedule-day{min-height:58px;padding:5px}
  .schedule-day-number{min-width:24px;height:24px;font-size:11px}
  .schedule-day-count{top:5px;right:5px;min-width:18px;height:18px;padding:0 4px;font-size:9px}
  .schedule-day.has-events:after{right:6px;bottom:6px}
  .schedule-calendar-footer{align-items:flex-start;flex-direction:column}
}


/* V1.12.4 - calendário compacto de Agendamentos */
.schedule-calendar-card{
  max-width:860px;
  margin-left:auto;
  margin-right:auto;
}
.schedule-calendar-head{
  min-height:52px;
  padding:7px 11px;
}
.schedule-month-title span{font-size:9.5px}
.schedule-month-title strong{font-size:15px;margin-top:2px}
.schedule-month-nav{
  width:31px;
  height:31px;
  border-radius:7px;
  font-size:22px;
}
.schedule-weekdays span{
  padding:6px 4px;
  font-size:9px;
}
.schedule-calendar-grid{
  padding:6px;
  gap:4px;
}
.schedule-day{
  min-height:48px;
  padding:5px 6px;
  border-radius:7px;
}
.schedule-day-number{
  min-width:23px;
  height:23px;
  font-size:10.5px;
}
.schedule-day-count{
  top:5px;
  right:5px;
  min-width:18px;
  height:17px;
  padding:0 5px;
  font-size:8.5px;
}
.schedule-day.has-events:after{
  right:6px;
  bottom:6px;
  width:5px;
  height:5px;
}
.schedule-calendar-footer{
  min-height:39px;
  padding:6px 10px;
}
.schedule-calendar-legend{
  gap:10px;
  font-size:9.5px;
}
.schedule-calendar-legend i{
  width:8px;
  height:8px;
}
.schedule-clear-day{
  min-height:29px;
  padding:5px 8px;
  font-size:10.5px;
}

/* O grid continua usando toda a largura útil da tela */
.schedule-list-card{
  width:100%;
  max-width:none;
}

@media(max-width:900px){
  .schedule-calendar-card{max-width:100%}
}
@media(max-width:760px){
  .schedule-calendar-grid{gap:3px;padding:4px}
  .schedule-day{min-height:43px;padding:4px}
  .schedule-day-number{min-width:21px;height:21px;font-size:10px}
  .schedule-calendar-footer{align-items:flex-start}
}


/* V1.12.5 - agenda integrada: cores por origem */
.schedule-day-markers{
  position:absolute;
  left:7px;
  bottom:6px;
  display:flex;
  align-items:center;
  gap:3px;
  max-width:calc(100% - 14px);
}
.schedule-marker{
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  box-shadow:0 0 0 1px rgba(255,255,255,.85);
}
.marker-agenda,.legend-agenda{background:#4f7fb7!important}
.marker-societario,.legend-societario{background:#d58a32!important}
.marker-certidao,.legend-certidao{background:#b45b68!important}
.marker-alvara,.legend-alvara{background:#6b8e5e!important}
.marker-certificado,.legend-certificado{background:#7b68a6!important}

.schedule-day.has-events:after{display:none}
.schedule-integrated-legend{
  gap:12px;
  row-gap:6px;
}
.schedule-integrated-legend i{
  width:8px;
  height:8px;
  border:0;
}
.schedule-source{
  display:inline-flex;
  align-items:center;
  min-height:23px;
  padding:3px 7px;
  border-radius:999px;
  font-size:9.5px;
  line-height:1;
  font-weight:750;
  white-space:nowrap;
  border:1px solid transparent;
}
.source-agenda{background:#edf4fb;color:#3d6795;border-color:#d3e2f0}
.source-societario{background:#fbf3e9;color:#98601f;border-color:#edd7ba}
.source-certidao{background:#faeef0;color:#8b4551;border-color:#ebcfd4}
.source-alvara{background:#eff5ec;color:#536f49;border-color:#d5e3cf}
.source-certificado{background:#f1eef7;color:#625387;border-color:#dbd3e9}
.schedule-open-link{
  min-height:28px;
  padding:4px 8px;
  font-size:10.5px;
}
@media(max-width:760px){
  .schedule-day-markers{left:5px;bottom:4px;gap:2px}
  .schedule-marker{width:5px;height:5px}
}


/* V1.13.0 - Workflow Societário */
.cell-sub{display:block;margin-top:3px;color:#7a898f;max-width:520px}
.btn.mini{min-height:28px;padding:5px 9px;font-size:10.5px}
.workflow-builder{overflow:hidden}
.workflow-help{padding:8px 10px;margin:8px 0 12px;border-radius:7px;background:#f1f6f7;color:#5b7079;font-size:11px}
.workflow-edit-row{
  position:relative;
  display:grid;
  grid-template-columns:28px minmax(180px,2fr) minmax(120px,1fr) minmax(150px,1.15fr) minmax(145px,1fr) 84px 112px minmax(160px,1.25fr) 34px;
  gap:8px;
  align-items:end;
  padding:10px 0;
  border-bottom:1px solid #e5ebed;
}
.process-stage-row{
  grid-template-columns:28px minmax(200px,2fr) minmax(120px,1fr) minmax(150px,1.15fr) 130px 110px minmax(170px,1.2fr) 34px;
}
.workflow-edit-row:last-child{border-bottom:0}
.workflow-edit-row .field{margin:0}
.workflow-edit-row .field label{font-size:9px;margin-bottom:4px}
.workflow-order-handle{
  align-self:center;
  color:#9aabb1;
  text-align:center;
  font-size:16px;
  user-select:none;
}
.workflow-obs{min-width:0}
.workflow-remove{
  width:30px;height:30px;border:1px solid #e2cfd3;background:#fff6f7;color:#9d4d59;border-radius:7px;
  font-size:18px;cursor:pointer;
}
.workflow-remove:disabled{opacity:.35;cursor:not-allowed}
.check-line{display:flex!important;align-items:center;gap:7px;font-weight:600!important}
.check-line input{width:auto!important}

.workflow-timeline{display:flex;flex-direction:column}
.workflow-stage{
  position:relative;
  display:grid;
  grid-template-columns:42px 1fr auto;
  gap:12px;
  padding:13px 0;
  border-bottom:1px solid #e6ecee;
}
.workflow-stage:last-child{border-bottom:0}
.workflow-stage-index{
  width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:#eef2f3;color:#667b84;font-size:11px;font-weight:800;border:1px solid #d8e1e4;
}
.workflow-stage.done .workflow-stage-index{background:#e8f2e9;color:#527257;border-color:#cfe0d1}
.workflow-stage.active .workflow-stage-index{background:#e8f2f5;color:#245668;border-color:#bad4dc;box-shadow:0 0 0 3px #f1f7f8}
.workflow-stage.cancelled{opacity:.55}
.workflow-stage-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.workflow-stage-head strong{display:block;font-size:13px;color:#253c45}
.workflow-stage-head span:not(.badge){display:block;margin-top:3px;font-size:10px;color:#78888f}
.workflow-stage-meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:7px;font-size:10px;color:#6f8087}
.workflow-stage-note{margin-top:7px;padding:7px 9px;border-radius:6px;background:#f7f9fa;color:#65767d;font-size:10.5px}
.workflow-stage-action{align-self:center}
.process-progress{height:7px;border-radius:999px;background:#e7edef;overflow:hidden}
.process-progress span,.mini-progress span{display:block;height:100%;border-radius:999px;background:#568092}
.process-progress-copy{display:flex;justify-content:space-between;gap:12px;margin-top:7px;font-size:10.5px;color:#74858b}
.process-progress-copy strong{color:#334e59}
.mini-progress{width:92px;height:5px;border-radius:999px;background:#e6ecee;overflow:hidden;margin-bottom:3px}

@media(max-width:1180px){
  .workflow-edit-row,.process-stage-row{grid-template-columns:28px 1fr 1fr}
  .workflow-edit-row .workflow-obs{grid-column:2 / span 2}
  .workflow-remove{grid-column:3;justify-self:end}
}
@media(max-width:720px){
  .workflow-edit-row,.process-stage-row{grid-template-columns:28px 1fr}
  .workflow-edit-row .workflow-obs{grid-column:2}
  .workflow-remove{grid-column:2;justify-self:end}
  .workflow-stage{grid-template-columns:38px 1fr}
  .workflow-stage-action{grid-column:2}
  .workflow-stage-head{flex-direction:column}
}


/* V1.13.2 - modo assistido de documentos não legíveis */
.reg-upload-progress span.warning{background:#c58a35}
.document-assist-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:12px 0;
  padding:12px;
  border:1px solid #dce5e8;
  border-radius:9px;
  background:#f8fafb;
}
.document-assist-grid .field{margin:0}
.pending-fields,.document-needs-action{
  margin-top:12px;
  padding:10px 12px;
  border-radius:8px;
  background:#fff8ea;
  border:1px solid #ead8ad;
  color:#735b27;
}
.pending-fields strong,.pending-fields span{display:block}
.pending-fields span{margin-top:4px;font-size:11px}
.document-needs-action strong{display:block;font-size:12px}
.document-needs-action p{margin:5px 0 0;font-size:11px}
@media(max-width:720px){.document-assist-grid{grid-template-columns:1fr}}


/* V1.14.0 - Central de Envios em lote */
.document-center-head{align-items:flex-start}
.document-drop-panel{padding:14px}
.document-drop-zone{
  min-height:150px;border:1.5px dashed #aebfc5;border-radius:12px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  gap:5px;background:#f8fbfb;cursor:pointer;transition:.18s ease;
}
.document-drop-zone:hover,.document-drop-zone.dragging{border-color:#497988;background:#f0f7f8;transform:translateY(-1px)}
.document-drop-icon{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e8f2f4;color:#356675;margin-bottom:3px}
.document-drop-zone strong{font-size:14px;color:#263c45}
.document-drop-zone span{font-size:11px;color:#6d8088}
.document-drop-zone small{font-size:9.5px;color:#95a3a8}
.document-batch-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:12px 0}
.document-summary-card{
  appearance:none;text-align:left;border:1px solid #dde5e8;background:#fff;border-radius:10px;
  padding:10px 12px;cursor:pointer;color:#5e7179
}
.document-summary-card span{display:block;font-size:10px}
.document-summary-card strong{display:block;font-size:20px;color:#213b45;margin-top:2px}
.document-summary-card.active{border-color:#7ea9b7;box-shadow:0 0 0 1px #b8d2da inset;background:#f5fafb}
.document-summary-card.is-ready strong{color:#4d785a}
.document-summary-card.is-review strong{color:#a06d2b}
.document-summary-card.is-error strong{color:#a2525a}
.document-summary-card.is-processed strong{color:#466f82}
.document-batch-toolbar{align-items:center}
.document-batch-table td{vertical-align:middle}
.document-batch-table td small{display:block;color:#839198;margin-top:2px;font-size:9px}
.doc-file-name{display:block;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.doc-row-note{max-width:260px;white-space:normal!important;line-height:1.25}
.doc-row-note.warn{color:#9a6825!important}
.batch-inline-select{min-width:190px;max-width:260px;font-size:10.5px;padding:7px 8px}
.doc-batch-badge{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;font-size:9.5px;font-weight:750;white-space:nowrap}
.doc-batch-badge.ready{background:#edf6ef;color:#4d7456}
.doc-batch-badge.review{background:#fff5e7;color:#956526}
.doc-batch-badge.error{background:#faecee;color:#994851}
.doc-batch-badge.loading{background:#eef3f5;color:#60757e}
.doc-batch-badge.processed{background:#eaf2f5;color:#466d7c}
.confidence-cell strong,.confidence-cell span{display:block}
.confidence-cell strong{font-size:11px}.confidence-cell span{font-size:9px;color:#829198}
@media(max-width:1000px){.document-batch-summary{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.document-batch-summary{grid-template-columns:1fr 1fr}.document-drop-zone{min-height:130px}}


/* V1.14.1 - cliente sugerido na Central de Envios */
.auto-detected-note{
  display:block!important;
  margin-top:4px!important;
  color:#4d785a!important;
  font-size:9px!important;
  font-weight:700;
}

/* V1.15.0 - Modelos Inteligentes */
.smart-wizard{display:grid;gap:12px}.smart-step{display:flex;gap:14px;padding:16px}.smart-step-number{flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#e7f0f2;color:#315f6d;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px}.smart-step-body{flex:1}.smart-step-body h2{margin:2px 0 3px;font-size:15px}.smart-step-body>p{margin:0 0 13px;color:#71838a;font-size:10.5px}.smart-example-drop{width:100%;border:1.5px dashed #a9bec5;background:#f8fbfb;border-radius:10px;padding:18px;cursor:pointer;display:flex;flex-direction:column;gap:3px;align-items:center}.smart-example-drop strong{font-size:12px}.smart-example-drop span{font-size:9.5px;color:#7b8d94}.smart-example-list{display:grid;gap:7px;margin-top:9px}.smart-example-item{border:1px solid #dfe7e9;border-radius:8px;padding:9px 11px;display:flex;justify-content:space-between;gap:15px;background:#fff}.smart-example-item strong,.smart-example-item small,.smart-example-item span{display:block}.smart-example-item strong{font-size:10.5px;color:#3e6c55}.smart-example-item small,.smart-example-item span{font-size:9px;color:#7b8b91;margin-top:2px}.smart-learning-empty{padding:18px;border-radius:8px;background:#f6f8f9;color:#809097;font-size:10px;text-align:center}.smart-learning-preview{display:grid;grid-template-columns:150px 1fr;gap:10px}.smart-learning-preview>div{padding:10px;border:1px solid #e1e7e9;border-radius:8px}.smart-learning-preview span,.smart-learning-preview strong{display:block}.smart-learning-preview span{font-size:9px;color:#7d8b91}.smart-learning-preview strong{font-size:18px;margin-top:3px}.smart-learning-preview .full{grid-column:2}.smart-learning-preview p{margin:5px 0 0}.smart-learning-preview em{display:inline-block;font-style:normal;font-size:8.5px;background:#edf4f5;color:#496c77;padding:3px 5px;border-radius:5px;margin:2px}.smart-rule-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.smart-rule-grid>div{border:1px solid #e0e7e9;border-radius:8px;padding:10px}.smart-rule-grid span,.smart-rule-grid strong,.smart-rule-grid small{display:block}.smart-rule-grid span{font-size:8.5px;text-transform:uppercase;color:#87969c}.smart-rule-grid strong{font-size:10.5px;margin:3px 0}.smart-rule-grid small{font-size:9px;color:#7c8d93}.smart-wizard-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.smart-count{display:inline-flex;min-width:20px;height:20px;align-items:center;justify-content:center;border-radius:50%;background:#eaf2f4;color:#426b78;font-weight:800;font-size:9px}
@media(max-width:700px){.smart-rule-grid{grid-template-columns:1fr}.smart-learning-preview{grid-template-columns:1fr}.smart-learning-preview .full{grid-column:auto}.smart-example-item{flex-direction:column}}

/* V1.15.2 - ação Próxima etapa na listagem de Processos */
.process-actions{white-space:nowrap}
.next-stage-action{
  font-weight:800;
  border-color:#b8d2da!important;
  background:#eef6f8!important;
  color:#356675!important;
}
.next-stage-action:hover{background:#e2f0f3!important}
/* ===== LAVY v1.16.0 ===== */
.ms-lavy-link{background:linear-gradient(135deg,rgba(22,126,126,.18),rgba(22,126,126,.05))}.ms-new{margin-left:auto;font-size:9px;font-weight:800;letter-spacing:.06em;background:#dff5ef;color:#15735f;padding:3px 6px;border-radius:999px}.muted{color:#71808a;margin:4px 0 0}.alert.danger{background:#fff0f0;color:#a33;padding:12px 14px;border-radius:10px;margin-bottom:16px}
.lavy-hero{background:linear-gradient(135deg,#0d5a61,#073d45);color:#fff;border-radius:18px;padding:28px 32px;display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;box-shadow:0 12px 35px rgba(7,61,69,.16)}.lavy-kicker{font-size:11px;font-weight:800;letter-spacing:.13em;color:#9ee0d5;text-transform:uppercase}.lavy-hero h1{font-size:30px;margin:8px 0 5px}.lavy-hero p{margin:0;color:#d8eceb}.lavy-orb,.lavy-mini-orb{display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#e5fff8,#8bd9cf);color:#07515a;font-weight:900;box-shadow:inset 0 0 0 4px rgba(255,255,255,.35)}.lavy-orb{width:70px;height:70px;font-size:34px}.lavy-mini-orb{width:40px;height:40px;font-size:20px;flex:0 0 auto}.lavy-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.lavy-stat{background:#fff;border:1px solid #e6ecee;border-radius:14px;padding:18px}.lavy-stat span{display:block;color:#73818a;font-size:12px;margin-bottom:8px}.lavy-stat strong{font-size:27px;color:#123c44}.lavy-stat strong.small{font-size:15px}.lavy-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,.8fr);gap:18px}.lavy-section-head h2{margin:0;color:#153f47}.lavy-section-head p{color:#7a8990;margin:4px 0 16px}.lavy-empty{padding:34px;border:1px dashed #cfdadd;border-radius:13px;text-align:center;color:#6e7e85;background:#fafcfc}.lavy-task-list{display:flex;flex-direction:column;gap:10px}.lavy-task{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #e5ecee;border-radius:12px}.lavy-task>div{flex:1}.lavy-task strong,.lavy-task small{display:block}.lavy-task small{color:#7b898f;margin-top:3px}.lavy-dot{width:9px;height:9px;border-radius:50%;background:#d5a02e}.lavy-dot.urgente{background:#cf5252}.lavy-dot.alta{background:#e48a32}.lavy-dot.baixa{background:#5b9b87}.lavy-chat{background:#f8fbfb}.lavy-chat-title{display:flex;align-items:center;gap:10px;padding-bottom:14px;border-bottom:1px solid #e1e9eb}.lavy-chat-title div:nth-child(2){flex:1}.lavy-chat-title strong,.lavy-chat-title span{display:block}.lavy-chat-title span{font-size:11px;color:#75858b}.lavy-chat-title i{font-style:normal;font-size:10px;color:#23836d}.lavy-bubble{background:#e6f4f1;border-radius:4px 14px 14px 14px;padding:14px;margin:16px 0;color:#234b51;line-height:1.45}.lavy-alert-card{background:#fff;border:1px solid #e2eaec;border-left:4px solid #d8a035;border-radius:10px;padding:11px 12px;margin:9px 0}.lavy-alert-card strong,.lavy-alert-card span,.lavy-alert-card small{display:block}.lavy-alert-card span{font-size:12px;margin:3px 0}.lavy-alert-card small{color:#a06d13}.lavy-input{display:flex;align-items:center;background:#fff;border:1px solid #dfe7e9;border-radius:12px;padding:7px 8px 7px 12px;margin-top:16px;color:#91a0a5;font-size:12px}.lavy-input span{flex:1}.lavy-input button{border:0;background:#0e6970;color:#fff;width:34px;height:34px;border-radius:9px}.lavy-preview-note{display:block;color:#8a989d;margin-top:8px;line-height:1.4}@media(max-width:1000px){.lavy-stats{grid-template-columns:repeat(2,1fr)}.lavy-grid{grid-template-columns:1fr}}@media(max-width:600px){.lavy-hero{padding:22px}.lavy-orb{display:none}.lavy-stats{grid-template-columns:1fr 1fr}}


/* LAVY v1.16.3 — workspace desktop com assistente em destaque */
.lavy-workspace{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(390px,.9fr);gap:18px;align-items:stretch;min-height:calc(100vh - 122px)}
.lavy-main-column{min-width:0;display:flex;flex-direction:column;gap:14px}
.lavy-compact-head{min-height:105px;background:linear-gradient(135deg,#0d5a61,#073d45);color:#fff;border-radius:16px;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 10px 28px rgba(7,61,69,.12)}
.lavy-compact-head h1{font-size:25px;margin:5px 0 2px}.lavy-compact-head p{margin:0;color:#d8eceb;font-size:13px}.lavy-compact-orb{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#e5fff8,#8bd9cf);color:#07515a;font-size:23px;font-weight:900;box-shadow:inset 0 0 0 3px rgba(255,255,255,.35)}
.lavy-stats-compact{margin:0;gap:10px}.lavy-stats-compact .lavy-stat{padding:12px 14px;border-radius:12px}.lavy-stats-compact .lavy-stat span{margin-bottom:4px}.lavy-stats-compact .lavy-stat strong{font-size:22px}.lavy-stats-compact .lavy-stat strong.small{font-size:13px}
.lavy-priority-panel{flex:1;min-height:270px}.lavy-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.lavy-see-all{font-size:12px;color:#0e6970;text-decoration:none;font-weight:700;white-space:nowrap}
.lavy-lower-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:14px}.lavy-empty-small{padding:20px}.lavy-deadlines{display:flex;flex-direction:column}.lavy-deadlines>div{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #edf1f2}.lavy-deadlines>div:last-child{border-bottom:0}.lavy-deadlines p{flex:1;margin:0}.lavy-deadlines strong,.lavy-deadlines small{display:block}.lavy-deadlines small{color:#7d8b91;margin-top:2px}.lavy-deadlines b{font-size:11px;color:#b45d42}.lavy-tip-panel{background:linear-gradient(145deg,#f3fbf9,#fff)}.lavy-tip-panel h2{margin:8px 0;color:#123f47}.lavy-tip-panel p{font-size:12px;color:#728188;line-height:1.5}.lavy-primary-btn{border:0;background:#0b626b;color:#fff;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer}
.lavy-chat-large{height:calc(100vh - 122px);min-height:620px;position:sticky;top:78px;display:flex;flex-direction:column;padding:0;overflow:hidden;background:#f7fbfb;border:1px solid #dce7e9;box-shadow:0 12px 30px rgba(12,62,69,.08)}.lavy-chat-large .lavy-chat-title{padding:17px 18px;background:#fff}.lavy-chat-scroll{flex:1;overflow:auto;padding:2px 18px 14px}.lavy-chat-large .lavy-bubble{max-width:92%;font-size:13px}.lavy-bubble-soft{background:#fff;border:1px solid #e1eaec}.lavy-chat-large .lavy-alert-card{padding:13px 14px}.lavy-chat-large .lavy-alert-card.critical{border-left-color:#cf5252;background:#fffafa}.lavy-alert-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.lavy-alert-top span{font-size:9px!important;color:#b54949!important;background:#fdecec;padding:3px 6px;border-radius:999px;font-weight:800}.lavy-alert-card p{margin:5px 0;font-size:12px}.lavy-chat-actions{display:flex;gap:7px;margin-top:11px}.lavy-chat-actions button{border:0;background:#0b626b;color:#fff;border-radius:8px;padding:8px 10px;font-size:11px;font-weight:800}.lavy-chat-actions button.secondary{background:#fff;color:#0b626b;border:1px solid #b9d1d5}.lavy-quick-actions{display:flex;gap:7px;padding:10px 18px 0;border-top:1px solid #e3ebed}.lavy-quick-actions button{border:1px solid #cbdcdf;background:#fff;color:#315c62;border-radius:999px;padding:7px 10px;font-size:10px;font-weight:700}.lavy-input-large{margin:10px 18px 0;padding:5px 6px 5px 11px}.lavy-input-large input{flex:1;border:0;outline:0;background:transparent;font:inherit;color:#53666b}.lavy-input-large input:disabled{opacity:1}.lavy-chat-large .lavy-preview-note{padding:0 18px 15px}
@media(max-width:1180px){.lavy-workspace{grid-template-columns:1fr}.lavy-chat-large{height:auto;min-height:600px;position:static}.lavy-lower-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.lavy-lower-grid{grid-template-columns:1fr}.lavy-compact-head{padding:16px}.lavy-compact-orb{display:none}.lavy-workspace{min-height:auto}}
/* LAVY v1.16.5 — execução de atividade por documento */
.lavy-active-work{border-left-color:#0b626b!important;background:#fff!important}.lavy-upload-box{margin-top:13px;padding:12px;border:1px dashed #b9d3d6;border-radius:11px;background:#f6fbfa}.lavy-upload-box label{display:block;font-size:11px;font-weight:800;color:#214d54;margin-bottom:8px}.lavy-upload-box input[type=file]{display:block;width:100%;font-size:11px;margin-bottom:9px}.lavy-upload-box>button,.lavy-review-actions button,.lavy-review-link{display:inline-block;border:0;background:#0b626b;color:#fff!important;border-radius:8px;padding:8px 10px;font-size:11px;font-weight:800;text-decoration:none;cursor:pointer}.lavy-upload-box>button:disabled{opacity:.55}.lavy-upload-status{font-size:11px;color:#526a70;margin-top:9px;line-height:1.4}.lavy-review{margin-top:10px;padding:10px;border-radius:9px;background:#fff;border:1px solid #dce8e9;font-size:11px;color:#294e54;line-height:1.5}.lavy-review-actions{display:flex;gap:7px;margin-top:10px;flex-wrap:wrap}.lavy-review-actions button.secondary{background:#fff;color:#0b626b!important;border:1px solid #b9d1d5}
/* v1.16.6 - conversa assistida da LAVY */
.lavy-conversation p{margin:8px 0;color:#456168}.lavy-context{background:#edf7f6;border-left:3px solid #0b626b;border-radius:8px;padding:9px 10px;margin:8px 0 12px}.lavy-field-label{display:block;font-size:10px;font-weight:800;color:#31575e;margin:10px 0 4px}.lavy-field-label small{font-weight:500;color:#71868b}.lavy-field{width:100%;box-sizing:border-box;border:1px solid #c9dcde;border-radius:8px;padding:8px 9px;background:#fff;color:#254b52}.lavy-check{display:flex;align-items:center;gap:7px;margin:8px 0 3px;font-size:10px;font-weight:700;color:#456168}.lavy-check input{width:auto}

/* LAVY v1.16.7 — conversa como área principal */
.lavy-workspace{grid-template-columns:minmax(0,2.15fr) minmax(280px,.72fr);grid-template-areas:"chat side";min-height:calc(100vh - 104px)}
.lavy-chat-large{grid-area:chat;order:1;height:calc(100vh - 104px);min-height:690px;position:sticky;top:70px;border-radius:16px}
.lavy-main-column{grid-area:side;order:2;gap:10px}
.lavy-main-column .lavy-compact-head{min-height:auto;padding:14px 16px;border-radius:14px}
.lavy-main-column .lavy-compact-head h1{font-size:18px}.lavy-main-column .lavy-compact-head p{font-size:10px;line-height:1.35}.lavy-main-column .lavy-compact-orb{width:38px;height:38px;font-size:18px}
.lavy-main-column .lavy-stats-compact{grid-template-columns:1fr 1fr;gap:8px}.lavy-main-column .lavy-stats-compact .lavy-stat{padding:9px 10px}.lavy-main-column .lavy-stats-compact .lavy-stat strong{font-size:17px}.lavy-main-column .lavy-stats-compact .lavy-stat span{font-size:9px}
.lavy-main-column .lavy-priority-panel{min-height:0;max-height:360px;overflow:auto;padding:12px}.lavy-main-column .lavy-priority-panel .lavy-section-head p{display:none}.lavy-main-column .lavy-priority-panel h2{font-size:14px}.lavy-main-column .lavy-task{padding:9px;gap:8px}.lavy-main-column .lavy-task strong{font-size:10px}.lavy-main-column .lavy-task small{font-size:8px}.lavy-main-column .lavy-task .badge{font-size:8px}
.lavy-lower-grid{display:none!important}
.lavy-chat-large .lavy-chat-title{padding:18px 22px}.lavy-chat-large .lavy-mini-orb{width:46px;height:46px;font-size:23px}.lavy-chat-large .lavy-chat-title strong{font-size:17px}.lavy-chat-large .lavy-chat-title span{font-size:11px}
.lavy-chat-scroll{padding:12px 26px 24px;scroll-behavior:smooth}.lavy-chat-large .lavy-bubble{max-width:76%;font-size:14px;padding:14px 16px}.lavy-chat-large .lavy-alert-card{max-width:82%;padding:16px 17px}.lavy-active-work{max-width:88%!important;margin-left:0!important}.lavy-upload-box{padding:15px}.lavy-bubble-inline{max-width:100%!important;margin:0 0 14px!important;background:#e6f4f1!important}
.lavy-upload-status:not(:empty){margin:12px 0 0;padding:11px 13px;background:#eef7f6;border-radius:10px;border-left:3px solid #0b626b;font-weight:700}
.lavy-review{font-size:12px;padding:14px;margin-top:12px}.lavy-conversation p{font-size:13px;line-height:1.5}.lavy-field{max-width:330px}
.lavy-success-check{text-align:center;padding:24px 18px 18px;background:linear-gradient(145deg,#effbf5,#fff);border:1px solid #b9e4cf;border-radius:14px}.lavy-check-seal{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:#27a66f;color:#fff;font-size:40px;font-weight:900;box-shadow:0 0 0 8px #dff5ea,0 10px 28px rgba(39,166,111,.22)}.lavy-success-check strong{display:block!important;color:#16724d;font-size:20px!important;margin-bottom:7px}.lavy-success-check p{margin:4px 0;color:#234f42;font-size:13px}.lavy-success-check small{color:#638178!important}.lavy-success-actions{justify-content:center}.lavy-success-actions button{background:#17865c!important;padding:10px 16px!important}
.lavy-quick-actions{padding:10px 22px 0}.lavy-input-large{margin:10px 22px 0}.lavy-chat-large .lavy-preview-note{padding:0 22px 15px}
@media(max-width:1180px){.lavy-workspace{grid-template-columns:1fr;grid-template-areas:"chat" "side"}.lavy-chat-large{height:auto;min-height:680px;position:static}.lavy-main-column{grid-area:side}.lavy-main-column .lavy-stats-compact{grid-template-columns:repeat(4,1fr)}}
@media(max-width:700px){.lavy-chat-scroll{padding:10px 14px 18px}.lavy-chat-large .lavy-bubble,.lavy-chat-large .lavy-alert-card,.lavy-active-work{max-width:100%!important}.lavy-main-column .lavy-stats-compact{grid-template-columns:1fr 1fr}}
/* V1.16.11 — retorno conversacional de CND não emitida */
.lavy-inline-days{display:flex;gap:10px;align-items:center}.lavy-inline-days .lavy-field{max-width:120px;margin:0}.lavy-not-issued-result{border:2px solid #b42318;background:#fff3f2;border-radius:16px;padding:20px;text-align:center}.lavy-not-issued-result strong{display:block;color:#b42318;font-size:20px;margin:8px 0}.lavy-x-seal{width:52px;height:52px;margin:0 auto;border-radius:50%;display:grid;place-items:center;background:#b42318;color:#fff;font-size:30px;font-weight:900}
/* V1.16.21 - Gestão de Responsáveis */
.responsibility-head p{margin:4px 0 0;color:#6c7d85}.responsibility-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:16px 0}.responsibility-summary a{display:flex;flex-direction:column;gap:7px;padding:15px 16px;border:1px solid #e3e9ec;border-radius:12px;background:#fff;text-decoration:none;color:inherit}.responsibility-summary span{font-size:12px;color:#6c7d85}.responsibility-summary strong{font-size:24px}.responsibility-alert{padding:12px 15px;border-radius:10px;margin:12px 0;font-weight:600}.responsibility-alert.success{background:#eaf7ef;color:#1f6a3c}.responsibility-alert.error{background:#fdecec;color:#a12c2c}.responsibility-alert.warning{background:#fff7e5;color:#805c12}.responsibility-filter-panel{margin-bottom:14px}.responsibility-filters{display:grid;grid-template-columns:1fr 1.4fr 1.5fr 1.2fr 1.5fr;gap:12px;align-items:end}.responsibility-filter-actions{grid-column:1/-1;margin-top:0}.responsibility-bulk-panel{padding:0;overflow:hidden}.responsibility-bulkbar{display:grid;grid-template-columns:auto auto minmax(220px,1fr) auto;gap:18px;align-items:end;padding:15px 17px;border-bottom:1px solid #e5ebee}.responsibility-bulkbar>div:first-child{display:flex;flex-direction:column}.responsibility-bulkbar small{color:#73838b;margin-top:3px}.responsibility-select-all{display:flex;align-items:center;gap:8px;padding-bottom:10px;white-space:nowrap}.responsibility-new-resp{display:flex;flex-direction:column;gap:5px}.responsibility-new-resp label{font-size:12px;font-weight:700;color:#53646c}.responsibility-new-resp select{min-height:40px}.responsibility-check{width:42px;text-align:center!important}.responsibility-check input{width:17px;height:17px}.responsibility-subtext{display:block;color:#75858d;margin-top:3px}.responsibility-category{display:inline-flex;padding:4px 8px;border-radius:999px;background:#eef3f5;font-size:12px;font-weight:700}.responsibility-unassigned{display:inline-flex;padding:4px 8px;border-radius:999px;background:#fdecec;color:#a12c2c;font-size:12px;font-weight:700}
@media(max-width:1100px){.responsibility-summary{grid-template-columns:repeat(2,1fr)}.responsibility-filters{grid-template-columns:repeat(2,1fr)}.responsibility-bulkbar{grid-template-columns:1fr 1fr}.responsibility-bulkbar .btn{width:100%}}@media(max-width:700px){.responsibility-summary,.responsibility-filters,.responsibility-bulkbar{grid-template-columns:1fr}.responsibility-select-all{padding-bottom:0}}

/* v1.16.24 - Organização do menu */
.ms-subitem-disabled{display:flex;align-items:center;justify-content:space-between;color:#607a83;font-size:12px;padding:8px 10px;border-radius:7px;cursor:not-allowed;opacity:.72}.ms-subitem-disabled small{font-size:8px;font-weight:800;letter-spacing:.08em;background:rgba(255,255,255,.08);padding:2px 5px;border-radius:8px}.supervision-link{display:inline-block;margin-top:10px;font-size:12px;font-weight:700;color:#12647b;text-decoration:none}.permission-roadmap .badge{margin-top:8px}.muted{color:#667780}
/* v1.17.0 — cadastro conversacional */
.lavy-bubble-user{margin-left:auto;background:#e9f1f4;max-width:82%;border-radius:16px 16px 4px 16px}.lavy-doc-choice{display:grid;gap:7px;margin:10px 0;max-height:260px;overflow:auto}.lavy-doc-choice label{display:block;padding:8px 10px;border:1px solid #dfe7e9;border-radius:9px;background:#fff}.lavy-doc-choice small{opacity:.65}.lavy-context{line-height:1.55}


/* v1.17.3 — experiência mobile do LAVYON */
.mobile-menu-backdrop{display:none}
.lavy-mobile-priorities{display:none}
@media(max-width:850px){
  body{overflow-x:hidden}
  .topbar{height:58px;position:sticky;top:0;z-index:900;padding:0 12px;gap:10px}
  .topbar>div:first-of-type{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
  .topbar .user-box{font-size:11px;white-space:nowrap;max-width:42vw;overflow:hidden;text-overflow:ellipsis}
  .version-top{display:none}
  .menu-btn{width:40px;height:40px;border-radius:10px;background:#eef5f6!important;color:#164d58!important;flex:0 0 40px}
  .content{padding:12px}
  .modern-sidebar{z-index:1200;box-shadow:16px 0 45px rgba(4,25,31,.28)}
  body.menu-open:after{content:"";position:fixed;inset:0;background:rgba(5,24,30,.42);z-index:1100}
  .panel{padding:14px;margin-top:12px;border-radius:12px}
  .page-head{margin-bottom:14px}
  .page-head h1{font-size:21px}
  .actions{flex-wrap:wrap}
  .actions .btn{flex:1 1 auto;text-align:center}
  .table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .table{min-width:720px}
  input,select,textarea,button{font-size:16px}
  .btn{min-height:42px}
}
@media(max-width:600px){
  .content{padding:8px}
  .topbar .user-box{max-width:38vw}
  .form-grid{gap:11px}
  .field input,.field select,.field textarea{padding:12px}
  .cards,.kpi-grid{gap:10px}
  .card{padding:15px}
}

/* LAVY como chat em tela cheia no smartphone */
@media(max-width:700px){
  body:has(.lavy-workspace) .content{padding:0;background:#f7fbfb}
  body:has(.lavy-workspace) .topbar{height:54px}
  .lavy-workspace{display:block!important;min-height:calc(100dvh - 54px)!important}
  .lavy-chat-large{height:calc(100dvh - 54px)!important;min-height:0!important;position:relative!important;top:auto!important;border:0!important;border-radius:0!important;margin:0!important;box-shadow:none!important}
  .lavy-chat-large .lavy-chat-title{padding:11px 14px;min-height:62px}
  .lavy-chat-large .lavy-mini-orb{width:40px;height:40px;font-size:20px}
  .lavy-chat-large .lavy-chat-title strong{font-size:15px}
  .lavy-chat-scroll{padding:10px 12px 18px!important}
  .lavy-chat-large .lavy-bubble{max-width:92%!important;font-size:13px;padding:12px 13px}
  .lavy-chat-large .lavy-alert-card,.lavy-active-work{max-width:100%!important;padding:13px!important}
  .lavy-alert-top{align-items:flex-start}
  .lavy-chat-actions{flex-wrap:wrap}
  .lavy-chat-actions button,.lavy-chat-actions select{min-height:42px;flex:1 1 130px}
  .lavy-upload-box{padding:11px}
  .lavy-upload-box input,.lavy-upload-box button{width:100%;margin-top:8px;min-height:44px}
  .lavy-quick-actions{padding:8px 10px 0;overflow-x:auto;flex:0 0 auto;white-space:nowrap}
  .lavy-quick-actions button{min-height:36px;flex:0 0 auto}
  .lavy-input-large{margin:8px 10px 0;padding:5px 5px 5px 10px;flex:0 0 auto;background:#fff}
  .lavy-input-large input{min-width:0;font-size:16px;min-height:42px}
  .lavy-input-large button{width:44px;height:44px;flex:0 0 44px}
  .lavy-chat-large .lavy-preview-note{display:none}
  .lavy-mobile-priorities{display:flex;position:fixed;right:12px;top:61px;z-index:1040;border:1px solid #c7dcdf;background:#fff;color:#155662;border-radius:999px;min-height:38px;padding:7px 11px;align-items:center;gap:5px;font-size:12px;font-weight:800;box-shadow:0 5px 18px rgba(15,69,77,.14)}
  .lavy-main-column{display:none;position:fixed;z-index:1030;left:10px;right:10px;top:105px;bottom:12px;background:#f3f8f9;border:1px solid #d6e4e6;border-radius:16px;padding:10px;overflow:auto;box-shadow:0 16px 45px rgba(9,47,54,.25)}
  .lavy-main-column.mobile-open{display:flex}
  .lavy-main-column .lavy-stats-compact{grid-template-columns:1fr 1fr!important}
  .lavy-main-column .lavy-priority-panel{max-height:none!important;flex:1}
}


/* v1.17.4 — PWA e refinamento mobile */
.pwa-install-bar{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:1600;width:min(520px,calc(100% - 24px));background:#fff;border:1px solid #d7e4e6;border-radius:14px;box-shadow:0 16px 45px rgba(7,48,55,.22);padding:12px 46px 12px 14px;display:flex;align-items:center;gap:12px}.pwa-install-bar[hidden]{display:none}.pwa-install-bar>div{min-width:0;flex:1}.pwa-install-bar strong,.pwa-install-bar span{display:block}.pwa-install-bar strong{font-size:13px;color:#183f47}.pwa-install-bar span{font-size:10px;color:#71838a;margin-top:2px}.pwa-install-close{position:absolute;right:8px;top:8px;border:0;background:transparent;font-size:22px;color:#6b7c83;cursor:pointer}.pwa-install-bar .btn{min-width:90px}
@media(max-width:700px){
 html,body{min-height:100%;overscroll-behavior-y:none}
 body{padding-bottom:env(safe-area-inset-bottom)}
 .topbar{padding-top:env(safe-area-inset-top);height:calc(54px + env(safe-area-inset-top))}
 body:has(.lavy-workspace) .topbar{height:calc(54px + env(safe-area-inset-top))}
 .lavy-workspace{min-height:calc(100dvh - 54px - env(safe-area-inset-top))!important}
 .lavy-chat-large{height:calc(100dvh - 54px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}
 .lavy-input-large{margin-bottom:max(8px,env(safe-area-inset-bottom))}
 .pwa-install-bar{bottom:max(10px,env(safe-area-inset-bottom));align-items:flex-start}.pwa-install-bar .btn{min-width:78px}
}
@media(display-mode:standalone){.version-top{display:none}.topbar{user-select:none}}
