:root{
    --color-azul-claro: #0FB0F9;
    --color-azul-act: #4666ff;
    --color-verde-act: #beff5e;
    --color-azul-nocturno: #0B1B3A;
    --color-gris-azulado-claro: #E2E8F0;
    --color-azul-grisaceo-oscuro: #2D3748;
    --color-neutral-50:#F8FAFC;
}
.aplanner_bc #content_logo a #logo {
  aspect-ratio: 402 / 124;
}
.aplanner_bc #main-header{z-index: 2; position: relative;background: #fff;}
.aplanner_bc .container-fluid{position: relative;}
.aplanner_bc #header_container #main-header .container-fluid .row{margin-left: 20px;margin-right: 20px;}
.ap-block{padding:12px;background:#fff}
.ap-alerts{display:flex;gap:8px;margin-bottom:8px}
.ap-alert{padding:6px 10px;border-radius:6px;color:#fff}
.ap-today{background:#dc2626}
.ap-soon{background:#f59e0b}
.ap-current{background:#16a34a}
.ap-vencimiento{padding:8px;border:1px solid #eee;margin-bottom:6px;border-radius:4px}

/* Layout for planner */

.ap-planner{display:flex;height:100vh;overflow:hidden; position: relative; padding-bottom: 122px;}
.ap-main{transition:width .28s ease; position: relative; overflow-y: auto; overflow-x: hidden; padding: 0 24px;}

/* Obligaciones filter styles */
.ap-available label{display:grid; grid-template-columns: auto 2.5fr; gap:8px; cursor:pointer;}
.ap-available label, .ap-selected .ap-pill{padding:8px 8px 13px;}
.ap-available div:not(:last-child) label,
.ap-selected .ap-pill{ border-bottom: 1px solid var(--color-gris-azulado-claro)}
.ap-available label:hover{background:var(--color-neutral-50);border-color:#e6eef8}
.ap-planner input[type="checkbox"]{width:16px;height:16px; margin-top: 4px;}
.ap-selected{display:flex;gap:3px;margin-bottom:8px; flex-direction: column;}
#ap-filter-obligaciones {position: relative;}
.ap-selected .ap-pill{display: flex; justify-content: space-between;}
.ap-pill button{background:transparent;border:0;color:#334155;font-weight:700}
.ap-client-item{margin: 18px 12px;}
.ap-client-item label{display: grid; grid-template-columns: auto 1fr; gap: 6px; align-items: flex-start; color: #334155;}
.ap-applied-filters{background-color: #F8FAFF; border: 1px solid var(--color-gris-azulado-claro); border-radius: 6px; margin-top: 16px; padding: 20px;}
.ap-applied-filters b{font-weight: inherit; color: var(--color-azul-act); margin-bottom: 10px; display: block;}
.ap-tresponsable-filter i,.ap-tobligaciones-filter i{color: var(--color-azul-act);}
.ap-tresponsable-filter select,.ap-tobligaciones-results select{width: 100%; padding: 10px 43px 10px 20px; margin-top: 21px;background-color: var(--color-neutral-50); color: #2D3748; border: 1px solid var(--color-gris-azulado-claro); border-radius: 40px; appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 8"><path d="M6 8L0 0h12L6 8z" fill="%230FB0F9"/></svg>'); background-repeat: no-repeat;  background-position: right 1.5rem center; outline: none; cursor: pointer; transition: 0.15s; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;  max-width: 100%;}

/*acciones filtros*/
.ap-acciones{display: flex; justify-content: flex-end;}
.ap-acciones .ap-inner > div{ display: inline-flex; gap: 11px; margin-bottom: 2px;}
.ap-acciones .btn-primary{border: 1px solid var(--color-azul-act); background-color: #fff; color:var(--color-azul-act); border-radius: 45px;}
.ap-acciones .ap-acciones-open-filter{background-color: var(--color-azul-act); padding: 4px 21px; color: #fff;}
.ap-acciones .btn-primary:hover, 
.ap-acciones .btn-secondary.notify:hover,
.ap-details-no-clients-inner .ap-details-no-clients-actions button:hover{
    opacity: 0.75; 
    background-color: #4666ff17; 
    color: #000000;
}
.ap-acciones .btn-secondary.notify{
    border: 1px solid #3655cc;
    color: #4666ff;
    padding: 6px 16px;
    background: initial;
    border-radius: 33px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.ap-acciones .btn-secondary.notify img{
    width: 26px;
    height: 26px;
    aspect-ratio: 1;
}
.ap-acciones .btn-secondary:focus, .ap-acciones .btn-secondary:active:focus{box-shadow: initial;}
.ap-acciones .ap-inner div{ border-radius: 33px;}

/* Birdseye calendar */
.ap-calendario{margin-bottom: 15px;}
.calendar-year{overflow-x:auto;scroll-behavior:smooth;overflow-y:hidden; position: relative;width: 100%;margin-bottom: 7px;}
.calendar-year .day-cell.today{ border: 1px solid #4666ff; text-align: center;}
.ap-calendario .ap-inner > button{
    background-color: #F8CA1A;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 9px;
    height: 40px;
    width: 40px;
    border-radius: 50%;
}
.calendar-grid{display:flex;flex-direction:column;gap:0; width: 100%;}
.month-row{display:flex;gap:2px;align-items:stretch;border-bottom:1px solid #e5e7eb;padding:4px 0;min-height:60px}
.month-row.title-row .month-name{font-size: 20px; color: #000;}
.month-name{min-width:88px;font-weight:600;font-size:14px;padding:0 8px;text-transform:capitalize;text-align:center;position:sticky;left:0;z-index:10; display: flex;flex-direction: column; align-items: center; justify-content: space-evenly; background: #ebebeb;border: 1px solid #e0e2e5;}
.month-name button{
    border-radius: 50%;
    width: 45px;
    height: 45px;
    border: none;
    color: #fff;
    background-color: #3355cc;
    box-shadow: 0 0 14px #b0b4cb;
}
.month-name button:hover{
    opacity: 0.85;
}
.day-header{min-width: 70px; height: auto; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #090b0e; background-color: #ebebeb; border-radius: 8px;  font-weight: 600;}
.weekendday{background-color: #f7f4ec !important;}
.day-cell.day-holiday{background-color: #f7f4ec;}
.day-cell{min-width:70px;min-height:90px;height: auto; display:flex;flex-direction:column;align-items:center;justify-content:flex-start;border:1px solid #e5e7eb;border-radius:3px;background:#fbfbfb;font-size:12px;position:relative}
.day-number{color:#374151;font-weight: 500;font-size:12px;z-index:1}
.events-container{position:relative;width:100%;pointer-events:none; margin-top: 13px;}
.event-bar{font-size:12px;font-weight: 600; padding: 2px 11px; border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:3px;position:absolute;left:0;z-index:2;pointer-events:auto;height:20px}
.logged-in .event-bar {cursor: pointer;}
.event-bar:hover{opacity: 0.90;}
.event-bar.ev-highlight{box-shadow:0 0 0 2px rgba(0,0,0,0.45);z-index:5;opacity:1;}
.ap-legend-item{cursor:default;}
.ap-legend-item.leg-highlight{background:#eef2ff;border-radius:6px;}
.ap-legend-item.leg-highlight .ap-legend-label{font-weight:700;color:#1e3a8a;}
.ap-calendar-legend{
    gap: 5px 20px;
    margin: 10px 0 4px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    box-shadow: 0 0 10px #d1d1d1;
    border-radius: 10px;
    padding: 12px;
}
.ap-legend-item{
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    min-width: 0;
    width: 100% !important;
}
.ap-legend-bar{display:inline-block;width:28px;height:10px;border-radius:3px;flex-shrink:0;border:1px solid transparent;}
.ap-legend-label{font-size:14px;font-weight:500;color:#374151;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/*ap-detalles y chat*/
.ap-detalles{float: left; transition: all 0.5s ease;}
.ap-chat-ia{ 
    float: right;
    width: calc(55% - 28px);
    display: grid;
    grid-template-columns: 1fr;
    transition: all 0.5s ease;
    column-gap: 13px;
    border: 1px solid #CFCFCF;
    border-radius: 25px;
    padding: 3px 7px 6px;
    box-shadow: 0 0 10px #c4c3c9;
    height: 797px;
}
.ap-chat-ia *:focus{
    outline: none !important;
}
.ap-detalles{width: calc(45% - 10px); margin-left: 7px;}
.ap-detalles.shrink{width: 80px;}
.ap-detalles.width{width: calc(100% - 100px);}
.ap-detalles.width .ap-block {height: 807px;}
.ap-chat-ia.width{width: calc(100% - 100px);}
.ap-chat-ia.width .ia-planner-question-section {
  width: 1307px;
  /* right: calc(((100vw - 1307px) / 2) - 50px);
  bottom: 67px;
  transform: none; */
}
.ap-chat-ia.shrink{    
    width: 48px;
    height: 41px;
    margin-right: 27px;
    box-shadow: initial;
    border: #fff;
}
.ap-chat-ia.shrink .ap-block:nth-of-type(2) .ap-inner{border-bottom: none;}
.ap-chat-ia.shrink #chat_ia, .ap-chat-ia.shrink .ap-clients-comands-list, .ap-chat-ia.shrink .ap-clients-switch {
    display: none;
}
.normal .shrinkdiv, .shrink .shrinkdiv,
.ap-chat-ia.shrink .ap-block .ap-inner > strong,
.width .growdiv{
    display: none;
}

.ap-detalles.shrink .ap-details-convenciones, .ap-detalles.shrink .ap-details-body, .ap-detalles.shrink .ap-details-header span, .ap-detalles.shrink .ap-details-header strong {
    display: none !important;
}
.ap-details-header{position: relative;}
.ap-details-header svg{position: absolute; right: 0; top: 4px;}
.ap-detalles.shrink .ap-details-header{
    margin-top: -5px;
    height: 50px;
    padding-top: px;
}
.ap-detalles.shrink .ap-details-header,
.ap-chat-ia.shrink  .ap-block:nth-of-type(2) .ap-inner{
    box-shadow: 0 0 9px #d7d7d7;
    border-radius: 4px;
    background: #4666ff;
}
.ap-chat-ia.shrink  .ap-block:nth-of-type(2) .ap-inner{
    margin: 0;
    height: 50px;
    padding-left: 4px;
    padding-top: 2px;
    width: 52px;
}
.ap-chat-ia.shrink  .ap-block:nth-of-type(2){
    padding: initial;
    margin-right: 5px;
}
.ap-detalles.shrink .ap-details-header .growdiv{
     left: 10px;
     position: initial;
}
.ap-detalles.shrink .ap-details-header .growdiv,
.ap-chat-ia.shrink  .ap-block:nth-of-type(2) .growdiv{
    margin-top: 11px;
    color: #fff;
}
.ap-chat-ia.shrink  .ap-block:nth-of-type(2) .growdiv{
    margin-left: 8px;
    margin-top: 13px;
}
.ap-detalles .ap-details-header svg:hover,
.ap-chat-ia  .ap-block:nth-of-type(2) svg:hover{
    opacity: 0.75;
}
.ap-detalles .ap-block{ border: 1px solid #CFCFCF; border-radius: 25px;height: 797px; overflow-y: overlay; overflow-x: hidden;      padding: 12px 15px;box-shadow: 0 0 10px #c4c3c9;}
.ap-detalles.shrink .ap-block{border: none; box-shadow: initial; border: none; box-shadow: initial; padding: 9px 14px; text-align: center;}
.ap-details-header svg, .ap-chat-ia svg {cursor: pointer; width: 27px; height: 27px;}
.ap-chat-ia svg {
    top: 0;
    margin-left: -32px;
    margin-right: 17px;
    position: absolute;
}
.ap-details-header span i{color: var(--color-verde-act);}
.ap-chat-ia .ap-block:nth-of-type(2) .ap-inner{
    width: 91%;
    margin: 4px auto 10px auto;
    position: relative;
}
.ap-details-convenciones{padding: 14px 0; display: flex; align-items: center; gap: 5px; justify-content: space-between;}
.ap-detalles.shrink .ap-details-convenciones{display: grid; grid-template-columns:1fr;}
.ap-detalles.shrink .ap-details-convenciones .ap-hoy, 
.ap-detalles.shrink .ap-details-convenciones .ap-prox, 
.ap-detalles.shrink .ap-details-convenciones .ap-vencidos-switch {
    border-radius: 12px;
    margin-bottom: 6px;
}
.ap-details-convenciones .ap-hoy,.ap-details-convenciones .ap-prox, .ap-details-convenciones .ap-vencidos-switch{border-radius: 42px; border: 1px solid #E5EDFF; background-color: #F9FBFF; padding: 6px 17px;color: #4B5A78;}
.ap-details-convenciones .ap-vencidos-switch{display: flex; justify-content: space-between; align-items: center; gap: 5px;}
.ap-details-body{margin-top: 20px;}
.ap-detalles .ap-details-login-cta > a{background: #FCB900;
    width: fit-content;
    display: block;
    padding: 7px 17px;
    border-radius: 61px;
    color: #000;}
.ap-planner table{  width: 100%; border-collapse: collapse;}
.ap-planner table>thead>tr{background-color: #F4F6FF;}
.ap-planner table>thead>tr>th,.ap-planner table>tbody>tr>td{border: initial !important; padding: 10px 8px 5px; color: #4B5A78;}
.ap-planner table>thead>tr>th, .ap-planner table>tbody>tr:nth-of-type(odd) {background-color:initial !important; color: initial; font-weight: initial; border-top-left-radius: initial;border-top-right-radius: initial;}
.ap-planner table>thead>tr>th{cursor: pointer;}
.ap-detalles table>tbody>tr>td:last-of-type, #ap-filter-clients-modal-crud table>tbody>tr>td:last-of-type{white-space: nowrap; padding-right: 0;}
.ap-detalles table>tbody>tr>td:last-of-type{font-size: 13px; display: table;}
#ap-filter-clients-modal-crud table>tbody>tr>td:last-of-type{font-size: 13px; padding-right: 0;vertical-align: baseline;}
.ap-detalles.shrink table > tbody > tr > td:last-of-type { font-size: 14px; padding-right: initial;}
.ap-planner table>tbody>tr{border-top: 1px solid #DFE7EF;border-bottom: 1px solid #DFE7EF;}
.ap-details-body table>tbody>tr:hover, #ap-filter-clients-modal-crud .ap-modal .ap-modal-body table>tbody>tr:hover,#ap-filter-clients-modal-crud .ap-modal .ap-modal-body table>thead>tr>th:hover{background-color: #F1FBFF !important}
.ap-details-body table>thead>tr>th:nth-of-type(1){width: 14%;}
.ap-details-body table>thead>tr>th:nth-of-type(2){width: 34%;}
.ap-details-body table>thead>tr>th:nth-of-type(3){width: 33%;}
.ap-details-body table>thead>tr>th:nth-of-type(4){width: 19%;}
.ap-details-body table>tbody>tr>td:nth-of-type(1),.ap-details-body table>tbody>tr>td:nth-of-type(2){color: #5F6C86;}
.ap-details-body table>tbody>tr>td:nth-of-type(3){color: var(--color-azul-nocturno);}
.ap-details-body table>tbody>tr>td:nth-of-type(3) ul li{margin-bottom: 5px;font-size: 15px}
.ap-details-body table>tbody>tr>td:nth-of-type(3) ul li::marker, .ap-details-card-grid ul li::marker{ color: var(--color-azul-claro);}
.ap-details-body table>tbody>tr>td:nth-of-type(3) ul{padding-left: 19px;margin-bottom: 0;}
.ap-details-body table>tbody>tr>td:nth-of-type(1){white-space: nowrap;}
.ap-details-body table>tbody>tr>td strong{color: var(--color-azul-nocturno);}
.ap-planner table>tbody>tr{font-size: 16px; vertical-align: initial; cursor: pointer;}
.ap-details-body table .text-ok, .ap-details-body table .text-danger,.ap-details-body table .text-warning{border-radius: 45px; padding: 2px 7px; font-weight: 600; text-align: center;}
.ap-details-body table .text-ok{border: 1px solid #55D22B; background-color: #D8F5DD; color:#2C832C; }
.ap-details-body table .text-danger{border: 1px solid red; background-color: rgb(255 0 0 / 14%);}
.ap-details-body table .text-warning{border: 1px solid #F8CA1A; background-color:#FCE797; color: #F38008 !important;}
.ap-planner table>tbody>tr:last-of-type{border:none}

.ap-clients-comands-list{
    display: flex;
    justify-content: flex-end;
    margin-right: 7px;
    width: 89%;
    transition: background 0.4s ease;
}
.ap-chat-ia > .ap-block:nth-of-type(2) .ap-inner i:not(.fa-users){width: 32px; height: 32px;  padding: 8px 0; border-radius: 4px;}
.ap-chat-ia .ap-block{padding: 0;}
.ap-chat-ia .ap-block:nth-of-type(1){order:2}
.ap-chat-ia .ap-block:nth-of-type(2){
    order: 1;
    width: 99%;
    padding: 9px 6px 0;
    margin: 0 5px 0 5px;
}
.ap-clients-comands-list ul{
    margin-bottom: 0;
    margin-top: 9px;
}
.ap-clients-comands-list ul li,.ap-modal-header .ap-modal-header-actions a{display: flex; align-items: center; gap: 2px; border-radius: 30px; cursor: pointer; justify-content: center; padding: 4px 16px;}
.ap-clients-comands-list ul li:hover{opacity: 0.75;}
.ap-clients-comands-list ul li{
    background: rgb(70 102 255 / 85%);
    color: #ffffff;
    box-shadow: 0 0 10px #e3e3e3;
}
.ap-modal-header-actions a{gap: 5px;}
.ap-modal-header .ap-modal-header-actions{display: flex; justify-content: space-around; gap: 19px;}
.ap-modal-header .ap-modal-header-actions a{
    background-color: #FCB900;
    color: #000 !important;
}
.ap-clients-table thead > tr > th:nth-of-type(1)::after,
.ap-clients-table thead > tr > th:nth-of-type(2)::after{
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0dc";
    color: #10B1FB;
    margin-left: 6px;
    position: relative;
    font-size: 13px;
}
.ap-clients-title i{color: var(--color-azul-act);}
.ap-clients-title{ margin-bottom: 12px; font-weight: 600; color: var(--color-azul-nocturno);}

/* OVERLAY QUE BLOQUEA CLICS */
.ap-modal-overlay{
    position:fixed;
    inset:0;
    background:transparent;
    z-index:9998;
    display:flex;
    justify-content:flex-end;
    align-items:flex-end;
    pointer-events:auto;
}

/* PANEL MODAL */
.ap-modal{
    width:420px;
    max-width:95vw;
    background:white;
    border-radius:10px;
    margin: 20px 20px 0 20px;
    box-shadow:
        0 10px 25px rgba(0,0,0,0.15),
        0 4px 10px rgba(0,0,0,0.1);

    display:flex;
    flex-direction:column;
    max-height:80vh;
}
.ap-modal .ap-clients-table tr td:nth-of-type(1){
    color: var(--color-azul-nocturno);
    font-weight: 600;
    vertical-align: baseline;
}
.ap-modal .ap-clients-table tbody>tr>td:last-of-type{vertical-align: middle;}

/* HEADER */
.ap-modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 20px;
    border-bottom:1px solid #eee;
    font-weight:600;
    color: var(--color-azul-act);
}


/* BOTON CERRAR */
.ap-modal-close{
    cursor:pointer;
    font-size:18px;
    opacity:.6;
    color: var(--color-azul-nocturno);
}

.ap-modal-close:hover{
    opacity:1;
}


/* BODY */
.ap-modal-body{
    padding:16px;
    overflow:auto;
}


/* TRANSICION MODAL (entrada y salida fluida) */
.ap-modal-transition-enter-active,
.ap-modal-transition-leave-active{
    transition: opacity .24s ease;
}

.ap-modal-transition-enter-from,
.ap-modal-transition-leave-to{
    opacity:0;
}

.ap-modal-transition-enter-active .ap-modal,
.ap-modal-transition-leave-active .ap-modal{
    transition: transform .24s ease, opacity .24s ease;
}

.ap-modal-transition-enter-from .ap-modal,
.ap-modal-transition-leave-to .ap-modal{
    transform:translateY(20px);
    opacity:0;
}

.ap-modal-transition-enter-to .ap-modal,
.ap-modal-transition-leave-from .ap-modal{
    transform:translateY(0);
    opacity:1;
}


/* ANIMACION */
@keyframes ap-modal-in{

    from{
        transform:translateY(20px);
        opacity:0;
    }

    to{
        transform:translateY(0);
        opacity:1;
    }

}

.ap-clients-table{
    width:100%;
    border-collapse:collapse;
}

/** switch modo IA **/
.ap-clients-switch{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:12px;
    position: absolute;
    top: 14px;
    right: 26px;
}

.ap-switch{
    position:relative;
    display:inline-block;
    width:40px;
    height:20px;
    order: 2;
}

.ap-switch input{
    opacity:0;
    width:0;
    height:0;
}

.ap-slider{
    position:absolute;
    cursor:pointer;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:#ccc;
    transition:.3s;
    border-radius:20px;
}

.ap-slider:before{
    position:absolute;
    content:"";
    height:16px;
    width:16px;
    left:2px;
    bottom:2px;
    background:white;
    transition:.3s;
    border-radius:50%;
}

.ap-switch input:checked + .ap-slider{
background:#043665;
}
.ap-switch input:checked + .ap-slider:hover{
    opacity: 0.75;
}
.ap-switch-label{
color:#043665;
}

.ap-switch input:checked + .ap-slider:before{
transform:translateX(20px);
}

.ap-switch-label{
font-weight:600;
}

/* CONTENEDOR GENERAL */
.ap-client-form{
    max-width:520px;
    margin:auto;
    padding: 4px 16px;
    background:#ffffff;
    border-radius:8px;
}

/* FILAS DEL FORMULARIO */
#ap-filter-clients-modal-crud .ap-form-row{
    flex-direction: column;
    gap: 7px;
    margin-bottom: 11px;
}
#ap-filter-clients-modal-crud .ap-modal .ap-modal-body div > a{
    background-color: #f59e0b;
    color: #000000;
    padding: 4px 16px;
    border-radius: 32px;
    margin-bottom: 20px;
    display: block;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 9px;
}
#ap-filter-clients-modal-crud .ap-modal .ap-modal-body .ap-form-actions button:last-of-type{background-color: rgba(70, 102, 255 , 0.7); color: #fff;}
#ap-filter-clients-modal-crud .ap-modal .ap-modal-body .ap-form-actions button:last-of-type:hover{opacity: 0.75;}
#ap-filter-clients-modal-crud .ap-form-row,
#ap-filter-clients-modal-search .ap-form-row,
.ap-details-no-clients-actions{
    display: flex;
}
.ap-details-no-clients-actions{
    gap: 8px;
    margin-top: 27px;
}
.ap-details-no-clients-actions button{
    border-radius: 45px;
    border: 1px solid var(--color-azul-act);
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ap-details-no-clients-actions button.primary{
    background-color: var(--color-azul-act);
    color: #fff;
}
.ap-details-no-clients-actions button.secondary{
    background-color: #fff;
    color: var(--color-azul-act);
}
.ap-details-no-clients-inner > p{
    color: #043665;
}
.ap-details-no-clients-inner > h3{
    color: var(--color-azul-nocturno);
}
.ap-details-no-clients-actions button.secondary::before{
    content: "\f4fd";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}
.ap-details-no-clients-actions button.primary::before{
    content: "\f007";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}
#ap-filter-clients-modal-search .ap-form-row{
    align-items: center;
    margin-bottom: 9px;
    gap: 5px;
}
#ap-filter-clients-modal-search .ap-form-row input{width: 100%;}
#ap-filter-clients-modal-search .ap-form-row:nth-of-type(1){
    background-color: var(--color-neutral-50);
    padding: 27px 17px;
    justify-content: space-between;
    margin-bottom: 24px;
}
#ap-filter-clients-modal-search .ap-filter-header{
    color: var(--color-azul-act);
}
#ap-filter-clients-modal-search .ap-filter-footer{
    flex-direction: column;
} 
#ap-filter-criterio-busqueda .ap-form-row:nth-of-type(2){
    flex-direction: column;
    gap: 0;
}
#ap-filter-criterio-busqueda .ap-form-row:nth-of-type(2)::before,
#ap-filter-obligaciones{
    content: '';
    border-top: 2px solid var(--color-verde-act);
    width: 100%;
    margin: 13px auto;
    display: block;
}

#ap-filter-criterio-busqueda .ap-filters-link:nth-of-type(1){
    margin-left: 30px;
}
#ap-filter-criterio-busqueda .ap-filters-link {
    background-color: #4666ff1f;
    border-radius: 37px;
    margin-right: 11px;
    padding: 3px 13px;
    cursor: pointer;
}
/* LABELS */
.ap-form-row label{
    font-size:15px;
    font-weight:600;
    color:#444;
}
/* INPUTS Y SELECT */
.ap-form-row input,
.ap-form-row select{
    padding:10px 12px;
    border:1px solid #dcdcdc;
    border-radius:7px;
    font-size:14px;
    transition:border .2s, box-shadow .2s;
    background:#fff;
}
.ap-form-row input{margin-top: 9px; margin-bottom: 6px;}
/* FOCUS */
.ap-form-row input:focus,
.ap-form-row select:focus{
    border-color: #4666ff;
    outline: none;
}
.ap-form-row input:focus{
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
    background-color: #4666ff14;
}

/* PLACEHOLDER */
.ap-form-row input::placeholder{
    color:#aaa;
}

/* FILA NIT + DV */
.ap-nit-row{
    display:flex;
    align-items:center;
    gap:6px;
}

/* INPUT NIT */
.ap-nit-row input:first-child{
    flex:1;
}

/* SEPARADOR */
.ap-nit-sep{
    font-weight:600;
    color:#666;
}

/* DV */
.ap-nit-dv{
    width:50px;
    text-align:center;
    font-weight:600;
    background:#f5f5f5;
}


/* ACCIONES DEL FORMULARIO */
.ap-form-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:24px;
}

/* BOTONES */
.ap-form-actions button{
    padding:10px 16px;
    border:none;
    border-radius:6px;
    font-size:14px;
    cursor:pointer;
    transition:all .2s;
}

/* BOTON PRINCIPAL */
.ap-form-actions button[type="submit"],
#ap-filter-clients-modal-search .primary{
    background:var(--color-azul-act);
    color:white;
}
#ap-filter-clients-modal-search .primary,
#ap-filter-clients-modal-search .secondary{
    border: initial;
    padding: 5px 34px;
    border-radius: 26px;
    margin-top: 7px;
}
#ap-filter-clients-modal-search .secondary{
    background-color: initial;
    border: 2px solid var(--color-gris-azulado-claro);
}
.ap-form-actions button[type="submit"]:hover{
    background:var(--color-azul-act);
}
.ap-form-actions button[type="submit"]:hover,
#ap-filter-clients-modal-search button:hover{
    opacity: 0.90;
}


/* BOTON SECUNDARIO */
.ap-form-actions .secondary{
    background:#f0f0f0;
    color:#444;
}


.ap-form-actions .secondary:hover{
    background:#e2e2e2;
}


/* LOADING */
.ia-planner-loading {
  font-size: 14px;
  padding: 8px 16px;
  background: #ffffff;
  border-radius: 7px;
  border: 1px solid #e9edf5;
  box-shadow: 0 2px 8px rgba(70, 102, 255, 0.05);
  display: inline-block;  
  width: auto;    
  margin: -230px auto 0;        
  max-width: 70%;        
  position: relative;
  overflow: hidden;
  color: transparent;
  background-image: linear-gradient(
    90deg,
    #334155 0%,
    #4666ff 30%,
    #4666ff 70%,
    #334155 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: ia-shimmer 2.5s infinite ease-out;
  white-space: nowrap;
  line-height: 1.4;
  font-weight: 500;
  display: flex;
  justify-content: center;
}

.ia-planner-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(70, 102, 255, 0.1),
    rgba(70, 102, 255, 0.05),
    transparent
  );
  animation: overlay-shimmer 2.8s infinite ease-in-out;
  pointer-events: none;
}

@keyframes ia-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes overlay-shimmer {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(200%); }
}

.ap-client-form > div{
    text-align:center;
    padding:20px;
    font-size:14px;
    color:#666;
}

.ap-selected-obligaciones{
    display:flex;
    flex-direction: column;
    gap:6px;
    margin-bottom:6px;
    padding-top: 9px;
}
.ap-obligaciones-results{
    margin-top: 6px;
    margin-bottom: 6px;
    background: white;
}
.ap-selected-obligaciones .ap-pill{
    border-top: 1px solid #e3e3e3;
    padding-top: 13px;
    display: grid;
    grid-template-columns: 0.1fr 1.8fr;
    gap: 5px;
}
.ap-obligaciones-results label{
    justify-content: flex-start;
    gap: 7px;
    display: grid;
    grid-template-columns: 0.1fr 2fr;
    align-items: start;
    font-size: 14px;
}
.ap-obligaciones-results label{
    margin-bottom: 8px;
}
.ap-obligacion-item{
    padding:8px 10px;
    cursor:pointer;
}

.ap-obligacion-item:hover{
    background:#f3f3f3;
}

.ap-obligacion-item em{
    font-style:normal;
    font-weight:600;
    color:#2563eb;
}

.ap-ver-mas{
    background: none;
    color: var(--color-azul-nocturno);
    border: 1px solid var(--color-azul-nocturno);
    font-size: 15px;
    padding: 2px 19px;
    width: fit-content;
    border-radius: 25px;
    margin-top: 6px;
    margin-bottom: 8px;
    padding-right: 1.8rem;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M6 8L0 0h12L6 8z' fill='%230FB0F9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    background-size: 12px;
}
.event-label{
    font-size:12px;
    line-height:12px;
}

.event-icons{
    position:relative;
    height:12px;
}

.event-day-icon{
    position:absolute;
    font-size:10px;
    top:0;
}

.day-cell.has-client::after{
    content: "\f007";
    font-family: var(--fa-family,var(--fa-style-family,"Font Awesome 7 Free"));
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FCB900;
    top: 3px;
    right: 3px;
    text-align: center;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.ap-filter-modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.55);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.ap-filter-modal{
    width:483px;
    max-height:80vh;
    background:white;
    border-radius:10px;
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

.ap-filter-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 18px;
    border-bottom:1px solid #eee;
}

.ap-filter-body{
    padding:18px;
    overflow:auto;
}

.ap-filter-client-list{
    max-height:240px;
    overflow:auto;
}

.ap-client-check{
    display: grid;
    grid-template-columns: 0.06fr 1fr;
    margin-bottom: 10px;
    border: 1px solid #E4E9EF;
    border-radius: 8px;
    padding: 5px 12px;
}
.ap-select-all-check{
    background: #f5f5f5;
}
#ap-filter-clients-modal-search:has(#ap-filter-criterio-busqueda) .ap-filter-footer{
    align-items: flex-end;
}   
.ap-filter-footer{
    padding:14px;
    border-top:1px solid #eee;
    display:flex;
    justify-content:flex-end;
    gap:10px;
}
.ap-notify-popover{
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    padding: 10px;
    z-index: 9999;
    width: 221px;
    position: absolute;
    right: 36px;
    top: 67px;
    display: inline-block;
}

.ap-notify-popover a{
    display:block;
    padding:6px;
    text-decoration:none;
    color:#333;
}

.ap-notify-title{
    font-weight:bold;
    margin-bottom:6px;
}

.ap-calendar-help-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:10000;
}

.ap-calendar-help-modal{
    background:white;
    width:485px;
    border-radius:8px;
    padding:20px;
}

.ap-help-header{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
    font-weight:bold;
    color: var(--color-azul-act);
}
.ap-help-header button:not(.copy-link){
    background-color: initial;
}
.ap-help-header button,
.ap-help-body .copy-link{
    border: none;
}
.ap-help-body .copy-link{
    background-color: var(--color-verde-act);
    width: auto;
    display: block;
    margin: 12px auto;
    border-radius: 6px;
    padding: 5px 20px;
}
.ap-help-body .copy-link:hover{opacity: 0.85;}
.copy-link{
    margin-top:15px;
}

.copied-msg{
    color:green;
    margin-top:10px;
}

.ap-details-body tbody tr.active, .ap-details-body table tbody >  tr.active:nth-of-type(2n+1):not(.redes_sociales_footer tr) {
    background-color: #F1FBFF !important;
}
/*IA*/
.ia-planner-left-column {
    padding-right: 9px;
    position: relative;
}
.ia-planner-left-column .bot-message{
    width: 71%;
    margin: auto;
    padding-bottom: 220px;
}
.ia-planner-container-left-column {
    width: 100%;
    margin: 16px 5px 5px 5px;
    overflow: overlay;
    height: 612px;
}
.ia-planner-left-column.ap-ia-attention .ia-planner-container-left-column,
.ia-planner-left-column .outgoing {
    animation: ap-ia-attention-blink 2s ease;
}
@keyframes ap-ia-attention-blink {
    0% { background-color: #ffffff; }
    12% { background-color: #e9f7ff; }
    24% { background-color: #ffffff; }
    36% { background-color: #e9f7ff; }
    48% { background-color: #ffffff; }
    60% { background-color: #e9f7ff; }
    100% { background-color: #ffffff; }
}
.ap-chat-ia .chat-ia-planner-title,
.ap-details-header strong{
    font-size: 26px;
    margin-top: 27px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ap-chat-ia .chat-ia-planner-title,
.ia-planner-left-column .outgoing,
.ap-details-header strong{
   color: #1E297F;
}
.chat-message.incoming > p:empty {
    display: none;
}
.chat-message.incoming > p{
    line-height: 1.6;
    margin-top: 8px;
    margin-bottom: 21px;
}
.ia-planner-left-column .outgoing {
    font-weight: 600;
    background-color: #f0f3fe;
    padding: 17px 26px;
    border-radius: 14px;
    width: 80%;
    text-align: end;
    margin-left: auto;
    margin-top: 24px;
    margin-bottom: 22px;
}
.ia-planner-left-column .outgoing.question{  animation: slideThenScale 1s ease-out 1 forwards;}

        @keyframes slideThenScale {
            0% {
                opacity: 0;
                transform: translateX(35px) scale(0.92);
            }
            25% {
                opacity: 1;
                transform: translateX(0) scale(0.92);
            }
            100% {
                opacity: 1;
                transform: translateX(0) scale(1);
            }
        }
.ia-planner-left-column .incoming ol{
    border-radius: 6px;
    padding: 13px 25px 1px 25px;
}
.ia-planner-left-column .incoming *{
    color: var(--color-azul-nocturno);
}
.ap-planner .ap-chat-ia .ia-planner-left-column .incoming a,
.ap-planner .ap-chat-ia .ia-planner-left-column .incoming a *{
    color: var(--color-azul-act);
}
.ap-planner .ap-chat-ia .ia-planner-left-column .incoming a[target="_blank"]::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f35d";
    margin-left: 6px;
    font-size: 14px;
    color: #2f3f8f;
}
.ia-planner-left-column .incoming h3{
    margin-top: 25px;
}
.ia-planner-left-column .incoming > ol > li{
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 12px;
    margin-bottom: 19px;
}
.ia-planner-left-column .incoming >  ul > li{
    line-height: 29px;
}
.ia-planner-left-column .incoming ol > li p{
    margin-bottom: initial;
}
.ia-planner-left-column .incoming ol > li p strong,
.ia-planner-left-column .incoming ol > li strong,
.ia-planner-left-column .incoming ol > li p,
.ia-planner-left-column .incoming ul > li > strong{
    font-weight: 600;
}
.ia-planner-left-column .incoming ol li > ul {
    list-style: none;
    padding-left: 2px;
    line-height: 28px;
}
.ia-planner-left-column .incoming > ul{margin: 16px 0;}
.ia-planner-left-column .outgoing p{margin-bottom: initial;}

.ap-chat-ia .ap-block .ap-inner> .chat-ia-planner-title::before,
.ap-details-header strong::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    background-color: #EAFECA;
    border-radius: 8px;
    font-size: 22px;
    color: #4666ff;
    width: 47px;
    display: inline-flex;
    height: 47px;
    align-items: center;
    justify-content: center;
}
.ap-chat-ia .chat-ia-planner-title::before {
    content: "\f059";
}
.ap-details-header strong::before {
    content: "\f073";
}
.ia-planner-checklist {
    list-style-type: none;
    padding: 0;
}
.ia-planner-checklist-item{
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    border: 1px solid #d6d6d6;
    padding: 9px 19px;
    border-radius: 33px;
    cursor: pointer;
}
.ia-planner-checklist-item:hover{
    opacity: 0.95;
    background-color: #beff5e1f;
    border: 1px solid #beff5e;
}
.ia-planner-left-column .ia-planner-checklist-item i {
    color: #A2CE5E;
    margin-right: 12px;
    font-size: 20px;
    margin-top: 6px;
    flex-shrink: 0;
    font-weight: 400;
}
.ia-planner-question-section {
    position: fixed;
    z-index: 10;
    width: 37%;
    transition: width 0.5s ease;
    bottom: 8px;
    right: 27.5%;
    transform: translateX(50%);
    margin-bottom: 39px;
}
.ia-planner-textarea-container {
    display: flex;
    width: 100%;
    gap: 9px;
    position: relative;
    box-shadow: 0 0 10px #e0d9f9;
    border-radius: 27px;
    height: 109px;
    align-items: center;
    background-color: #fff;
    padding-right: 38px;
    border: 2px solid #e2e8f0;
}
.ia-planner-textarea {
    width: 85%;
    border: inherit;
    border-radius: 13px;
    font-size: 17px;
    color: #000;
    resize: none;
    opacity: 1;
    min-height: 47px;
    max-height: 120px;
    margin: auto;
    box-sizing: border-box;
    height: 71px;
    border: initial;
    padding-top: 16px;
}
.ia-planner-textarea::placeholder{
    color: #000;
    font-size: 19px;
}
.ia-planner-textarea:focus {
    outline: none;
}
.ia-planner-question-section:focus-within .ia-planner-button {
    background-color: #4666ff;
}
.ia-planner-button {
    background-color: #4666ff8a;
    color: white !important;
    font-size: 17px;
    border: none;
    display: flex;
    align-items: center;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    position: absolute;
    right: 32px;
    top: 31px;
    padding-left: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.ia-planner-button:hover {
    background-color: var(--color-azul-act);
    opacity: 0.90;
}
.footer-chat-ia{
    height: 42px;
    background: #fff;
    position: fixed;
    width: 47%;
    bottom: 15px;
    z-index: 0;
    border: none;
    right: 62px;
}
/*scroll*/
.ap-planner,
.ap-planner * {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}
.ap-planner *::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.ap-planner *::-webkit-scrollbar-track {
  background: transparent;
}
.ap-planner *::-webkit-scrollbar-thumb {
  background-color: transparent; 
  border-radius: 999px;
  transition: background-color 0.2s ease;
} 
.ap-planner *:hover::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.5);
}
.ap-planner *::-webkit-scrollbar-thumb:active {
  background-color: rgba(148, 163, 184, 0.7);
}
.aplanner_bc #footer_2023,
.aplanner_bc #backdrop_act_search,
.aplanner_bc .chatbot-loader-toggler{
    display: none;
} 
.aplanner_bc {
    overflow: hidden !important;
}

.ap-months-viewport {
    position: relative;
    overflow-y: hidden;
    overflow-x: visible;
}

.ap-expandir-meses {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    position: absolute;
    top: 0;
}

.ap-expandir-meses button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.ap-cal-slide-next-enter-active,
.ap-cal-slide-next-leave-active,
.ap-cal-slide-prev-enter-active,
.ap-cal-slide-prev-leave-active {
    overflow: hidden;
}
.col-xxl-12:has(.wow-open-wizard),
.row:has(.wow-open-wizard) {
  position: relative;
}
.wow-open-wizard{
    position: absolute;
    top: 28px;
    left: 46px;
    background: #beff5e66;
    border: 1px solid #beff5e;
    padding: 7px 15px;
    border-radius: 48px;
    display: flex;
    justify-content: center;
    gap: 7px;
}
p:has(.wow-open-wizard){
    margin: 0;
    z-index: 1;
}
.wow-open-wizard::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f05a";
    color: #4666ff;
}
.wow-open-wizard:hover{
    background-color: #beff5e;
}
.ap-cal-slide-next-enter-active,
.ap-cal-slide-prev-enter-active {
    animation: ap-cal-blink-in .24s ease;
}

.ap-cal-slide-next-leave-active,
.ap-cal-slide-prev-leave-active {
    animation: ap-cal-blink-out .2s ease;
}

@keyframes ap-cal-blink-in {
    0% { opacity: 0; }
    45% { opacity: .25; }
    100% { opacity: 1; }
}

@keyframes ap-cal-blink-out {
    0% { opacity: 1; }
    100% { opacity: 0; }
}


/* RESPONSIVE */

@media (max-width:600px){

    .ap-client-form{
        padding:18px;
    }
    .ap-form-actions{
        flex-direction:column;
    }
    .ap-form-actions button{
        width:100%;
    }
}

@media (max-width:720px){
    .month-name{min-width:80px;font-size:12px}
    .day-header,.day-cell{min-width:60px;font-size:11px}
    .event-bar{font-size:9px;padding:1px 2px;height:14px}
}

@media (max-width: 768px) {
    .ia-planner-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }

    .ia-planner-left-column {
        border-right: none;
        padding-right: 0;
    }
    .ia-planner-right-column{
        border-left: inherit;
        padding-left: 6px;
    }
}

@media (max-width:1100px){
    .aplanner_bc {
        overflow: auto !important;
    }
    .ap-planner{
        flex-direction: column;
        height: 100%;
        padding-bottom: 0;
    }
    .ap-main {
        padding: 0 8px;
    }
    .wow-open-wizard {
        display: none;
    }
    .ap-acciones .ap-block{
        padding: 11px 0;
        width: 100%;
    }
    .ap-acciones .ap-inner div {
        padding: 0;
        flex-direction: column;
        width: 100%;
        align-content: flex-end;
        flex-wrap: wrap;
        align-items: stretch;
    }
    #ap-filter-criterio-busqueda .ap-filters-link{
        display: flex;
        margin-left: initial !important;
        margin-top: 10px;
    }
    #ap-filter-clients-modal-search .ap-form-row:nth-of-type(1){
        display: none;
    }
    .ap-client-filter::before,
    .ap-calendario,
    .ap-toggle-arrow,
    .ap-details-header svg, .ap-chat-ia svg,
    .ia-planner-left-column .chat-ia-planner-title  {
        display: none;
    }
    .ap-detalles table>tbody>tr{
        padding: 10px 5px;
        display: block;
    }
    #ap-filter-clients-modal-crud .ap-modal-overlay {
    background: rgba(0,0,0,0.55);
    }
    .ap-chat-ia .chat-ia-planner-title::before,
    .ap-details-header strong::before {
        content: none;
     }
    .ap-chat-ia .chat-ia-planner-title, 
    .ap-details-header strong{
        margin-top: inherit;
        font-size: 20px;
     }
     .ap-chat-ia .chat-ia-planner-title{
        line-height: 1.3;
     }
    .ap-sidebar::after{
        content: initial;
    }
    .ap-filtros #ap-filters{
        margin-bottom: 0;
    }
    .ap-detalles,
    .ap-chat-ia {
        width: 100%;
        margin-left: 0;
    }
    .ap-chat-ia {
        border-top: initial;
        height: 738px;
    }
    .ia-planner-container-left-column {
        width: 97%;
        height: 450px;
    }
    .ia-planner-left-column .bot-message {
        padding-bottom:0;
        width: 100%;
    }
    .ia-planner-checklist-item:hover {
        border: initial;
        border-radius: inherit;
    }
    .ia-planner-question-section{
        right: initial;
        width: 97%;
        margin: 0 auto;
        left: initial;
        transform: initial;
        position: relative;
        margin-top: 29px;
    }
    .ia-planner-checklist-item{
        border: initial;
        padding: 9px 0;
    }
    .ia-planner-title {
        padding-top: 25px;
    }
    .ia-planner-button {
        width: 2rem;
        height: 2rem;
        right: 14px;
        top: 23px;
        padding-left: 5px;
        font-size: 15px;
    }
    .ia-planner-textarea {
        font-size: initial;
        padding-top: initial;
    }
    .ap-details-convenciones {
        align-items: flex-start;
        flex-direction: column;
    }
    .ap-detalles .ap-details-body table>tbody>tr>td:nth-of-type(1) {
        white-space: normal;
        width: 100%;
    }   
    .ap-details-header span {
        padding: 2px 5px;
    }   
    .ap-details-cards-body .ap-details-card-grid{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 19px 5px;
    }
    .ap-details-convenciones .ap-details-body table > thead > tr > td{
        width: 100%;
    }
    .ap-details-cards-body .ap-details-card-grid .ap-details-card-label{
        display: flex;
        color: var(--color-azul-nocturno);
        font-weight: 600;
    }
    .ap-details-body table>tbody>tr>td strong {
        font-weight: normal;
    }
    .ap-detalles table>tbody>tr>td:last-of-type{
        font-size: initial;
    }
   .ap-detalles .ap-details-card-item{
        display: flex;
        flex-direction: column;
        gap: 7px;
    }
    .ap-detalles .ap-details-card-item ul{
        padding-left: 20px;
    }
    .ap-details-body table .text-ok, 
    .ap-details-body table .text-danger, 
    .ap-details-body table .text-warning{
        white-space: nowrap;
        font-size: 14px;
    }
    .ap-details-convenciones .ap-hoy, 
    .ap-details-convenciones .ap-prox, 
    .ap-details-convenciones .ap-vencidos-switch {
        border-radius: 11px;
        width: 100%;
        margin-bottom: 7px;
    }
    .ap-detalles .ap-details-body table > thead > tr >th{
        width: 100%;
    }
    .ap-details-convenciones .ap-vencidos-switch {
        justify-content: space-between;
    }
    .ap-chat-ia {
        grid-template-columns: 1fr;
        margin-top: 34px;
        padding-top: 9px;
    }
    .ia-planner-textarea-container {
        border-radius: 16px;
        height: 92px;
    }
    .ia-planner-textarea {
        height: 29px;
    }
     .ia-planner-textarea::placeholder {
        font-size: inherit;
    }
    .ap-detalles .ap-block {
        height: 579px;
        padding: 22px;
    }
    .chat-message.incoming {
        margin: 4px 23px 0;
    }
    .ap-clients-comands-list ul{
        padding-left: 0;
        margin-top: 21px;
        margin-bottom: 0;
        font-size: 15px;
    }
    .ap-clients-comands-list ul li{
        padding: 0 16px;
    }
    .ia-planner-loading {     
        margin: 0; 
        max-width: 100%;
        border-radius: 0;
    }
    .ap-details-no-clients-actions{
        flex-direction: column;
        flex-wrap: wrap;
        align-items: stretch;
        align-content: flex-end;
    }
    .ap-chat-ia .ap-block:nth-of-type(2) {
        height: 116px;
    }
    .footer-chat-ia{
        display: none;
    }
}

@media screen and (min-width: 1101px) and (max-width: 1400px) {
.aplanner_bc #header_container #main-header .container-fluid .row {
    margin-left: 0;
}
.ap-sidebar {
    min-width: 335px;
}
.ap-chat-ia .ap-clients-comands-list ul{
    grid-template-columns: 1fr 1fr;
}
.ap-chat-ia .ap-clients-switch{
    bottom: inherit;
    top: 13px;
}
.chat-message.incoming {
    margin: 0 19px 0;
}
.ia-planner-left-column .bot-message {
    width: 93%;
}
.ap-details-convenciones {
    align-items: flex-start;
    flex-direction: column;
}
.ap-details-convenciones .ap-hoy, 
.ap-details-convenciones .ap-prox, 
.ap-details-convenciones .ap-vencidos-switch{
    width: 100%;
    margin-bottom: 9px;
    border-radius: 11px;
}
.ap-clients-comands-list {
    width: initial;
}
.ap-chat-ia .ap-block:nth-of-type(2){
    width: 98%;
}
.ap-chat-ia.width .ia-planner-question-section {
    width: 76.5%;
    transform: translateX(-10%);
}
.ia-planner-container-left-column {
  height: 620px;
}
.ia-planner-left-column .outgoing {
    width: 80%;
    margin-right: 11px;
}
.ap-toggle-arrow{
    left: 323px;
}
.ap-chat-ia .chat-ia-planner-title, .ap-details-header strong {
  font-size: 21px;
}
.ap-chat-ia .ap-block .ap-inner > .chat-ia-planner-title::before, .ap-details-header strong::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  background-color: #EAFECA;
  border-radius: 8px;
  font-size: 21px;
  color: #4666ff;
  width: 40px;
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.ia-planner-question-section {
    width: 43%;
    right: 27.5%;
}
.ia-planner-textarea::placeholder{
    font-size: inherit;
}
.footer-chat-ia {
    width: 42%;
    bottom: 21px;
    right: 89px;
}
}

@media (min-width:1600px){
    .container-fluid .row  .col-xxl-12:has(.ap-planner),
    .aplanner_bc #header_container #main-header .container-fluid {
        max-width: 2000px;
        margin: 0 auto;
    }
        .ap-detalles .ap-block {
        padding: 12px 40px;
    }
}
@media (min-width:2000px){
    .ia-planner-question-section,
     .footer-chat-ia{
        width: 741px;
        /*right: calc(50vw - 453px);*/
        position: sticky;
        margin: auto;
        transform: initial;
        right: initial;
    }
    .footer-chat-ia{
        bottom: -19px;
    }
    .ap-main{
        position: relative;
    }
    .ia-planner-container-left-column {
        height: 417px;
    }
    .ap-chat-ia {
        position: relative;
    }
    #ap-filter-clients-modal-crud .ap-modal-overlay {
        position: absolute;
        width: 100%;
        right: 21px;
        bottom: initial;
        left: initial;
        top: clamp(180px, 100%, 978px);
    }
    .ia-planner-left-column .bot-message {
        padding-bottom: 207px;
    }
    /* .ap-calendario .calendar-grid {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .ap-calendario .calendar-grid > div {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .ap-calendario .calendar-year {
        width: 100% !important;
        max-width: 100% !important;
    }

    .ap-calendario .ap-inner {
        width: 100% !important;
        max-width: 100% !important;
    }

    .ap-calendario .month-row {
        width: 100% !important;
        max-width: 100% !important;
    }

    .ap-calendario .day-cell,
    .ap-calendario .day-header {
        flex: 1 !important;
        min-width: unset !important;
        width: auto !important;
    } */
}