/* Zoho Calendar personal OAuth integration, isolated from Office map and chat */
.zoho-overlay[hidden]{display:none!important}
.zoho-overlay{position:fixed;inset:0;z-index:26000;background:#000b;display:flex;align-items:center;justify-content:center;padding:14px}
.zoho-dialog{width:min(570px,100%);max-height:min(90vh,840px);overflow:auto;background:#202629;color:#f3f5f4;
  border:1px solid #5c6b65;border-radius:16px;box-shadow:0 18px 75px #000a;padding:20px;display:grid;gap:12px}
.zoho-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.zoho-header h2{font-size:1.15rem;line-height:1.3;margin:0}
.zoho-btn{background:#343f3d;border:1px solid #63716c;border-radius:8px;padding:8px 12px;color:inherit;cursor:pointer;
  font:inherit;font-size:.85rem;font-weight:600}
.zoho-btn:hover{filter:brightness(1.17)}
.zoho-btn.primary{background:#326a43;border-color:#559a68;color:#f3fff4}
.zoho-btn.quiet{background:transparent;color:#d4ddd9}
.zoho-btn.zoho-close{border:0;background:transparent;font-size:1.15rem;min-width:34px}
.zoho-actions{display:flex;gap:8px;flex-wrap:wrap}
.zoho-status{font-size:.92rem;font-weight:700;color:#8dde99;margin:8px 0}
.zoho-subtitle,.zoho-note{font-size:.84rem;color:#cbd4d0;line-height:1.5;margin:6px 0}
.zoho-message{border-top:1px solid #3a4844;padding-top:10px;font-size:.82rem;color:#c6d6cb;min-height:1.2em;margin:0}
.zoho-message.error{color:#ffc7ac}
.zoho-calendar-select{display:grid;gap:9px}
.zoho-calendar-select:empty{display:none}
.zoho-label{font-size:.82rem;font-weight:650}
.zoho-calendar-select select{background:#323e3a;color:#fff;border:1px solid #62736d;padding:9px;border-radius:8px;max-width:100%}
.zoho-preview-summary{font-size:.86rem;font-weight:650}
.zoho-preview-list{display:grid;gap:7px;max-height:250px;overflow-y:auto}
.zoho-event{background:#29332f;padding:10px;border:1px solid #405249;border-radius:8px;display:grid;gap:4px}
.zoho-event strong{font-size:.83rem}.zoho-event small{color:#bfd3c7;font-size:.75rem}
@media (max-width:600px){.zoho-dialog{padding:14px;border-radius:12px}.zoho-actions{flex-direction:column}}

.zoho-status.missing{color:#ffd278}

/* Zoho connected but Odoo API not configured in this LAB instance. */
.zoho-odoo-warning{
  border:1px solid rgba(231,181,81,.45);
  background:rgba(186,131,33,.12);
  color:#f2d7a0;
  padding:10px 12px;
  border-radius:9px;
  font-size:.83rem;
  line-height:1.5;
  margin:10px 0 4px;
}

/* Única entrada Zoho: la cabecera del Calendario de salas, antes de la X. */
html body #calendarModal.calendar-v2 .calendar-head .zoho-calendar-top-button {
  box-sizing:border-box;
  margin-left:auto;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:152px;
  height:38px;
  padding:7px 12px;
  border:1px solid var(--vo-light-border,#60816b);
  border-radius:9px;
  color:var(--vo-light-primary,#ecf6ef);
  background:var(--vo-light-surface,#2b3830);
  font:inherit;
  font-size:.83rem;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  line-height:1.2;
  transition:background .15s ease,border-color .15s ease;
}
html body #calendarModal.calendar-v2 .calendar-head .zoho-calendar-top-button:hover {
  background:var(--vo-light-hover,#364b3e);
  border-color:#72ab7d;
}
html body #calendarModal.calendar-v2 .calendar-head .zoho-calendar-top-button:focus-visible{
  outline:2px solid #85c994;
  outline-offset:2px;
}
html body #calendarModal.calendar-v2 .calendar-head .zoho-calendar-top-icon{
  font-size:1rem;
  line-height:1;
}
html body #calendarModal.calendar-v2 .calendar-head .zoho-calendar-top-short{
  display:none;
}
html body #calendarModal.calendar-v2 .calendar-head .zoho-calendar-top-button.is-connected{
  border-color:#538b63;
}
html body #calendarModal.calendar-v2 .calendar-head .zoho-calendar-top-button.is-connected::after{
  content:"";
  width:6px;
  height:6px;
  background:#8ddca2;
  border-radius:50%;
}
@media(max-width:720px){
  html body #calendarModal.calendar-v2 .calendar-head{
    gap:8px!important;
  }
  html body #calendarModal.calendar-v2 .calendar-head .zoho-calendar-top-button{
    min-width:0;
    width:auto;
    height:35px;
    padding:7px 9px;
    gap:5px;
    font-size:.78rem;
  }
  html body #calendarModal.calendar-v2 .calendar-head .zoho-calendar-top-label{
    display:none;
  }
  html body #calendarModal.calendar-v2 .calendar-head .zoho-calendar-top-short{
    display:inline;
  }
}
@media(max-width:380px){
  html body #calendarModal.calendar-v2 .calendar-head .zoho-calendar-top-button{
    padding:6px 7px;
  }
}
