.hr-view { min-width: 0; }
.hr-toolbar, .hr-actions, .hr-tabs, .hr-dialog header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hr-toolbar { margin-bottom: 18px; justify-content: space-between; }
.hr-toolbar h2, .hr-dialog h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.hr-toolbar p { margin: 5px 0 0; color: #5d6965; font-size: 13px; }
.hr-toolbar input[type=search] { width: 270px; max-width: 100%; padding: 9px 11px; border: 1px solid #cbd8cf; border-radius: 4px; background: white; font: inherit; font-size: 14px; }
.hr-view button, .hr-dialog button, #hr-personal button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.hr-icon { width: 36px; height: 36px; flex: 0 0 36px; padding: 7px; border: 1px solid #d9e2de; border-radius: 5px; background: white; cursor: pointer; }
.hr-icon img { width: 18px; height: 18px; }
.hr-tabs { gap: 2px; border-bottom: 1px solid #d9e2de; margin: 0 0 16px; }
.hr-tabs button { border: 0; background: none; padding: 10px 14px; border-bottom: 2px solid transparent; color: #53625b; cursor: pointer; }
.hr-tabs button[aria-selected=true] { color: #176b52; border-color: #176b52; font-weight: 700; }
.hr-table-wrap { overflow-x: auto; border-top: 1px solid #d9e2de; }
.hr-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.hr-table th { text-align: left; color: #65736b; font-size: 12px; font-weight: 600; background: #f4f7f5; }
.hr-table th, .hr-table td { padding: 13px 12px; border-bottom: 1px solid #e4eae7; vertical-align: middle; }
.hr-table td strong { display: block; font-size: 14px; }
.hr-table td small { color: #65736b; display: block; margin-top: 4px; }
.hr-name { border: 0; background: transparent; padding: 0; color: #185d49; font-weight: 700; text-align: left; cursor: pointer; }
.hr-badge { display: inline-block; font-size: 12px; line-height: 1.5; padding: 2px 7px; border-radius: 4px; background: #e9eeeb; color: #47574f; white-space: normal; }
.hr-badge.approved, .hr-badge.working { background: #e0f0e8; color: #16613f; }
.hr-badge.pending, .hr-badge.probation { background: #fff0cc; color: #805500; }
.hr-badge.rejected, .hr-badge.terminated { background: #fce6e7; color: #9a303a; }
.hr-badge.absent { background: #e7edfa; color: #3e5696; }
.hr-empty { padding: 35px 15px; text-align: center; color: #637168; border-bottom: 1px solid #dce4df; }
.hr-dialog { width: min(940px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #d2dcd5; border-radius: 7px; color: #20352b; background: #fff; box-shadow: 0 15px 65px #11231c33; }
.hr-dialog::backdrop { background: #15231d66; }
.hr-dialog header { padding: 18px 22px; border-bottom: 1px solid #dce4df; justify-content: space-between; position: sticky; top: 0; background: #fff; z-index: 2; }
.hr-dialog header small { display: block; color: #637168; margin-top: 4px; }
.hr-dialog-body { padding: 20px 22px; }
.hr-form { display: grid; gap: 18px; }
.hr-form fieldset { margin: 0; border: 0; padding: 18px 0 0; border-top: 1px solid #e1e7e3; min-width: 0; }
.hr-form legend { font-size: 15px; font-weight: 700; padding: 0 10px 0 0; }
.hr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hr-form label, .hr-filters label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: #53645a; min-width: 0; }
.hr-form :is(input,select,textarea), .hr-filters :is(input,select) { width: 100%; min-width: 0; font: inherit; font-size: 14px; padding: 9px 10px; color: #22382b; border: 1px solid #ccd8d0; border-radius: 4px; background: white; }
.hr-form .hr-check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.hr-check input[type=checkbox] { width: 16px; height: 16px; flex: 0 0 16px; }
.hr-form textarea { resize: vertical; min-height: 70px; }
.hr-full { grid-column: 1 / -1; }
.hr-actions { justify-content: flex-end; margin-top: 12px; }
.hr-error { color: #a32333; }
.hr-status { min-height: 20px; margin: 6px 0; font-size: 13px; overflow-wrap: anywhere; }
.hr-history { list-style: none; padding: 0; margin: 12px 0; }
.hr-history li { border-left: 2px solid #dce4df; padding: 8px 12px; font-size: 13px; }
.hr-history small { display: block; color: #637168; }
.hr-history details { margin-top: 5px; }
.hr-history pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.hr-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.hr-filters label { min-width: 170px; flex: 1; }
.hr-calendar { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); border-left: 1px solid #d9e3dd; border-top: 1px solid #d9e3dd; }
.hr-calendar-day { min-height: 135px; border-right: 1px solid #d9e3dd; border-bottom: 1px solid #d9e3dd; padding: 7px; background: #fff; min-width: 0; }
.hr-calendar-day.muted { background: #f4f6f5; color: #758079; }
.hr-calendar-day.today { box-shadow: inset 0 3px #176b52; }
.hr-calendar-label { background: #eef3f0; padding: 8px; font-size: 12px; font-weight: 600; border-right: 1px solid #d9e3dd; }
.hr-event { display: block !important; width: 100%; text-align: left; padding: 6px; margin-top: 6px; border: 0; border-left: 3px solid #5c83b8; background: #eaf0f9; border-radius: 2px; font-size: 12px; line-height: 1.4; color: #263e5d; cursor: pointer; overflow-wrap: anywhere; }
.hr-event.birthday { background: #fcf0d8; border-color: #d2a841; color: #6b5016; }
.hr-event.remote_start, .hr-event.remote_end { background: #e1f2e9; border-color: #438d69; color: #25563d; }
.hr-event.pending { border-style: dashed; background: #fff8eb; }
.hr-event small, .hr-event strong { display: block; }
.hr-event small { font-size: 10px; margin-top: 3px; }
.hr-day-strip { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 0; margin: 12px 0; border-top: 1px solid #e0e7e2; border-bottom: 1px solid #e0e7e2; }
.hr-rule { padding: 14px 0; border-bottom: 1px solid #dce4df; }
.hr-rule h3 { margin: 0 0 12px; font-size: 15px; }
.hr-custom-row { display: grid; grid-template-columns: minmax(0,1fr) 170px 36px; gap: 8px; align-items: end; margin-bottom: 8px; }
.hr-approvals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.hr-approval { border-left: 3px solid #b7c7bc; padding: 8px 12px; background: #f4f7f5; }
.hr-approval p { margin: 7px 0 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.hr-note { padding: 10px 12px; background: #fff5d9; border-left: 3px solid #b59337; color: #6e5618; font-size: 13px; }
.hr-permissions { display: flex; flex-wrap: wrap; gap: 10px; }
.hr-permissions label { flex-direction: row; }
@media(max-width: 900px) { .hr-calendar-day { min-height: 110px; } .hr-calendar { min-width: 720px; } .hr-calendar-scroll { overflow-x: auto; } }
@media(max-width: 600px) { .hr-grid, .hr-approvals { grid-template-columns: 1fr; } .hr-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); } .hr-dialog-body, .hr-dialog header { padding: 14px; } .hr-toolbar { align-items: stretch; } .hr-toolbar input[type=search] { width: 100%; } .hr-table { min-width: 630px; } .hr-custom-row { grid-template-columns: 1fr 36px; } .hr-custom-row label:first-child { grid-column: 1 / -1; } .hr-actions { justify-content: stretch; } .hr-actions > button:not(.hr-icon) { flex: 1; } .hr-tabs button { padding: 10px; font-size: 13px; } }
