/*  
============================
Styles
Author: rdany8719@gmail.com
============================
*/

/* root */
:root {
    --primary: #0f6ad8;
    --primary-dark: #0b3e91;
    --cyan: #23c4d8;
    --text: #163253;
    --text-light: #6f7d93;
    --border: #d9e2ef;
    --bg: #f8fbff;
    --white:#fff;
}

/* header */
.header{
    height:55px !important;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 36px;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark),var(--cyan));
    color: var(--white);
    box-shadow:0 4px 18px rgba(0,0,0,.12);
    position:sticky;
    top:0;
    z-index:1000;
}
.header-left{
    display:flex;
    align-items:center;
    gap:16px;
}
.header-title{
    margin:0;
    font-size:1.2rem;
    font-weight:600;
    color: var(--white);
}
.header-toggle{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:none;
    border-radius:10px;
    background:rgba(255,255,255,.15);
    color: var(--white);
    cursor:pointer;
    transition:.25s;
}
.header-toggle:hover{
    background:rgba(255,255,255,.25);
}
.header-right{
    display:flex;
    align-items:center;
    gap:12px;
}
.header-icon{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:none;
    border-radius:10px;
    background:rgba(255,255,255,.15);
    color: var(--white);
    cursor:pointer;
    transition:.25s;
}
.header-icon:hover{
    background:rgba(255,255,255,.25);
}
.header-user{
    display:flex;
    align-items:center;
    gap:12px;
    padding:6px 12px;
    border:none;
    border-radius:50px;
    background:rgba(255,255,255,.15);
    color: var(--white);
    cursor:pointer;
    transition:.25s;
}
.header-user:hover{
    background:rgba(255,255,255,.25);
}
.header-avatar{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#fff;
    color:var(--primary);
    font-weight:700;
}
.header-user-info span{
    color: var(--white);
    font-weight:600;
}
/* header dropdown */
.header-dropdown .dropdown-menu{
    min-width:160px;
    padding:4px 0;
    margin-top:8px;
    border:1px solid var(--border);
    border-radius:8px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.header-dropdown .dropdown-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:5px 10px;
    font-size:.8rem;
    color:var(--text-light);
    transition:.15s;
}
.header-dropdown .dropdown-item i{
    width:16px;
    height:16px;
    color:inherit;
}
.header-dropdown .dropdown-item:hover,
.header-dropdown .dropdown-item:focus{
    background:#f7f9fc;
    color:var(--text);
}
.header-dropdown .dropdown-divider{
    margin:6px 0;
    border-color:#eceff3;
}
.header-dropdown .text-danger:hover{
    background:#fff7f7;
}
@media(max-width:768px){
    .header{padding:0 16px;}
    .header-title{display:none;}
    .header-user-info{display:none;}
}

/* navbar */
.navbar{
    height:45px !important;
    min-height: 48px !important;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 24px;
    background:var(--white);
}
.navbar-left,
.navbar-right{
    display:flex;
    align-items:center;
    gap:12px;
}
.navbar * {
  line-height: 1.2;
}
@media(max-width:768px){
    .navbar{
        padding:0 16px;
    }
}
/* help icon */
.navbar-help {
  background: none;
  border: none;
  padding: 4;
  display: flex;
  align-items: center;
  cursor: pointer;
  border-radius: 50%;
}
.navbar-help:hover {
  background: rgba(0,0,0,.05);
}
.navbar-help i {
  width: 18px;
  height: 18px;
  color: var(--text-light);
  transition: color .2s;
}
.navbar-help i:hover {
  color: var(--text);
}
@media(max-width:768px){
  .navbar-help i {
    width: 16px;
    height: 16px;
  }
}

