/* =========================================================
   OPERA - PAINEL OPERACIONAL POR PERFIL
   ========================================================= */

.opera-day-dashboard{
  width:100%;
}

.opera-day-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}

.opera-day-heading h1{
  margin:0;
  color:#172033;
  font-size:28px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.03em;
}

.opera-day-heading p{
  margin:6px 0 0;
  color:#94a3b8;
  font-size:14px;
}

.opera-day-open-crm{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:0 16px;
  border:1px solid #dbe7e9;
  border-radius:12px;
  background:#fff;
  color:#15636f;
  font-size:13px;
  font-weight:750;
}

.opera-day-open-crm svg{
  width:17px;
  height:17px;
}

.opera-day-welcome{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
  padding:15px 18px;
  border:1px solid #dbe7e9;
  border-radius:15px;
  background:
    linear-gradient(
      90deg,
      #f1fbf8,
      #f8fcfc
    );
}

.opera-day-user-avatar{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 48px;
  width:48px;
  height:48px;
  border-radius:999px;
  background:#d5f3e3;
  color:#15803d;
  font-weight:800;
}

.opera-day-welcome > div:nth-child(2){
  flex:1 1 auto;
  min-width:0;
}

.opera-day-welcome strong{
  color:#1e293b;
  font-size:15px;
}

.opera-day-welcome p{
  margin:3px 0 0;
  color:#64748b;
  font-size:12px;
}

.opera-day-welcome-scope{
  flex:0 0 auto;
  padding:8px 12px;
  border-radius:10px;
  background:#fff;
  color:#15636f;
  font-size:11px;
  font-weight:700;
}

.opera-day-kpis{
  display:grid;
  grid-template-columns:
    repeat(6,minmax(0,1fr));
  gap:12px;
  margin-bottom:18px;
}

.opera-day-kpi{
  position:relative;
  min-width:0;
  min-height:154px;
  padding:15px;
  border:1px solid #e2e8f0;
  border-radius:15px;
  background:#fff;
  overflow:hidden;
}

.opera-day-kpi::before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  left:0;
  height:2px;
  background:#1984c5;
}

.opera-day-kpi.green::before{
  background:#22a06b;
}

.opera-day-kpi.cyan::before{
  background:#2b8fb4;
}

.opera-day-kpi.emerald::before{
  background:#16a34a;
}

.opera-day-kpi.orange::before{
  background:#f97316;
}

.opera-day-kpi.purple::before{
  background:#8b5cf6;
}

.opera-day-kpi-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  margin-bottom:11px;
  border-radius:11px;
  background:#edf6ff;
  color:#1976d2;
}

.opera-day-kpi.green .opera-day-kpi-icon{
  background:#eaf8ef;
  color:#16a34a;
}

.opera-day-kpi.cyan .opera-day-kpi-icon{
  background:#e9f6fa;
  color:#1582a5;
}

.opera-day-kpi.emerald .opera-day-kpi-icon{
  background:#eaf8ef;
  color:#159447;
}

.opera-day-kpi.orange .opera-day-kpi-icon{
  background:#fff2e8;
  color:#ea580c;
}

.opera-day-kpi.purple .opera-day-kpi-icon{
  background:#f3edff;
  color:#7c3aed;
}

.opera-day-kpi-icon svg{
  width:19px;
  height:19px;
}

.opera-day-kpi-label{
  min-height:34px;
  color:#334155;
  font-size:12px;
  font-weight:700;
  line-height:1.3;
}

.opera-day-kpi-value{
  margin-top:8px;
  color:#172033;
  font-size:26px;
  line-height:1;
  font-weight:850;
  letter-spacing:-.04em;
}

.opera-day-kpi-detail{
  margin-top:8px;
  overflow:hidden;
  color:#64748b;
  font-size:11px;
  line-height:1.25;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.opera-day-main-grid{
  display:grid;
  grid-template-columns:
    minmax(0,.95fr)
    minmax(0,1.15fr)
    minmax(0,1fr);
  gap:14px;
  align-items:start;
}

.opera-day-panel{
  min-width:0;
  overflow:hidden;
  border:1px solid #e2e8f0;
  border-radius:15px;
  background:#fff;
}

.opera-day-panel > header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:55px;
  padding:13px 15px;
  border-bottom:1px solid #eef2f7;
}

