.owner-alerts-panel {
  margin-top: 12px;
  border-color: #cadcd4;
  overflow: hidden;
}

.owner-alerts-panel .panel-head {
  padding: 10px 14px;
  background: linear-gradient(90deg,#edf7f2,#fffaf0);
}

.owner-alerts-panel h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #104f3e;
}

.owner-alert-count {
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #b3262e;
  color: #fff;
  font-size: 9px;
}

.owner-alerts-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  padding: 9px;
}

.owner-alert {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e1e9e5;
  border-left: 4px solid #8ca59b;
  border-radius: 8px;
  background: #fff;
}

.owner-alert-critical { border-left-color:#bd2831; background:#fff7f7; }
.owner-alert-warning { border-left-color:#d79a20; background:#fffaf0; }
.owner-alert-info { border-left-color:#3f78a8; background:#f7fbff; }
.owner-alert-positive { border-left-color:#21815f; background:#f4fbf7; }

.owner-alert-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.owner-alert h4 {
  margin: 0;
  color: #18362f;
  font-size: 11px;
}

.owner-alert-metric {
  flex: none;
  color: #ad2730;
  font-size: 12px;
  font-weight: 850;
}

.owner-alert-positive .owner-alert-metric { color:#176447; }
.owner-alert p { margin:4px 0 7px; line-height:1.35; font-size:9px; }
.owner-alert button { padding:0; border:0; background:none; color:#996415; font-size:9px; font-weight:750; cursor:pointer; }
.owner-moving-list { list-style:none; display:grid; gap:3px; margin:7px 0 0; padding:0; }
.owner-moving-list li { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:10px; }
.owner-moving-list li span { display:flex; align-items:center; gap:5px; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.owner-moving-list li span b { width:15px; height:15px; flex:none; display:grid; place-items:center; border-radius:50%; background:#fff0ca; color:#94610c; font-size:8px; }
.owner-moving-list li strong { flex:none; color:#176447; }
.owner-alert-loading,.owner-alert-clear { grid-column:1/-1; padding:13px; text-align:center; color:#63746e; font-size:11px; }
.owner-alert-clear b { display:block; margin-bottom:3px; color:#176447; font-size:13px; }

.owner-head-actions {
  display:flex;
  align-items:center;
  gap:7px;
}

#whatsappManager {
  width:150px;
  padding:7px 9px;
  border:1px solid #c9ddd4;
  border-radius:8px;
  background:#fff;
  color:#18362f;
  font-size:9px;
}

.whatsapp-summary-button {
  padding:8px 11px;
  border:0;
  border-radius:8px;
  background:#16845f;
  color:#fff;
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
}

.whatsapp-summary-button:hover { background:#0e6c4c; }
.whatsapp-summary-button:disabled { opacity:.55; cursor:not-allowed; }

@media(max-width:1100px){.owner-alerts-list{grid-template-columns:1fr 1fr}}

@media(max-width:640px){
  .owner-alerts-panel { margin-top:8px; }
  .owner-alerts-panel .panel-head { align-items:flex-start; padding:8px 10px; }
  .owner-alerts-panel .panel-head p { display:none; }
  .owner-head-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px; width:min(100%,290px); }
  #whatsappManager { width:100%; min-width:0; }
  .whatsapp-summary-button { padding:7px 8px; }
  .owner-head-actions .text-button { grid-column:2; }
  .owner-alerts-list {
    display:flex;
    gap:7px;
    padding:7px;
    overflow-x:auto;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }
  .owner-alert { min-width:255px; padding:9px 10px; scroll-snap-align:start; }
  .owner-alert-loading,.owner-alert-clear { min-width:100%; }
}