/* sidebar */
.sidebar{
    width:250px;
    height:100dvh;
    position:fixed;
    top:0;
    left:0;
    z-index:1100;
    display:flex;
    flex-direction:column;
    background:var(--white);
    border-radius: 0 70px 70px 0;
    box-shadow:0 0px 20px rgba(0,0,0,.17);
    overflow:visible;
    transition:width .25s ease;
}
.sidebar-header{
    height:50px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    position:relative;
    padding: 0 12px;
}
.sidebar-logo img{max-width:37px;}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -1px;
  background: linear-gradient(170deg, var(--primary-dark), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.sidebar-toggle{
    position:absolute;
    right:-16px;
    top:157%;
    transform:none;
    margin-left: auto;
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:none;
    border-radius:50%;
    background:var(--primary);
    color: var(--white);
    box-shadow:0 4px 10px rgba(0,0,0,.15);
    cursor:pointer;
}
.sidebar-toggle:hover{
    background:var(--primary-dark);
}
.sidebar-menu{
    flex:1;
    padding:12px;
    display:flex;
    flex-direction:column;
    gap:4px;
}
.sidebar-item{
    height:40px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 16px;
    border-radius:20px;
    color:#55657f;
    text-decoration:none;
    transition:.2s;
}
.sidebar-item i{
    width:14px !important;
    height:14px !important;
    flex-shrink:0;
}
.sidebar-item span{
    font-weight:500;
    white-space:nowrap;
}
.sidebar-item:hover{
    background:#f2f2f2;
    color:var(--primary);
}
.sidebar-item.active {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% + 12px); 
  margin-left: -12px;         
  border-radius: 0 20px 20px 0; 
  padding: 0 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 37%, var(--cyan) 100%);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(15,106,216,.18);
}
.sidebar-search {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.sidebar-search button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: .9rem;
  cursor: pointer;
  padding: 0;
}
.sidebar-search i {
  width: 10px;
  height: 10px;
}
/* minimizado */
.sidebar.collapsed .sidebar-item{
    justify-content:center;
    padding:0;
    gap: 0;
}
.sidebar.collapsed .sidebar-item span{
    display:none;
}
.sidebar.collapsed .sidebar-header{
    justify-content:center;
}
.sidebar.collapsed .sidebar-toggle i{
    transform:rotate(180deg);
}
/* panel minimizado elements */
.page-wrapper{
    margin-left:250px;
    transition:margin-left .25s ease;
}
.sidebar.collapsed{
    width:84px;
}
.sidebar.collapsed + .page-wrapper{
    margin-left:84px;
}
.sidebar.collapsed .logo-text,
.sidebar.collapsed .sidebar-search span{
    display:none;
}
.sidebar.collapsed .sidebar-logo{
    justify-content:center;
}
.sidebar.collapsed .sidebar-search button{
    justify-content:center;
    gap:0;
}
.sidebar.collapsed .sidebar-search{
    padding:12px 0;
}
.sidebar.collapsed .sidebar-logo img{
    margin:0 auto;
}
/* responsive */
@media(max-width:992px){
    .sidebar{
        transform:translateX(-100%);
        transition:transform .25s ease;
        border-radius:0 32px 32px 0;
    }
    .sidebar.show{
        transform:translateX(0);
    }
    .sidebar-toggle{
        display:none;
    }
    .page-wrapper{
        margin-left:0;
        width:100%;
    }
}
@media(max-width:768px){
    .sidebar{
        width:260px;
    }
    .logo-text{
        font-size:16px;
    }
    .sidebar-item{
        height:44px;
    }
}

/* All content */
.layout{
    display:flex;
}
.content{
    padding: 20px;
    min-height: calc(100dvh - 112px);
}
@media(max-width:768px){
    .content{
        padding:16px;
    }
}

/* panel */
.panel{
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    padding: 10px 20px;
    box-shadow:0 2px 8px rgba(15,23,42,.04);
    margin-bottom: 20px;
    overflow: hidden;
} 
.panel-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-bottom:7px;
    border-bottom:1px solid var(--border);
}
.panel-title{
    margin:0;
    font-size:17px;
    font-weight:600;
    color:var(--text);
}
.panel-toggle{
    display:flex;
    justify-content:center;
    align-items:center;
    width:32px;
    height:32px;
    border:none;
    border-radius:8px;
    background:transparent;
    color:var(--text-muted);
    cursor:pointer;
    transition:.2s;
    padding: 0;
}
.panel-toggle:hover{
    background:var(--background);
    color:var(--text);
}
.panel-toggle svg{
    width:20px;
    height:20px;
    stroke-width: 2.25;
}
.panel-body{
    display: flex;
    justify-content: center;
    padding-top: 20px;
    max-height: 1000px;
    opacity: 1;
    overflow: hidden;
    transition:max-height .25s ease, opacity .2s ease;
}
.panel.collapsed .panel-body{
    max-height:0;
    opacity:0;
    padding-top:0;
}

