/* UrbanHoff Gestión v9.2 · legibilidad + Búsquedas + procesamiento Gmail */

/* Barra superior: contraste forzado en TODOS los temas. */
html body #app .workspace > header.topbar,
html body:not(.dark-mode) #app .workspace > header.topbar,
html body.dark-mode #app .workspace > header.topbar{
  background:linear-gradient(100deg,#0b355b 0%,#0b2d4d 58%,#081f36 100%)!important;
  border-color:rgba(255,255,255,.10)!important;
  color:#fff!important;
}
html body #app .workspace > header.topbar #pageTitle,
html body #app .workspace > header.topbar .topbar-title h2{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  text-shadow:0 1px 1px rgba(0,0,0,.24)!important;
}
html body #app .workspace > header.topbar #pageSub,
html body #app .workspace > header.topbar .topbar-title p,
html body #app .workspace > header.topbar .topbar-inline-contact,
html body #app .workspace > header.topbar .topbar-inline-contact span,
html body #app .workspace > header.topbar .topbar-inline-contact strong,
html body #app .workspace > header.topbar .topbar-user-copy small,
html body #app .workspace > header.topbar .topbar-clock small{
  color:#dce9f6!important;
  -webkit-text-fill-color:#dce9f6!important;
  opacity:1!important;
}
html body #app .workspace > header.topbar .topbar-user-copy strong,
html body #app .workspace > header.topbar .topbar-clock strong{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}
html body #app .workspace > header.topbar svg{stroke:#f8fbff!important}
html body #app .workspace > header.topbar .top-action,
html body #app .workspace > header.topbar .sidebar-toggle{
  color:#f8fbff!important;
  border-color:rgba(255,255,255,.22)!important;
  background:rgba(255,255,255,.08)!important;
}
html body #app .workspace > header.topbar .topbar-inline-contact i{background:rgba(255,255,255,.30)!important}

/* Sidebar institucional permanente: solo el contenido central cambia de tema. */
html body #app > aside.sidebar,
html body:not(.dark-mode) #app > aside.sidebar,
html body.dark-mode #app > aside.sidebar{
  background:linear-gradient(180deg,#0a3154 0%,#081d33 100%)!important;
  color:#fff!important;
}
html body #app > aside.sidebar .nav button,
html body #app > aside.sidebar .nav button .nav-label,
html body #app > aside.sidebar .nav button .nav-icon,
html body #app > aside.sidebar .nav button svg{
  color:#f8fbff!important;
  opacity:1!important;
  letter-spacing:.012em!important;
}
html body #app > aside.sidebar .nav button svg{stroke:#f8fbff!important}
html body #app > aside.sidebar .nav button.active{
  background:rgba(255,255,255,.13)!important;
  box-shadow:inset 3px 0 0 #fff!important;
}

