body {
    padding-top: 70px;
    background: linear-gradient(135deg, #edf5f2 0%, #dcebe5 100%);
    font-size: 13px;
}

body.app-loading {
    overflow: hidden;
}

.app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    background: rgba(248, 250, 252, 0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.app-loading .app-loader,
.app-loader.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.app-loader-stage {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 16px;
}

.app-loader-minimal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.app-loader-minimal span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0f172a;
    opacity: 0.24;
    animation: appLoaderDot 0.9s ease-in-out infinite;
}

.app-loader-minimal span:nth-child(2) {
    animation-delay: 0.15s;
}

.app-loader-minimal span:nth-child(3) {
    animation-delay: 0.3s;
}

.datatable-loading-host {
    position: relative;
    min-height: 180px;
}

.datatable-loading-table {
    visibility: hidden;
}

.datatable-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(2px);
    z-index: 2;
}

.datatable-loader-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.datatable-loader-dots span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0f172a;
    opacity: 0.24;
    animation: appLoaderDot 0.9s ease-in-out infinite;
}

.datatable-loader-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.datatable-loader-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes appLoaderDot {

    0%,
    100% {
        opacity: 0.24;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

.login-panel {
    max-width: 430px;
    margin: 55px auto 0;
}

.dashboard-box {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(44, 62, 80, 0.12);
    border: 1px solid rgba(44, 62, 80, 0.08);
    margin-top: 10px;
}

.navbar {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border: 0;
    background: linear-gradient(90deg, #111827 0%, #0f172a 55%, #101f36 100%);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 7px;
    padding-bottom: 7px;
    height: auto;
}

.navbar-brand img {
    height: 25px;
}


.brand-logo {
    height: 38px;
    width: auto;
    display: inline-block;
}

.navbar-inverse .navbar-toggle {
    border-color: rgba(255, 255, 255, 0.18);
    margin-top: 16px;
}

.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
    background: rgba(255, 255, 255, 0.08);
}

.navbar-shell {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
}

.navbar-main-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-main-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    color: #e5eef9;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.navbar-main-link:hover,
.navbar-main-link:focus {
    color: #ffffff;
    text-decoration: none;
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.35);
}

.navbar-accordion {
    position: relative;
}

.navbar-accordion-toggle {
    justify-content: space-between;
    min-width: 220px;
}

.navbar-main-link-copy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.navbar-accordion-caret {
    font-size: 18px;
    opacity: 0.75;
}

.navbar-accordion.open .navbar-accordion-caret {
    transform: rotate(180deg);
}

.navbar-accordion-menu {
    left: 0;
    right: auto;
    min-width: 220px;
    margin-top: 10px;
    padding: 8px;
    border: 0;
    border-radius: 14px;
    background: #f8fbff;
    box-shadow: 0 22px 38px rgba(15, 23, 42, 0.24);
}

.navbar-accordion-menu>li>a,
.navbar-user-menu>li>a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #243447;
}

.navbar-accordion-menu>li>a:hover,
.navbar-accordion-menu>li>a:focus,
.navbar-user-menu>li>a:hover,
.navbar-user-menu>li>a:focus {
    background: #e2ecf9;
    color: #10233d;
}