/* submenu sidevar */
.sitah-submenu-item.dropdown-toggle {
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    border-radius: 17px;
    padding: 0.4rem 0.9rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid #f0f4fa;
}
.sitah-submenu-item.dropdown-toggle:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}
.sitah-submenu-item.dropdown-toggle.active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--cyan) 100%);
    color: var(--white);
    box-shadow: 0 3px 6px rgba(15,106,216,0.25);
}
.sitah-submenu-item {
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    border-radius: 17px;
    padding: 0.4rem 0.9rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid #f0f4fa;
}
.dropdown-item.active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--cyan) 100%);
    color: var(--white);
    box-shadow: 0 3px 6px rgba(15,106,216,0.25);
}
.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    color: var(--white);
}
@media(max-width:992px){
    .navbar{
        overflow-x:auto;
        overflow-y:hidden;
        justify-content:flex-start;
        gap:8px;
        scrollbar-width:none;
    }
    .navbar::-webkit-scrollbar{
        display:none;
    }
    .sitah-submenu-item,
    .sitah-submenu-item.dropdown-toggle{
        flex-shrink:0;
        margin-left:0;
        white-space:nowrap;
    }
}
@media(max-width:576px){
    .navbar{
        padding:0 10px;
        height:44px !important;
        min-height:44px !important;
        scroll-padding-left:16px;
        scroll-padding-right:16px;
    }
    .sitah-submenu-item,
    .sitah-submenu-item.dropdown-toggle{
        padding:.35rem .75rem;
        font-size:13px;
        border-radius:14px;
    }

}

/* formularios */
.s-form{
    margin-top:4px;
    width: 100%;
    max-width: 1100px;
}
.s-form-group{display:flex;flex-direction:column;}
.s-form-label{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:6px;
    font-size:12px;
    font-weight:600;
    color:var(--text);
}
.s-form-label svg{
    width:16px;
    height:16px;
    color:var(--primary);
    stroke-width:2;
}
.s-form-label small{
    color:#ef4444;
    font-size:13px;
}
.s-form .form-control,
.s-form .form-select{
    height:36px;
    border-radius:17px;
    border:1px solid var(--border);
    box-shadow:none;
    transition:.2s;
    font-size: 14px;
}
.s-form .form-control:focus,
.s-form .form-select:focus{
    border-color:var(--primary);
    transform:translateY(-1px);
    box-shadow:0 4px 12px rgba(37,99,235,.12);
}
.s-form-footer{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    margin-top:28px;
    padding-top:18px;
    border-top:1px solid var(--border);
}
.s-form-footer .btn{
    min-width:110px;
    border-radius:27px;
    font-weight:600;
}
/* buttom print curriculum */
.cv-print-footer{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
    margin-top:20px;
    padding:18px 24px 20px;
    border-top:1px solid var(--border);
}
.cv-print-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-width:70px;
    padding:px 14px;
    border:1px solid var(--border);
    border-radius:27px;
    background:transparent;
    font-weight:500;
}
/* tablet */
@media (max-width:992px){
    .s-form-grid{
        grid-template-columns:1fr;
    }
}
/* móvil */
@media (max-width:576px){

    .panel{
        padding:16px;
        border-radius:12px;
    }

    .panel-header{
        padding-bottom:12px;
    }

    .s-form-footer{
        flex-direction:column-reverse;
    }

    .s-form-footer .btn{
        width:100%;
    }
}

