#page-agenda{
  padding:24px;
  overflow:auto;
}

.agenda-page-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px;
}

.agenda-page-header h1{
  margin:0;
  color:#162033;
  font-size:30px;
}

.agenda-page-header p{
  margin:5px 0 0;
  color:#8a9ab2;
  font-size:14px;
}

.agenda-page-actions{
  display:flex;
  gap:9px;
}

.agenda-page-actions button,
.agenda-modal-card footer button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:42px;
  padding:0 14px;
  border-radius:10px;
  font-size:12px;
  font-weight:750;
}

.agenda-page-actions .primary,
.agenda-modal-card .primary{
  border:0;
  background:#15636f;
  color:#fff;
}

.agenda-page-actions .secondary,
.agenda-modal-card .secondary{
  border:1px solid #d8e2ec;
  background:#fff;
  color:#405168;
}

.agenda-page-tabs{
  display:flex;
  align-items:center;
  gap:5px;
  padding:5px;
  margin-bottom:12px;
  border:1px solid #dce5ee;
  border-radius:12px;
  background:#fff;
}

.agenda-page-tabs button{
  min-height:38px;
  padding:0 15px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#64748b;
  font-weight:700;
}

.agenda-page-tabs button.active{
  background:#eaf5f5;
  color:#12616c;
}

.agenda-page-tabs button span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:19px;
  height:19px;
  margin-left:5px;
  padding:0 5px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:9px;
}

.agenda-toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  margin-bottom:12px;
  border:1px solid #dce5ee;
  border-radius:12px;
  background:#fff;
}

.agenda-mode{
  display:flex;
  gap:3px;
  padding:3px;
  border-radius:9px;
  background:#eef3f7;
}

.agenda-mode button{
  min-height:32px;
  padding:0 10px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#64748b;
  font-size:10px;
  font-weight:800;
}

.agenda-mode button.active{
  background:#fff;
  color:#15636f;
}

#agendaPageUserFilter{
  min-height:38px;
  min-width:190px;
  padding:0 10px;
  border:1px solid #d8e2ec;
  border-radius:9px;
  background:#fff;
}

.agenda-period-nav{
  display:flex;
  align-items:center;
  gap:9px;
  margin-left:auto;
}

.agenda-period-nav button{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border:1px solid #d8e2ec;
  border-radius:8px;
  background:#fff;
}

.agenda-period-nav svg{
  width:15px;
}

.agenda-period-nav strong{
  min-width:130px;
  color:#405168;
  font-size:11px;
  text-align:center;
  text-transform:capitalize;
}

.agenda-panel{
  overflow:hidden;
  border:1px solid #dce5ee;
  border-radius:14px;
  background:#fff;
}

.agenda-day-group + .agenda-day-group{
  border-top:1px solid #e8eef4;
}

.agenda-day-group > header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px;
  background:#f8fafc;
}

.agenda-day-group > header strong{
  color:#35465c;
  font-size:12px;
  text-transform:capitalize;
}

.agenda-day-group > header span{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  border-radius:999px;
  background:#e9f3f4;
  color:#15636f;
  font-size:9px;
  font-weight:800;
}

.agenda-event-row{
  display:flex;
  gap:16px;
  min-height:72px;
  padding:12px 16px;
  border-top:1px solid #eef2f6;
}

.agenda-event-time{
  flex:0 0 75px;
}

.agenda-event-time strong{
  display:block;
  color:#25374e;
  font-size:13px;
}

.agenda-event-time small{
  color:#8b9bb1;
  font-size:9px;
}

.agenda-event-copy{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}

.agenda-event-copy > strong{
  color:#1e293b;
  font-size:13px;
}

.agenda-event-copy > small{
  color:#75869d;
  font-size:10px;
}

.agenda-event-type{
  width:max-content;
  padding:3px 7px;
  border-radius:999px;
  background:#edf6f6;
  color:#15636f;
  font-size:8px;
  font-weight:800;
}

.agenda-type-bloqueio{
  border-left:4px solid #f59e0b;
  background:#fffaf2;
}

.agenda-type-reuniao{
  border-left:4px solid #2563eb;
  background:#f8fbff;
}

.agenda-empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:260px;
  padding:30px;
  color:#8ca0ba;
  text-align:center;
}

.agenda-empty svg{
  width:35px;
  height:35px;
  margin-bottom:12px;
}

.agenda-empty strong{
  color:#43536a;
}

.agenda-empty span{
  margin-top:5px;
  font-size:11px;
}

.agenda-invite-card,
.agenda-meeting-card{
  padding:18px;
}

.agenda-invite-card + .agenda-invite-card,
.agenda-meeting-card + .agenda-meeting-card{
  border-top:1px solid #e7edf3;
}

.agenda-invite-card{
  display:flex;
  justify-content:space-between;
  gap:20px;
}

.agenda-invite-card h3,
.agenda-meeting-card h3{
  margin:7px 0 3px;
  color:#1e293b;
}

.agenda-invite-card p{
  margin:0;
  color:#75869d;
  font-size:11px;
}