.navbar-top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.navbar-utility-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    color: #f8fbff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.navbar-utility-link:hover,
.navbar-utility-link:focus {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.navbar-utility-badge {
    position: absolute;
    top: -5px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f97316;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

.navbar-user-menu {
    min-width: 240px;
    margin-top: 10px;
    border: 0;
    border-radius: 14px;
    padding: 8px;
    background: #f8fbff;
    box-shadow: 0 22px 38px rgba(15, 23, 42, 0.24);
}

.navbar-user-menu-label {
    padding: 10px 12px 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.navbar-user-menu-label span {
    display: block;
    margin-bottom: 4px;
    color: #6b7b8e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.navbar-user-menu-label strong {
    color: #10233d;
    font-size: 15px;
}

.navbar-logout-link {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(248, 113, 113, 0.22);
}

.navbar-logout-link:hover,
.navbar-logout-link:focus {
    background: rgba(239, 68, 68, 0.24);
    border-color: rgba(248, 113, 113, 0.36);
}

.panel {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 20px 45px rgba(44, 62, 80, 0.14);
    overflow: hidden;
}

.panel-heading {
    padding: 14px 18px;
}

.panel-title {
    font-size: 18px;
    font-weight: 700;
}

.panel-body {
    padding: 18px;
}

.form-control {
    height: 34px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.35;
    box-shadow: none;
}

select.form-control {
    line-height: 22px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.select2-container {
    width: 100% !important;
}

.select2-container--bootstrap .select2-selection,
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    min-height: 34px;
    border: 1px solid #d6e2ef;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
}

.select2-container .select2-selection--single {
    display: flex;
    align-items: center;
    padding: 0 30px 0 10px;
}

.select2-container--bootstrap .select2-selection--single .select2-selection__rendered,
.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0;
    line-height: 18px;
    font-size: 13px;
    color: #243447;
}

.select2-container--bootstrap .select2-selection--single .select2-selection__placeholder,
.select2-container .select2-selection--single .select2-selection__placeholder {
    color: #7b8a8b;
}

.select2-container--bootstrap .select2-selection--single .select2-selection__arrow,
.select2-container .select2-selection--single .select2-selection__arrow {
    height: 32px;
    right: 8px;
    top: 0;
}

.select2-container--bootstrap .select2-selection--multiple,
.select2-container .select2-selection--multiple {
    padding: 4px 8px;
}

.select2-container--bootstrap .select2-search--inline .select2-search__field,
.select2-container .select2-search--inline .select2-search__field {
    margin-top: 0;
}

.select2-container--bootstrap.select2-container--focus .select2-selection,
.select2-container--bootstrap.select2-container--open .select2-selection,
.select2-container--default.select2-container--focus .select2-selection,
.select2-container--default.select2-container--open .select2-selection {
    border-color: #2c3e50;
    box-shadow: 0 0 0 1px rgba(44, 62, 80, 0.12);
}

.select2-dropdown {
    border: 1px solid #d6e2ef;
    border-radius: 6px;
    box-shadow: 0 16px 30px rgba(44, 62, 80, 0.12);
    overflow: hidden;
}

.select2-search--dropdown {
    padding: 8px;
}

.select2-search--dropdown .select2-search__field {
    height: 32px;
    border: 1px solid #d6e2ef;
    border-radius: 4px;
    padding: 5px 8px;
}

.btn {
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.25;
}

.btn-xs,
.btn-group-xs>.btn {
    padding: 3px 6px;
    font-size: 11px;
}

.login-logo {
    text-align: center;
    margin: 0 auto 18px;
}

.login-logo img {
    max-width: 150px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 26px rgba(44, 62, 80, 0.18));
}

.login-subtitle {
    margin-bottom: 22px;
    color: #7b8a8b;
    text-align: center;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 15px;
}

.dashboard-icon {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(24, 188, 156, 0.18);
    border: 1px solid rgba(24, 188, 156, 0.12);
}

.dashboard-icon img {
    max-width: 62px;
    max-height: 62px;
    width: auto;
    height: auto;
}

.dashboard-box h1 {
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 700;
}

.dashboard-muted {
    color: #7b8a8b;
    font-size: 16px;
}

.welcome-card {
    margin-top: 25px;
    padding: 14px 16px;
    border-radius: 6px;
    background: #f8fbfa;
    border-left: 5px solid #18bc9c;
}

.footer-space {
    height: 25px;
}

.page-box {
    background: #fff;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(44, 62, 80, 0.12);
    border: 1px solid rgba(44, 62, 80, 0.08);
    margin-top: 10px;
}

.page-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.page-box-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
}

.page-box-subtitle {
    margin: 0;
    color: #7b8a8b;
}

.alert {
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(44, 62, 80, 0.08);
}

.table>thead>tr>th,
.table>tbody>tr>th,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>tbody>tr>td,
.table>tfoot>tr>td {
    padding: 7px 10px;
    vertical-align: middle;
}

.modal-header {
    padding: 12px 16px;
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    padding: 10px 16px;
}

.alerta_flotante,
.alert.alert-floating {
    position: fixed;
    right: 22px;
    top: 84px;
    z-index: 2500;
    width: min(380px, calc(100vw - 28px));
    margin: 0;
    padding-right: 42px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
    border: 0;
}

.alerta_flotante .close,
.alert.alert-floating .close {
    position: absolute;
    top: 9px;
    right: 12px;
    font-size: 20px;
    line-height: 1;
    opacity: 0.6;
}

.alerta_flotante .close:hover,
.alerta_flotante .close:focus,
.alert.alert-floating .close:hover,
.alert.alert-floating .close:focus {
    opacity: 1;
}

.text-nowrap {
    white-space: nowrap;
}

.hr-filter-box {
    margin-bottom: 20px;
}