/* Búsquedas · filtros por entrega y trazabilidad de cada coincidencia. */
.uhpa-card-filter{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:7px 0 8px}
.uhpa-card-filter button{border:1px solid var(--line);background:var(--panel,#fff);color:var(--muted);border-radius:999px;padding:4px 8px;font-size:7.7px;font-weight:850;cursor:pointer}
.uhpa-card-filter button.active{background:#173f68;border-color:#173f68;color:#fff}
.uhpa-card-match{align-items:flex-start!important}
.uhpa-card-match-copy{flex:1}
.uhpa-card-match-copy>small{line-height:1.4!important;color:var(--muted)!important}
.uhpa-card-match-actions,.uhpa-client-item-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:3px}
.uhpa-card-match-actions a,.uhpa-card-match-actions button,.uhpa-client-item-actions a,.uhpa-client-item-actions button{
  min-height:27px;border:1px solid var(--line);border-radius:7px;padding:5px 8px;background:var(--panel,#fff);color:#25405f;text-decoration:none;font-size:7.8px;font-weight:850;cursor:pointer
}
.uhpa-card-match-actions a:first-child,.uhpa-client-item-actions a:first-child{background:#245fa8;border-color:#245fa8;color:#fff}
.uhpa-delivery-toggle.sent{background:#eaf8f0!important;border-color:#9dd7b5!important;color:#0a7040!important}
.uhpa-delivery-toggle.pending{background:#fff8e8!important;border-color:#ead096!important;color:#8a620c!important}
.uhpa-delivery-meta{display:block!important;font-size:7.6px!important;color:var(--muted)!important;margin-top:1px}
body.dark-mode .uhpa-card-filter button,body.dark-mode .uhpa-card-match-actions a,body.dark-mode .uhpa-card-match-actions button,body.dark-mode .uhpa-client-item-actions a,body.dark-mode .uhpa-client-item-actions button{background:#172a40;border-color:#38506a;color:#e6eff9}
body.dark-mode .uhpa-card-filter button.active{background:#376fa9;border-color:#4e84bc;color:#fff}
body.dark-mode .uhpa-delivery-toggle.sent{background:#183c2c!important;border-color:#397557!important;color:#bde9cf!important}
body.dark-mode .uhpa-delivery-toggle.pending{background:#443719!important;border-color:#705c2c!important;color:#f4db9a!important}

/* Gmail · bandeja compacta de procesamiento. */
.v92-processing{background:#fff;border-bottom:1px solid #dfe5ed;padding:8px 12px;display:grid;gap:7px}
.v92-processing-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.v92-processing-head>div{display:grid;gap:1px}.v92-processing-head strong{font-size:10px;color:#24354a}.v92-processing-head small{font-size:7.5px;color:#718095}
.v92-processing-head button{width:29px;height:27px;border:1px solid #d3dce7;border-radius:8px;background:#fff;color:#2a405c;cursor:pointer}
.v92-processing-counts{display:flex;gap:5px;overflow-x:auto;padding-bottom:1px}
.v92-processing-counts>span{font-size:8px;color:#718095}
.v92-processing-counts button{flex:0 0 auto;display:flex;align-items:center;gap:5px;border:1px solid #dbe3ec;border-radius:999px;background:#f8fafc;color:#526278;padding:4px 7px;cursor:pointer}
.v92-processing-counts button strong{font-size:8px;color:#24354a}.v92-processing-counts button span{font-size:7px;font-weight:800}
.v92-processing-counts button.active{background:#173f68;border-color:#173f68;color:#fff}.v92-processing-counts button.active strong{color:#fff}
.v92-processing-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;max-height:96px;overflow:auto}
.v92-processing-row{display:grid;grid-template-columns:22px minmax(0,1fr) minmax(90px,.75fr) 38px;align-items:center;gap:6px;text-align:left;border:1px solid #e0e6ee;border-radius:8px;background:#fbfcfe;padding:5px 7px;cursor:pointer;color:#2b3b50}
.v92-processing-row:hover{background:#f2f6fb}.v92-process-icon{width:20px;height:20px;border-radius:7px;display:grid;place-items:center;background:#edf2f8;font-size:9px;font-weight:900}
.v92-process-main{display:grid;min-width:0;gap:1px}.v92-process-main strong{font-size:7.8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v92-process-main small{font-size:7px;color:#748197;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v92-process-detail{font-size:7px;color:#6b788b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v92-processing-row time{font-size:6.8px;color:#8995a5;text-align:right}
.v92-processing-row.kind-client_created .v92-process-icon{background:#e8f7ee;color:#087242}.v92-processing-row.kind-client_updated .v92-process-icon{background:#eaf1fb;color:#275f9d}.v92-processing-row.kind-search_alert .v92-process-icon{background:#edf1ff;color:#3c59af}.v92-processing-row.kind-opportunity .v92-process-icon{background:#fff4d8;color:#8d6500}.v92-processing-row.kind-manual_review .v92-process-icon{background:#fff0e5;color:#a04a13}.v92-processing-row.kind-ignored .v92-process-icon{background:#eef1f4;color:#6b7580}
.v92-processing-empty{font-size:8px;color:#718095;padding:5px}.v92-processing-empty strong,.v92-processing-empty span{display:block}
.v92592-opportunity-alert,.v92592-review-alert{margin:10px 0;padding:9px 11px;border-radius:9px;display:grid;gap:2px}.v92592-opportunity-alert{background:#fff8df;border:1px solid #ead592}.v92592-opportunity-alert strong{color:#745400;font-size:9.5px}.v92592-opportunity-alert span{color:#725f27;font-size:8px}.v92592-review-alert{background:#fff1e9;border:1px solid #efc5a8}.v92592-review-alert strong{color:#9a4210;font-size:9.5px}.v92592-review-alert span{color:#80543a;font-size:8px}
body.dark-mode .v92-processing{background:#111f31;border-color:#2a3e55}.dark-mode .v92-processing-head strong{color:#eef4fb}.dark-mode .v92-processing-head small,.dark-mode .v92-process-main small,.dark-mode .v92-process-detail,.dark-mode .v92-processing-row time{color:#a8b7c8}.dark-mode .v92-processing-head button,.dark-mode .v92-processing-counts button{background:#172a40;border-color:#38506a;color:#dce8f5}.dark-mode .v92-processing-counts button strong{color:#eaf2fb}.dark-mode .v92-processing-counts button.active{background:#376fa9;border-color:#4e84bc}.dark-mode .v92-processing-row{background:#14263a;border-color:#2c4259;color:#e6eef8}.dark-mode .v92-processing-row:hover{background:#1a3048}.dark-mode .v92592-opportunity-alert{background:#403616;border-color:#6f5d2a}.dark-mode .v92592-opportunity-alert strong{color:#ffe29a}.dark-mode .v92592-opportunity-alert span{color:#e3d2a4}.dark-mode .v92592-review-alert{background:#40291c;border-color:#70482f}.dark-mode .v92592-review-alert strong{color:#ffc69f}.dark-mode .v92592-review-alert span{color:#e7bea5}

@media(max-width:900px){.v92-processing-list{grid-template-columns:1fr;max-height:120px}.v92-processing-row{grid-template-columns:22px minmax(0,1fr) 35px}.v92-process-detail{display:none}}
@media(max-width:620px){.v92-processing{padding:7px}.v92-processing-list{display:none}.v92-processing-head small{display:none}.uhpa-card-match-actions,.uhpa-client-item-actions{width:100%}.uhpa-card-match-actions a,.uhpa-card-match-actions button,.uhpa-client-item-actions a,.uhpa-client-item-actions button{flex:1;text-align:center;white-space:nowrap}}
