/* ============================================================
   XINGUZINHO_UX_BLOCO2_CSS_V1
   ============================================================ */

.xux-notif-action-btn {
  position:relative;
  width:34px;
  min-width:34px;
  height:34px;
  margin-left:5px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--tema-borda,#dbe3ec);
  border-radius:10px;
  background:var(--tema-card,#fff);
  color:var(--tema-texto,#0f172a);
  font-size:15px;
  cursor:pointer;
}

.xux-notif-action-btn:hover {
  border-color:#93c5fd;
  background:rgba(37,99,235,.06);
}

.xux-action-badge {
  position:absolute;
  right:-5px;
  top:-5px;
  min-width:16px;
  height:16px;
  padding:0 4px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid var(--tema-card,#fff);
  border-radius:999px;
  background:#dc2626;
  color:#fff;
  font-size:8px;
  font-weight:900;
  line-height:1;
}

.xux-notif-overlay,
.xux-smart-overlay {
  position:fixed;
  inset:0;
  z-index:1600000;
  background:rgba(15,23,42,.46);
  backdrop-filter:blur(3px);
}

.xux-notif-overlay {
  display:flex;
  justify-content:flex-end;
}

.xux-notif-drawer {
  width:min(460px,94vw);
  height:100%;
  overflow:auto;
  padding:18px 16px calc(22px + env(safe-area-inset-bottom));
  border-left:1px solid var(--tema-borda,#e2e8f0);
  background:var(--tema-card,#fff);
  color:var(--tema-texto,#0f172a);
  box-shadow:-20px 0 60px rgba(15,23,42,.24);
}

.xux-notif-head {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:2px 2px 14px;
  border-bottom:1px solid var(--tema-borda,#e2e8f0);
}

.xux-notif-head small {
  color:var(--tema-texto-secundario,#64748b);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}

.xux-notif-head h3 {
  margin:4px 0 3px;
  font-size:18px;
}

.xux-notif-head span {
  color:var(--tema-texto-secundario,#64748b);
  font-size:10px;
}

.xux-notif-head>button {
  width:35px;
  min-width:35px;
  height:35px;
  padding:0;
  border:1px solid var(--tema-borda,#e2e8f0);
  border-radius:10px;
  background:var(--tema-card-2,#f8fafc);
  color:var(--tema-texto,#0f172a);
  font-size:20px;
  cursor:pointer;
}

.xux-notif-list {
  display:grid;
  gap:9px;
  margin-top:13px;
}

.xux-notif-card {
  padding:12px;
  border:1px solid var(--tema-borda,#e2e8f0);
  border-radius:13px;
  background:var(--tema-card,#fff);
}

.xux-notif-card-top {
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.xux-notif-icon {
  width:34px;
  height:34px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:var(--tema-card-2,#f8fafc);
  font-size:16px;
}

.xux-notif-card-top>div {
  min-width:0;
  flex:1;
}

.xux-notif-card strong {
  display:block;
  font-size:11px;
}

.xux-notif-card p {
  margin:4px 0 0;
  color:var(--tema-texto-secundario,#64748b);
  font-size:9px;
  line-height:1.42;
}

.xux-notif-card small {
  display:block;
  margin-top:7px;
  padding-top:7px;
  border-top:1px dashed var(--tema-borda,#e2e8f0);
  color:var(--tema-texto-secundario,#64748b);
  font-size:9px;
  line-height:1.4;
}

.xux-notif-card-actions {
  display:flex;
  justify-content:flex-end;
  gap:6px;
  margin-top:10px;
}

.xux-notif-card-actions button {
  min-height:31px;
  padding:6px 10px;
  border:1px solid var(--tema-borda,#dbe3ec);
  border-radius:8px;
  background:var(--tema-card,#fff);
  color:var(--tema-texto,#0f172a);
  font-size:9px;
  font-weight:800;
  cursor:pointer;
}

.xux-notif-card-actions .primary {
  border-color:#2563eb;
  background:#2563eb;
  color:#fff;
}

.xux-notif-empty {
  padding:28px 14px;
  color:var(--tema-texto-secundario,#64748b);
  text-align:center;
  font-size:11px;
}

.xux-smart-overlay {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.xux-smart-modal {
  width:min(520px,100%);
  overflow:hidden;
  border:1px solid var(--tema-borda,#e2e8f0);
  border-radius:17px;
  background:var(--tema-card,#fff);
  color:var(--tema-texto,#0f172a);
  box-shadow:0 26px 80px rgba(15,23,42,.3);
}

.xux-smart-head {
  display:flex;
  gap:12px;
  padding:20px 20px 14px;
}

.xux-smart-icon {
  width:44px;
  height:44px;
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:13px;
  background:var(--tema-card-2,#f8fafc);
  font-size:21px;
}

.xux-smart-head h3 {
  margin:0;
  font-size:18px;
}

.xux-smart-head p {
  margin:5px 0 0;
  color:var(--tema-texto-secundario,#64748b);
  font-size:10px;
  line-height:1.4;
}

.xux-smart-data {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  padding:0 20px 14px;
}

.xux-smart-data>div {
  padding:9px 10px;
  border:1px solid var(--tema-borda,#e2e8f0);
  border-radius:10px;
}

.xux-smart-data span {
  display:block;
  margin-bottom:3px;
  color:var(--tema-texto-secundario,#64748b);
  font-size:8px;
  font-weight:800;
  text-transform:uppercase;
}

.xux-smart-data strong {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:10px;
}

.xux-smart-effects {
  margin:0 20px 16px;
  padding:11px 12px;
  border-radius:11px;
  background:var(--tema-card-2,#f8fafc);
  color:var(--tema-texto-secundario,#475569);
  font-size:9px;
}

.xux-smart-effects>strong {
  color:var(--tema-texto,#0f172a);
}

.xux-smart-effects ul {
  margin:7px 0 0 17px;
  padding:0;
}

.xux-smart-effects li+li {
  margin-top:4px;
}

.xux-smart-actions {
  display:flex;
  justify-content:flex-end;
  gap:7px;
  padding:13px 20px 18px;
  border-top:1px solid var(--tema-borda,#e2e8f0);
}

.xux-smart-actions button {
  min-height:38px;
  padding:8px 14px;
  border:1px solid var(--tema-borda,#dbe3ec);
  border-radius:9px;
  background:var(--tema-card,#fff);
  color:var(--tema-texto,#0f172a);
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}

.xux-smart-actions .success {
  border-color:#15803d;
  background:#15803d;
  color:#fff;
}

.xux-smart-actions .danger {
  border-color:#b91c1c;
  background:#b91c1c;
  color:#fff;
}

.xux-smart-actions .primary {
  border-color:#2563eb;
  background:#2563eb;
  color:#fff;
}

@media(max-width:700px) {

  .xux-notif-overlay {
    align-items:flex-end;
  }

  .xux-notif-drawer {
    width:100%;
    height:auto;
    max-height:86dvh;
    border-left:0;
    border-top:1px solid var(--tema-borda,#e2e8f0);
    border-radius:20px 20px 0 0;
  }

  .xux-smart-overlay {
    align-items:flex-end;
    padding:8px;
  }

  .xux-smart-modal {
    border-radius:18px 18px 10px 10px;
  }

  .xux-smart-data {
    grid-template-columns:1fr;
  }

  .xux-smart-actions {
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .xux-smart-actions button {
    width:100%;
  }
}