.hr-inline-actions {
    display: inline-flex;
    gap: 10px;
}

.hr-form-card {
    margin-top: 10px;
}

.hr-tab-content {
    padding: 18px 0 8px;
}

.hr-form-actions {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e3ebf2;
}

.hr-narrow-box {
    max-width: 680px;
    margin: 0 auto;
}

.hr-image-upload-box {
    margin-bottom: 12px;
}

.hr-image-preview {
    width: 100%;
    min-height: 180px;
    border: 1px dashed #c9d7e5;
    border-radius: 6px;
    background: #fbfdff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.hr-image-preview.has-image {
    border-style: solid;
    background: #ffffff;
}

.hr-image-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.hr-image-preview-empty {
    padding: 16px;
    text-align: center;
    color: #7b8a8b;
}

.hr-image-help {
    margin-top: 6px;
    color: #7b8a8b;
    font-size: 12px;
    line-height: 1.45;
}

.hr-thumb {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(44, 62, 80, 0.12);
    background: #f5f8fb;
}

.hr-form-card .form-group {
    margin-bottom: 12px;
}

.hr-device-grid {
    margin-top: 8px;
}

.hr-device-card {
    border-radius: 14px;
    border: 1px solid #dfe7ef;
    box-shadow: 0 8px 24px rgba(31, 41, 51, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    min-height: 210px;
}

.hr-device-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(31, 41, 51, 0.1);
}

.hr-device-card .panel-body {
    padding: 16px;
}

.hr-device-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.hr-device-card-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #16324f;
}

.hr-device-card-status {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hr-device-card-status.is-active {
    background: #e8f7ef;
    color: #1f7a46;
}

.hr-device-card-status.is-inactive {
    background: #f5e9ea;
    color: #9a3d48;
}

.hr-device-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef4fa, #dbe8f5);
    color: #325c80;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.hr-device-card-body {
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    padding: 10px 0;
}

.hr-device-data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
}

.hr-device-data-row span {
    color: #6b7b8c;
    font-size: 12px;
}

.hr-device-data-row strong {
    color: #203243;
    font-size: 12px;
    text-align: right;
    word-break: break-word;
}

.hr-device-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.hr-empty-panel {
    border: 1px dashed #d3dce6;
    border-radius: 14px;
    background: #fbfdff;
}

.hr-schedule-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    font-size: 12px;
}

.hr-schedule-row strong {
    min-width: 68px;
    color: #24425f;
}

.hr-schedule-table td,
.hr-schedule-table th {
    vertical-align: middle;
}

.hr-form-card label,
.modal-content label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #243447;
    letter-spacing: 0.2px;
}

.hr-form-card .form-control,
.modal-content .form-control {
    height: 34px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.35;
}

.hr-form-card textarea.form-control,
.modal-content textarea.form-control {
    height: auto;
    min-height: 78px;
    resize: vertical;
}

.hr-form-card .select2-container .select2-selection--single,
.modal-content .select2-container .select2-selection--single {
    min-height: 34px;
}

.hr-form-card .select2-container .select2-selection--single .select2-selection__arrow,
.modal-content .select2-container .select2-selection--single .select2-selection__arrow {
    height: 32px;
}

.hr-compact-tabs {
    border-bottom: 1px solid #dce5ee;
}

.hr-compact-tabs>li {
    margin-bottom: -1px;
}

.hr-compact-tabs>li>a {
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    color: #4d6175;
    font-weight: 700;
}

.hr-compact-tabs>li>a:hover,
.hr-compact-tabs>li>a:focus {
    background: #f4f8fb;
    border-color: transparent;
    color: #1d5c85;
}

.hr-compact-tabs>li.active>a,
.hr-compact-tabs>li.active>a:hover,
.hr-compact-tabs>li.active>a:focus {
    border: 1px solid #dce5ee;
    border-bottom-color: #ffffff;
    background: #ffffff;
    color: #0f172a;
}

.hr-employee-top {
    margin-bottom: 2px;
}

.hr-photo-panel {
    max-width: 220px;
}

.hr-photo-panel .hr-image-preview {
    min-height: 160px;
}

.hr-photo-panel-sm .hr-image-preview {
    min-height: 150px;
}

.hr-form-note {
    padding: 9px 12px;
    border: 1px solid #dce5ee;
    border-left: 3px solid #18bc9c;
    background: #f8fbfa;
    color: #51646f;
    font-size: 12px;
    line-height: 1.5;
}