/* tablas */
.s-table{
    width:100%;
    background:#f8f9fb;
    border-radius:20px;
    padding:7px;
}
.s-table table{
    width:100%;
    border-collapse:separate;
    border-spacing:0 4px;
    margin:0;
}
.s-table thead th{
    background:linear-gradient(#f5f7fb,#edf2f9);
    color:#0e336a;
    font-size:.70rem;
    font-weight:700;
    letter-spacing:.3px;
    padding: 7px 15px;
}
.s-table thead th:first-child{
    border-radius:13px 0 0 13px;
}
.s-table thead th:last-child{
    border-radius:0 12px 12px 0;
    text-align:center;
}
.s-table tbody td{
    background:#fff;
    border:0;
    padding:7px 15px;
    color:#55657f;
    vertical-align:middle;
    box-shadow:0 1px 0 rgba(0,0,0,.035);
    transition: .25s;
}
.s-table tbody tr td:first-child{
    position: relative;
    border-radius:20px 0 0 20px;
}
.s-table tbody tr td:first-child::before{
    content:"";
    position:absolute;
    left:0;
    top:12px;
    bottom:12px;
    width:4px;
    border-radius:20px;
    background:transparent;
    transition:.25s;
}
.s-table tbody tr:hover td:first-child::before{
    background:#0e336a;
}
.s-table tbody tr td:last-child{
    border-radius:0 20px 20px 0;
    text-align:center;
}
.s-table tbody tr:hover td{
    transform:translateY(-2px);
    border-top:1px solid #d7e8ff;
    border-bottom:1px solid #d7e8ff;
    box-shadow:
        0 8px 22px rgba(67,97,238,.08),
        0 0 18px rgba(85,170,255,.12);
}
.s-table .btn-icon{
    width:25px;
    height:25px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#eef3fb;
    color:#4d648d;
    border:0;
    transition:.25s;
}
.s-table td:last-child .btn-icon + .btn-icon{
    margin-left:2px;
}
.s-table .btn-icon:hover{
    background:#dfe8f8;
    color:#1facf2;
}
.s-table #infoRoles{
    color:#7d8ba6!important;
}
.s-table #paginacionRoles .page-link{
    border-radius:10px;
    margin:0 2px;
    border:none;
}
.s-table #paginacionRoles .page-item.active .page-link{
    background:#4f7cff;
    color:#fff;
}
.s-table tbody tr.s-table-empty td{
    display:table-cell;
}

/* mi información */
.mi-panel{
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background:var(--white);
    border:1px solid var(--border);
    border-radius:16px;
    box-shadow:0 2px 8px rgba(15,23,42,.04);
    overflow:hidden;
    margin-bottom:15px;
}
.mi-panel-body{
    display:flex;
    align-items:stretch;
    min-height:auto;
}
.mi-sidebar{
    width:250px;
    border-right:1px solid var(--border);
    background:#fff;
    flex-shrink:0;
}
.nombre_emple{
    padding:18px 10px 12px;
    text-align:center;
    line-height:1.3;
    color:var(--text);
    font-size:15px;
    font-weight:600;
}
.mi-position{
    display:block;
    margin-top:3px;
    font-size:11px;
    font-weight:500;
    color:var(--text-muted);
    text-transform:uppercase;
    letter-spacing:.12em;
}
.mi-profile{
    position: relative;
    height:170px;
    display:flex;
    justify-content:center;
    align-items:center;
}
.mi-avatar{
    width:150px;
    height:150px;
    border-radius:50%;
    object-fit:cover;
    border:7px solid var(--light);
    box-shadow:0 0 27px rgba(37, 99, 235, .25);
}
.mi-avatar-edit{
    position:absolute;
    bottom:7px;
    right:60px;
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:none;
    border-radius:50%;
    background:var(--primary);
    color:#fff;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
    transition:.2s;
}
.mi-avatar-edit:hover{
    transform:scale(1.08);
}
.mi-menu{
    display:flex;
    flex-direction:column;
    padding:16px;
    gap:4px;
}
.mi-menu a{
    font-size: 15px;
    display:block;
    padding:9px 16px;
    border-radius:999px;
    color:var(--text-muted);
    text-decoration:none;
    font-weight:500;
    transition:.2s;
}
.mi-menu a:hover{
    color:var(--text);
}
.mi-menu a.active{
    background:#f3f2fb;
    color:var(--text);
    font-weight:600;
}
.mi-main{
    display:flex;
    align-items:stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.mi-content{
    flex:1;
    padding:34px;
}
.mi-content-header{
    border-bottom:0.5px solid var(--border);
}
.mi-content-title{
    margin:0;
    font-size:17px;
    font-weight:700;
    color:var(--text);
    line-height:1.2;
}
.mi-content-body{
    padding-top:24px;
}
.mi-attachments{
    padding:20px;
    border-top:1px solid var(--border);
    min-height:auto;
}
.mi-attachmentsTable{
    padding:20px;
    border-top:1px solid var(--border);
    min-height:auto;
}
#frmFamiliar.d-none + .mi-attachmentsTable{
    border-top: none;
    padding-top: 0;
}
#frmExperiencia.d-none + .mi-attachmentsTable{
    border-top: none;
    padding-top: 0;
}
#frmFormacion.d-none + .mi-attachmentsTable,
#frmCurso.d-none + .mi-attachmentsTable,
#frmHabilidad.d-none + .mi-attachmentsTable,
#frmIdioma.d-none + .mi-attachmentsTable,
#frmDocumento.d-none + .mi-attachmentsTable{
    border-top: none;
    padding-top: 0;
}
@media (max-width:1200px){
    .mi-sidebar{
        width:220px;
    }
}
@media (max-width:992px){
    .mi-main{
        flex-direction:column;
    }
    .mi-sidebar{
        width:100%;
        border-right:none;
        border-bottom:1px solid var(--border);
    }
    .mi-menu{
        flex-direction:row;
        flex-wrap:nowrap;
        overflow-x:auto;
        padding:12px;
    }
    .mi-menu a{
        white-space:nowrap;
        flex-shrink:0;
    }
}

