@import url("leave_mobile.css");
@import url("leave_overview.css");
@import url("leave_details.css");

.toast-overlay {
    position: fixed;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 9999;
}

.toast {
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    animation: toastIn 0.3s ease, toastOut 0.4s ease 2s forwards;
}

.toast.success {
    background: #dcfce7;
    color: #166534;
}

.toast.error {
    background: #fee2e2;
    color: #991b1b;
}

.toast.info {
    background: #dbeafe;
    color: #1e40af;
}
/* ================= ANIMATIONS ================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastIn {
    from { opacity: 0; transform: scale(.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes toastOut {
    to { opacity: 0; transform: scale(.9); }
}

/* ── Attachment column ── */
.th-attachment,
.td-attachment {
  min-width: 110px !important;
  max-width: 130px !important;
  width: 120px;
  padding: 6px 8px !important;
}

.inp-attachment {
  width: 100%;
  font-size: 11px;
  font-family: 'Arial', sans-serif;
  color: #555;
  cursor: pointer;
}

.inp-attachment::file-selector-button {
  padding: 4px 8px;
  border: 1px solid #d9d0c4;
  border-radius: 3px;
  background: #faf8f5;
  color: #2c2218;
  font-size: 11px;
  font-family: 'Arial', sans-serif;
  cursor: pointer;
  margin-right: 6px;
  transition: background .15s;
}

.inp-attachment::file-selector-button:hover {
  background: #ebe3d8;
}

.attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #1a6fa8;
  text-decoration: none;
}

.attachment-link:hover {
  text-decoration: underline;
}

.btn-replace-attachment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #d9d0c4;
  background: #faf8f5;
  color: #6a5f52;
  font-size: 11px;
  cursor: pointer;
  margin-left: 6px;
  padding: 0;
  transition: background .15s;
}

.btn-replace-attachment:hover {
  background: #ebe3d8;
  color: #2c2218;
}

.attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #1a6fa8;
  text-decoration: none;
}

.attachment-link:hover {
  text-decoration: underline;
}