.agenda-status{
  display:inline-flex;
  padding:4px 8px;
  border-radius:999px;
  font-size:8px;
  font-weight:800;
}

.agenda-status.pendente{
  background:#fef3c7;
  color:#a16207;
}

.agenda-status.aceito{
  background:#dcfce7;
  color:#15803d;
}

.agenda-status.recusado{
  background:#fee2e2;
  color:#b91c1c;
}

.agenda-invite-meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:12px;
}

.agenda-invite-meta span{
  display:flex;
  align-items:center;
  gap:4px;
  color:#64748b;
  font-size:10px;
}

.agenda-invite-meta svg{
  width:13px;
  height:13px;
}

.agenda-invite-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.agenda-invite-actions button{
  min-height:36px;
  padding:0 12px;
  border-radius:8px;
  font-size:10px;
  font-weight:800;
}

.agenda-invite-actions .primary{
  border:0;
  background:#15636f;
  color:#fff;
}

.agenda-invite-actions .danger{
  border:1px solid #fecaca;
  background:#fff;
  color:#b91c1c;
}

.agenda-meeting-card > header{
  display:flex;
  justify-content:space-between;
  gap:15px;
}

.agenda-meeting-card > header span{
  color:#8292a8;
  font-size:10px;
}

.agenda-meeting-card > header > strong{
  color:#64748b;
  font-size:10px;
}

.agenda-meeting-people{
  display:grid;
  grid-template-columns:
    repeat(auto-fill,minmax(200px,1fr));
  gap:7px;
  margin-top:14px;
}

.agenda-meeting-people > div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:9px 11px;
  border:1px solid #e4ebf2;
  border-radius:8px;
}

.agenda-meeting-people span{
  color:#35465c;
  font-size:10px;
}

.agenda-meeting-people strong{
  font-size:9px;
}

.agenda-meeting-people strong.aceito{
  color:#15803d;
}

.agenda-meeting-people strong.pendente{
  color:#a16207;
}

.agenda-meeting-people strong.recusado{
  color:#b91c1c;
}

.agenda-page-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:9000;
}

.agenda-page-modal.is-open{
  display:block;
}

.agenda-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(4px);
}

.agenda-modal-card{
  position:absolute;
  top:50%;
  left:50%;
  width:min(600px,calc(100vw - 28px));
  max-height:calc(100dvh - 40px);
  overflow:auto;
  transform:translate(-50%,-50%);
  border-radius:16px;
  background:#fff;
  box-shadow:0 24px 80px rgba(15,23,42,.28);
}

.agenda-modal-card > header{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:18px;
  border-bottom:1px solid #e8eef4;
}

.agenda-modal-card h2{
  margin:0;
  color:#1e293b;
}

.agenda-modal-card header p{
  margin:4px 0 0;
  color:#8595aa;
  font-size:11px;
}

.agenda-modal-card header > button{
  width:35px;
  height:35px;
  border:0;
  border-radius:9px;
  background:#f1f5f9;
}

.agenda-modal-body{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:18px;
}

.agenda-modal-body label{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.agenda-modal-body label > span,
.agenda-participant-title{
  color:#475569;
  font-size:10px;
  font-weight:800;
}

.agenda-modal-body input{
  min-height:42px;
  padding:0 11px;
  border:1px solid #d7e1eb;
  border-radius:9px;
}

.agenda-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.agenda-participant-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  max-height:230px;
  overflow-y:auto;
}

.agenda-participant{
  display:flex !important;
  flex-direction:row !important;
  align-items:center;
  gap:8px !important;
  padding:10px;
  border:1px solid #e0e8f0;
  border-radius:9px;
}

.agenda-participant input{
  width:17px;
  min-height:auto;
}

.agenda-participant strong{
  color:#334155;
  font-size:10px;
}

.agenda-form-error{
  padding:10px;
  border:1px solid #fecaca;
  border-radius:9px;
  background:#fef2f2;
  color:#b91c1c;
  font-size:10px;
}

.agenda-modal-card footer{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:13px 18px 18px;
  border-top:1px solid #e8eef4;
}

.agenda-page-error{
  padding:20px;
  border:1px solid #fecaca;
  border-radius:12px;
  background:#fef2f2;
  color:#b91c1c;
}

@media(max-width:640px){

  #page-agenda{
    padding:10px 10px 90px;
  }

  .agenda-page-header{
    flex-direction:column;
  }

  .agenda-page-actions{
    width:100%;
  }

  .agenda-page-actions button{
    flex:1;
  }

  .agenda-page-tabs{
    overflow-x:auto;
  }

  .agenda-toolbar{
    flex-wrap:wrap;
  }

  #agendaPageUserFilter{
    width:100%;
  }

  .agenda-period-nav{
    width:100%;
    justify-content:space-between;
  }

  .agenda-invite-card{
    flex-direction:column;
  }

  .agenda-invite-actions{
    width:100%;
  }

  .agenda-invite-actions button{
    flex:1;
  }

  .agenda-form-grid,
  .agenda-participant-list{
    grid-template-columns:1fr;
  }

}
