
.rmi-agenda-live{
  padding:80px 0 110px;
}

.rmi-agenda-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) 380px;
  gap:26px;
  align-items:start;
}

.rmi-agenda-main,
.rmi-agenda-summary{
  background:#fff;
  border:1px solid var(--rmi-border);
  border-radius:28px;
  box-shadow:var(--shadow-sm);
}

.rmi-agenda-main{
  padding:32px;
}

.rmi-agenda-summary{
  padding:27px;
  position:sticky;
  top:105px;
}

.rmi-agenda-progress{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-bottom:32px;
}

.rmi-agenda-progress-item{
  height:5px;
  border-radius:999px;
  background:#e5eeee;
}

.rmi-agenda-progress-item.is-active{
  background:var(--rmi-primary);
}

.rmi-agenda-section{
  padding:25px 0;
  border-bottom:1px solid var(--rmi-border);
}

.rmi-agenda-section:first-of-type{
  padding-top:0;
}

.rmi-agenda-section:last-child{
  border-bottom:0;
}

.rmi-agenda-section h2{
  margin:0 0 6px;
  color:var(--rmi-dark);
  font-size:22px;
}

.rmi-agenda-section > p{
  margin:0 0 20px;
  color:var(--rmi-muted);
  font-size:13px;
  line-height:1.6;
}

.rmi-live-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}

.rmi-live-option{
  border:1px solid var(--rmi-border);
  background:#fbfdfd;
  border-radius:17px;
  padding:17px;
  text-align:left;
  cursor:pointer;
  transition:.18s ease;
}

.rmi-live-option:hover{
  border-color:#9bcfcc;
  transform:translateY(-1px);
}

.rmi-live-option.is-selected{
  border-color:var(--rmi-primary);
  background:var(--rmi-soft);
  box-shadow:0 0 0 3px rgba(11,112,109,.06);
}

.rmi-live-option strong{
  display:block;
  color:var(--rmi-dark);
  margin-bottom:5px;
}

.rmi-live-option small{
  color:var(--rmi-muted);
  line-height:1.5;
}

.rmi-date-input{
  width:100%;
  min-height:54px;
  border:1px solid var(--rmi-border);
  border-radius:15px;
  padding:0 15px;
  background:#fbfdfd;
  color:var(--rmi-dark);
  outline:none;
}

.rmi-date-input:focus{
  border-color:var(--rmi-primary);
  box-shadow:0 0 0 4px rgba(11,112,109,.07);
}

.rmi-slot-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:9px;
}

.rmi-slot{
  min-height:46px;
  border:1px solid var(--rmi-border);
  border-radius:13px;
  background:#fff;
  color:var(--rmi-dark);
  font-weight:800;
  cursor:pointer;
}

.rmi-slot:hover,
.rmi-slot.is-selected{
  background:var(--rmi-primary);
  border-color:var(--rmi-primary);
  color:#fff;
}

.rmi-live-empty{
  border:1px dashed #c9d9d8;
  background:#f8fbfb;
  border-radius:16px;
  padding:24px;
  color:var(--rmi-muted);
  text-align:center;
  font-size:13px;
  line-height:1.65;
}

.rmi-patient-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.rmi-patient-grid .full{
  grid-column:1/-1;
}

.rmi-agenda-summary h3{
  margin:0 0 22px;
  color:var(--rmi-dark);
  font-size:21px;
}

.rmi-summary-row-live{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:13px 0;
  border-bottom:1px solid var(--rmi-border);
}

.rmi-summary-row-live span{
  color:var(--rmi-muted);
  font-size:12px;
}

.rmi-summary-row-live strong{
  color:var(--rmi-dark);
  font-size:12px;
  text-align:right;
}

.rmi-agenda-total{
  display:flex;
  justify-content:space-between;
  align-items:end;
  padding:22px 0;
}

.rmi-agenda-total span{
  color:var(--rmi-muted);
  font-size:12px;
}

.rmi-agenda-total strong{
  color:var(--rmi-primary);
  font-size:22px;
}

.rmi-agenda-message{
  display:none;
  padding:14px;
  border-radius:14px;
  margin-bottom:14px;
  font-size:12px;
  line-height:1.55;
}

.rmi-agenda-message.is-error{
  display:block;
  background:#fff0f0;
  color:#914545;
  border:1px solid #efc7c7;
}

.rmi-agenda-message.is-ok{
  display:block;
  background:#edf9f4;
  color:#276b56;
  border:1px solid #c3e4d7;
}

.rmi-loading{
  opacity:.6;
  pointer-events:none;
}

@media(max-width:960px){

  .rmi-agenda-shell{
    grid-template-columns:1fr;
  }

  .rmi-agenda-summary{
    position:static;
  }

}

@media(max-width:650px){

  .rmi-agenda-main{
    padding:20px;
  }

  .rmi-live-options,
  .rmi-patient-grid{
    grid-template-columns:1fr;
  }

  .rmi-patient-grid .full{
    grid-column:auto;
  }

  .rmi-slot-grid{
    grid-template-columns:repeat(3,1fr);
  }

}
