.subordinate-summary {
  display: block;
  margin: 3px 0 0;
  padding: 3px 5px;
  border-radius: 4px;
  border: 1px solid #6f9fc7;
  background: var(--blue-soft);
  color: #2c6dad;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  width: 100%;
  height: 22px;
  text-align: left;
  font-family: inherit;
}
#calendar-grid { --calendar-entry-rows: 4; }
.day-cell { min-height: 136px; min-width: 0; }
.day-cell .leave-bar { display: block; width: 100%; height: 22px; }
.subordinate-name.pending { border-left: 3px solid #d58a22; }
.subordinate-name.approved { border-left: 3px solid #2c6dad; }
.oa-ui .day-cell button.subordinate-summary { background:rgba(222,238,255,.88)!important;color:#245c95!important;border-color:#8db6db!important;box-shadow:none!important;border-radius:7px!important;line-height:1.2;padding:3px 5px; }
.oa-ui .day-cell button.subordinate-name.pending { border-left:3px solid #d58a22!important; }
.oa-ui .day-cell button.subordinate-name.approved { border-left:3px solid #2c6dad!important; }

.subordinate-summary:hover,
.subordinate-summary:focus { background: #d8eaf8; outline: 2px solid rgba(44,109,173,.22); outline-offset: 1px; }
.subordinate-day-list { display: grid; gap: 8px; }
.subordinate-day-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border: 1px solid #d7e4ef; border-radius: 9px; background: #f8fbfe; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.subordinate-day-row:hover { background: #edf6fc; border-color: #a9c9e2; }
.subordinate-day-row strong,.subordinate-day-row small { display: block; }
.subordinate-day-row small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.subordinate-day-row b { display: block; font-size: 13px; margin-bottom: 3px; text-align: right; }
.subordinate-day-row em { font-style: normal; justify-content: flex-end; }

@media (max-width: 600px) {
  #calendar-grid { --calendar-entry-rows: 3; }
  .day-cell { min-height: 112px; }
  .subordinate-summary { font-size: 9px; padding: 2px 3px; }
  .oa-ui .day-cell button.subordinate-summary { padding:2px 3px; }
}

/* UI-20261103-012: identity color is independent from the approval-state label. */
html body.oa-ui.leave-style #calendar-grid button.calendar-own{background:#eee7fa!important;color:#65428c!important;border:1px solid #b49acb!important;border-left:3px solid #8055a6!important;font-weight:750!important}
html body.oa-ui.leave-style #calendar-grid button.subordinate-name{background:#e6f1fc!important;color:#255b89!important;border-color:#94b7d5!important}
html body.oa-ui.leave-style #calendar-grid button.calendar-own.pending{border-left-color:#ca8a27!important}
.calendar-own-key{color:#65428c;background:#eee7fa;border:1px solid #b49acb;border-radius:4px;padding:2px 6px}
.subordinate-day-row:disabled{opacity:1;cursor:default}

.calendar-peer-key{color:#255b89;background:#e6f1fc;border:1px solid #94b7d5;border-radius:4px;padding:2px 6px}

@media(max-width:760px){html body.oa-ui.leave-style #calendar-grid button:is(.leave-bar,.subordinate-summary){min-height:22px!important;height:22px!important;padding:2px 1px!important;font-size:9px!important;line-height:1.2!important}}
