/* ── agenda.css — Akino Systems ── */
/* ═══════════════════════════════════════════
   AGENDA VIEW
═══════════════════════════════════════════ */
.cal-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
.cal-wrap { background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cal-hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.cal-month { font-size: 14px; font-weight: 500; color: var(--text); letter-spacing: -.2px; }
.cal-nav { display: flex; gap: 4px; }
.cal-nav-btn {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: none; color: var(--muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; transition: all .15s;
}
.cal-nav-btn:hover { background: var(--s2); color: var(--text); }
.cal-today-btn {
  padding: 5px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: none; color: var(--muted);
  cursor: pointer; font-size: 12px; font-family: 'Geist', sans-serif;
  transition: all .15s;
}
.cal-today-btn:hover { background: var(--s2); color: var(--text); }
.cal-days { display: grid; grid-template-columns: repeat(7,1fr); }
.cal-day-name { text-align: center; font-size: 10.5px; color: var(--muted); padding: 10px 0; letter-spacing: .3px; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); }
.cal-cell {
  border-top: 1px solid var(--border); padding: 8px; min-height: 74px;
  cursor: pointer; transition: background .1s; position: relative;
}
.cal-cell:hover { background: var(--s2); }
.cal-cell.other-month .cal-num { opacity: .3; }
.cal-cell.today .cal-num {
  background: var(--ink); color: var(--bg);
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cal-num { font-size: 12px; color: var(--text); line-height: 1; margin-bottom: 4px; }
.cal-evt {
  font-size: 10px; padding: 2px 5px; border-radius: 4px;
  margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--s3); color: var(--text);
}
.cal-evt.green { background: var(--green-bg); color: var(--green); }
.cal-evt.blue { background: var(--blue-bg); color: var(--blue); }
.cal-side { background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.cal-side-date { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 14px; letter-spacing: -.1px; }
.cal-evt-item { padding: 10px 12px; border-radius: 8px; background: var(--s2); margin-bottom: 8px; }
.cal-evt-time { font-size: 11px; color: var(--muted); margin-bottom: 3px; font-family: 'Geist Mono', monospace; }
.cal-evt-title { font-size: 13px; color: var(--text); }
.cal-evt-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }


/* ── Modais de Consulta ── */
@keyframes modalOverlayIn  { from { opacity:0; }                              to { opacity:1; } }
@keyframes modalOverlayOut { from { opacity:1; }                              to { opacity:0; } }
@keyframes modalBoxIn      { from { opacity:0; transform:translateY(18px) scale(.97); } to { opacity:1; transform:translateY(0) scale(1); } }

#consulta-modal,
#consulta-view-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  animation: modalOverlayIn .2s ease both;
}
#consulta-modal.open,
#consulta-view-modal.open {
  display: flex;
}

.consulta-modal-box {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  animation: modalBoxIn .28s cubic-bezier(.16,1,.3,1) both;
}

.consulta-modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.consulta-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.consulta-modal-close:hover {
  color: var(--text);
  background: var(--s3);
}

.consulta-field-label {
  font-size: 11.5px;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}

.consulta-field-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--s3);
  color: var(--text);
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color .15s;
  font-family: inherit;
}
.consulta-field-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* View mode */
.consulta-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.consulta-view-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.consulta-view-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.consulta-view-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