.hr-side-card {
    padding: 14px 16px;
    border: 1px solid #dce5ee;
    border-radius: 6px;
    background: #fbfdff;
    box-shadow: none;
}

.hr-indicadores-box {
    padding: 10px 12px;
    border: 1px solid #dce5ee;
    border-radius: 6px;
    background: #fbfdff;
}

.hr-indicador-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.hr-indicador-row:last-child {
    margin-bottom: 10px;
}

.hr-indicador-row .form-control {
    flex: 1 1 auto;
}

.hr-section-divider {
    margin: 10px 0 12px;
    padding-top: 8px;
    border-top: 1px solid #e3ebf2;
}

.hr-section-divider span {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #51646f;
}

.hr-jerarquia-layout {
    margin-top: 16px;
}

.hr-jerarquia-stage {
    position: relative;
    margin-top: 16px;
}

.orgchart-panel {
    min-height: 360px;
    padding: 16px;
    border-radius: 8px;
    background: #f8fbff;
    border: 1px solid rgba(44, 62, 80, 0.08);
}

.hr-jerarquia-canvas {
    min-height: 640px;
    position: relative;
}

.hr-jerarquia-panel-head {
    margin-bottom: 14px;
}

.hr-jerarquia-panel-head h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
}

.hr-jerarquia-panel-head p {
    margin: 0;
    color: #6c7a89;
    font-size: 12px;
    line-height: 1.45;
}

.orgchart-container {
    min-height: 280px;
}

.hr-jerarquia-empty {
    padding: 14px;
    border: 1px dashed #c9d5e0;
    border-radius: 6px;
    background: #ffffff;
    color: #6c7a89;
    font-size: 12px;
}

.hr-available-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hr-available-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #d9e4ee;
    background: #ffffff;
}

.hr-available-copy {
    min-width: 0;
}

.hr-available-copy strong,
.hr-available-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hr-available-copy span {
    margin-top: 2px;
    color: #6c7a89;
    font-size: 12px;
}

.hr-floating-panel {
    position: absolute;
    top: 18px;
    z-index: 3;
    box-sizing: border-box;
    width: 280px;
    max-height: calc(100% - 36px);
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbe4ec;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.22s ease, opacity 0.22s ease, width 0.22s ease, padding 0.22s ease;
}

.hr-floating-panel-left {
    left: 18px;
    transform: translateX(-8px);
}

.hr-floating-panel-right {
    right: 18px;
    transform: translateX(8px);
    opacity: 0;
    pointer-events: none;
}

.hr-floating-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.hr-floating-panel:not(.is-open).hr-floating-panel-left {
    width: 46px;
    padding: 10px 6px;
    transform: translateX(0);
}

.hr-floating-panel:not(.is-open).hr-floating-panel-right {
    width: 46px;
    padding: 10px 6px;
    transform: translateX(0);
}

.hr-floating-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.hr-floating-panel-head strong,
.hr-floating-panel-head span {
    display: block;
}

.hr-floating-panel-head strong {
    color: #243746;
    font-size: 13px;
}

.hr-floating-panel-head span {
    margin-top: 3px;
    color: #6c7a89;
    font-size: 12px;
    line-height: 1.4;
}

.hr-floating-panel-head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hr-floating-panel .btn-xs {
    min-width: 32px;
}

.hr-floating-panel:not(.is-open) .hr-jerarquia-available-list,
.hr-floating-panel:not(.is-open) .hr-orgchart-toolbar-actions,
.hr-floating-panel:not(.is-open) .hr-floating-panel-head strong,
.hr-floating-panel:not(.is-open) .hr-floating-panel-head span,
.hr-floating-panel:not(.is-open) #btnCancelarJefatura {
    display: none !important;
}

.hr-floating-panel:not(.is-open) .hr-floating-panel-head {
    margin-bottom: 0;
    justify-content: center;
}

.hr-floating-panel:not(.is-open) .hr-floating-panel-head-actions {
    width: 100%;
    justify-content: center;
}

.hr-floating-panel:not(.is-open) #btnTogglePuestosPanel,
.hr-floating-panel:not(.is-open) #btnToggleToolbarPanel {
    min-width: 32px;
}

.hr-google-chart-wrap {
    min-height: 520px;
    overflow: auto;
    border-radius: 6px;
    background-image: linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: center;
    cursor: grab;
}

.orgchart-container.is-dragging .hr-google-chart-wrap,
.orgchart-container.is-dragging {
    cursor: grabbing;
}

