*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root{
  --grafite:#2C2C2C;--off-white:#F5F5F5;--azul-petroleo:#006064;--azul-petroleo-light:#00838F;
  --laranja:#FF4010;--border:#E0E0E0;--border-light:#EEEEEE;--text-muted:#757575;
  --success:#2E7D32;--success-bg:#E8F5E9;--warning:#EF6C00;--warning-bg:#FFF3E0;
  --error:#C62828;--error-bg:#FFEBEE;--info-bg:#E0F2F1;
  --font-sans:'Inter',sans-serif;--font-mono:'JetBrains Mono',monospace;
  --enrich-bg:linear-gradient(135deg,#ECEFF1 0%,#E0E0E0 100%);
}
body{font-family:var(--font-sans);background:var(--off-white);color:var(--grafite);line-height:1.5;-webkit-font-smoothing:antialiased}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes fadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}

/* LOGIN */
.login-wrapper{height:100vh;display:flex;align-items:center;justify-content:center;background:var(--grafite);position:relative;overflow:hidden}
.login-bg{position:absolute;inset:0;background:radial-gradient(circle at 20% 50%,rgba(0,96,100,0.12) 0%,transparent 50%),radial-gradient(circle at 80% 20%,rgba(255,64,16,0.08) 0%,transparent 40%)}
.login-container{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;width:100%;max-width:340px;padding:0 20px;animation:fadeUp .4s ease-out}
.login-brand{text-align:center;margin-bottom:24px}
.login-brand-name{font-size:10px;font-weight:100;letter-spacing:.3em;text-transform:uppercase;color:rgba(255,255,255,0.4);margin-bottom:4px}
.login-product{font-size:24px;font-weight:700;color:#fff}.login-product span{color:rgba(255,255,255,0.45)}
.login-card{width:100%;background:#fff;border-radius:12px;padding:28px 24px;box-shadow:0 20px 60px rgba(0,0,0,0.3)}
.login-title{font-size:16px;font-weight:600;color:var(--grafite);margin-bottom:2px}
.login-subtitle{font-size:12px;color:var(--text-muted);margin-bottom:20px}
.field-group{margin-bottom:14px}
.field-group label{display:block;font-size:11px;font-weight:600;color:var(--grafite);margin-bottom:5px;text-transform:uppercase;letter-spacing:.02em}
.field-group input{width:100%;padding:10px 12px;border:1.5px solid var(--border);border-radius:6px;font-size:13px;font-family:inherit;color:var(--grafite);outline:none;transition:border-color .15s}
.field-group input:focus{border-color:var(--azul-petroleo)}
.field-group input::placeholder{color:#aaa}
.password-wrap{position:relative}
.password-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:11px;font-weight:500}
.password-toggle:hover{color:var(--azul-petroleo)}
.captcha-box{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1.5px solid var(--border);border-radius:6px;margin-bottom:18px;cursor:pointer;background:var(--off-white);transition:all .15s}
.captcha-box:hover{border-color:#ccc}
.captcha-box.checked{border-color:var(--success);background:var(--success-bg)}
.captcha-checkbox{width:18px;height:18px;border-radius:4px;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;background:#fff;transition:all .15s}
.captcha-box.checked .captcha-checkbox{border-color:var(--success);background:var(--success)}
.captcha-label{font-size:12px;color:var(--grafite);flex:1}
.captcha-brand{font-size:9px;color:var(--text-muted);font-weight:600}
.login-btn{width:100%;padding:11px;background:var(--azul-petroleo);color:#fff;border:none;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;display:flex;align-items:center;justify-content:center;gap:8px;transition:background .15s}
.login-btn:hover{background:var(--azul-petroleo-light)}
.login-btn:disabled{opacity:.7;cursor:not-allowed}
.login-btn .spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,0.3);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}
.login-error{background:var(--error-bg);color:var(--error);font-size:12px;font-weight:500;padding:10px 12px;border-radius:6px;margin-bottom:14px;display:flex;align-items:center;gap:8px}
.login-footer{margin-top:20px;text-align:center;font-size:10px;color:rgba(255,255,255,0.2)}
.watermark{position:fixed;bottom:12px;right:16px;font-size:9px;color:rgba(255,255,255,0.1);z-index:10}
.watermark-app{color:rgba(0,0,0,0.05)}

/* APP */
.app{display:none;min-height:100vh;background:var(--off-white)}
.app.active{display:flex}

/* SIDEBAR */
.sidebar{width:210px;min-width:210px;background:var(--grafite);color:#fff;display:flex;flex-direction:column;padding:18px 0;position:fixed;left:0;top:0;height:100vh;overflow-y:auto}
.logo{padding:2px 18px 20px;border-bottom:1px solid rgba(255,255,255,0.08)}
.logo-text{font-size:10px;font-weight:100;letter-spacing:.25em;text-transform:uppercase;color:rgba(255,255,255,0.4);margin-bottom:3px}
.logo-product{font-size:17px;font-weight:700;color:#fff}
.logo-product span{color:rgba(255,255,255,0.45)}
.menu-label{font-size:9px;font-weight:500;letter-spacing:.15em;text-transform:uppercase;color:rgba(255,255,255,0.25);padding:18px 18px 8px}
nav{flex:1;padding:0 8px;display:flex;flex-direction:column;gap:2px}
.nav-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:6px;cursor:pointer;font-size:13px;font-weight:400;color:rgba(255,255,255,0.55);background:transparent;border:none;width:100%;text-align:left;font-family:inherit;border-left:3px solid transparent;transition:all .12s ease}
.nav-item svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;flex-shrink:0}
.nav-item:hover{color:rgba(255,255,255,0.9);background:rgba(255,255,255,0.05)}
.nav-item.active{background:rgba(0,96,100,0.15);color:#fff;border-left-color:var(--azul-petroleo);font-weight:500}
.nav-item.hidden{display:none}
.nav-badge{margin-left:auto;background:var(--laranja);color:#fff;font-size:9px;font-weight:700;border-radius:10px;padding:2px 7px;min-width:18px;text-align:center}
.sidebar-footer{padding:14px 18px;border-top:1px solid rgba(255,255,255,0.08);margin-top:auto;position:relative}
.sidebar-user{display:flex;align-items:center;gap:10px}
.sidebar-avatar{width:32px;height:32px;border-radius:50%;background:var(--azul-petroleo);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:#fff}

/* USER MENU */
.user-menu{display:none;position:absolute;bottom:100%;left:10px;right:10px;background:#fff;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,0.25);padding:8px 0;margin-bottom:10px;z-index:200;animation:fadeUp .15s ease}
.user-menu.active{display:block}
.user-menu-header{padding:12px 16px}
.user-menu-header strong{display:block;font-size:13px;color:var(--grafite)}
.user-menu-header span{font-size:11px;color:var(--text-muted)}
.user-menu-divider{height:1px;background:var(--border-light);margin:4px 0}
.user-menu-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px 16px;background:none;border:none;font-size:12px;color:var(--grafite);cursor:pointer;font-family:inherit;text-align:left;transition:background .1s}
.user-menu-item:hover{background:var(--off-white)}
.user-menu-item svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8}
.user-menu-item.danger{color:var(--error)}
.user-menu-item.danger:hover{background:var(--error-bg)}

/* HOME SECTIONS */
.home-section{margin-bottom:8px}
.section-divider{height:1px;background:linear-gradient(to right,transparent,var(--border),transparent);margin:24px 0}
.section-label{font-size:10px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.1em;margin-bottom:14px;display:flex;align-items:center;gap:8px}
.section-label::before{content:'';width:3px;height:12px;background:var(--azul-petroleo);border-radius:2px}

/* HOME GRID - Layout 2 colunas balanceado */
.home-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:28px}
.home-col-left,.home-col-right{display:flex;flex-direction:column;gap:16px}
@media(max-width:1024px){.home-grid{grid-template-columns:1.4fr 1fr;gap:20px}}
@media(max-width:800px){.home-grid{grid-template-columns:1fr;gap:16px}}

/* PROFILE CARD */
.profile-card{background:linear-gradient(135deg,var(--azul-petroleo) 0%,#004D52 100%);border-radius:10px;padding:18px;color:#fff}
.profile-header{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.profile-avatar{width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,0.15);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:600;border:2px solid rgba(255,255,255,0.3)}
.profile-info h3{font-size:14px;font-weight:600;margin:0}
.profile-info span{font-size:11px;opacity:0.7}
.profile-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:14px}
.profile-stat{background:rgba(255,255,255,0.1);border-radius:6px;padding:10px;text-align:center}
.profile-stat-value{font-size:16px;font-weight:700}
.profile-stat-label{font-size:9px;opacity:0.7;text-transform:uppercase;margin-top:2px}
.profile-actions{display:flex;gap:8px}
.profile-btn{flex:1;padding:9px 12px;border-radius:6px;font-size:10px;font-weight:600;text-align:center;cursor:pointer;border:none;transition:all .15s;display:flex;align-items:center;justify-content:center;gap:6px}
.profile-btn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8}
.profile-btn-light{background:rgba(255,255,255,0.15);color:#fff}
.profile-btn-light:hover{background:rgba(255,255,255,0.25)}
.profile-btn-outline{background:transparent;border:1px solid rgba(255,255,255,0.3);color:#fff}
.profile-btn-outline:hover{background:rgba(255,255,255,0.1)}

/* ACTIVITY FEED */
.activity-feed{display:flex;flex-direction:column;gap:0}
.activity-item{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid var(--border-light)}
.activity-item:last-child{border-bottom:none}
.activity-dot{width:8px;height:8px;border-radius:50%;background:var(--azul-petroleo);margin-top:4px;flex-shrink:0}
.activity-dot.orange{background:var(--laranja)}
.activity-dot.green{background:var(--success)}
.activity-text{font-size:11px;color:var(--grafite);flex:1;line-height:1.4}
.activity-time{font-size:10px;color:var(--text-muted);white-space:nowrap}

/* GUIDE */
.guide-list{display:flex;flex-direction:column;gap:12px}
.guide-item{display:flex;align-items:flex-start;gap:12px}
.guide-num{width:24px;height:24px;background:var(--azul-petroleo);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex-shrink:0}
.guide-content strong{display:block;font-size:13px;color:var(--grafite)}
.guide-content p{font-size:11px;color:var(--text-muted);margin-top:2px}

/* SUPPORT */
.support-info{display:flex;flex-direction:column;gap:12px}
.support-item{display:flex;align-items:center;gap:12px}
.support-icon{font-size:18px}
.support-text{display:flex;flex-direction:column}
.support-text strong{font-size:12px;color:var(--grafite)}
.support-text span{font-size:11px;color:var(--text-muted)}

/* ABOUT */
.about-info p{font-size:12px;color:var(--grafite);line-height:1.6;margin-bottom:12px}
.about-version{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--text-muted);margin-bottom:10px}
.about-link{font-size:12px;color:var(--azul-petroleo);text-decoration:none;font-weight:500}
.about-link:hover{text-decoration:underline}

/* SETTINGS MODAL */
.settings-modal{position:fixed;inset:0;background:rgba(0,0,0,0.45);display:none;align-items:center;justify-content:center;z-index:150;backdrop-filter:blur(2px)}
.settings-modal.active{display:flex}
.settings-content{background:#fff;border-radius:12px;width:90%;max-width:400px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,0.2);animation:fadeUp .2s ease}
.settings-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.settings-title{font-size:16px;font-weight:700;color:var(--grafite)}
.settings-close{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:4px}
.settings-close:hover{color:var(--grafite)}
.settings-close svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2}
.settings-section{margin-bottom:20px}
.settings-label{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;margin-bottom:8px}
.settings-value{font-size:14px;color:var(--grafite);padding:10px 12px;background:var(--off-white);border-radius:6px;margin-bottom:8px}
.settings-info{font-size:10px;color:var(--text-muted)}
.sidebar-user-info{flex:1;min-width:0}
.sidebar-user-name{font-size:12px;font-weight:600;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-user-role{font-size:10px;color:rgba(255,255,255,0.4);margin-top:1px}
.sidebar-logout{background:none;border:none;color:rgba(255,255,255,0.35);cursor:pointer;padding:6px;border-radius:6px;display:flex;transition:all .12s}
.sidebar-logout:hover{color:rgba(255,255,255,0.9);background:rgba(255,255,255,0.08)}
.sidebar-logout svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8}

/* MAIN */
.main{flex:1;margin-left:210px;padding:22px 32px;min-height:100vh}
.page{display:none;animation:fadeIn .2s ease;max-width:1200px;margin:0 auto}
.page.active{display:block}
.page-header{margin-bottom:20px}
.page-title{font-size:18px;font-weight:700;color:var(--grafite);margin-bottom:3px}
.page-subtitle{font-size:12px;color:var(--text-muted)}

/* STATS */
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:16px}
.stats-grid.stats-grid-3{grid-template-columns:repeat(3,1fr)}
.stats-grid.stats-grid-tribunais{grid-template-columns:repeat(2,1fr);margin-bottom:20px}
@media(max-width:800px){.stats-grid,.stats-grid.stats-grid-3{grid-template-columns:1fr 1fr}.stats-grid.stats-grid-tribunais{grid-template-columns:1fr 1fr}}
@media(max-width:500px){.stats-grid,.stats-grid.stats-grid-3,.stats-grid.stats-grid-tribunais{grid-template-columns:1fr}}
.stat-card{background:#fff;border-radius:10px;padding:18px 20px;box-shadow:0 1px 4px rgba(0,0,0,0.04);border:1px solid var(--border-light);transition:all .15s}
.stat-card:hover{box-shadow:0 4px 12px rgba(0,0,0,0.06)}
.stat-card.accent-orange{border-color:rgba(255,64,16,0.15)}
.stat-card.accent-dark{border-color:rgba(44,44,44,0.15)}
.stat-card.accent-green{border-color:rgba(46,125,50,0.15)}
.stat-card-tribunal{border-radius:12px;padding:24px;text-align:center;position:relative;overflow:hidden}
.stat-card-tribunal.tjsp{background:rgba(0,96,100,0.03);border:1px solid rgba(0,96,100,0.1)}
.stat-card-tribunal.tjgo{background:rgba(255,64,16,0.03);border:1px solid rgba(255,64,16,0.1)}
.stat-card-tribunal .stat-value{font-size:32px}
.stat-card-tribunal .stat-meta{margin-top:8px}
.stat-tribunal-badge{display:inline-block;font-size:11px;font-weight:700;padding:4px 12px;border-radius:6px;margin-bottom:10px;background:var(--azul-petroleo);color:white;letter-spacing:.05em}
.stat-tribunal-badge.tjgo{background:var(--laranja)}
.stat-label{font-size:10px;color:var(--text-muted);font-weight:600;text-transform:uppercase;margin-bottom:6px;letter-spacing:.03em}
.stat-value{font-size:26px;font-weight:700;color:var(--grafite)}
.stat-meta{font-size:10px;color:var(--text-muted);margin-top:6px}
.stat-card.disabled{opacity:.5}
.stat-card.disabled .stat-meta{font-style:italic}

/* CARD */
.card{background:#fff;border-radius:10px;padding:20px;box-shadow:0 1px 4px rgba(0,0,0,0.04)}
.home-section .card{margin-bottom:0}
.card-title{font-size:13px;font-weight:700;color:var(--grafite);margin-bottom:14px}

/* BUTTONS */
.btn{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit;border:none;transition:all .12s}
.btn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}
.btn-primary{background:var(--azul-petroleo);color:#fff}
.btn-primary:hover{background:var(--azul-petroleo-light)}
.btn-primary:disabled{opacity:.5;cursor:not-allowed}
.btn-secondary{background:transparent;color:var(--azul-petroleo);border:1.5px solid var(--azul-petroleo)}
.btn-secondary:hover{background:var(--info-bg)}
.btn-secondary:disabled{opacity:.4;cursor:not-allowed}
.btn-ghost{background:transparent;color:var(--text-muted);border:1.5px solid var(--border)}
.btn-ghost:hover{border-color:#bbb;color:var(--grafite)}
.btn-success{background:var(--success);color:#fff}
.btn-success:hover{background:#1b5e20}
.btn-danger{background:var(--error);color:#fff}
.btn-danger:hover{background:#b71c1c}
.btn-sm{padding:6px 12px;font-size:11px}
.btn.hidden{display:none}
.quick-actions{display:flex;gap:10px;flex-wrap:wrap}

/* SEARCH & FILTERS */
.search-bar{display:flex;gap:10px;margin-bottom:24px}
.search-bar input{flex:1;padding:10px 14px;border:1.5px solid var(--border);border-radius:6px;font-size:13px;font-family:inherit;background:#fff;color:var(--grafite);outline:none;transition:border-color .15s}
.search-bar input:focus{border-color:var(--azul-petroleo)}
.search-bar input::placeholder{color:#aaa}

/* SEARCH ACTIONS - Buscar + Limpar separation */
.search-actions{display:flex;align-items:stretch;gap:8px;flex:0 0 auto}
.search-actions .btn{height:100%;min-height:38px;white-space:nowrap;padding:0 16px;margin:0}
.search-actions .btn:first-child{border-radius:0 5px 5px 0}
.search-actions .btn:last-child{border-radius:5px}

.search-clear-btn{background:var(--surface);border:1.5px solid var(--border);color:var(--laranja);transition:all .12s}
.search-clear-btn:hover{background:var(--error-bg);border-color:var(--error);color:var(--error)}

.filters-row{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;margin-bottom:24px}
.filter-group{display:flex;flex-direction:column;gap:4px}
.filter-group label{font-size:10px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.02em;height:16px;display:flex;align-items:center}
.filter-group select,.filter-group input{padding:0 10px;border:1.5px solid var(--border);border-radius:6px;font-size:12px;font-family:inherit;background:#fff;color:var(--grafite);outline:none;transition:border-color .15s;height:36px;box-sizing:border-box;line-height:36px}
.filter-group select:focus,.filter-group input:focus{border-color:var(--azul-petroleo)}
.filter-group input[type="number"]{width:120px}
.filter-group input[type="date"]{width:158px;cursor:pointer}
.filter-group select{min-width:115px}
.filters-row .btn{height:36px;padding:0 14px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}

/* SEARCH FILTERS LAYOUT - Semantic filter structure */
.search-filters-layout{display:flex;align-items:flex-start;gap:10px;flex-wrap:nowrap;width:100%;box-sizing:border-box;margin-top:12px;overflow:visible}

/* Filter groups - each is a column (label above control) */
.search-filters-layout .tribunal-group{display:flex;flex-direction:column;flex-shrink:0}
.search-filters-layout .comarca-group{display:flex;flex-direction:column;flex-shrink:0}
.search-filters-layout .value-group{display:flex;gap:8px;flex-shrink:0}
.search-filters-layout .period-group{display:flex;flex-direction:column;flex-shrink:0}
.search-filters-layout .apenas-group{display:flex;flex-direction:column;flex-shrink:0}
.search-filters-layout .actions-group{display:flex;align-items:flex-end;gap:8px;flex-shrink:0;margin-left:auto}

/* Group item styling - normalized */
.search-filters-layout .custom-dropdown{display:flex;flex-direction:column;z-index:100;position:relative;min-width:110px;gap:4px}
.search-filters-layout .custom-dropdown label{font-size:10px;font-weight:600;color:var(--text-muted);text-transform:uppercase;margin:0}
.search-filters-layout .dropdown-content{position:absolute;z-index:101}
.search-filters-layout .filter-group{display:flex;flex-direction:column;gap:4px;margin:0;flex-shrink:0}
.search-filters-layout .filter-group label{font-size:10px;font-weight:600;color:var(--text-muted);text-transform:uppercase;white-space:nowrap;margin:0}
.search-filters-layout .filter-group input[type="number"]{width:70px}

/* APENAS group - vertical checkbox layout */
.filters-apenas-group{display:flex;flex-direction:column;gap:4px;flex-shrink:0;margin:0}
.filters-apenas-group>span{font-size:10px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.02em;margin-bottom:0;white-space:nowrap}
.filters-apenas-group>div{display:flex;flex-direction:column;gap:2px}
.filters-apenas-group label{display:flex;align-items:center;gap:4px;cursor:pointer;margin:0;font-size:12px;color:var(--text);white-space:nowrap;height:20px}

/* PROCESSO CARD - OTIMIZADO */
.processo-card{background:#fff;border-radius:10px;padding:18px;box-shadow:0 1px 4px rgba(0,0,0,0.04);margin-bottom:12px;border:1.5px solid transparent;cursor:pointer;transition:all .12s}
.processo-card:hover{border-color:var(--azul-petroleo);box-shadow:0 4px 16px rgba(0,96,100,0.1);transform:translateY(-1px)}
.processo-card.in-watchlist{border-color:var(--success);background:linear-gradient(to right,var(--success-bg) 0%,#fff 100%)}
.processo-header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:12px}
.processo-left{flex:1;min-width:0}
.processo-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.processo-cnj{font-size:14px;font-weight:700;font-family:var(--font-mono);color:var(--azul-petroleo)}
.tribunal-badge{font-size:9px;font-weight:700;color:#fff;background:var(--azul-petroleo);padding:3px 8px;border-radius:4px;text-transform:uppercase}
.tribunal-badge.tjgo{background:var(--laranja)}
.processo-classe{font-size:11px;color:var(--text-muted)}
.processo-right{text-align:right;flex-shrink:0}
.processo-valor{font-size:18px;font-weight:700;color:var(--success)}
.processo-status{font-size:9px;font-weight:600;padding:3px 10px;border-radius:10px;margin-top:4px;display:inline-block}
.processo-status.normalizado{color:var(--success);background:var(--success-bg)}
.processo-status.processando{color:var(--warning);background:var(--warning-bg)}
.processo-status.erro{color:var(--error);background:var(--error-bg)}
.processo-body{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px;font-size:12px}
.processo-field .processo-label{font-size:9px;font-weight:600;color:var(--text-muted);text-transform:uppercase;margin-bottom:2px}
.processo-field .processo-value{color:var(--grafite);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ENRICH PREVIEW (nos cards de consulta) */
.enrich-preview{margin-top:12px;padding-top:12px;border-top:1px dashed var(--border);display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.enrich-preview-item{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--text-muted)}
.enrich-preview-item span{color:var(--grafite);font-weight:500}
.enrich-preview-badge{font-size:9px;background:var(--info-bg);color:var(--azul-petroleo);padding:2px 8px;border-radius:10px;font-weight:600}

/* WATCHLIST CARD - OTIMIZADO COM ENRICH */
.watch-card{position:relative;background:#fff;border-radius:10px;padding:18px 20px 18px 46px;box-shadow:0 1px 4px rgba(0,0,0,0.04);margin-bottom:14px;border:1.5px solid var(--border-light);transition:all .12s}
.watch-card:hover{border-color:var(--azul-petroleo);box-shadow:0 4px 16px rgba(0,96,100,0.1)}
.watch-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}
.watch-left{flex:1;min-width:0}
.watch-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.watch-cnj{font-size:14px;font-weight:700;font-family:var(--font-mono);color:var(--azul-petroleo)}
.watch-classe{font-size:11px;color:var(--text-muted)}
.watch-right{text-align:right}
.watch-valor{font-size:18px;font-weight:700;color:var(--success)}
.watch-partes{display:flex;gap:20px;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--border-light)}
.watch-parte{font-size:12px;color:var(--grafite)}
.watch-parte-label{color:var(--text-muted);font-weight:600}

/* ENRICH SECTION (watchlist) */
.enrich-section{background:var(--enrich-bg);border-radius:8px;padding:14px 16px;margin-bottom:14px}
.enrich-header{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.enrich-icon{font-size:14px}
.enrich-title{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em}
.enrich-status{font-size:10px;padding:2px 8px;border-radius:10px;margin-left:auto;font-weight:600}
.enrich-status.available{color:var(--success);background:var(--success-bg)}
.enrich-status.pending{color:var(--warning);background:var(--warning-bg)}
.enrich-status.unavailable{color:var(--text-muted);background:#eee}
.enrich-status.manual{color:#7b1fa2;background:#f3e5f5}
.enrich-prompt{background:linear-gradient(135deg,#f8f9fa 0%,#e8f4f8 100%);border:1px dashed var(--azul-petroleo);border-radius:10px;padding:24px;text-align:center}
.enrich-prompt-icon{font-size:32px;margin-bottom:10px}
.enrich-prompt-text{font-size:13px;color:var(--text-muted);margin-bottom:16px;line-height:1.5;max-width:300px;margin-left:auto;margin-right:auto}
.enrich-prompt .btn{padding:10px 20px}
.enrich-prompt-note{font-size:10px;color:var(--text-muted);margin-top:10px}
.enrich-loading{display:flex;flex-direction:column;align-items:center;padding:30px;color:var(--text-muted)}
.enrich-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 16px}
.enrich-item{display:flex;align-items:center;gap:6px;font-size:12px}
.enrich-item-icon{font-size:12px;opacity:.7}
.enrich-item-value{color:var(--grafite);font-weight:500}
.enrich-row{display:flex;align-items:center;gap:6px;font-size:12px;margin-top:6px}
.enrich-pending{background:var(--warning-bg);border-radius:8px;padding:12px 14px;display:flex;align-items:center;gap:10px;margin-bottom:14px}
.enrich-pending-icon{font-size:16px;animation:pulse 1.5s infinite}
.enrich-pending-text{font-size:12px;color:var(--warning)}
.enrich-unavailable{background:#f5f5f5;border-radius:8px;padding:12px 14px;display:flex;align-items:center;gap:10px;margin-bottom:14px}
.enrich-unavailable-icon{font-size:16px;opacity:.4}
.enrich-unavailable-text{font-size:12px;color:var(--text-muted)}

.watch-footer{display:flex;justify-content:space-between;align-items:center}
.watch-date{font-size:10px;color:var(--text-muted)}
.watch-body{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--border-light)}
.watch-field .watch-label{font-size:9px;font-weight:600;color:var(--text-muted);text-transform:uppercase;margin-bottom:2px}
.watch-field .watch-value{font-size:12px;color:var(--grafite);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.watch-actions{display:flex;align-items:center;justify-content:space-between;background:var(--white);border:1px solid var(--border);border-radius:8px;padding:12px 16px;margin-bottom:16px}
.watch-select-all{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-muted);cursor:pointer}
.watch-select-all input{width:16px;height:16px;cursor:pointer;accent-color:var(--azul-petroleo)}
.watch-card-check{position:absolute;top:12px;left:12px}
.watch-card-check input{width:18px;height:18px;cursor:pointer;accent-color:var(--azul-petroleo)}
.watch-card.selected{border-color:var(--azul-petroleo);background:rgba(0,96,100,.02)}
.btn-danger{background:var(--error);color:white;border:none}
.btn-danger:hover{background:#a71d1d}
.btn-sm{padding:6px 12px;font-size:11px}

/* RESULTS */
.results-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;flex-wrap:wrap;gap:10px}
.results-count{font-size:12px;color:var(--text-muted)}
.results-actions{display:flex;align-items:center;gap:12px}
.results-limit{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--text-muted)}
.results-limit select{padding:5px 8px;border:1px solid var(--border);border-radius:5px;font-size:11px;font-family:inherit;background:#fff;cursor:pointer}

/* PAGINATION */
.pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:20px;padding-top:20px;border-top:1px solid var(--border-light)}
.pagination-btn{padding:8px 14px;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit;border:1.5px solid var(--border);background:#fff;color:var(--grafite);display:flex;align-items:center;gap:5px;transition:all .12s}
.pagination-btn:hover:not(:disabled){border-color:var(--azul-petroleo);color:var(--azul-petroleo);background:var(--info-bg)}
.pagination-btn:disabled{opacity:.35;cursor:not-allowed}
.pagination-btn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}
.pagination-info{font-size:12px;color:var(--text-muted);font-weight:500}
.pagination-info strong{color:var(--grafite)}

/* LOADING & EMPTY */
.loading-container{display:flex;flex-direction:column;align-items:center;padding:50px 20px;color:var(--text-muted)}
.loading-spinner{width:32px;height:32px;border:3px solid var(--border);border-top-color:var(--azul-petroleo);border-radius:50%;animation:spin .7s linear infinite;margin-bottom:12px}
.loading-text{font-size:13px}
.empty-state{text-align:center;padding:50px 20px;color:var(--text-muted)}
.empty-icon{font-size:42px;margin-bottom:12px;opacity:.25}
.empty-title{font-size:14px;font-weight:600;margin-bottom:4px;color:var(--grafite)}

/* MODAL */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.55);display:none;align-items:center;justify-content:center;z-index:100;backdrop-filter:blur(4px)}
.modal-overlay.active{display:flex}
.modal{background:#fff;border-radius:12px;padding:0;width:92%;max-width:720px;max-height:90vh;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,0.2);animation:fadeUp .2s ease;display:flex;flex-direction:column}
.modal-header{padding:20px 24px;border-bottom:1px solid var(--border-light);display:flex;justify-content:space-between;align-items:flex-start}
.modal-header-left{flex:1}
.modal-badges{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.modal-cnj{font-size:16px;font-weight:700;font-family:var(--font-mono);color:var(--azul-petroleo)}
.modal-valor{font-size:22px;font-weight:700;color:var(--success);margin-top:6px}
.modal-close{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:4px;border-radius:6px;transition:all .12s}
.modal-close:hover{color:var(--grafite);background:var(--off-white)}
.modal-close svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2}
.modal-body{flex:1;overflow-y:auto;padding:20px 24px}
.modal-loading{display:flex;flex-direction:column;align-items:center;padding:50px;color:var(--text-muted)}
.modal-loading .loading-spinner{margin-bottom:12px}
.modal-section{margin-bottom:20px}
.modal-section-title{font-size:11px;font-weight:700;color:var(--text-muted);text-transform:uppercase;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--border-light);letter-spacing:.03em;display:flex;align-items:center;gap:8px}
.modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.modal-field{margin-bottom:2px}
.modal-label{font-size:9px;font-weight:600;color:var(--text-muted);text-transform:uppercase;margin-bottom:2px}
.modal-value{font-size:13px;font-weight:500;color:var(--grafite)}
.modal-footer{padding:16px 24px;border-top:1px solid var(--border-light);display:flex;gap:10px;justify-content:flex-end}

/* MODAL ENRICH SECTIONS */
.modal-enrich{background:var(--enrich-bg);border-radius:10px;padding:18px 20px;margin-bottom:16px}
.modal-enrich-header{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.modal-enrich-title{font-size:13px;font-weight:700;color:var(--grafite)}
.modal-enrich-status{font-size:10px;padding:3px 10px;border-radius:10px;font-weight:600}
.modal-enrich-updated{font-size:10px;color:var(--text-muted);margin-left:auto}
.modal-enrich-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.modal-enrich-card{background:#fff;border-radius:8px;padding:14px 16px;border:1px solid var(--border-light)}
.modal-enrich-card-title{font-size:10px;font-weight:700;color:var(--text-muted);text-transform:uppercase;margin-bottom:10px;display:flex;align-items:center;gap:6px}
.modal-enrich-card-title span{font-size:14px}
.modal-enrich-row{font-size:12px;color:var(--grafite);margin-bottom:6px;display:flex;align-items:center;gap:6px}
.modal-enrich-row:last-child{margin-bottom:0}
.modal-enrich-row-label{color:var(--text-muted);min-width:70px}
.modal-enrich-row-value{font-weight:500}
.modal-enrich-list{list-style:none}
.modal-enrich-list li{font-size:12px;color:var(--grafite);padding:6px 0;border-bottom:1px solid var(--border-light);display:flex;align-items:center;gap:8px}
.modal-enrich-list li:last-child{border-bottom:none}
.whatsapp-badge{font-size:9px;background:#25D366;color:#fff;padding:2px 6px;border-radius:4px;font-weight:600}
.enrich-reu-accordion{border-bottom:1px solid var(--border-light);margin-bottom:4px}
.enrich-reu-accordion[open]{margin-bottom:8px}
.enrich-reu-summary{display:flex;justify-content:space-between;align-items:center;padding:8px 4px;cursor:pointer;list-style:none;font-weight:500;color:var(--grafite);font-family:'Inter',sans-serif;font-size:13px}
.enrich-reu-summary::-webkit-details-marker{display:none}
.enrich-reu-nome{flex:1}

/* PARTES */
.parte-card{background:var(--off-white);border-radius:8px;padding:14px;margin-bottom:10px;display:flex;align-items:center;gap:12px}
.parte-content{flex:1}
.parte-header{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.parte-papel{font-size:9px;font-weight:700;text-transform:uppercase;padding:3px 8px;border-radius:4px;display:inline-block}
.parte-papel.autor{color:var(--azul-petroleo);background:var(--info-bg)}
.parte-papel.reu{color:var(--laranja);background:rgba(255,64,16,0.1)}
.parte-nome{font-size:13px;font-weight:600;color:var(--grafite)}
.parte-adv{font-size:11px;color:var(--text-muted);margin-top:8px}
.parte-search-btn{width:28px;height:28px;border:1.5px solid var(--azul-petroleo);background:white;border-radius:5px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .12s;flex-shrink:0}
.parte-search-btn:hover{background:var(--azul-petroleo)}
.parte-search-btn:hover svg{stroke:white}
.parte-search-btn svg{width:12px;height:12px;stroke:var(--azul-petroleo);fill:none;stroke-width:2.5}

/* EXPORT */
.export-option{display:flex;align-items:center;gap:14px;padding:18px;background:#fff;border:1.5px solid var(--border);border-radius:10px;cursor:pointer;margin-bottom:12px;transition:all .12s}
.export-option:hover{border-color:var(--azul-petroleo)}
.export-option.selected{border-color:var(--azul-petroleo);background:var(--info-bg)}
.export-option.disabled{opacity:.45;cursor:not-allowed;pointer-events:none}
.export-icon{font-size:28px}
.export-title{font-size:14px;font-weight:600;color:var(--grafite)}
.export-desc{font-size:11px;color:var(--text-muted);margin-top:3px}
.export-buttons{display:flex;gap:12px;flex-wrap:wrap}

/* TOAST */
.toast{position:fixed;bottom:20px;right:20px;background:var(--success);color:#fff;padding:12px 18px;border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,0.2);z-index:200;font-size:13px;font-weight:500;display:none;align-items:center;gap:8px;animation:fadeUp .2s ease}
.toast.active{display:flex}
.toast.error{background:var(--error)}

/* DEMO BANNER */
.demo-banner{background:linear-gradient(135deg,#fff8e1 0%,#ffecb3 100%);border:1px solid #ffca28;color:#f57c00;padding:10px 14px;border-radius:8px;font-size:12px;margin-bottom:16px;display:none;align-items:center;gap:8px;font-weight:500}
.demo-banner.active{display:flex}

/* CONFIRM DIALOG */
.confirm-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.4);display:none;align-items:center;justify-content:center;z-index:150}
.confirm-overlay.active{display:flex}
.confirm-dialog{background:#fff;border-radius:12px;padding:24px;width:90%;max-width:360px;text-align:center}
.confirm-icon{font-size:48px;margin-bottom:16px}
.confirm-title{font-size:16px;font-weight:700;color:var(--grafite);margin-bottom:8px}
.confirm-text{font-size:13px;color:var(--text-muted);margin-bottom:20px}
.confirm-actions{display:flex;gap:10px;justify-content:center}

/* CLOSE PROCESS DIALOG - Refined style */
.close-process-dialog{background:#fff;border-radius:12px;width:90%;max-width:400px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,0.2);animation:fadeUp .2s ease;display:flex;flex-direction:column}
.close-process-header{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1.5px solid var(--border)}
.close-process-title{font-size:15px;font-weight:600;color:var(--grafite)}
.close-process-close{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:4px;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:all .12s}
.close-process-close:hover{color:var(--grafite);background:var(--off-white)}
.close-process-close svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2.5}
.close-process-body{padding:18px 20px;border-bottom:1.5px solid var(--border)}
.close-process-text{font-size:13px;color:var(--text-muted);line-height:1.5}
.close-process-footer{padding:16px 20px;display:flex;gap:10px;justify-content:flex-end}

/* PROSPECÇÃO */
.prosp-quick-filters{display:flex;align-items:center;gap:8px;margin-bottom:16px;flex-wrap:wrap}
.prosp-quick-label{font-size:11px;color:var(--text-muted);font-weight:600}
.prosp-quick-btn{padding:6px 12px;border:1.5px solid var(--border);background:#fff;border-radius:20px;font-size:11px;font-weight:500;cursor:pointer;transition:all .12s;font-family:inherit;color:var(--grafite)}
.prosp-quick-btn:hover{border-color:var(--azul-petroleo);color:var(--azul-petroleo);background:var(--info-bg)}
.prosp-filters{display:flex;flex-direction:column;gap:16px}
.prosp-filter-row{display:grid;gap:14px;align-items:flex-end}
.prosp-row-4{grid-template-columns:1fr 1fr 1fr 1.3fr}
.prosp-row-2{grid-template-columns:1fr 1fr}
.prosp-filter-row .filter-group input,.prosp-filter-row .filter-group select{height:36px;padding:0 10px;box-sizing:border-box;width:100%;border:1.5px solid var(--border);border-radius:6px;font-size:12px;font-family:inherit;background:#fff;color:var(--grafite);outline:none;transition:border-color .15s}
.prosp-filter-row .filter-group input:focus,.prosp-filter-row .filter-group select:focus{border-color:var(--azul-petroleo)}
.prosp-filter-row .filter-group input[type="date"]{cursor:pointer}
.prosp-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px;padding-top:16px;border-top:1px solid var(--border-light)}
.prosp-summary{margin-bottom:20px}
.prosp-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:14px}
.prosp-summary-card{background:#fff;border-radius:10px;padding:16px;display:flex;align-items:center;gap:14px;box-shadow:0 1px 4px rgba(0,0,0,0.04);border:1px solid var(--border-light)}
.prosp-summary-card.accent{background:linear-gradient(135deg,#e8f5e9 0%,#c8e6c9 100%);border-color:var(--success)}
.prosp-summary-icon{font-size:24px}
.prosp-summary-value{font-size:20px;font-weight:700;color:var(--grafite)}
.prosp-summary-label{font-size:10px;color:var(--text-muted);text-transform:uppercase;margin-top:2px}
.prosp-ranking{background:#fff;border-radius:10px;padding:16px;border:1px solid var(--border-light)}
.prosp-ranking-title{font-size:12px;font-weight:700;color:var(--grafite);margin-bottom:12px;display:flex;align-items:center;gap:6px}
.prosp-ranking-list{display:flex;flex-direction:column;gap:8px}
.prosp-ranking-item{display:flex;align-items:center;gap:10px;font-size:12px}
.prosp-ranking-pos{width:20px;height:20px;background:var(--azul-petroleo);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;flex-shrink:0}
.prosp-ranking-pos.gold{background:#f59e0b}
.prosp-ranking-pos.silver{background:#94a3b8}
.prosp-ranking-pos.bronze{background:#d97706}
.prosp-ranking-name{flex:1;color:var(--grafite);font-weight:500}
.prosp-ranking-stats{display:flex;gap:12px;font-size:11px;color:var(--text-muted)}
.prosp-ranking-bar{height:6px;background:var(--off-white);border-radius:3px;flex:1;overflow:hidden}
.prosp-ranking-fill{height:100%;background:linear-gradient(90deg,var(--azul-petroleo),var(--success));border-radius:3px}
.prosp-card{background:#fff;border:1.5px solid var(--border-light);border-radius:10px;padding:16px 18px;margin-bottom:12px;cursor:pointer;transition:all .12s}
.prosp-card:hover{border-color:var(--azul-petroleo);box-shadow:0 4px 16px rgba(0,96,100,0.1)}
.prosp-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px}
.prosp-cnj{font-size:13px;font-weight:700;font-family:var(--font-mono);color:var(--azul-petroleo)}
.prosp-valor{font-size:20px;font-weight:700;color:var(--success)}
.prosp-partes{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px}
.prosp-parte-label{font-size:9px;font-weight:600;color:var(--text-muted);text-transform:uppercase}
.prosp-parte-value{color:var(--grafite);margin-top:2px}
.prosp-badge{display:inline-block;padding:2px 8px;border-radius:4px;font-size:10px;font-weight:600;margin-left:8px}
.prosp-high{background:#e8f5e9;color:#2e7d32}
.prosp-medium{background:#fff8e1;color:#f57c00}

/* RESPONSIVE */
@media(max-width:900px){.stats-grid{grid-template-columns:1fr 1fr}.modal-grid,.modal-enrich-grid{grid-template-columns:1fr}.main{padding:18px 20px;margin-left:190px}.sidebar{width:190px;min-width:190px}.processo-body{grid-template-columns:1fr}.enrich-grid{grid-template-columns:1fr}.home-grid{grid-template-columns:1fr}.prosp-filter-row{grid-template-columns:1fr}.prosp-summary-grid{grid-template-columns:repeat(2,1fr)}.prosp-quick-filters{justify-content:flex-start}}
@media(max-width:700px){.sidebar{display:none}.main{margin-left:0}.stats-grid{grid-template-columns:1fr}.filters-row{flex-direction:column;align-items:stretch}.filter-group select,.filter-group input{width:100%}.watch-partes{flex-direction:column;gap:8px}.watch-body{grid-template-columns:1fr}.prosp-partes{grid-template-columns:1fr}.prosp-summary-grid{grid-template-columns:1fr 1fr}.prosp-quick-btn{padding:5px 10px;font-size:10px}}

/* CARD CHECKBOX (direita, abaixo do valor) — hover reveal desktop, always visible mobile */
.processo-check{margin-top:6px;display:flex;align-items:center;justify-content:flex-end;gap:6px;opacity:0.25;transition:opacity .15s}
.processo-card:hover .processo-check,.processo-card.selected .processo-check{opacity:1}
.processo-check input{width:18px;height:18px;cursor:pointer;accent-color:var(--azul-petroleo)}
.processo-check input:checked{opacity:1}
.processo-check label{font-size:10px;color:var(--text-muted);cursor:pointer;user-select:none}
.processo-card.selected{border-color:var(--azul-petroleo);background:rgba(0,96,100,.02)}
@media(max-width:700px){.processo-check{opacity:0.5}}

/* BARRA FLUTUANTE SELEÇÃO — FLOATING PILL */
.selection-bar{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--grafite);border-radius:40px;padding:10px 24px;display:none;align-items:center;gap:16px;z-index:90;box-shadow:0 8px 32px rgba(0,0,0,0.28);animation:fadeUp .2s ease;max-width:520px;width:auto}
.selection-bar.active{display:flex}
.selection-bar-left{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:#fff;white-space:nowrap}
.selection-bar-left span{color:var(--azul-petroleo-light)}
.selection-bar-right{display:flex;gap:8px}
.selection-bar-right .btn-ghost{color:rgba(255,255,255,0.7);border-color:rgba(255,255,255,0.25)}
.selection-bar-right .btn-ghost:hover{color:#fff;border-color:rgba(255,255,255,0.5);background:rgba(255,255,255,0.08)}
.selection-bar-right .btn-primary{background:var(--azul-petroleo);color:#fff}
.selection-bar-right .btn-primary:hover{background:var(--azul-petroleo-light)}
@media(max-width:700px){.selection-bar{left:16px;right:16px;transform:none;max-width:none}}

/* MODAL ATRIBUIR */
.assign-modal{position:fixed;inset:0;background:rgba(0,0,0,0.55);display:none;align-items:center;justify-content:center;z-index:150;backdrop-filter:blur(4px)}
.assign-modal.active{display:flex}
.assign-content{background:#fff;border-radius:12px;width:90%;max-width:440px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,0.25);animation:fadeUp .2s ease}
.assign-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.assign-title{font-size:16px;font-weight:700;color:var(--grafite)}
.assign-close{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:4px}
.assign-close:hover{color:var(--grafite)}
.assign-close svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2}
.assign-field{margin-bottom:16px}
.assign-field label{display:block;font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;margin-bottom:6px}
.assign-field select,.assign-field input{width:100%;padding:10px 12px;border:1.5px solid var(--border);border-radius:6px;font-size:13px;font-family:inherit;background:#fff;color:var(--grafite);outline:none}
.assign-field select:focus,.assign-field input:focus{border-color:var(--azul-petroleo)}
.assign-summary{background:var(--off-white);border-radius:8px;padding:12px;font-size:12px;color:var(--text-muted);margin-bottom:16px}
.assign-summary strong{color:var(--grafite)}
.assign-actions{display:flex;gap:10px;justify-content:flex-end}

/* TOP INSTITUIÇÕES */
.top-inst{background:#fff;border-radius:10px;padding:16px;box-shadow:0 1px 4px rgba(0,0,0,0.04);margin-bottom:16px;display:none}
.top-inst.active{display:block}
.top-inst-title{font-size:12px;font-weight:700;color:var(--grafite);margin-bottom:12px;display:flex;align-items:center;gap:6px}
.top-inst-list{display:flex;flex-direction:column;gap:8px}
.top-inst-item{display:flex;align-items:center;gap:10px;font-size:12px}
.top-inst-pos{width:20px;height:20px;background:var(--azul-petroleo);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;flex-shrink:0}
.top-inst-pos.gold{background:#f59e0b}
.top-inst-pos.silver{background:#94a3b8}
.top-inst-pos.bronze{background:#d97706}
.top-inst-name{flex:1;color:var(--grafite);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;padding-right:10px}
.top-inst-bar{height:6px;background:var(--off-white);border-radius:3px;flex:1;overflow:hidden}
.top-inst-fill{height:100%;background:linear-gradient(90deg,var(--azul-petroleo),var(--success));border-radius:3px}
.top-inst-stats{font-size:11px;color:var(--text-muted);white-space:nowrap;flex-shrink:0;text-align:right}
.top-inst-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:800px){.top-inst-grid{grid-template-columns:1fr}}

/* SEARCH SUMMARY INDICATORS */
.search-summary{display:none;margin-bottom:16px;margin-top:16px}
.search-summary.active{display:block}
.search-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:14px}
.search-summary-card{background:#fff;border-radius:10px;padding:16px;display:flex;align-items:center;gap:16px;box-shadow:0 1px 4px rgba(0,0,0,0.04);border:1px solid var(--border-light)}
.search-summary-card.accent{background:linear-gradient(135deg,#e8f5e9 0%,#c8e6c9 100%);border-color:var(--success)}
.search-summary-icon{width:24px;height:24px;color:var(--azul-petroleo);flex-shrink:0}
.search-summary-icon svg{width:24px;height:24px}
.search-summary-info{display:flex;flex-direction:column;justify-content:center}
.search-summary-value{font-size:20px;font-weight:700;color:var(--grafite);font-family:var(--font-sans)}
.search-summary-label{font-size:10px;color:var(--text-muted);text-transform:uppercase;margin-top:2px;font-family:var(--font-sans)}
@media(max-width:800px){.search-summary-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:500px){.search-summary-grid{grid-template-columns:1fr 1fr}}

/* ATRIBUIÇÕES PAGE */
.atrib-card{background:#fff;border-radius:10px;padding:12px 14px;box-shadow:0 1px 4px rgba(0,0,0,0.04);margin-bottom:10px;border-left:4px solid var(--azul-petroleo);transition:all .12s}
.atrib-card:hover{box-shadow:0 4px 12px rgba(0,0,0,0.08)}
.atrib-card.status-in_progress{border-left-color:var(--warning)}
.atrib-card.status-closed{border-left-color:var(--success)}
.atrib-card.status-watchlist{border-left-color:#9c27b0}
.atrib-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px}
.atrib-left{flex:1;min-width:0}
.atrib-cnj{font-size:13px;font-weight:700;font-family:var(--font-mono);color:var(--azul-petroleo)}
.atrib-meta{display:flex;gap:16px;align-items:center;font-size:11px;margin-bottom:8px;flex-wrap:wrap}
.atrib-meta-item{color:var(--text-muted);white-space:nowrap}
.atrib-meta-item strong{color:var(--grafite);font-weight:600}
.atrib-header-badges{display:flex;align-items:center;gap:8px;flex-shrink:0}
.atrib-status{font-size:10px;font-weight:600;padding:3px 10px;border-radius:10px;display:inline-block;flex-shrink:0}
.atrib-status.pending{color:var(--azul-petroleo);background:var(--info-bg)}
.atrib-status.in_progress{color:var(--warning);background:var(--warning-bg)}
.atrib-status.closed{color:var(--success);background:var(--success-bg)}
.atrib-status.watchlist{color:#9c27b0;background:#f3e5f5}
.atrib-enrichment-badge{font-size:10px;font-weight:600;padding:3px 10px;border-radius:10px;color:var(--success);background:var(--success-bg);white-space:nowrap}
.atrib-body{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px;margin-bottom:10px}
.atrib-field-label{font-size:9px;font-weight:600;color:var(--text-muted);text-transform:uppercase}
.atrib-field-value{color:var(--grafite);font-weight:500}
.atrib-actions{display:flex;gap:8px;align-items:center;padding-top:8px;border-top:1px solid var(--border-light)}
.atrib-actions select{padding:6px 10px;border:1.5px solid var(--border);border-radius:6px;font-size:11px;font-family:inherit;background:#fff;cursor:pointer}
.atrib-filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-bottom:16px}
.atrib-filters .filter-group { flex: 1; min-width: 140px; }
.atrib-filters .filter-group:last-child { flex: 0 0 auto; min-width: auto; }
.atrib-filters .filter-group input, .atrib-filters .filter-group select { width: 100%; }
.atrib-filters .btn{height:36px;padding:0 14px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:11px;flex:0 0 auto}
.contato-card{background:var(--off-white);border-radius:8px;padding:12px;margin-top:8px;font-size:12px}
.contato-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.contato-card-date{font-size:11px;font-weight:600;color:var(--grafite)}
.contato-card-desfecho{font-size:10px;font-weight:600;padding:2px 8px;border-radius:10px}
.contato-card-desfecho.advance{color:var(--success);background:var(--success-bg)}
.contato-card-desfecho.later{color:var(--warning);background:var(--warning-bg)}
.contato-card-desfecho.no{color:var(--error);background:var(--error-bg)}
.contato-card-body{color:var(--text-muted);line-height:1.5}

/* PASSWORD RESET TOGGLE */
.login-forgot{text-align:center;margin-top:12px}
.login-forgot-btn{background:none;border:none;color:var(--azul-petroleo);font-size:12px;font-weight:500;cursor:pointer;font-family:inherit;text-decoration:underline;text-underline-offset:2px}
.login-forgot-btn:hover{color:var(--azul-petroleo-light)}
.login-reset-form{display:none;animation:fadeUp .2s ease}
.login-reset-form.active{display:block}
.login-back-btn{background:none;border:none;color:var(--text-muted);font-size:11px;cursor:pointer;font-family:inherit;display:flex;align-items:center;gap:4px;margin-bottom:14px;padding:0}
.login-back-btn:hover{color:var(--grafite)}
.login-back-btn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}

/* USERS TABLE PAGE */
.users-table-wrap{overflow-x:auto}
.users-table{width:100%;border-collapse:collapse;font-size:12px}
.users-table thead{background:var(--off-white)}
.users-table th{font-size:10px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em;padding:10px 14px;text-align:left;border-bottom:2px solid var(--border)}
.users-table td{padding:10px 14px;border-bottom:1px solid var(--border-light);color:var(--grafite)}
.users-table tr:hover td{background:rgba(0,96,100,0.02)}
.users-table .role-badge{font-size:10px;font-weight:600;padding:3px 10px;border-radius:10px;display:inline-block}
.users-table .role-badge.operator{color:#7b1fa2;background:#f3e5f5}
.users-table .role-badge.admin{color:var(--azul-petroleo);background:var(--info-bg)}
.users-table .role-badge.user{color:var(--text-muted);background:var(--off-white)}

/* CUSTOM DROPDOWN FRAMEWORK */
.custom-dropdown{position:relative;display:inline-block;min-width:140px}
.dropdown-header{display:flex;align-items:center;justify-content:space-between;padding:0 10px;height:36px;border:1.5px solid var(--border);border-radius:6px;background:var(--off-white);cursor:pointer;font-size:13px;color:var(--grafite);transition:border-color .15s;user-select:none}
.dropdown-header:hover{border-color:var(--azul-petroleo)}
.dropdown-header.open{border-color:var(--azul-petroleo);background:#fff}
.dropdown-caret{width:16px;height:16px;display:flex;align-items:center;justify-content:center;font-size:11px;transition:transform .2s}
.dropdown-header.open .dropdown-caret{transform:rotate(180deg)}
.dropdown-content{display:none;position:absolute;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1.5px solid var(--border);border-radius:6px;box-shadow:0 4px 12px rgba(0,0,0,0.15);z-index:1000;min-width:160px}
.dropdown-content.open{display:block;animation:fadeUp .15s ease-out}
.dropdown-item{padding:8px 12px;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--grafite);cursor:pointer;transition:background .1s}
.dropdown-item:hover{background:var(--off-white)}
.dropdown-item input[type="checkbox"]{margin:0;width:16px;height:16px;cursor:pointer;accent-color:var(--azul-petroleo)}
.dropdown-item label{cursor:pointer;flex:1;margin:0}

/* CAPTURE BUTTON */
.btn-capture{background:linear-gradient(135deg,#37474f 0%,#263238 100%);color:#fff;border:none}
.btn-capture:hover{background:linear-gradient(135deg,#455a64 0%,#37474f 100%)}