.opera-day-panel > header > div{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.opera-day-panel > header svg{
  width:17px;
  height:17px;
  color:#475569;
}

.opera-day-panel > header strong{
  overflow:hidden;
  color:#263247;
  font-size:13px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.opera-day-panel > header > span{
  flex:0 0 auto;
  color:#94a3b8;
  font-size:10px;
}

.opera-day-panel-body{
  padding:4px 14px 12px;
}

.opera-day-agenda-row,
.opera-day-lead-row{
  appearance:none;
  width:100%;
  border:0;
  background:#fff;
  text-align:left;
}

.opera-day-agenda-row{
  display:grid;
  grid-template-columns:
    52px 12px minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
  min-height:65px;
  padding:7px 0;
  border-bottom:1px solid #f1f5f9;
}

.opera-day-agenda-time{
  color:#334155;
  font-size:12px;
  font-weight:700;
}

.opera-day-agenda-line{
  position:relative;
  display:block;
  width:8px;
  height:8px;
  border:2px solid #2080df;
  border-radius:999px;
}

.opera-day-agenda-line::after{
  content:"";
  position:absolute;
  top:9px;
  left:2px;
  width:1px;
  height:48px;
  background:#e2e8f0;
}

.opera-day-agenda-row:last-child
.opera-day-agenda-line::after{
  display:none;
}

.opera-day-agenda-copy{
  display:block;
  min-width:0;
}

.opera-day-agenda-copy strong{
  display:block;
  overflow:hidden;
  color:#263247;
  font-size:12px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.opera-day-agenda-copy small{
  display:block;
  margin-top:3px;
  overflow:hidden;
  color:#94a3b8;
  font-size:10px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.opera-day-status{
  padding:4px 7px;
  border-radius:999px;
  background:#eaf4ff;
  color:#1976d2;
  font-size:9px;
  font-weight:700;
}

.opera-day-lead-row{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:65px;
  padding:8px 0;
  border-bottom:1px solid #f1f5f9;
}

.opera-day-lead-avatar{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:999px;
  background:#e7f4f5;
  color:#15636f;
  font-size:10px;
  font-weight:800;
}

.opera-day-lead-copy{
  display:block;
  flex:1 1 auto;
  min-width:0;
}

.opera-day-lead-copy strong{
  display:block;
  overflow:hidden;
  color:#263247;
  font-size:12px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.opera-day-lead-copy small{
  display:block;
  margin-top:3px;
  overflow:hidden;
  color:#94a3b8;
  font-size:10px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.opera-day-lead-side{
  flex:0 0 auto;
  text-align:right;
}

.opera-day-lead-side b{
  display:inline-block;
  padding:4px 7px;
  border-radius:999px;
  background:#eaf4ff;
  color:#1976d2;
  font-size:9px;
}

.opera-day-lead-side b.danger{
  background:#fee2e2;
  color:#dc2626;
}

.opera-day-lead-side b.warning{
  background:#ffedd5;
  color:#ea580c;
}

.opera-day-lead-side small{
  display:block;
  margin-top:3px;
  color:#94a3b8;
  font-size:9px;
}

.opera-day-funnel-row{
  padding:11px 0;
  border-bottom:1px solid #f1f5f9;
}

.opera-day-funnel-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.opera-day-funnel-top strong{
  overflow:hidden;
  color:#263247;
  font-size:11px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.opera-day-funnel-top span{
  color:#172033;
  font-size:11px;
  font-weight:800;
}

.opera-day-funnel-track{
  height:5px;
  margin-top:7px;
  overflow:hidden;
  border-radius:999px;
  background:#edf2f7;
}

.opera-day-funnel-track span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:#2d8ce6;
}

.opera-day-funnel-row small{
  display:block;
  margin-top:4px;
  color:#94a3b8;
  font-size:9px;
}

.opera-day-empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:180px;
  padding:24px;
  color:#94a3b8;
  text-align:center;
}

.opera-day-empty svg{
  width:28px;
  height:28px;
  margin-bottom:10px;
  color:#94a3b8;
}

.opera-day-empty strong{
  color:#475569;
  font-size:13px;
}

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

.opera-day-data-note{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:13px;
  color:#94a3b8;
  font-size:10px;
}

.opera-day-data-note svg{
  flex:0 0 auto;
  width:14px;
  height:14px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:1200px){

  .opera-day-kpis{
    grid-template-columns:
      repeat(3,minmax(0,1fr));
  }

  .opera-day-main-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .opera-day-funnel-panel{
    grid-column:
      1 / -1;
  }

}


/* =========================================================
   MOBILE / PWA
   ========================================================= */

@media(max-width:640px){

  #page-dashboard[data-opera-profile-dashboard="1"]{
    padding:0 !important;
  }

  .opera-day-heading{
    margin-bottom:12px;
  }

  .opera-day-heading h1{
    font-size:24px;
  }

  .opera-day-heading p{
    font-size:11px;
  }

  .opera-day-open-crm{
    width:42px;
    min-width:42px;
    height:42px;
    padding:0;
    border-radius:12px;
    font-size:0;
  }

  .opera-day-open-crm svg{
    width:19px;
    height:19px;
  }

  .opera-day-welcome{
    align-items:flex-start;
    padding:13px;
  }

  .opera-day-user-avatar{
    flex-basis:42px;
    width:42px;
    height:42px;
    font-size:12px;
  }

  .opera-day-welcome strong{
    font-size:14px;
  }

  .opera-day-welcome p{
    font-size:11px;
    line-height:1.4;
  }

  .opera-day-welcome-scope{
    display:none;
  }

  .opera-day-kpis{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
    gap:9px;
  }

  .opera-day-kpi{
    min-height:135px;
    padding:12px;
  }

  .opera-day-kpi-icon{
    width:34px;
    height:34px;
    margin-bottom:8px;
  }

  .opera-day-kpi-label{
    min-height:31px;
    font-size:11px;
  }

  .opera-day-kpi-value{
    margin-top:5px;
    font-size:23px;
  }

  .opera-day-kpi-detail{
    margin-top:6px;
    font-size:9px;
  }

  .opera-day-main-grid{
    grid-template-columns:
      1fr;
    gap:10px;
  }

  .opera-day-funnel-panel{
    grid-column:auto;
  }

  .opera-day-panel > header{
    padding:12px;
  }

  .opera-day-panel-body{
    padding:
      4px
      12px
      12px;
  }

  .opera-day-data-note{
    padding-bottom:10px;
  }

}

/* =========================================================
   DASHBOARD - CALENDARIO COMERCIAL
   ========================================================= */

.opera-calendar-header{
  flex-wrap:wrap;
}

.opera-calendar-modes{
  display:flex !important;
  align-items:center;
  gap:4px !important;
  padding:3px;
  border-radius:10px;
  background:#f1f5f9;
}

.opera-calendar-modes button{
  min-height:28px;
  padding:0 9px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#64748b;
  font-size:10px;
  font-weight:700;
}

.opera-calendar-modes button.active{
  background:#fff;
  color:#15636f;
  box-shadow:0 1px 4px rgba(15,23,42,.08);
}

.opera-calendar-navigation{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:42px;
  padding:6px 12px;
  border-bottom:1px solid #eef2f7;
}

.opera-calendar-navigation strong{
  color:#334155;
  font-size:12px;
  text-transform:capitalize;
}

.opera-calendar-navigation button{
  display:flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border:1px solid #e2e8f0;
  border-radius:9px;
  background:#fff;
  color:#475569;
}

.opera-calendar-weekdays{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:3px;
  margin-bottom:5px;
}

.opera-calendar-weekdays span{
  padding:5px 0;
  color:#94a3b8;
  font-size:8px;
  font-weight:700;
  text-align:center;
}

.opera-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:3px;
}

.opera-cal-cell{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
  min-height:72px;
  padding:6px;
  overflow:hidden;
  border:1px solid #eef2f7;
  border-radius:8px;
  background:#fff;
  text-align:left;
}

.opera-cal-cell.is-empty{
  border-color:transparent;
  background:transparent;
}

.opera-cal-cell strong{
  display:flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:999px;
  color:#475569;
  font-size:9px;
}

.opera-cal-cell.is-today strong{
  background:#15636f;
  color:#fff;
}

.opera-cal-cell.has-items{
  background:#f8fcfc;
  border-color:#dbeaec;
}

.opera-cal-count{
  position:absolute;
  top:6px;
  right:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:17px;
  height:17px;
  padding:0 4px;
  border-radius:999px;
  background:#dff3f0;
  color:#15636f;
  font-size:8px;
  font-weight:800;
}

.opera-cal-cell small{
  display:block;
  width:100%;
  margin-top:3px;
  overflow:hidden;
  color:#64748b;
  font-size:7px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

@media(max-width:640px){

  .opera-calendar-modes{
    width:100%;
  }

  .opera-calendar-modes button{
    flex:1 1 0;
    min-height:34px;
    font-size:11px;
  }

  .opera-cal-cell{
    min-height:58px;
    padding:4px;
  }

  .opera-cal-cell small{
    display:none;
  }

}

/* =========================================================
   DASHBOARD - VISAO SEMANAL
   ========================================================= */

.opera-week-view{
  width:100%;
}

.opera-week-range{
  margin:
    4px 0
    10px;

  color:#64748b;

  font-size:10px;
  font-weight:700;

  text-align:center;
  text-transform:capitalize;
}

.opera-week-grid{
  display:grid;

  grid-template-columns:
    repeat(7,minmax(0,1fr));

  gap:5px;

  width:100%;
}

.opera-week-day{
  min-width:0;

  min-height:170px;

  overflow:hidden;

  border:
    1px solid
    #edf2f7;

  border-radius:10px;

  background:#fff;
}

.opera-week-day.is-today{
  border-color:#99d5d8;

  background:#f7fcfc;
}

.opera-week-day-head{
  display:flex;

  flex-direction:column;

  align-items:center;

  justify-content:center;

  min-height:48px;

  padding:5px;

  border-bottom:
    1px solid
    #edf2f7;
}

.opera-week-day-head span{
  color:#94a3b8;

  font-size:8px;
  font-weight:700;

  text-transform:uppercase;
}

.opera-week-day-head strong{
  display:flex;

  align-items:center;
  justify-content:center;

  width:25px;
  height:25px;

  margin-top:2px;

  border-radius:999px;

  color:#334155;

  font-size:11px;
  font-weight:800;
}

.opera-week-day.is-today
.opera-week-day-head strong{
  background:#15636f;
  color:#fff;
}

.opera-week-day-events{
  display:flex;

  flex-direction:column;

  gap:5px;

  padding:5px;
}

.opera-week-event{
  appearance:none;

  display:block;

  width:100%;

  min-width:0;

  padding:6px;

  border:
    1px solid
    #dbeaec;

  border-radius:7px;

  background:#f5fbfb;

  text-align:left;
}

.opera-week-event time{
  display:block;

  color:#15636f;

  font-size:8px;
  font-weight:800;
}

.opera-week-event strong{
  display:block;

  margin-top:2px;

  overflow:hidden;

  color:#334155;

  font-size:9px;

  white-space:nowrap;

  text-overflow:ellipsis;
}

.opera-week-event small{
  display:block;

  margin-top:2px;

  overflow:hidden;

  color:#94a3b8;

  font-size:7px;

  white-space:nowrap;

  text-overflow:ellipsis;
}

.opera-week-empty{
  padding:16px 0;

  color:#cbd5e1;

  font-size:11px;

  text-align:center;
}


/* =========================================================
   MOBILE / PWA - SEMANA
   ========================================================= */

@media(max-width:640px){

  .opera-week-view{
    overflow-x:auto;

    padding-bottom:4px;

    -webkit-overflow-scrolling:
      touch;
  }

  .opera-week-grid{
    grid-template-columns:
      repeat(7,110px);

    width:max-content;
  }

  .opera-week-day{
    min-height:150px;
  }

}

/* =========================================================
   AGENDA COMERCIAL CENTRAL
   ========================================================= */

.opera-agenda-team-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 12px;
  border-bottom:1px solid #eef2f7;
  background:#fafcfd;
}

.opera-agenda-team-filter label{
  display:flex;
  align-items:center;
  gap:7px;
}

.opera-agenda-team-filter label > span,
.opera-agenda-self-label{
  color:#64748b;
  font-size:10px;
  font-weight:700;
}

.opera-agenda-team-filter select{
  min-height:34px;
  max-width:190px;
  padding:0 28px 0 9px;
  border:1px solid #dbe4ee;
  border-radius:9px;
  background:#fff;
  color:#334155;
  font-size:10px;
  font-weight:700;
}

.opera-agenda-block-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:34px;
  padding:0 10px;
  border:0;
  border-radius:9px;
  background:#15636f;
  color:#fff;
  font-size:10px;
  font-weight:750;
}

.opera-agenda-block-button svg{
  width:14px;
  height:14px;
}

.opera-agenda-team-summary{
  border-bottom:1px solid #eef2f7;
  background:#fff;
}

.opera-agenda-team-summary-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px 5px;
}

.opera-agenda-team-summary-title strong{
  color:#334155;
  font-size:11px;
}

.opera-agenda-team-summary-title span{
  color:#94a3b8;
  font-size:9px;
}

.opera-agenda-people-list{
  max-height:245px;
  overflow-y:auto;
}

.opera-agenda-person-row{
  appearance:none;
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  padding:8px 12px;
  border:0;
  border-top:1px solid #f1f5f9;
  background:#fff;
  text-align:left;
}

.opera-agenda-person-row .avatar{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 31px;
  width:31px;
  height:31px;
  border-radius:999px;
  background:#e7f4f5;
  color:#15636f;
  font-size:9px;
  font-weight:800;
}

.opera-agenda-person-row .copy{
  display:block;
  flex:1 1 auto;
  min-width:0;
}

.opera-agenda-person-row .copy strong{
  display:block;
  overflow:hidden;
  color:#334155;
  font-size:10px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.opera-agenda-person-row .copy small{
  display:block;
  margin-top:2px;
  overflow:hidden;
  color:#64748b;
  font-size:8px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.opera-agenda-person-row .copy small.location{
  display:flex;
  align-items:center;
  gap:3px;
}

.opera-agenda-person-row .copy small.location svg{
  width:9px;
  height:9px;
}

.opera-agenda-person-row .status{
  flex:0 0 auto;
  padding:4px 7px;
  border-radius:999px;
  font-size:8px;
  font-weight:800;
}

.opera-agenda-person-row .status.free{
  background:#dcfce7;
  color:#15803d;
}

.opera-agenda-person-row .status.busy{
  background:#ffedd5;
  color:#c2410c;
}


/* MODAL */

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

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

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

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

.opera-agenda-modal-card > header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:16px 18px;
  border-bottom:1px solid #eef2f7;
}

.opera-agenda-modal-card header strong{
  display:block;
  color:#1e293b;
  font-size:16px;
}

.opera-agenda-modal-card header small{
  display:block;
  margin-top:3px;
  color:#94a3b8;
  font-size:10px;
}

.opera-agenda-modal-card header button{
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border:0;
  border-radius:10px;
  background:#f1f5f9;
  color:#475569;
}

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

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

.opera-agenda-modal-body label > span{
  color:#475569;
  font-size:10px;
  font-weight:750;
}

.opera-agenda-modal-body input,
.opera-agenda-modal-body select{
  width:100%;
  min-height:42px;
  padding:0 11px;
  border:1px solid #dbe4ee;
  border-radius:10px;
  background:#fff;
  color:#1e293b;
  font-size:12px;
}

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

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

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

.opera-agenda-modal-card footer button{
  min-height:39px;
  padding:0 14px;
  border-radius:10px;
  font-size:11px;
  font-weight:750;
}

.opera-agenda-modal-card footer .secondary{
  border:1px solid #dbe4ee;
  background:#fff;
  color:#475569;
}

.opera-agenda-modal-card footer .primary{
  border:0;
  background:#15636f;
  color:#fff;
}

@media(max-width:640px){

  .opera-agenda-team-controls{
    flex-direction:column;
    align-items:stretch;
  }

  .opera-agenda-team-filter label{
    flex-direction:column;
    align-items:stretch;
  }

  .opera-agenda-team-filter select{
    max-width:none;
    width:100%;
    min-height:42px;
  }

  .opera-agenda-block-button{
    min-height:42px;
  }

  .opera-agenda-modal-grid{
    grid-template-columns:1fr;
  }

}

/* =========================================================
   AGENDA - VISIBILIDADE DA EQUIPE
   ========================================================= */

.opera-agenda-upcoming{
  border-top:1px solid #e8eef3;
  background:#fbfcfd;
}

.opera-agenda-upcoming-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px 7px;
}

.opera-agenda-upcoming-head strong{
  color:#334155;
  font-size:11px;
}

.opera-agenda-upcoming-head span{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#eef2f7;
  color:#64748b;
  font-size:8px;
  font-weight:800;
}

.opera-agenda-upcoming-list{
  max-height:290px;
  overflow-y:auto;
}

.opera-agenda-upcoming-row{
  appearance:none;
  display:flex;
  align-items:center;
  gap:9px;
  width:100%;
  min-height:58px;
  padding:8px 12px;
  border:0;
  border-top:1px solid #eef2f7;
  background:#fff;
  text-align:left;
}

.opera-agenda-upcoming-row.bloqueio{
  background:#fff8f1;
  border-left:3px solid #f59e0b;
}

.opera-agenda-upcoming-row.visita{
  border-left:3px solid #0ea5e9;
}

.opera-agenda-upcoming-row.followup{
  border-left:3px solid #8b5cf6;
}

.opera-agenda-upcoming-row .icon{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 31px;
  width:31px;
  height:31px;
  border-radius:9px;
  background:#f8fafc;
  font-size:15px;
}

.opera-agenda-upcoming-row .copy{
  display:block;
  flex:1 1 auto;
  min-width:0;
}

.opera-agenda-upcoming-row .copy strong{
  display:block;
  overflow:hidden;
  color:#1e293b;
  font-size:10px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.opera-agenda-upcoming-row .copy small{
  display:block;
  margin-top:2px;
  overflow:hidden;
  color:#64748b;
  font-size:9px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.opera-agenda-upcoming-row .copy .location{
  color:#0f766e;
}

.opera-agenda-upcoming-row .when{
  flex:0 0 auto;
  text-align:right;
}

.opera-agenda-upcoming-row .when strong{
  display:block;
  color:#334155;
  font-size:9px;
}

.opera-agenda-upcoming-row .when small{
  display:block;
  margin-top:2px;
  color:#64748b;
  font-size:8px;
}


/* horário inicial + final */

.opera-day-agenda-time small{
  display:block;
  margin-top:2px;
  color:#94a3b8;
  font-size:8px;
  font-weight:500;
}


/* bloqueio dentro da semana/mês */

.opera-week-event:has(
  strong:first-of-type
){
  transition:
    background .15s ease,
    border-color .15s ease;
}

@media(max-width:640px){

  .opera-agenda-upcoming-list{
    max-height:none;
  }

  .opera-agenda-upcoming-row{
    min-height:64px;
  }

}

/* =========================================================
   AGENDA - ESTABILIDADE / REUNIAO DE EQUIPE
   ========================================================= */

.opera-agenda-team-controls{
  position:relative;
  z-index:3;
}

.opera-agenda-block-button{
  white-space:nowrap;
}

.opera-agenda-upcoming-row.reuniao{
  background:#f3f8ff;
  border-left:3px solid #2563eb;
}

.opera-agenda-upcoming-row.bloqueio{
  background:#fff8ed;
}

.opera-agenda-person-row .status.busy{
  background:#ffedd5;
  color:#c2410c;
}

@media(max-width:640px){

  .opera-agenda-team-controls{
    display:grid;
    grid-template-columns:1fr;
  }

}

/* =========================================================
   AGENDA PASSOU A SER MODULO INDEPENDENTE
   O Dashboard fica apenas como resumo.
   ========================================================= */

.opera-agenda-team-controls,
.opera-agenda-team-summary{
  display:none !important;
}

.opera-open-agenda-page-btn{
  margin-left:auto;
  padding:7px 10px;
  border:1px solid #d8e3eb;
  border-radius:8px;
  background:#fff;
  color:#15636f;
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
}

.opera-open-agenda-page-btn:hover{
  background:#f2f8f8;
}

/* =========================================================
   DASHBOARD - BLOQUEAR FLASH DO LEGADO
   ========================================================= */

#page-dashboard.opera-dashboard-await-profile > * {
  display: none !important;
}

#page-dashboard.opera-dashboard-await-profile::before {
  content: "Carregando painel...";
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  width: 100%;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

#page-dashboard.opera-dashboard-await-profile::after {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin: -190px auto 0;
  border: 3px solid #e2e8f0;
  border-top-color: #15636f;
  border-radius: 999px;
  animation: operaDashboardBootSpin .75s linear infinite;
}

@keyframes operaDashboardBootSpin {
  to {
    transform: rotate(360deg);
  }
}

