/*
Theme Name: SimpleLoginTheme
*/

body {
  font-family: sans-serif;
  padding: 2rem;
}

/* Popup containers */
#popupShiftChange,
#popupLeaveForm {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999 !important;
  background: white;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  width: 400px;
}

/* Popup overlay */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998 !important;
}

/* Inline action buttons inside calendar */
.inline-actions button {
  margin: 2px;
  font-size: 12px;
  padding: 2px 6px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.inline-actions button:hover {
  background-color: #0056b3;
}

/* Optional: improve dropdown and textarea in popup */
select, textarea {
  width: 100%;
  margin-top: 5px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

/* comment box */
.cell-comment {
    position: relative;
}
.cell-comment:hover .comment-box {
    display: block;
}
.comment-box {
    display: none;
    position: absolute;
    background: #ffffcc;
    border: 1px solid #999;
    padding: 5px;
    font-size: 12px;
    max-width: 200px;
    z-index: 10;
    top: 100%;
    left: 0;
}
.unit-tree a.active {
    font-weight: bold;
    color: #007bff;
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
}
/* dutyroster */
.btn-leave-delete{position:relative; display:inline-flex; gap:.35rem; align-items:center; padding:.25rem .5rem; border:1px solid #e2e8f0; background:#fff; border-radius:.4rem; cursor:pointer; font-size:.85rem}
.btn-leave-delete:hover{background:#f8fafc}
.btn-leave-delete:disabled{opacity:.6; cursor:not-allowed}
.btn-leave-delete .spinner{display:none; width:14px; height:14px; border-radius:50%; border:2px solid currentColor; border-right-color:transparent; animation:spin .6s linear infinite}
.btn-leave-delete.is-loading .spinner{display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}

.leave-row{transition:opacity .18s ease, height .18s ease, margin .18s ease, padding .18s ease}
