.hr-calendar { padding: 24px; }
.hr-request-board-card[draggable="true"] { cursor: grab; }
.hr-request-board-card.hr-card-dragging { opacity: .45; cursor: grabbing; }
.hr-request-board-card[aria-busy="true"] { opacity: .6; pointer-events: none; }
.hr-request-column.hr-drop-over { outline: 3px solid #007aff; outline-offset: 2px; background: #dfebff; }
.hr-request-move { display: grid; gap: 6px; margin-top: 14px; font-size: 11px; color: #65748b; }
.hr-request-move select { min-width: 0; min-height: 36px; font-size: 12px; }
.service-requests-list.hr-request-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hr-request-column { min-width: 0; background: #eaeef5; border: 1px solid #dfe5ee; border-radius: 20px; overflow: hidden; }
.hr-request-column > header { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid #dfe5ee; border-top: 3px solid #007aff; }
.hr-request-column[data-hr-column="in_progress"] > header { border-top-color: #cf8500; }
.hr-request-column[data-hr-column="completed"] > header { border-top-color: #238b4d; }
.hr-request-column h2 { font-size: 16px; margin: 0; }
.hr-request-column > header > span { padding: 4px 10px; border-radius: 12px; background: white; font-size: 12px; color: #52647e; }
.hr-request-column-body { display: grid; gap: 12px; padding: 12px; min-height: 160px; align-content: start; }
.hr-request-board .hr-request-board-card { padding: 18px; min-width: 0; overflow-wrap: anywhere; }
.hr-request-board-card .service-request-head { flex-wrap: wrap; gap: 8px; }
.hr-request-board-card .service-request-status { white-space: normal; }
.hr-request-board-card .service-request-meta { display: grid; gap: 6px; margin-block: 14px; }
.hr-request-board-card .hr-request-preview { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hr-request-board-card .hr-request-dates, .hr-request-board-card .hr-request-stage { font-size: 12px; color: #65748b; line-height: 1.6; margin-bottom: 12px; }
.hr-request-board-card > .button { width: 100%; margin-top: 10px; }
.hr-request-processing { margin-top: 14px; font-size: 12px; }
.hr-request-processing > summary { cursor: pointer; color: #65748b; padding: 8px 0; }
.hr-request-board .service-request-admin { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hr-request-board .service-request-admin > * { min-width: 0; width: 100%; }
.hr-request-processing > .button { width: 100%; margin-top: 12px; }
.hr-request-column-empty { color: #788499; text-align: center; font-size: 13px; padding: 30px 10px; }
@media (max-width: 850px) { .service-requests-list.hr-request-board { grid-template-columns: minmax(0, 1fr); } }
.hr-scud-accounting { padding: 16px; border-radius: 14px; background: #f4f7fc; border: 1px solid #e1e8f2; }
.hr-scud-accounting p { margin: 10px 0 0; font-size: 12px; line-height: 1.6; }
.hr-approval-summary { padding: 16px; background: #f7f8fb; border-radius: 14px; margin: 14px 0; }
.hr-approval-summary ol { padding-left: 24px; margin: 14px 0; }
.hr-approval-summary li { padding: 12px 8px; border-bottom: 1px solid #e5e8ef; }
.hr-approval-summary li:last-child { border: 0; }
.hr-approval-summary li strong, .hr-approval-summary li span { display: block; line-height: 1.6; }
.hr-approval-summary li span { font-size: 13px; color: #65748b; }
.hr-approval-summary .hr-step-approved strong, .hr-approval-success { color: #19865c; }
.hr-approval-summary .hr-step-rejected strong { color: #c63345; }
.hr-request-description, .hr-approval-summary p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
#serviceRequestFields > p { grid-column: 1 / -1; flex: 1 0 100%; width: 100%; max-width: none; font-size: 13px; line-height: 1.5; margin: 4px 0; }
.hr-calendar-head, .hr-calendar-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: start; justify-content: space-between; }
.hr-calendar-head h2 { margin: 8px 0; }
.hr-calendar-controls label { width: 145px; }
.hr-calendar-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; font-size: 13px; }
.hr-calendar-legend span { padding: 8px 12px; border-radius: 10px; background: #f3f5f9; }
.hr-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.hr-calendar-weekday { text-align: center; color: var(--muted); padding: 8px; font-size: 13px; }
.hr-calendar-day { min-height: 100px; padding: 12px; border: 1px solid #e4e7ef; border-radius: 14px; background: #f8f9fc; text-align: left; color: #1c293d; cursor: pointer; overflow-wrap: anywhere; }
.hr-calendar-day strong, .hr-calendar-day span, .hr-calendar-day small { display: block; }
.hr-calendar-day strong { font-size: 20px; }
.hr-calendar-day span { font-size: 12px; margin-top: 5px; }
.hr-calendar-day small { font-size: 11px; margin-top: 8px; line-height: 1.4; }
.hr-calendar-day:focus-visible { outline: 3px solid #007aff; outline-offset: 2px; }
.hr-calendar-day.calendar-holiday, .hr-calendar-day.calendar-weekend, .hr-calendar-legend .calendar-holiday { background: #fff1f1; color: #a32c40; }
.hr-calendar-day.calendar-short, .hr-calendar-legend .calendar-short { background: #fff6dc; color: #805000; }
.hr-calendar > p { font-size: 13px; line-height: 1.6; }
.hr-calendar > a { font-size: 13px; }
@media (max-width: 600px) {
  .hr-calendar { padding: 12px; }
  .hr-calendar-grid { gap: 4px; }
  .hr-calendar-day { padding: 7px 3px; min-height: 66px; text-align: center; }
  .hr-calendar-day strong { font-size: 17px; }
  .hr-calendar-day span { font-size: 0; }
  .hr-calendar-day span::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .hr-calendar-day.calendar-short span { font-size: 10px; }
  .hr-calendar-day.calendar-short span::after { display: none; }
  .hr-calendar-day small { display: none; }
  .hr-calendar-controls { width: 100%; }
  .hr-calendar-controls label { flex: 1; min-width: 0; }
}
.hr-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.2fr);
  gap: 20px;
  align-items: start;
}
.hr-employees, .hr-detail {
  padding: 22px;
  min-width: 0;
}
.hr-toolbar {
  display: grid;
  gap: 12px;
}
.hr-selection-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.hr-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.hr-checkbox input, .hr-weekdays input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  flex: 0 0 18px;
  padding: 0;
  accent-color: #007aff;
}
.hr-employee-row {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #e8e9ef;
}
.hr-employee-row > label {
  min-height: 44px;
  padding: 10px 2px;
}
.hr-employee-open {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  border-radius: 12px;
  padding: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.hr-employee-open:hover, .hr-employee-open.active {
  background: #eaf2ff;
}
.hr-employee-open strong, .hr-employee-open span, .hr-employee-open small {
  display: block;
  line-height: 1.55;
}
.hr-employee-open strong { font-size: 14px; }
.hr-employee-open span { margin-top: 4px; font-size: 12px; color: var(--muted); }
.hr-employee-open small { margin-top: 8px; font-size: 11px; }
.hr-detail-heading h2 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.hr-detail-heading p, .hr-schedule-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.hr-tabs, .hr-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hr-absence-card p { white-space: pre-wrap; overflow-wrap: anywhere; }
#scudPage .scud-table-wrap .scud-reason { min-width: 250px; max-width: 420px; white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
#personalScudCard .personal-scud-absence { display: block; white-space: normal; overflow-wrap: anywhere; color: #727889; font-size: 12px; margin-top: 6px; font-weight: 400; }
#hrAbsenceForm > .muted { font-size: 13px; line-height: 1.6; }
.hr-tabs { margin: 20px 0; }
.hr-tabs .active { background: #e5f0ff; color: #0069df; }
.hr-schedule-list, .hr-document-grid { display: grid; gap: 14px; margin-top: 18px; }
.hr-schedule-card { padding: 16px; border: 1px solid #e5e5ed; border-radius: 14px; }
.hr-schedule-card strong, .hr-schedule-card span { display: block; line-height: 1.5; }
.hr-schedule-card span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.hr-document-card { padding: 20px; min-width: 0; overflow-wrap: anywhere; }
.hr-document-card h3 { margin: 8px 0; font-size: 18px; }
.hr-document-card p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.hr-document-actions .button { text-decoration: none; font-size: 13px; }
.hr-weekdays { display: flex; flex-wrap: wrap; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.hr-weekdays legend { color: var(--muted); font-size: 13px; }
.hr-weekdays label { display: flex; align-items: center; gap: 6px; min-height: 30px; }
#hrScheduleForm > .muted, #hrDocumentForm > .muted { font-size: 13px; line-height: 1.6; margin: 0; }
@media (max-width: 850px) {
  .hr-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .hr-employees, .hr-detail { padding: 16px; }
  .hr-selection-bar .button { width: 100%; }
  .hr-document-actions .button { flex: 1 1 100px; text-align: center; }
}