/* form-no editables */
.s-name-group{
    margin-bottom:24px;
}
.s-name-fields{
    display:grid;
    grid-template-columns:repeat(4,1fr);
}
.s-name-fields .form-control:first-child{
    border-radius:17px 0 0 17px;
}
.s-name-fields .form-control:not(:first-child):not(:last-child){
    border-radius:0;
    border-left:none;
}
.s-name-fields .form-control:last-child{
    border-radius:0 17px 17px 0;
    border-left:none;
}
@media (max-width: 767.98px){
    .s-name-fields{
        grid-template-columns:1fr;
        gap:10px;
    }
    .s-name-fields .form-control{
        border-radius:17px !important;
        border-left:1px solid var(--tblr-border-color) !important;
    }
}
.my-hr {
    margin: 0;
    border: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        color-mix(in srgb, var(--tblr-body-color) 50%, transparent) 20%,
        color-mix(in srgb, var(--tblr-body-color) 50%, transparent) 70%,
        transparent 100%
    );
}

/* list empleados */
#contenedorEmpleados {
    width: 100%;
}
.employee-col {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    width: 20% !important;
}
.employee-card {
    overflow: hidden;
    border: 1px solid var(--tblr-border-color);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .09);
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.employee-photo {
    height: 125px;
    overflow: hidden;
    background: var(--tblr-bg-surface-secondary);
    border-bottom: 0.5px solid rgba(173, 171, 171, 0.02);
    position: relative;
}
.employee-photo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 18px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        var(--tblr-bg-surface)
    );
    pointer-events: none;
}
.employee-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px;
    position: relative;
}
.employee-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: scale(1.09);
    transition: transform .25s ease;
}
.employee-card:hover .employee-photo img {
    transform: scale(1.13);
}
.employee-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    margin-top: auto !important;
    border-top: 1px solid var(--tblr-border-color);
    color: var(--tblr-primary);
    font-weight: 500;
    text-decoration: none;
}
.employee-details i {
    width: 18px;
    height: 18px;
    transition: transform .2s ease;
}
.employee-details:hover i {
    transform: translateX(4px);
}
/* paginación */
#paginacionEmpleados {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
}
#paginacionEmpleados .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard */
.dashboard-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
    .dashboard-card {
        position: relative;
        min-height: 125px;
        padding: 15px 16px;
        overflow: hidden;
        background: #fff;
        border: 1px solid #e4e9f0;
        border-radius: 14px;
        box-shadow: 0 3px 12px rgba(31, 41, 55, 0.05);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .dashboard-card::after {
        position: absolute;
        right: -28px;
        bottom: -42px;
        width: 90px;
        height: 90px;
        content: '';
        background: rgba(13, 110, 253, 0.045);
        border-radius: 50%;
    }
    .dashboard-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 7px 18px rgba(31, 41, 55, 0.08);
    }
    .dashboard-card-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .dashboard-card-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        color: #0038d3;
        background: #f3f6fa;
        border-radius: 9px;
    }
    .dashboard-card-icon svg {
        width: 20px;
        height: 20px;
    }
    .dashboard-card-category {
        color: #98a2b3;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.08em;
    }
    .dashboard-card-value {
        position: relative;
        z-index: 1;
        margin-top: 11px;
        color: #182433;
        font-size: 30px;
        font-weight: 700;
        line-height: 1;
    }
    .dashboard-card-bottom {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 8px;
        color: #98a2b3;
        font-size: 11px;
    }
    .dashboard-card-bottom svg {
        width: 15px;
        height: 15px;
        color: #0d6efd;
    }

    /* ausencias */
    .vacaciones-periodo-selector {
        min-height: 47px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 16px;
        border: 1px solid var(--tblr-border-color);
        border-radius: 8px;
        background: var(--tblr-bg-forms);
        color: var(--tblr-body-color);
        text-align: left;
        transition: border-color .2s, box-shadow .2s, background-color .2s;
    }
    .vacaciones-periodo-selector:hover {
        border-color: var(--tblr-primary);
        background: var(--tblr-bg-surface);
    }
    .vacaciones-dias-input {
        height: 47px;
        padding: 4px 12px;
        border: 1px solid var(--tblr-border-color);
        border-radius: 8px;
        background: var(--tblr-bg-forms);
        color: var(--tblr-primary);
        font-size: 20px;
        font-weight: 600;
        text-align: center;
        box-shadow: none;
    }
    .vacaciones-dias-input:focus {
        border-color: var(--tblr-border-color);
        box-shadow: none;
    }
    .vacaciones-periodo-icon {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: var(--tblr-primary-lt);
        color: var(--tblr-primary);
        flex-shrink: 0;
    }
    .vacaciones-periodo-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
        flex: 1;
    }
    .vacaciones-periodo-info strong {
        font-size: 12px;
        font-weight: 600;
    }
    .vacaciones-periodo-info span {
        font-size: 10px;
        color: var(--tblr-secondary);
    }
    .vacaciones-periodo-arrow {
        color: var(--tblr-secondary);
        flex-shrink: 0;
    }
    .vacaciones-alerta {
        display: flex;
        align-items: center;
        gap: 7px;
        margin-top: -4px;
        color: var(--tblr-secondary);
        font-size: 12px;
    }
    .vacaciones-alerta svg {
        width: 14px;
        height: 14px;
        color: var(--tblr-danger);
        flex-shrink: 0;
    }
    /* footer firma */
    .vacaciones-firma {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 80px;
        padding: 12px 16px;
        border: 2px dashed var(--tblr-border-color);
        border-radius: 8px;
        background: var(--tblr-bg-forms);
    }
    .vacaciones-firma-preview {
        display: none;
        align-items: center;
        gap: 12px;
        flex: 1;
    }
    .vacaciones-firma-preview img {
        display: block;
        max-width: 280px;
        height: 55px;
        object-fit: contain;
    }
    .vacaciones-firma-preview span {
        color: var(--tblr-success);
        font-size: 12px;
        font-weight: 600;
    }
    .vacaciones-firma-placeholder {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--tblr-secondary);
        font-size: 12px;
    }
    .vacaciones-firma-placeholder svg {
        width: 18px;
        height: 18px;
    }
    .vacaciones-firma-modal .modal-dialog {
        max-width: 980px;
    }
    .vacaciones-firma-modal .modal-content {
        border-radius: 8px;
        background: #f3f4f6;
    }
    .vacaciones-firma-pad {
        width: 100%;
        height: 420px;
        border: 1px solid var(--tblr-border-color);
        border-radius: 8px;
        background: #fff;
        overflow: hidden;
    }
    .vacaciones-firma-pad canvas {
        display: block;
        width: 100%;
        height: 100%;
        cursor: crosshair;
    }
    .vacaciones-firma-modal .modal-body {
        padding: 16px;
    }
    .vacaciones-firma-modal .modal-footer {
        justify-content: space-between;
        padding: 12px 16px;
        background: #f3f4f6;
        border-top: 0;
    }
    /* calendar */
    .fc-day-selected-multiple {
        background-color: var(--tblr-primary-lt) !important;
    }
    #calendar-vacaciones .fc-toolbar-title {
        font-size: 17px !important;
        line-height: 1.2;
    }
    #calendar-vacaciones .fc-toolbar {
        margin-bottom: 7px !important;
    }

