/* ================================
   OVERLAY BLUR PENTRU POPUP
   ================================ */
.card-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 900;
    display: none;
}

.card-overlay.is-visible {
    display: block;
}

/* ================================
   POPUP CARD (similar cu .cmt-modal)
   ================================ */
.card-modal {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: min(640px, 92vw);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
    z-index: 1000;
    transition: opacity .15s ease;
}

.card-modal.hidden {
    display: none;
}

.card-modal-header {
    cursor: move;
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.card-modal-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.card-modal-close {
    background: transparent;
    border: 0;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
}

.card-modal-body {
    padding: 12px 14px 14px;
}

/* Section title/subtitle în popup */
.card-popup-section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-popup-section-sub {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}

/* Tabel din popup / pagini detalii */
.card-popup-table,
.alerts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.card-popup-table thead th,
.alerts-table thead th {
    text-align: left;
    font-weight: 700;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 10px;
    font-size: 12px;
    color: #111827;
}

.card-popup-table tbody td,
.alerts-table tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #111827;
    vertical-align: top;
}

.card-popup-table tbody tr:hover,
.alerts-table tbody tr:hover {
    background: #fafafa;
}

/* Badge pentru tip alertă */
.card-popup-badge,
.alerts-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #1e40af;
    font-size: 12px;
}
/* ================================
   CARD BASE (pentru widgeturi)
   ================================ */
.card {
  background: #fff;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  margin-bottom: 14px;

  /* IMPORTANT: uniformizare text */
  font-size: 13px;
  color: #111827;
}

.card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Empty / loading */
.card .empty,
.card .loading {
  font-size: 13px;
  color: #6b7280;
  padding: 8px 2px;
}

/* Butoane mici (dacă nu sunt deja în alt css) */
.btn.mini,
.btn.btn-mini {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 8px;
}

.btn.x-mini {
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 8px;
}

.btn.btn-muted {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
}
/* ================================
   ALERTS AGENT – ACCORDION SECTIONS
   ================================ */
.alert-section{
  border:1px solid #e5e7eb;
  border-radius:14px;
  margin-bottom:14px;
  overflow:hidden;
  background:#fff;
}

.alert-section-header{
  width:100%;
  background:#f9fafb;
  border:0;
  padding:14px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  color:#111827;
}

.alert-section-header:hover{ background:#f3f4f6; }

.alert-section-header .right{
  display:flex;
  align-items:center;
  gap:10px;
}

.alert-section-header .count{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:999px;
  padding:2px 10px;
  font-size:12px;
  color:#111827;
}

.alert-section-header .chevron{
  transition:transform .25s ease;
  font-size:14px;
  color:#6b7280;
}

.alert-section.collapsed .chevron{
  transform:rotate(-90deg);
}

.alert-section-body{
  padding:12px 16px 14px;
}

.alert-section.collapsed .alert-section-body{
  display:none;
}