.hr-chart-panzoom {
    transform-origin: top left;
    transition: transform 0.16s ease;
    display: inline-block;
    min-width: 100%;
}

.hr-google-chart {
    min-height: 520px;
    width: 100%;
    background: transparent;
}

.hr-orgchart-nav {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #dbe4ec;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hr-orgchart-nav-row {
    display: flex;
    gap: 6px;
}

.hr-orgchart-nav .btn-xs {
    min-width: 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.google-visualization-orgchart-table {
    border-collapse: separate !important;
}

.google-visualization-orgchart-node {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 10px 12px !important;
}

.google-visualization-orgchart-lineleft,
.google-visualization-orgchart-lineright,
.google-visualization-orgchart-linebottom {
    border-color: #1f2933 !important;
}

.google-visualization-orgchart-lineleft,
.google-visualization-orgchart-lineright {
    border-width: 2px !important;
}

.google-visualization-orgchart-linebottom {
    border-left-width: 2px !important;
}

.hr-gc-node {
    position: relative;
    width: 238px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dbe4ec;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    text-align: left;
}

.hr-gc-node.is-selected {
    border-color: #18bc9c;
    box-shadow: 0 0 0 2px rgba(24, 188, 156, 0.16);
}

.hr-gc-node-accent {
    /*position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;*/
}

.hr-gc-node-body {
    padding: 10px 10px 10px 16px;
    text-align: center;
}

.hr-gc-node-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #243746;
}

.hr-gc-node-subtitle {
    margin-top: 3px;
    font-size: 12px;
    color: #6c7a89;
}

.hr-gc-node-employees {
    margin-top: 8px;
    min-height: 30px;
    font-size: 12px;
    color: #2f4858;
    line-height: 1.35;
}

.hr-orgchart-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hr-jerarquia-current-employees {
    min-height: 42px;
}

.hr-chip-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hr-info-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef3f7;
    border: 1px solid #d7e0e8;
    color: #51646f;
    font-size: 12px;
    line-height: 1.2;
}

@media (max-width: 991px) {
    .hr-floating-panel {
        position: static;
        width: 100%;
        max-height: none;
        margin-bottom: 12px;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .hr-jerarquia-stage {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .hr-floating-panel-left {
        order: 1;
    }

    .hr-jerarquia-canvas {
        order: 2;
        min-height: 420px;
    }

    .hr-floating-panel-right {
        order: 3;
    }
}

.install-prompt {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1050;
    max-width: 360px;
    width: calc(100% - 30px);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(44, 62, 80, 0.24);
    border: 1px solid rgba(44, 62, 80, 0.08);
    overflow: hidden;
    display: none;
}

.install-prompt.show {
    display: block;
}

.install-prompt-head {
    padding: 14px 18px;
    background: linear-gradient(135deg, #18bc9c 0%, #13987e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.install-prompt-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.install-prompt-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.install-prompt-body {
    padding: 18px;
}

.install-prompt-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.install-prompt-brand img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
}

.install-prompt-brand strong {
    display: block;
    font-size: 17px;
}

.install-prompt-brand span {
    color: #7b8a8b;
    font-size: 13px;
}

.install-prompt-body p {
    margin-bottom: 16px;
    color: #5d6d74;
}

.install-prompt-actions .btn+.btn {
    margin-left: 8px;
}

@media (max-width: 767px) {
    .app-loader-minimal {
        gap: 9px;
    }

    .app-loader-minimal span {
        width: 9px;
        height: 9px;
    }

    .datatable-loading-host {
        min-height: 150px;
    }

    body {
        padding-top: 62px;
    }

    .navbar-shell {
        display: block;
        padding: 10px 0 14px;
    }

    .navbar-main-left,
    .navbar-top-right {
        display: block;
    }

    .navbar-main-left {
        margin-bottom: 12px;
    }

    .navbar-main-link,
    .navbar-utility-link {
        display: flex;
        width: 100%;
        margin-bottom: 8px;
    }

    .navbar-accordion-toggle {
        min-width: 0;
    }

    .navbar-accordion-menu,
    .navbar-user-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
    }

    .dashboard-hero {
        display: block;
    }

    .dashboard-icon {
        margin-bottom: 15px;
    }

    .install-prompt {
        right: 15px;
        bottom: 15px;
        width: calc(100% - 30px);
    }

    .alerta_flotante,
    .alert.alert-floating {
        right: 12px;
        left: 12px;
        width: auto;
        top: 72px;
    }
}