/* aprobación de vacaciones */
.vacaciones-apro {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 7px 40px;
    color: #253247;
}
.vacaciones-apro-alert {
    margin: 24px;
    padding: 18px 22px;
    border: 1px solid #f1b8b8;
    border-radius: 12px;
    background: #fff5f5;
    color: #a33a3a;
}
.vacaciones-apro-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 17px;
    margin-bottom: 20px;
}
.vacaciones-apro-heading {
    display: flex;
    align-items: center;
    gap: 15px;
}
.vacaciones-apro-heading-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eaf5fb;
    color: var(--primary);
}
.vacaciones-apro-heading-icon svg {
    width: 24px;
    height: 24px;
}
.vacaciones-apro-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.3px;
    color: #253247;
}
.vacaciones-apro-subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    color: #7b8798;
}
.vacaciones-apro-number {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #e2e7ed;
    border-radius: 6px;
    background: #f8fafb;
    font-size: 12px;
    font-weight: 700;
    color: #596579;
}
.vacaciones-apro-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}
.vacaciones-apro-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.vacaciones-apro-status.pendiente {
    background: #fff7e6;
    color: #b87800;
}
.vacaciones-apro-status.aprobada {
    background: #eaf8f0;
    color: #1fe418;
}
.vacaciones-apro-status.rechazada {
    background: #fff0f0;
    color: #ea1616;
}
.vacaciones-apro-status.cancelada {
    background: #eef1f4;
    color: #525d6b;
}
.vacaciones-apro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
    gap: 20px;
}
.vacaciones-apro-panel {
    background: #fff;
    border: 1px solid #e5e9ee;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(34, 48, 68, .05);
    overflow: hidden;
}
.vacaciones-apro-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 22px;
    border-bottom: 1px solid #edf0f3;
}
.vacaciones-apro-panel-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #344054;
}
.vacaciones-apro-panel-body {
    padding: 22px;
}
.vacaciones-apro-employee {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}
.vacaciones-apro-avatar {
    width: 57px;
    height: 57px;
    flex: 0 0 57px;
    border-radius: 12px;
    overflow: hidden;
    background: #edf4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a83b6;
    font-size: 21px;
    font-weight: 700;
}
.vacaciones-apro-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vacaciones-apro-employee-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #263449;
}
.vacaciones-apro-employee-meta {
    margin-top: 4px;
    font-size: 13px;
    color: #818c9c;
}
.vacaciones-apro-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    overflow: hidden;
}
.vacaciones-apro-info {
    min-height: 67px;
    padding: 12px 17px;
    border-right: 1px solid #e8ecf0;
    border-bottom: 1px solid #e8ecf0;
}
.vacaciones-apro-info:nth-child(3n) {
    border-right: none;
}
.vacaciones-apro-info:nth-last-child(-n+3) {
    border-bottom: none;
}
.vacaciones-apro-label {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #98a2b3;
}
.vacaciones-apro-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #344054;
}
.vacaciones-apro-days {
    color: #0787bd;
}
.vacaciones-apro-observaciones {
    margin-top: 12px;
    padding: 15px;
    border-radius: 12px;
    background: #f7f9fb;
}
.vacaciones-apro-observaciones-label {
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #98a2b3;
}
.vacaciones-apro-observaciones-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #475467;
}
.vacaciones-apro-signature {
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccd5df;
    border-radius: 12px;
    background: #fbfcfd;
}
.vacaciones-apro-signature img {
    max-width: 280px;
    max-height: 110px;
    object-fit: contain;
}
.vacaciones-apro-signature-empty {
    text-align: center;
    color: #98a2b3;
    font-size: 13px;
}
.vacaciones-apro-signature-empty svg {
    width: 25px;
    height: 25px;
    margin-bottom: 7px;
}
.vacaciones-apro-flow {
    position: relative;
}
.vacaciones-apro-flow-item {
    position: relative;
    display: flex;
    gap: 13px;
    padding-bottom: 25px;
}
.vacaciones-apro-flow-item:last-child {
    padding-bottom: 0;
}
.vacaciones-apro-flow-item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 14px;
    width: 1px;
    height: calc(100% - 16px);
    background: #dce3e9;
}
.vacaciones-apro-flow-dot {
    position: relative;
    z-index: 1;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #dce3e9;
    border-radius: 50%;
    background: #fff;
    color: #98a2b3;
}
.vacaciones-apro-flow-dot svg {
    width: 14px;
    height: 14px;
}
.vacaciones-apro-flow-item.actual .vacaciones-apro-flow-dot {
    border-color: #0787bd;
    background: #eaf5fb;
    color: #0787bd;
}
.vacaciones-apro-flow-item.done .vacaciones-apro-flow-dot {
    border-color: #2b9a5b;
    background: #eaf8f0;
    color: #2b9a5b;
}
.vacaciones-apro-flow-content {
    min-width: 0;
    padding-top: 2px;
}
.vacaciones-apro-flow-stage {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #344054;
}
.vacaciones-apro-flow-responsable {
    margin: 4px 0 0;
    font-size: 12px;
    color: #8a95a5;
}
.vacaciones-apro-flow-state {
    display: inline-block;
    margin-top: 7px;
    font-size: 11px;
    font-weight: 700;
    color: #0787bd;
}
.vacaciones-apro-flow-empty {
    padding: 18px;
    border-radius: 11px;
    background: #f8fafb;
    color: #8994a4;
    font-size: 13px;
    line-height: 1.5;
}
.vacaciones-apro-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 17px 17px;
    border: 1px solid #e5e9ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(34, 48, 68, .05);
}
.vacaciones-apro-actions-left,
.vacaciones-apro-actions-right {
    display: flex;
    align-items: center;
    gap: 9px;
}
.vacaciones-apro-btn {
    min-height: 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s ease;
    text-decoration: none;
}
.vacaciones-apro-btn svg {
    width: 16px;
    height: 16px;
}
.vacaciones-apro-btn-back {
    background: #fff;
    border-color: #dce2e8;
    color: #596579;
}
.vacaciones-apro-btn-back:hover {
    background: #f7f9fb;
    color: #344054;
}
.vacaciones-apro-btn-document {
    background: #f7f9fb;
    border-color: #e1e6eb;
    color: #475467;
}
.vacaciones-apro-btn-document:hover {
    background: #eef3f6;
}
.vacaciones-apro-btn-reject {
    background: #fff;
    border-color: #e5bcbc;
    color: #b23b3b;
}
.vacaciones-apro-btn-reject:hover {
    background: #fff4f4;
}
.vacaciones-apro-btn-approve {
    background: var(--text);
    color: #fff;
    box-shadow: 0 5px 12px rgba(8, 127, 91, .18);
}
.vacaciones-apro-btn-approve:hover {
    background: #038642;
    transform: translateY(-1px);
}
.vacaciones-apro-note {
    margin-top: 10px;
    font-size: 11px;
    color: #98a2b3;
}
@media (max-width: 900px) {
    .vacaciones-apro-grid {
        grid-template-columns: 1fr;
    }
    .vacaciones-apro-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vacaciones-apro-info:nth-child(3n) {
        border-right: 1px solid #e8ecf0;
    }
    .vacaciones-apro-info:nth-child(2n) {
        border-right: none;
    }
    .vacaciones-apro-info:nth-last-child(-n+3) {
        border-bottom: 1px solid #e8ecf0;
    }
    .vacaciones-apro-info:last-child,
    .vacaciones-apro-info:nth-last-child(2) {
        border-bottom: none;
    }
}
@media (max-width: 650px) {
    .vacaciones-apro {
        padding: 18px 14px 30px;
    }
    .vacaciones-apro-header,
    .vacaciones-apro-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .vacaciones-apro-actions-left,
    .vacaciones-apro-actions-right {
        justify-content: stretch;
    }
    .vacaciones-apro-btn {
        flex: 1;
    }
    .vacaciones-apro-info-grid {
        grid-template-columns: 1fr;
    }
    .vacaciones-apro-info,
    .vacaciones-apro-info:nth-child(2n),
    .vacaciones-apro-info:nth-child(3n) {
        border-right: none;
        border-bottom: 1px solid #e8ecf0;
    }
    .vacaciones-apro-info:last-child {
        border-bottom: none;
    }
}
