:root{
  --tf-primary:#2f80ed;
  --tf-primary-dark:#1f6fd5;
  --tf-primary-soft:#eef6ff;
  --tf-bg:#f5f7fb;
  --tf-surface:#ffffff;
  --tf-border:#e8edf4;
  --tf-text:#172033;
  --tf-muted:#7c879d;
  --tf-sidebar-width:272px;
  --tf-header-height:74px;
  --tf-radius:16px;
  --tf-shadow:0 8px 28px rgba(30,55,90,.06);
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{font-family:Inter,sans-serif;background:var(--tf-bg);color:var(--tf-text);font-size:14px}
a{transition:color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease}

/* Layout */
.app-header{height:var(--tf-header-height);background:#fff;border-bottom:1px solid var(--tf-border);position:fixed;top:0;right:0;left:var(--tf-sidebar-width);z-index:100;box-shadow:0 1px 10px rgba(30,55,90,.025)}
.app-header .app-container{height:100%;padding-left:30px!important;padding-right:30px!important}
.app-wrapper{padding-top:var(--tf-header-height);margin-left:var(--tf-sidebar-width)}
.app-main{min-height:calc(100vh - var(--tf-header-height))}
.app-toolbar{background:transparent;padding-top:26px!important;padding-bottom:20px!important}
.app-content{padding-bottom:30px}
.app-container.container-fluid{padding-left:30px!important;padding-right:30px!important;max-width:1900px}
.page-heading{font-size:1.55rem!important;letter-spacing:-.025em}
.breadcrumb{margin-top:7px!important}

/* White professional sidebar */
.app-sidebar{width:var(--tf-sidebar-width);background:#fff;position:fixed;inset:0 auto 0 0;z-index:110;border-right:1px solid var(--tf-border);box-shadow:4px 0 24px rgba(30,55,90,.035)}
.app-sidebar-logo{height:var(--tf-header-height);display:flex;align-items:center;border-bottom:1px solid var(--tf-border);padding-left:24px!important;padding-right:24px!important}
.app-sidebar-logo .text-white{color:var(--tf-text)!important}
.brand-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#2f80ed,#5aa2ff);display:inline-flex;align-items:center;justify-content:center;box-shadow:0 8px 18px rgba(47,128,237,.24)}
.brand-mark.large{width:58px;height:58px;border-radius:18px}
.app-sidebar-wrapper{padding-left:14px!important;padding-right:14px!important}
.app-sidebar .menu-link{position:relative;color:#61708a!important;margin:4px 0;padding:12px 14px!important;border-radius:10px!important}
.app-sidebar .menu-link .menu-icon{width:28px!important}
.app-sidebar .menu-link .menu-icon i{color:#8995aa}
.app-sidebar .menu-link:hover{background:#f7faff!important;color:var(--tf-primary)!important}
.app-sidebar .menu-link.active{background:var(--tf-primary-soft)!important;color:var(--tf-primary)!important;font-weight:700}
.app-sidebar .menu-link.active:before{content:"";position:absolute;right:0;left:auto;width:3px;height:28px;border-radius:3px 0 0 3px;background:var(--tf-primary)}
.app-sidebar .menu-link:hover i,.app-sidebar .menu-link.active i{color:var(--tf-primary)}
.app-sidebar .menu-heading{color:#a1aabd!important;letter-spacing:.08em;font-size:.68rem!important}
.app-sidebar>.px-6{color:#98a2b3!important;border-top:1px solid var(--tf-border);padding:18px 24px!important}

/* Surfaces and spacing */
.card{border:1px solid var(--tf-border)!important;box-shadow:var(--tf-shadow);border-radius:var(--tf-radius);background:#fff;overflow:hidden}
.card-header{min-height:72px!important;padding-left:26px!important;padding-right:26px!important;border-bottom:1px solid var(--tf-border)!important}
.card-body{padding:26px!important}
.card-footer{padding:20px 26px!important;border-top:1px solid var(--tf-border)!important;background:#fff}
.card-title{letter-spacing:-.015em}
.metric-card{transition:.2s ease}
.metric-card:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(30,55,90,.09)}
.project-tile{display:block;padding:22px;border:1px solid var(--tf-border);border-radius:14px;background:#fff;transition:.2s;text-decoration:none}
.project-tile:hover{border-color:#bcd8ff;transform:translateY(-2px);box-shadow:0 10px 25px rgba(47,128,237,.09)}

/* Page heading blocks used by legacy pages */
.app-content h1{font-size:1.35rem;font-weight:700;color:var(--tf-text);letter-spacing:-.02em;margin:0}
.app-content>.app-container>.d-flex.justify-content-between,
.app-content>.app-container>.d-flex.justify-content-between.mb-3{
  align-items:center;padding:0 2px;margin-bottom:20px!important;gap:16px
}

/* Tables */
.table-responsive{border-radius:14px}
.table{margin-bottom:0!important;color:#43506a}
.table>:not(caption)>*>*{padding:16px 18px!important;border-bottom-color:var(--tf-border)!important;vertical-align:middle}
.table thead th{background:#fbfcfe;color:#65738d!important;font-size:.73rem;font-weight:700;text-transform:uppercase;letter-spacing:.045em;white-space:nowrap;border-bottom:1px solid var(--tf-border)!important}
.table tbody tr{transition:background .15s ease}
.table tbody tr:hover{background:#fbfdff}
.table tbody tr:last-child td{border-bottom:0!important}
.table td:first-child,.table th:first-child{padding-left:26px!important}
.table td:last-child,.table th:last-child{padding-right:26px!important}
.table a:not(.btn){font-weight:650;color:var(--tf-primary);text-decoration:none}
.table a:not(.btn):hover{color:var(--tf-primary-dark)}
.table-actions{white-space:nowrap;display:flex;align-items:center;gap:8px}
.table-actions form{margin:0}

/* Buttons */
.btn{border-radius:9px;font-weight:600;min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.btn-sm{min-height:34px;padding-left:13px;padding-right:13px}
.btn-primary{background:var(--tf-primary)!important;border-color:var(--tf-primary)!important;box-shadow:0 5px 12px rgba(47,128,237,.18)}
.btn-primary:hover{background:var(--tf-primary-dark)!important;border-color:var(--tf-primary-dark)!important;transform:translateY(-1px)}
.btn-outline-secondary{border-color:#dce3ed;color:#5f6d85}
.btn-outline-secondary:hover{background:#f6f8fb;border-color:#ccd5e2;color:#35425a}
.btn-outline-success{border-color:#b9ead3;color:#15955f}
.btn-outline-danger{border-color:#ffd0d5;color:#e54858}

/* Forms */
.form-label,label{font-weight:600;color:#40506a;margin-bottom:8px}
.form-control,.form-select{min-height:44px;border-radius:10px;border-color:#dfe5ee;padding-left:14px;padding-right:14px;background-color:#fff}
textarea.form-control{padding-top:12px}
.form-control:focus,.form-select:focus{border-color:#8fc0ff;box-shadow:0 0 0 .2rem rgba(47,128,237,.10)}
.form-check-input{border-color:#cdd6e3}

/* Status and progress */
.badge{border-radius:7px;padding:.52em .72em;font-weight:650;letter-spacing:0}
.progress{height:8px;border-radius:999px;background:#edf1f6;overflow:hidden}
.progress-bar{border-radius:999px;background:linear-gradient(90deg,#2f80ed,#579dff)}
.progress-ring{--value:0;width:190px;height:190px;margin:auto;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--tf-primary) calc(var(--value)*1%),#eef2f7 0);position:relative}
.progress-ring:before{content:"";position:absolute;width:150px;height:150px;border-radius:50%;background:#fff}
.progress-ring div{position:relative;display:flex;flex-direction:column}.progress-ring span{font-size:2.3rem;font-weight:700;color:#111827}.progress-ring small{color:#98a2b3}
.status-pending{border-left:4px solid #98a2b3!important}.status-urgent{border-left:4px solid #ef4b5a!important}.status-in_progress{border-left:4px solid #2f80ed!important}.status-completed{border-left:4px solid #20b26b!important}

/* Kanban */
.kanban-column{min-height:65vh;background:#f8fafc;border:1px solid var(--tf-border);border-radius:16px;padding:16px}
.kanban-column>h5{margin:2px 2px 16px}
.task-card{cursor:pointer;margin-bottom:13px;transition:.2s;box-shadow:0 5px 16px rgba(30,55,90,.045)}
.task-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(30,55,90,.09)}
.task-card .card-body{padding:18px!important}

/* Calendar */
#calendar{padding:4px}
.fc .fc-toolbar{gap:12px;flex-wrap:wrap;margin-bottom:24px}
.fc .fc-button{border-radius:8px!important;background:#fff!important;border:1px solid #dfe5ee!important;color:#516079!important;box-shadow:none!important;text-transform:capitalize;padding:.55em .85em!important}
.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background:var(--tf-primary)!important;border-color:var(--tf-primary)!important;color:#fff!important}
.fc .fc-col-header-cell{background:#fbfcfe;padding:10px 0}
.fc .fc-daygrid-day-number{color:#53617a;padding:8px}
.fc-event{cursor:pointer;border-radius:6px!important;padding:2px 4px!important}

/* Utilities */
.description-pre{white-space:pre-wrap;line-height:1.75}
.alert{border-radius:12px;border:0}
.app-footer{background:#fff;border-top:1px solid var(--tf-border);margin-top:20px}
.app-footer .app-container{padding-top:17px!important;padding-bottom:17px!important}

/* Login */
.login-page{background:#fff}.login-visual{background:radial-gradient(circle at 15% 20%,rgba(91,162,255,.65),transparent 30%),linear-gradient(145deg,#13213a 0%,#1f4f8f 58%,#2f80ed 100%);min-height:100vh}.login-brand{display:flex;align-items:center;gap:18px;color:#fff;font-size:2rem;font-weight:800;margin-bottom:60px}.login-features{display:flex;flex-wrap:wrap;justify-content:center;gap:30px}.login-features div{display:flex;align-items:center;gap:10px;color:#fff;background:rgba(255,255,255,.1);padding:14px 18px;border-radius:12px;backdrop-filter:blur(8px)}.login-features i{color:#d6e9ff}

@media(max-width:991.98px){
  .app-header{left:0}.app-wrapper{margin-left:0}.app-sidebar{transform:translateX(-100%);transition:.25s;box-shadow:10px 0 30px rgba(30,55,90,.12)}.app-sidebar.mobile-open{transform:translateX(0)}
  .app-container.container-fluid,.app-header .app-container{padding-left:18px!important;padding-right:18px!important}
  .login-visual{min-height:auto;padding:40px 0}.login-features{display:none}.login-brand{margin-bottom:30px}
}
@media(max-width:767.98px){
  .card-body{padding:20px!important}.card-header{padding-left:20px!important;padding-right:20px!important}
  .table>:not(caption)>*>*{padding:14px 13px!important}.table td:first-child,.table th:first-child{padding-left:18px!important}.table td:last-child,.table th:last-child{padding-right:18px!important}
  .app-content>.app-container>.d-flex.justify-content-between{align-items:flex-start;flex-direction:column}
}

/* Iconos SVG locales: evita cuadros vacíos cuando la fuente KeenIcons no carga. */
i.ki-duotone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1;
    vertical-align: -0.125em;
}

i.ki-duotone .taskflow-svg-icon {
    width: 1em;
    height: 1em;
    display: block;
    pointer-events: none;
}

.btn-icon i.ki-duotone {
    font-size: 1.15rem;
}

.menu-icon i.ki-duotone {
    font-size: 1.25rem;
}

/* =========================================================
   Responsive UI — TaskFlow
   ========================================================= */
.sidebar-backdrop{display:none;position:fixed;inset:0;background:rgba(15,23,42,.48);backdrop-filter:blur(2px);z-index:105;opacity:0;transition:opacity .22s ease}
.sidebar-backdrop.show{display:block;opacity:1}
body.sidebar-open{overflow:hidden}

.table-responsive{-webkit-overflow-scrolling:touch;border-radius:inherit}
.table{min-width:760px}
.table td,.table th{vertical-align:middle;white-space:nowrap}
.table td:first-child,.table th:first-child{white-space:normal;min-width:180px}
.card-toolbar{gap:8px;flex-wrap:wrap}

/* Prevent long content from breaking cards */
.card,.card-body,.app-main,.app-content,.app-container{min-width:0}
.text-break-mobile{overflow-wrap:anywhere;word-break:break-word}

@media (max-width:1199.98px){
  :root{--tf-sidebar-width:248px}
  .app-container.container-fluid,.app-header .app-container{padding-left:22px!important;padding-right:22px!important}
  .kanban-column{min-height:420px}
}

@media (max-width:991.98px){
  :root{--tf-header-height:66px}
  .app-header{left:0;height:var(--tf-header-height)}
  .app-header .app-container{padding-left:14px!important;padding-right:14px!important}
  .app-header .btn.btn-primary{padding-left:12px;padding-right:12px}
  .app-wrapper{margin-left:0;padding-top:var(--tf-header-height)}
  .app-sidebar{width:min(86vw,300px);transform:translateX(-105%);transition:transform .25s ease;z-index:120}
  .app-sidebar.mobile-open{transform:translateX(0)}
  .app-sidebar-logo{height:var(--tf-header-height)}
  .app-container.container-fluid{padding-left:18px!important;padding-right:18px!important}
  .app-toolbar{padding-top:20px!important;padding-bottom:16px!important}
  .app-content{padding-bottom:20px}
  .page-heading{font-size:1.35rem!important}
  .card-header{min-height:auto!important}
  .fc .fc-toolbar{align-items:stretch}
  .fc .fc-toolbar-chunk{display:flex;justify-content:center;flex-wrap:wrap;gap:5px}
  .fc .fc-toolbar-title{font-size:1.15rem!important;text-align:center}
}

@media (max-width:767.98px){
  body{font-size:13px}
  .app-header .gap-3{gap:8px!important}
  .app-header .btn.btn-primary{min-width:38px;padding:8px 10px;font-size:0;gap:0}
  .app-header .btn.btn-primary i{font-size:1.2rem!important;margin:0!important}
  .app-header .rounded.px-3.py-2{padding:5px!important;background:transparent!important}
  .app-header .symbol{margin-right:0!important}
  .app-container.container-fluid{padding-left:12px!important;padding-right:12px!important}
  .app-toolbar{padding-top:16px!important;padding-bottom:12px!important}
  .breadcrumb{font-size:.75rem!important}

  .card{border-radius:12px}
  .card-header{padding:16px!important;flex-wrap:wrap;gap:10px}
  .card-title{font-size:1rem!important}
  .card-body{padding:16px!important}
  .card-footer{padding:14px 16px!important}

  /* Page headings and primary actions stack naturally */
  .app-content .d-flex.justify-content-between,
  .app-content .d-flex.justify-content-between.align-items-center,
  .app-content .d-flex.justify-content-between.align-items-start{
    flex-direction:column!important;align-items:stretch!important;gap:12px!important
  }
  .app-content .d-flex.justify-content-between > .btn,
  .app-content .d-flex.justify-content-between > a.btn{width:100%}

  /* Form controls become touch friendly */
  .form-control,.form-select,.btn{min-height:42px}
  .row.g-3,.row.g-4,.row.g-5{--bs-gutter-y:14px}
  .modal-dialog{margin:10px}

  /* Tables: keep semantic table and offer smooth horizontal scrolling */
  .table{min-width:700px;margin-bottom:0}
  .table>:not(caption)>*>*{padding:13px 12px!important}
  .table td:first-child,.table th:first-child{padding-left:16px!important}
  .table td:last-child,.table th:last-child{padding-right:16px!important}
  .table .btn{min-height:34px;min-width:34px;padding:7px 9px}

  /* Kanban becomes a horizontally scrollable board on phones */
  .app-content .row:has(.kanban-column){display:flex;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:10px;margin-left:-4px;margin-right:-4px}
  .app-content .row:has(.kanban-column)>[class*="col-"]{flex:0 0 84vw;max-width:84vw;scroll-snap-align:start;padding-left:7px;padding-right:7px}
  .kanban-column{min-height:360px;padding:13px;border-radius:13px}
  .task-card .card-body{padding:15px!important}

  /* Calendar */
  #calendar{padding:0}
  .fc .fc-toolbar{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
  .fc .fc-toolbar-chunk{width:100%}
  .fc .fc-toolbar-chunk:nth-child(2){order:-1}
  .fc .fc-button{font-size:.78rem!important;padding:.48em .62em!important}
  .fc .fc-daygrid-day-number{padding:5px;font-size:.75rem}
  .fc .fc-col-header-cell{padding:6px 0;font-size:.72rem}
  .fc .fc-event-title{font-size:.7rem}

  /* Dashboard */
  .progress-ring{width:150px;height:150px}
  .progress-ring:before{width:118px;height:118px}
  .progress-ring span{font-size:1.8rem}

  /* Footer */
  .app-footer .app-container{text-align:center;gap:5px}
}

@media (max-width:575.98px){
  .app-header .d-lg-none.fw-bold{font-size:1.05rem!important}
  .app-header .symbol{width:32px!important;height:32px!important}
  .page-heading{font-size:1.2rem!important}
  .app-sidebar{width:min(90vw,290px)}
  .app-sidebar .menu-link{padding:11px 12px!important}
  .app-sidebar-logo{padding-left:18px!important;padding-right:18px!important}

  .badge{font-size:.72rem;padding:.45em .62em}
  .alert{padding:14px!important}
  .alert i{font-size:1.4rem!important;margin-right:10px!important}

  .table{min-width:650px}
  .kanban-column{min-height:330px}
  .app-content .row:has(.kanban-column)>[class*="col-"]{flex-basis:88vw;max-width:88vw}

  /* Login */
  .login-page .card-body{padding:20px!important}
  .login-brand{font-size:1.5rem;margin-bottom:20px}
  .login-visual{padding:28px 14px}
}

/* Fallback for browsers without :has(): stack Kanban cleanly */
@supports not selector(:has(*)){
  @media(max-width:767.98px){
    .kanban-column{min-height:auto}
  }
}

/* =========================================================
   Corrección final: iconos únicos y footer pegado abajo
   ========================================================= */
/* KeenIcons dibuja un glifo con ::before. Como TaskFlow usa SVG inline,
   ocultamos ese glifo para evitar símbolos duplicados. */
i.ki-duotone::before,
i.ki-outline::before,
i.ki-solid::before {
    content: none !important;
    display: none !important;
}

i.ki-duotone[data-svg-ready="1"] > span,
i.ki-outline[data-svg-ready="1"] > span,
i.ki-solid[data-svg-ready="1"] > span {
    display: none !important;
}

/* Layout tipo sticky footer: el contenido crece y el pie queda en el
   borde inferior cuando la página tiene poco contenido. */
html,
body,
#kt_app_root,
#kt_app_page {
    min-height: 100%;
}

#kt_app_root,
#kt_app_page {
    min-height: 100vh;
}

#kt_app_wrapper {
    min-height: calc(100vh - var(--tf-header-height));
}

#kt_app_main {
    display: flex !important;
    flex-direction: column !important;
    min-height: calc(100vh - var(--tf-header-height));
}

#kt_app_main > .d-flex.flex-column.flex-column-fluid {
    display: flex !important;
    flex: 1 0 auto !important;
    min-height: 0;
}

.app-content {
    flex: 1 0 auto !important;
}

.app-footer {
    flex: 0 0 auto;
    margin-top: auto !important;
    width: 100%;
}


/* =========================================================
   Paginación profesional para tablas
   ========================================================= */
.table-pagination{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:18px;
    padding:18px 24px;
    background:#fff;
    border-top:1px solid #edf0f5;
    border-radius:0 0 14px 14px;
    color:#7b8499;
    font-size:.82rem;
    font-weight:600;
}
.table-pagination-summary{justify-self:start}
.table-pagination-nav{display:flex;align-items:center;gap:6px;justify-self:center}
.table-page-numbers{display:flex;gap:6px}
.table-page-btn{
    width:34px;height:34px;border:1px solid #e3e8ef;border-radius:8px;
    background:#fff;color:#5c6880;font-weight:700;line-height:1;
    display:inline-flex;align-items:center;justify-content:center;
    transition:all .16s ease;
}
.table-page-btn:hover:not(:disabled){border-color:#9ec5fe;color:#1f6fd2;background:#f6f9ff}
.table-page-btn.active{background:#2f80ed;border-color:#2f80ed;color:#fff;box-shadow:0 4px 10px rgba(47,128,237,.18)}
.table-page-btn:disabled{opacity:.4;cursor:not-allowed}
.table-page-size{display:flex;align-items:center;gap:9px;justify-self:end;white-space:nowrap}
.table-page-size .form-select{width:72px;min-height:34px;padding-top:.35rem;padding-bottom:.35rem}
table[data-paginated-table] tr[hidden]{display:none!important}

/* =========================================================
   Kanban profesional, tonos suaves y estructura Jet
   ========================================================= */
.kanban-shell{overflow:hidden}
.kanban-toolbar{padding-top:17px!important;padding-bottom:17px!important;border-bottom:1px solid #edf0f5}
.kanban-search-wrap{max-width:330px}
.kanban-total{height:42px;display:flex;align-items:center;gap:5px;padding:0 14px;border:1px solid #e3e8ef;border-radius:9px;color:#7b8499;background:#fff;font-size:.82rem}
.kanban-total strong{color:#344054}
.kanban-board{display:grid;grid-template-columns:repeat(4,minmax(270px,1fr));gap:14px;align-items:start;overflow-x:auto;padding:4px 1px 10px}
.kanban-lane{min-height:480px;background:#f8fafc;border:1px solid #e4e9f0;border-radius:13px;padding:14px;--lane:#7b8499;--lane-soft:#eef1f5}
.kanban-lane-header{display:flex;align-items:center;justify-content:space-between;padding:1px 3px 11px}
.kanban-lane-header h2{font-size:.88rem;font-weight:750;color:#26334d;margin:0}
.kanban-dot{width:8px;height:8px;border-radius:50%;background:var(--lane);box-shadow:0 0 0 4px var(--lane-soft)}
.kanban-count{min-width:27px;height:25px;padding:0 8px;border-radius:999px;background:var(--lane-soft);color:var(--lane);font-size:.75rem;font-weight:750;display:inline-flex;align-items:center;justify-content:center}
.kanban-lane-divider{height:2px;border-radius:999px;background:var(--lane);opacity:.75;margin-bottom:13px}
.kanban-tone-slate{--lane:#7d899c;--lane-soft:#eef1f5}
.kanban-tone-blue{--lane:#347fc4;--lane-soft:#eaf3fb}
.kanban-tone-amber{--lane:#b27b2c;--lane-soft:#fbf2e4}
.kanban-tone-green{--lane:#398768;--lane-soft:#e9f4ef}
.kanban-items{display:flex;flex-direction:column;gap:11px}
.kanban-task{background:#fff;border:1px solid #e3e8ef;border-radius:11px;padding:15px;box-shadow:0 3px 10px rgba(36,50,75,.035);cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;outline:none}
.kanban-task:hover,.kanban-task:focus-visible{border-color:#c7d6e8;box-shadow:0 7px 18px rgba(36,50,75,.075);transform:translateY(-1px)}
.kanban-task-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.kanban-task-title{color:#1f2a44;font-size:.88rem;font-weight:750;line-height:1.35;text-decoration:none;overflow-wrap:anywhere}
.kanban-task-title:hover{color:#2f80ed}
.kanban-edit{width:27px;height:27px;border-radius:7px;color:#8a94a8;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.kanban-edit:hover{background:#f1f5fa;color:#2f80ed}
.kanban-meta{display:grid;gap:6px;color:#8993a8;font-size:.76rem;font-weight:550}
.kanban-meta span{display:flex;align-items:center;gap:6px;min-width:0}
.kanban-meta .is-overdue{color:#b94f59}
.kanban-progress-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;margin-top:13px}
.kanban-progress-row .progress{height:6px;background:#edf1f5}
.kanban-progress-row .progress-bar{background:var(--lane)}
.kanban-progress-row>span{font-size:.73rem;font-weight:700;color:#667085;min-width:30px;text-align:right}
.kanban-overdue{display:inline-flex;margin-top:9px;padding:4px 7px;border-radius:6px;background:#fdf0f1;color:#a83f49;font-size:.68rem;font-weight:700}
.kanban-empty,.kanban-no-results{padding:24px 12px;text-align:center;color:#98a2b3;font-size:.8rem;font-weight:600;border:1px dashed #dce2ea;border-radius:10px;background:rgba(255,255,255,.45)}
.kanban-no-results{margin:5px 0 10px}

@media(max-width:1199.98px){
    .kanban-board{grid-template-columns:repeat(4,minmax(290px,1fr));padding-bottom:15px}
}
@media(max-width:767.98px){
    .table-pagination{grid-template-columns:1fr;justify-items:center;padding:16px;gap:12px}
    .table-pagination-summary,.table-pagination-nav,.table-page-size{justify-self:center}
    .table-page-numbers .table-page-btn:nth-child(n+4){display:none}
    .kanban-toolbar{align-items:stretch!important}
    .kanban-toolbar .card-title,.kanban-toolbar .card-toolbar,.kanban-search-wrap{width:100%;max-width:none}
    .kanban-toolbar .card-toolbar{display:grid!important;grid-template-columns:1fr auto}
    .kanban-toolbar .form-select{width:100%!important}
    .kanban-board{display:flex;scroll-snap-type:x mandatory;gap:12px}
    .kanban-lane{flex:0 0 86vw;min-width:270px;scroll-snap-align:start;min-height:420px}
}

/* =========================================================
   TaskFlow 2026 — unified calendar-inspired visual system
   ========================================================= */
:root{
  --tf-primary:#2878ee;--tf-primary-hover:#1769dd;--tf-primary-soft:#eef5ff;
  --tf-bg:#f4f7fb;--tf-surface:#fff;--tf-border:#e5ebf3;--tf-border-strong:#d9e2ee;
  --tf-text:#12203a;--tf-muted:#8995aa;--tf-sidebar-width:260px;--tf-header-height:68px;
  --tf-radius:14px;--tf-shadow:0 12px 32px rgba(28,57,95,.055)
}
html,body,#kt_app_root,#kt_app_page{min-height:100%}
body{background:var(--tf-bg);color:var(--tf-text);font-size:13px;letter-spacing:-.005em}
.app-page{min-height:100vh}.app-wrapper{display:flex;min-height:calc(100vh - var(--tf-header-height))}.app-main{display:flex;flex-direction:column}.app-main>.d-flex{flex:1}.app-content{flex:1}.app-footer{margin-top:auto}
.app-header{height:var(--tf-header-height);left:var(--tf-sidebar-width);background:#fff;border-bottom:1px solid var(--tf-border);box-shadow:none}
.app-header .app-container{padding:0 28px!important;max-width:none}
.btn-ghost{background:transparent;border:0;color:#6d7b93}.btn-ghost:hover{background:#f2f6fb;color:var(--tf-primary)}
.top-create-btn{height:36px;padding:0 16px;border-radius:8px;font-size:12px;box-shadow:0 5px 14px rgba(40,120,238,.18)}
.top-user{padding:4px 8px}.notification-dot{position:absolute;right:2px;top:0;background:#ef3340;color:#fff;width:17px;height:17px;border-radius:50%;font-size:9px;font-weight:700;display:grid;place-items:center;border:2px solid #fff}
.app-sidebar{width:var(--tf-sidebar-width);background:#fff;border-right:1px solid var(--tf-border);box-shadow:none}
.app-sidebar-logo{height:var(--tf-header-height);padding:0 22px!important;border-bottom:1px solid var(--tf-border)}
.brand-link{display:flex;align-items:center;text-decoration:none;gap:12px}.brand-mark{width:36px;height:36px;border-radius:9px;background:linear-gradient(145deg,#2f86ff,#2270e4);box-shadow:0 6px 14px rgba(40,120,238,.22)}.brand-mark i{font-size:20px}.brand-name{font-size:20px;font-weight:700;color:#14213a;letter-spacing:-.03em}
.app-sidebar-wrapper{padding-left:11px!important;padding-right:11px!important}.app-sidebar .menu-content{padding:9px 10px 6px!important}.menu-heading{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#9ba7b9;font-weight:700}
.app-sidebar .menu-link{min-height:44px;padding:0 13px!important;margin:2px 0;border-radius:8px!important;color:#64738d!important}.app-sidebar .menu-link .menu-icon{width:29px!important;color:#7d8ca5}.app-sidebar .menu-link i{font-size:18px}.app-sidebar .menu-link:hover{background:#f4f7fb!important;color:#1f66c5!important}.app-sidebar .menu-link.active{background:#edf5ff!important;color:#1769dd!important;font-weight:600}.app-sidebar .menu-link.active:after{content:"";position:absolute;right:0;top:7px;bottom:7px;width:3px;border-radius:3px;background:#2878ee}.app-sidebar .menu-link.active .menu-icon{color:#2878ee}
.sidebar-safe-card{margin:12px;padding:12px 14px;border-radius:8px;background:#f6f8fb;border:1px solid #edf1f6;color:#71809a;font-size:11px;display:flex;align-items:center;gap:9px}.sidebar-safe-card i{color:#2f80ed;font-size:16px}.sidebar-collapse-control{height:42px;border:0;border-top:1px solid var(--tf-border);background:#fff;color:#73819a;align-items:center;justify-content:center;font-size:21px}.sidebar-collapse-control:hover{background:#f7f9fc;color:#2878ee}
.app-toolbar{padding:24px 0 18px!important}.app-container.container-fluid{padding-left:28px!important;padding-right:28px!important;max-width:1850px}.page-heading{font-size:22px!important;font-weight:700!important;letter-spacing:-.035em;color:#13203a!important}.page-subtitle{margin-top:7px;color:#8995aa;font-size:12px}.app-content{padding-bottom:28px}
.page-action-row{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.page-action-row h2{font-size:16px;margin:0 0 5px;color:#17233b;font-weight:700}.page-action-row p{margin:0;color:#8995aa;font-size:12px}.page-action-row .btn{min-height:40px;border-radius:8px}
.btn{border-radius:8px;font-weight:600;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn-primary{background:#2878ee;border-color:#2878ee}.btn-primary:hover{background:#1769dd;border-color:#1769dd}.btn-light{background:#f7f9fc;border:1px solid #e6ebf2;color:#5f6e86}.btn-light-primary{background:#edf5ff;color:#2172de;border:1px solid #dceaff}.btn-light-danger{background:#fff3f4;color:#dd4250;border:1px solid #ffe0e4}.btn-success-soft{background:#ebfbf2;color:#15a65a;border:1px solid #d2f4df}.btn i{font-size:16px}
.card,.surface-card,.project-card,.empty-state-card{background:#fff;border:1px solid var(--tf-border);border-radius:var(--tf-radius);box-shadow:var(--tf-shadow)}.card{box-shadow:var(--tf-shadow)!important}.card-header{border-bottom:1px solid #edf1f6!important;min-height:68px!important;padding:0 22px!important}.card-body{padding:22px!important}.surface-card{overflow:hidden}.surface-card-header{min-height:68px;padding:17px 22px;border-bottom:1px solid #edf1f6;display:flex;align-items:center;justify-content:space-between;gap:16px}.surface-card-header h3{font-size:14px;font-weight:700;margin:0;color:#15223a}.surface-card-header p{font-size:11px;color:#8a96aa;margin:5px 0 0}.surface-card-body{padding:22px}.soft-counter{border-radius:7px;background:#f4f7fb;color:#7d8ba1;padding:6px 10px;font-size:11px;font-weight:600;white-space:nowrap}.display-progress{font-size:22px;color:#2878ee}
.form-label{font-size:12px;font-weight:600;color:#34435c;margin-bottom:8px}.form-control,.form-select{border:1px solid #dfe6ef!important;background:#fff!important;border-radius:8px!important;min-height:42px;color:#23314a;font-size:12px;box-shadow:none!important}.form-control:focus,.form-select:focus{border-color:#8ebcff!important;box-shadow:0 0 0 3px rgba(40,120,238,.08)!important}.form-control-solid,.form-select-solid{background:#f7f9fc!important;border-color:#f0f3f7!important}.form-text{font-size:10px;color:#919caf}.form-check-input:checked{background-color:#2878ee;border-color:#2878ee}
.search-shell{position:relative;width:min(300px,100%)}.search-shell i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#9ba7ba;font-size:16px;z-index:2}.search-shell input{padding-left:39px!important;background:#f7f9fb!important;border-color:#f1f3f7!important}
.table-responsive{overflow-x:auto}.modern-table,.table.align-middle{margin:0;min-width:760px}.modern-table thead th,.table.align-middle thead th{padding:15px 22px!important;background:#fbfcfe;color:#687791;font-size:10px;text-transform:none;letter-spacing:.03em;font-weight:600;border-bottom:1px solid #e8edf4!important}.modern-table tbody td,.table.align-middle tbody td{padding:14px 22px!important;border-bottom:1px solid #eef2f6!important;color:#53617a;font-size:12px}.modern-table tbody tr:last-child td,.table.align-middle tbody tr:last-child td{border-bottom:0!important}.modern-table tbody tr:hover,.table.align-middle tbody tr:hover{background:#fbfdff}.table-primary-link{color:#142039;font-weight:600}.table-primary-link:hover{color:#2878ee}.icon-action{width:32px;height:32px;border-radius:8px;border:0;background:#edf5ff;color:#2878ee;display:inline-flex;align-items:center;justify-content:center;margin-left:5px}.icon-action:hover{background:#dcecff;color:#1769dd}.icon-action.danger{background:#fff2f4;color:#e34a58}.status-pill{display:inline-flex;align-items:center;border-radius:7px;padding:5px 9px;font-size:10px;font-weight:600}.status-primary{background:#edf5ff;color:#2172de}.status-success{background:#eafaf1;color:#10a957}.status-warning{background:#fff6e7;color:#c78015}.status-neutral{background:#f3f5f8;color:#647189}.user-mini-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#edf5ff;color:#2675df;font-weight:700}
.table-pagination{padding:16px 22px;border-top:1px solid #edf1f6;background:#fff;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:15px}.table-pagination-summary{font-size:11px;color:#7d8aa0}.table-pagination-nav{display:flex;align-items:center;gap:6px}.table-page-numbers{display:flex;gap:6px}.table-page-btn{width:32px;height:32px;border:1px solid #dfe6ef;border-radius:7px;background:#fff;color:#6e7d95;font-size:11px}.table-page-btn:hover:not(:disabled){border-color:#9ec4fa;color:#2878ee}.table-page-btn.active{background:#2878ee;border-color:#2878ee;color:#fff}.table-page-btn:disabled{opacity:.45}.table-page-size{display:flex;justify-content:flex-end;align-items:center;gap:8px;color:#7b889e;font-size:11px}.table-page-size select{width:65px;min-height:34px}
.project-card{padding:20px;transition:.2s}.project-card:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(28,57,95,.09)}.project-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.project-icon{width:42px;height:42px;border-radius:10px;background:#edf5ff;color:#2878ee;display:grid;place-items:center}.project-icon i{font-size:20px}.project-percent{background:#f4f7fb;color:#607089;font-size:11px;font-weight:700;padding:5px 8px;border-radius:7px}.project-card h3{font-size:14px;margin:0 0 7px}.project-card h3 a{color:#142039}.project-owner,.project-dates{font-size:11px;color:#8a96aa}.project-dates{display:flex;align-items:center;gap:6px;margin-top:15px}.project-progress{margin-top:18px}.project-progress .progress{height:6px}.project-progress span{display:block;margin-top:8px;font-size:10px;color:#8a96aa}.project-card-actions{display:flex;gap:8px;margin-top:18px}.empty-state-card{padding:60px;text-align:center}.empty-state-card>i{font-size:42px;color:#8ebcff}.empty-state-card h3{margin:15px 0 6px}.empty-state-card p{color:#8a96aa}
.progress{background:#edf1f6;border-radius:999px}.progress-bar{background:#3e8af1;border-radius:999px}.progress-xl{height:9px}.project-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:24px}.project-stats>div{padding:13px;border:1px solid #edf1f5;border-radius:9px}.project-stats span{display:block;color:#8a96aa;font-size:10px;margin-bottom:4px}.project-stats strong{font-size:12px;color:#27344b}
/* Task list */
#tasksTable .symbol-label{border-radius:8px!important}.badge{border-radius:6px;font-size:10px;font-weight:600}.badge-light-danger{background:#fff1f3;color:#df4252}.badge-light-primary{background:#edf5ff;color:#2172de}.badge-light-success{background:#eafaf1;color:#10a957}.badge-light-secondary{background:#f3f5f8;color:#657289}
/* Kanban */
.kanban-shell{box-shadow:var(--tf-shadow)!important}.kanban-toolbar{padding-top:13px!important;padding-bottom:13px!important}.kanban-total{background:#f5f7fa;border:1px solid #edf1f6;color:#74829a;border-radius:8px;padding:9px 12px;font-size:11px}.kanban-board{display:grid;grid-template-columns:repeat(4,minmax(250px,1fr));gap:14px;overflow-x:auto;padding-bottom:4px}.kanban-lane{border:1px solid #e7ecf3;border-radius:11px;background:#fbfcfe;padding:14px;min-height:430px}.kanban-lane-header{display:flex;align-items:center;justify-content:space-between;padding:0 2px}.kanban-lane-header h2{font-size:12px;margin:0;color:#26344d}.kanban-dot{width:8px;height:8px;border-radius:50%;background:#97a5b9}.kanban-count{min-width:24px;height:24px;padding:0 7px;border-radius:50px;background:#edf1f6;color:#68768e;display:grid;place-items:center;font-size:10px;font-weight:700}.kanban-lane-divider{height:2px;border-radius:2px;background:#c4cedb;margin:11px 0 13px}.kanban-tone-blue .kanban-dot,.kanban-tone-blue .kanban-lane-divider{background:#3d86ef}.kanban-tone-blue .kanban-count{background:#e8f2ff;color:#2776df}.kanban-tone-amber .kanban-dot,.kanban-tone-amber .kanban-lane-divider{background:#d79a38}.kanban-tone-amber .kanban-count{background:#fff3dc;color:#b97917}.kanban-tone-green .kanban-dot,.kanban-tone-green .kanban-lane-divider{background:#2eb66d}.kanban-tone-green .kanban-count{background:#e4f8ed;color:#1e9d5a}.kanban-task{border:1px solid #e6ebf2;background:#fff;border-radius:10px;padding:15px;margin-bottom:11px;box-shadow:0 3px 10px rgba(33,58,91,.035);transition:.18s}.kanban-task:hover{border-color:#cbd9eb;transform:translateY(-1px);box-shadow:0 8px 18px rgba(33,58,91,.07)}.kanban-task-title{font-size:12px;font-weight:700;color:#17233b}.kanban-edit{color:#8190a7}.kanban-meta{display:flex;flex-direction:column;gap:6px;margin:10px 0 12px;color:#8995aa;font-size:10px}.kanban-meta span{display:flex;gap:6px;align-items:center}.kanban-progress-row{display:flex;align-items:center;gap:10px}.kanban-progress-row .progress{height:5px;flex:1}.kanban-progress-row span{font-size:10px;color:#65738a}.kanban-overdue{margin-top:8px;color:#d04b56;font-size:9px;font-weight:600}.kanban-empty,.kanban-no-results{padding:30px 12px;text-align:center;color:#97a2b4;font-size:11px}
/* Calendar */
.calendar-surface .surface-card-body{padding:22px}.fc{color:#24324b}.fc .fc-toolbar{margin-bottom:18px!important}.fc .fc-toolbar-title{font-size:17px!important;font-weight:700;letter-spacing:-.02em}.fc .fc-button{background:#fff!important;border:1px solid #dfe6ef!important;color:#56657e!important;border-radius:7px!important;box-shadow:none!important;font-size:11px!important;font-weight:600!important;text-transform:capitalize!important;padding:.58em .9em!important}.fc .fc-button:hover{background:#f7f9fc!important}.fc .fc-button-primary:not(:disabled).fc-button-active{background:#3a83ee!important;border-color:#3a83ee!important;color:#fff!important}.fc-theme-standard td,.fc-theme-standard th{border-color:#e9edf3!important}.fc .fc-col-header-cell{background:#fff;padding:11px 0!important}.fc .fc-col-header-cell-cushion{color:#24324a;font-size:11px;font-weight:600}.fc .fc-daygrid-day{background:#fff}.fc .fc-daygrid-day:hover{background:#fbfdff}.fc .fc-daygrid-day-number{font-size:11px;color:#34425a;padding:9px!important}.fc .fc-day-other .fc-daygrid-day-number{color:#b0b8c5}.fc .fc-day-today{background:#f4f8ff!important}.fc .fc-daygrid-day-frame{min-height:100px}.fc .fc-event{border:0!important;border-radius:6px!important;padding:4px 7px!important;font-size:10px!important;box-shadow:0 3px 8px rgba(30,60,100,.08)}.fc .fc-daygrid-event-dot{border-width:3px!important}.calendar-legend{display:flex;justify-content:flex-end;gap:22px;flex-wrap:wrap;margin-top:18px;color:#6f7d94;font-size:10px}.calendar-legend span{display:flex;align-items:center;gap:6px}.legend-dot{width:9px;height:9px;border-radius:50%}.legend-dot.pending{background:#8d99aa}.legend-dot.progress{background:#487fe8}.legend-dot.completed{background:#2bb96b}.legend-dot.overdue{background:#e33949}
/* Detail pages */
.detail-section{margin-top:22px}.detail-section h4{font-size:12px;margin-bottom:8px}.detail-section p{color:#647189;line-height:1.7}.soft-alert{padding:14px;border-radius:9px;display:flex;flex-direction:column;gap:4px;margin-top:20px}.soft-alert.warning{background:#fff8e9;border:1px solid #ffebbd;color:#9f6b13}.subtask-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #eef2f6}.subtask-check{width:28px;height:28px;border-radius:7px;border:1px solid #dfe6ef;background:#fff;color:#9aa6b8;display:grid;place-items:center}.subtask-check.done{background:#e8f9ef;color:#15a95b;border-color:#d1f1dd}.subtask-add{display:flex;gap:10px;margin-top:18px}.sticky-actions{position:sticky;top:90px}.audit-detail summary{cursor:pointer;color:#2878ee;font-weight:600}.audit-detail pre{margin-top:8px;max-width:420px;white-space:pre-wrap;background:#f7f9fc;padding:10px;border-radius:7px;font-size:9px}
.app-footer{background:#fff;border-top:1px solid var(--tf-border);margin-top:28px}.app-footer .app-container{padding-top:15px!important;padding-bottom:15px!important}
/* Sidebar collapsed */
body.sidebar-collapsed{--tf-sidebar-width:78px}.sidebar-collapsed .brand-name,.sidebar-collapsed .menu-title,.sidebar-collapsed .menu-heading,.sidebar-collapsed .sidebar-safe-card span{display:none}.sidebar-collapsed .app-sidebar-logo{justify-content:center;padding:0!important}.sidebar-collapsed .brand-link{gap:0}.sidebar-collapsed .app-sidebar .menu-link{justify-content:center;padding:0!important}.sidebar-collapsed .app-sidebar .menu-link .menu-icon{width:auto!important}.sidebar-collapsed .app-sidebar .menu-link.active:after{right:3px}.sidebar-collapsed .sidebar-safe-card{justify-content:center;padding:12px 0}.sidebar-collapsed .sidebar-collapse-control{transform:rotate(180deg)}
@media(max-width:1199.98px){.kanban-board{grid-template-columns:repeat(4,300px)}}
@media(max-width:991.98px){:root{--tf-header-height:64px}.app-header{left:0}.app-wrapper{margin-left:0}.app-sidebar{width:min(88vw,280px)}.app-container.container-fluid,.app-header .app-container{padding-left:16px!important;padding-right:16px!important}.table-pagination{grid-template-columns:1fr auto}.table-page-size{grid-column:1/-1;justify-content:flex-start}.project-stats{grid-template-columns:1fr}.sticky-actions{position:static}.kanban-board{grid-template-columns:repeat(4,280px)}}
@media(max-width:767.98px){.page-action-row{align-items:stretch;flex-direction:column}.page-action-row .btn{width:100%}.top-create-btn span{display:none}.top-create-btn{width:38px;padding:0}.app-toolbar{padding-top:18px!important}.page-heading{font-size:19px!important}.surface-card-header{padding:15px 16px;align-items:flex-start;flex-direction:column}.surface-card-body{padding:16px}.card-body{padding:16px!important}.table-pagination{grid-template-columns:1fr;justify-items:start}.table-pagination-nav{order:3}.table-page-size{grid-column:auto}.subtask-add{flex-direction:column}.subtask-add .btn{width:100%}.calendar-surface .surface-card-body{padding:12px}.fc .fc-toolbar{display:flex;flex-direction:column;gap:10px}.fc .fc-toolbar-chunk{display:flex;justify-content:center}.fc .fc-toolbar-chunk:nth-child(2){order:-1}.fc .fc-daygrid-day-frame{min-height:72px}.calendar-legend{justify-content:flex-start}.empty-state-card{padding:35px 18px}}

/* =========================================================
   Corrección del encabezado en dispositivos móviles
   Mantiene botones, notificaciones, avatar y salida dentro del contenedor.
   ========================================================= */
@media (max-width: 767.98px) {
  .app-header {
    height: var(--tf-header-height) !important;
    min-height: var(--tf-header-height) !important;
    overflow: visible;
  }

  .app-header .app-container {
    height: 100% !important;
    min-height: 0 !important;
    flex-wrap: nowrap !important;
    overflow: visible;
  }

  .app-header .app-container > .d-flex {
    height: 100%;
    min-width: 0;
    align-items: center !important;
  }

  .app-header .app-container > .d-flex:last-child {
    gap: 6px !important;
    margin-left: auto;
  }

  .app-header .btn,
  .app-header .btn.btn-icon,
  .app-header .top-create-btn {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    flex: 0 0 36px;
    border-radius: 9px;
    line-height: 1;
  }

  .app-header .btn i,
  .app-header .btn svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    flex: 0 0 18px;
  }

  .app-header .top-user {
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    padding: 0 !important;
    margin: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
    border-radius: 9px;
  }

  .app-header .top-user .symbol,
  .app-header .symbol.symbol-38px {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    flex: 0 0 36px;
  }

  .app-header .top-user .symbol-label,
  .app-header .symbol.symbol-38px .symbol-label {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .app-header .notification-dot {
    top: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    font-size: 8px;
    border-width: 2px;
    line-height: 1;
  }
}

@media (max-width: 380px) {
  .app-header .app-container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .app-header .app-container > .d-flex:last-child {
    gap: 4px !important;
  }

  .app-header .btn,
  .app-header .btn.btn-icon,
  .app-header .top-create-btn,
  .app-header .top-user,
  .app-header .top-user .symbol,
  .app-header .symbol.symbol-38px,
  .app-header .top-user .symbol-label,
  .app-header .symbol.symbol-38px .symbol-label {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    flex-basis: 34px;
  }
}

/* =========================================================
   Professional calendar refinement — July 2026
   ========================================================= */
.calendar-page-heading {
  margin-bottom: 18px;
}

.calendar-surface {
  overflow: hidden;
  border: 1px solid #e4e9f0;
  box-shadow: 0 12px 34px rgba(31, 47, 70, 0.055);
}

.calendar-surface .surface-card-body {
  padding: 20px 22px 18px;
}

.calendar-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid #e7ebf1;
  border-radius: 10px;
  background: #fafbfd;
}

.calendar-info-copy {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #56657a;
}

.calendar-info-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  border: 1px solid #dfe6ef;
  border-radius: 9px;
  background: #fff;
  color: #60728b;
}

.calendar-info-copy strong,
.calendar-info-copy span {
  display: block;
}

.calendar-info-copy strong {
  margin-bottom: 2px;
  color: #28364c;
  font-size: 12px;
  font-weight: 700;
}

.calendar-info-copy > div > span {
  color: #7b8799;
  font-size: 10px;
}

.fc {
  --fc-border-color: #e7ebf1;
  --fc-page-bg-color: #fff;
  --fc-neutral-bg-color: #f8fafc;
  --fc-today-bg-color: #f5f8fc;
  color: #26364d;
}

.fc .fc-toolbar {
  margin-bottom: 17px !important;
  gap: 12px;
}

.fc .fc-toolbar-title {
  color: #26354b;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

.fc .fc-button-group {
  gap: 5px;
}

.fc .fc-button-group > .fc-button {
  border-radius: 8px !important;
}

.fc .fc-button {
  min-height: 34px;
  padding: 0.52em 0.85em !important;
  border: 1px solid #dde4ed !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(25, 39, 60, 0.025) !important;
  color: #5a687d !important;
  font-size: 10.5px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  text-transform: capitalize !important;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.fc .fc-button:hover,
.fc .fc-button:focus {
  border-color: #ced8e5 !important;
  background: #f8fafc !important;
  color: #33445d !important;
}

.fc .fc-button:focus {
  box-shadow: 0 0 0 3px rgba(67, 103, 151, .09) !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  border-color: #496b96 !important;
  background: #496b96 !important;
  color: #fff !important;
}

.fc-theme-standard .fc-scrollgrid {
  overflow: hidden;
  border: 1px solid #e5eaf1 !important;
  border-radius: 10px;
}

.fc-theme-standard td,
.fc-theme-standard th {
  border-color: #e8ecf2 !important;
}

.fc .fc-col-header-cell {
  padding: 11px 0 !important;
  background: #fafbfd !important;
}

.fc .fc-col-header-cell-cushion {
  color: #536178;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: capitalize;
}

.fc .fc-daygrid-day {
  background: #fff;
  transition: background-color .14s ease;
}

.fc .fc-daygrid-day:hover {
  background: #fbfcfe;
}

.fc .fc-daygrid-day-frame {
  min-height: 105px;
  padding: 2px;
}

.fc .fc-daygrid-day-top {
  justify-content: flex-end;
}

.fc .fc-daygrid-day-number {
  min-width: 26px;
  height: 26px;
  margin: 4px 4px 1px 0;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #536178;
  font-size: 10.5px;
  font-weight: 600;
}

.fc .fc-day-other {
  background: #fcfdfe;
}

.fc .fc-day-other .fc-daygrid-day-number {
  color: #b2bac7;
}

.fc .fc-day-today {
  background: #f7f9fc !important;
}

.fc .fc-day-today .fc-daygrid-day-number {
  background: #496b96;
  color: #fff;
  box-shadow: 0 3px 8px rgba(73, 107, 150, .18);
}

.fc .fc-daygrid-day-events {
  margin-top: 1px;
}

.fc .fc-daygrid-event-harness {
  margin: 3px 4px 0;
}

.fc .fc-event {
  min-height: 26px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.fc .fc-event:hover {
  z-index: 4;
  transform: translateY(-1px);
  box-shadow: 0 5px 13px rgba(34, 50, 73, .09) !important;
  filter: saturate(.94);
}

.tf-calendar-event {
  width: 100%;
  min-width: 0;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tf-calendar-event-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .62;
}

.tf-calendar-event-title {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc .fc-daygrid-more-link {
  margin: 3px 7px;
  color: #66758b;
  font-size: 9.5px;
  font-weight: 700;
}

.fc .fc-popover {
  overflow: hidden;
  border: 1px solid #dfe5ed;
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(30, 45, 67, .12);
}

.fc .fc-popover-header {
  padding: 9px 11px;
  background: #f8fafc;
  color: #3f4f66;
  font-size: 11px;
  font-weight: 700;
}

.fc .fc-timegrid-slot-label-cushion,
.fc .fc-timegrid-axis-cushion {
  color: #7b8798;
  font-size: 9.5px;
}

.fc .fc-timegrid-now-indicator-line {
  border-color: #b56b74;
  opacity: .7;
}

.fc .fc-timegrid-now-indicator-arrow {
  border-color: #b56b74;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.calendar-legend {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf0f4;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  color: #718096;
  font-size: 9.5px;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-dot.pending { background: #7f8b9a; }
.legend-dot.progress { background: #5477a5; }
.legend-dot.urgent { background: #ad7936; }
.legend-dot.completed { background: #4b8065; }
.legend-dot.overdue { background: #a95f68; }

@media (max-width: 991.98px) {
  .calendar-surface .surface-card-body {
    padding: 17px;
  }

  .fc .fc-daygrid-day-frame {
    min-height: 88px;
  }
}

@media (max-width: 767.98px) {
  .calendar-info-bar {
    display: none;
  }

  .calendar-surface .surface-card-body {
    padding: 12px;
  }

  .fc .fc-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }

  .fc .fc-toolbar-chunk {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 4px;
  }

  .fc .fc-toolbar-chunk:nth-child(2) {
    order: -1;
  }

  .fc .fc-toolbar-title {
    font-size: 15px !important;
  }

  .fc .fc-button {
    min-height: 32px;
    padding: .46em .65em !important;
    font-size: 9.5px !important;
  }

  .fc .fc-daygrid-day-frame {
    min-height: 68px;
  }

  .fc .fc-daygrid-day-number {
    min-width: 22px;
    height: 22px;
    margin: 2px 2px 0 0;
    font-size: 9px;
  }

  .fc .fc-col-header-cell {
    padding: 8px 0 !important;
  }

  .fc .fc-col-header-cell-cushion {
    font-size: 9px;
  }

  .fc .fc-daygrid-event-harness {
    margin: 2px 2px 0;
  }

  .tf-calendar-event {
    padding: 4px 5px;
    gap: 4px;
  }

  .tf-calendar-event-dot {
    width: 5px;
    height: 5px;
    flex-basis: 5px;
  }

  .tf-calendar-event-title {
    font-size: 8.5px;
  }

  .calendar-legend {
    justify-content: flex-start;
    gap: 11px 15px;
  }
}

@media (max-width: 480px) {
  .calendar-page-heading .btn {
    width: 100%;
  }

  .fc .fc-daygrid-day-frame {
    min-height: 58px;
  }

  .fc .fc-daygrid-day-events {
    margin-bottom: 1px;
  }

  .tf-calendar-event-title {
    max-width: 52px;
  }
}


/* Calendar information icon reliability fix */
.calendar-info-icon .calendar-info-svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  color: #52657d;
  overflow: visible;
  flex: 0 0 18px;
}

.calendar-info-icon .calendar-info-svg path {
  fill: currentColor !important;
  stroke: none !important;
}

/* =========================================================
   Mobile navigation hardening and calendar info alignment
   ========================================================= */
@media (max-width: 991.98px) {
  /* Desktop collapsed state must never affect the mobile drawer. */
  body.sidebar-collapsed {
    --tf-sidebar-width: min(88vw, 300px) !important;
  }

  body.sidebar-collapsed .app-sidebar {
    width: min(88vw, 300px) !important;
  }

  body.sidebar-collapsed .brand-name,
  body.sidebar-collapsed .menu-title,
  body.sidebar-collapsed .menu-heading,
  body.sidebar-collapsed .sidebar-safe-card span {
    display: initial !important;
  }

  body.sidebar-collapsed .app-sidebar-logo {
    justify-content: flex-start !important;
    padding: 0 18px !important;
  }

  body.sidebar-collapsed .brand-link {
    gap: 12px !important;
  }

  body.sidebar-collapsed .app-sidebar .menu-link {
    justify-content: flex-start !important;
    padding: 0 13px !important;
  }

  body.sidebar-collapsed .app-sidebar .menu-link .menu-icon {
    width: 29px !important;
    flex: 0 0 29px !important;
  }

  body.sidebar-collapsed .sidebar-safe-card {
    justify-content: flex-start !important;
    padding: 12px 14px !important;
  }

  .app-sidebar {
    inset: 0 auto 0 0 !important;
    height: 100dvh !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  .app-sidebar-menu,
  .app-sidebar-wrapper {
    min-width: 0 !important;
    width: 100% !important;
  }

  .app-sidebar-wrapper {
    overflow-x: hidden !important;
  }

  .app-sidebar .menu-link {
    width: 100% !important;
    min-width: 0 !important;
  }

  .app-sidebar .menu-title {
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sidebar-collapse-control {
    display: none !important;
  }
}

@media (max-width: 480px) {
  body.sidebar-collapsed,
  body:not(.sidebar-collapsed) {
    --tf-sidebar-width: min(86vw, 286px) !important;
  }

  body.sidebar-collapsed .app-sidebar,
  .app-sidebar {
    width: min(86vw, 286px) !important;
  }
}

/* Calendar information block: keep icon centered and text aligned. */
.calendar-info-copy {
  min-width: 0;
  align-items: center !important;
}

.calendar-info-icon {
  position: relative;
  align-self: center;
  line-height: 0;
  padding: 0 !important;
}

.calendar-info-icon .calendar-info-svg {
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
  transform: none !important;
  vertical-align: middle;
}

.calendar-info-copy > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
}

.calendar-info-copy strong {
  margin: 0 0 3px !important;
  line-height: 1.25 !important;
}

.calendar-info-copy > div > span {
  line-height: 1.35 !important;
}

@media (max-width: 767.98px) {
  .calendar-info-bar {
    display: flex !important;
    min-height: 60px;
    padding: 10px 12px;
  }

  .calendar-info-copy {
    gap: 10px;
  }

  .calendar-info-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .calendar-info-copy strong {
    font-size: 11px;
  }

  .calendar-info-copy > div > span {
    font-size: 9px;
  }
}

/* =========================================================
   Sidebar compacto definitivo
   En estado contraído solo se muestran iconos; ningún texto puede desbordarse.
   ========================================================= */
@media (min-width: 992px) {
  body.sidebar-collapsed {
    --tf-sidebar-width: 78px !important;
  }

  body.sidebar-collapsed .app-sidebar {
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    overflow: hidden !important;
  }

  body.sidebar-collapsed .app-sidebar-logo {
    padding: 0 !important;
    justify-content: center !important;
  }

  body.sidebar-collapsed .brand-link {
    width: 100% !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  body.sidebar-collapsed .brand-name,
  body.sidebar-collapsed .app-sidebar .menu-title,
  body.sidebar-collapsed .app-sidebar .menu-heading,
  body.sidebar-collapsed .app-sidebar .menu-content,
  body.sidebar-collapsed .sidebar-safe-card span {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
  }

  body.sidebar-collapsed .app-sidebar-wrapper {
    padding-left: 9px !important;
    padding-right: 9px !important;
    overflow-x: hidden !important;
  }

  body.sidebar-collapsed .app-sidebar .menu,
  body.sidebar-collapsed .app-sidebar .menu-item {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.sidebar-collapsed .app-sidebar .menu-link {
    width: 52px !important;
    min-width: 52px !important;
    height: 44px !important;
    margin: 4px auto !important;
    padding: 0 !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  body.sidebar-collapsed .app-sidebar .menu-link .menu-icon {
    width: 44px !important;
    min-width: 44px !important;
    flex: 0 0 44px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.sidebar-collapsed .app-sidebar .menu-link .menu-icon i,
  body.sidebar-collapsed .app-sidebar .menu-link .menu-icon svg {
    margin: 0 !important;
  }

  body.sidebar-collapsed .app-sidebar .menu-link.active::after {
    right: 1px !important;
    top: 8px !important;
    bottom: 8px !important;
  }

  body.sidebar-collapsed .sidebar-safe-card {
    width: 52px !important;
    min-width: 52px !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 10px auto !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  body.sidebar-collapsed .sidebar-collapse-control {
    width: 100% !important;
  }
}

/* En móvil el sidebar funciona como drawer completo, nunca como barra cortada. */
@media (max-width: 991.98px) {
  body.sidebar-collapsed {
    --tf-sidebar-width: min(88vw, 300px) !important;
  }

  body.sidebar-collapsed .app-sidebar .menu-title,
  body.sidebar-collapsed .app-sidebar .menu-heading,
  body.sidebar-collapsed .brand-name,
  body.sidebar-collapsed .sidebar-safe-card span {
    display: inline !important;
    visibility: visible !important;
    width: auto !important;
    max-width: none !important;
    opacity: 1 !important;
  }
}

/* Kanban: control para comprimir tareas completadas */
.kanban-completed-toggle {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 1px dashed #cfd8e6;
  border-radius: 10px;
  background: #f8fafc;
  color: #53657d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.kanban-completed-toggle:hover,
.kanban-completed-toggle:focus-visible {
  background: #f1f5f9;
  border-color: #aebdce;
  color: #27364a;
  outline: none;
}

.kanban-completed-toggle-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #e9eef5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 15px;
}

@media (max-width: 767.98px) {
  .kanban-completed-toggle {
    min-height: 40px;
    font-size: 11px;
  }
}

/* Ramsa ProManager — visual identity */
.brand-link{width:100%;min-width:0;overflow:hidden}
.brand-logo-full{display:block;width:168px;max-width:100%;height:auto;object-fit:contain;object-position:left center}
.brand-logo-mini{display:none;width:42px;height:42px;object-fit:contain}
body.sidebar-collapsed .brand-logo-full{display:none!important}
body.sidebar-collapsed .brand-logo-mini{display:block!important;width:42px;height:42px}
body.sidebar-collapsed .brand-link{justify-content:center;width:auto;overflow:visible}

.login-page{font-size:15px;background:#f8fafc}
.login-page .login-visual{position:relative;overflow:hidden;background:linear-gradient(145deg,#173967 0%,#235a9d 56%,#2f7ee8 100%)}
.login-page .login-visual:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 18% 18%,rgba(123,183,255,.44),transparent 31%),radial-gradient(circle at 82% 82%,rgba(0,45,110,.28),transparent 35%);pointer-events:none}
.login-visual-inner{position:relative;z-index:1;width:min(680px,86%);margin:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:64px 32px;color:#fff}
.login-brand-new{display:flex;align-items:center;gap:18px;margin-bottom:54px;color:#fff}
.login-brand-new img{width:78px;height:74px;object-fit:contain;filter:drop-shadow(0 10px 20px rgba(0,0,0,.18))}
.login-brand-new div{display:flex;align-items:baseline;gap:7px;font-size:28px;letter-spacing:-.03em}
.login-brand-new strong{font-weight:800}.login-brand-new span{font-weight:500;color:#dcecff}
.login-copy{text-align:center;max-width:670px}
.login-eyebrow{display:inline-block;margin-bottom:16px;font-size:12px;font-weight:800;letter-spacing:.18em;color:#d9eaff}
.login-copy h1{margin:0 0 18px;color:#fff;font-size:clamp(32px,3.1vw,48px);line-height:1.12;font-weight:800;letter-spacing:-.035em;text-shadow:0 2px 12px rgba(0,0,0,.13)}
.login-copy p{margin:0 auto;color:#e5effc!important;font-size:17px;line-height:1.75;font-weight:450;max-width:610px}
.login-page .login-features{gap:14px}
.login-page .login-features div{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.12);color:#fff;font-size:14px;font-weight:650;padding:13px 17px;box-shadow:0 10px 28px rgba(4,35,76,.12)}
.login-page .login-features i{color:#fff}
.login-form-side{padding:42px 24px;background:#fff;min-height:100vh}
.login-form-wrap{width:min(440px,100%);padding:30px 12px}
.login-form-logo{display:flex;justify-content:center;margin:0 auto 36px}
.login-form-logo img{width:min(280px,88%);height:auto;object-fit:contain}
.login-page .form-label{font-size:14px;color:#243650;margin-bottom:9px}
.login-page .form-control{min-height:52px;border:1px solid #d9e2ef!important;border-radius:10px!important;padding:13px 15px;font-size:15px;color:#14213a;background:#fff!important;box-shadow:0 1px 2px rgba(14,37,70,.02)}
.login-page .form-control:focus{border-color:#4389ec!important;box-shadow:0 0 0 4px rgba(47,128,237,.11)!important}
.login-page .btn-primary{min-height:52px;border-radius:10px;font-size:15px;font-weight:700;box-shadow:0 9px 20px rgba(47,128,237,.22)}
.login-page .text-gray-900{font-size:30px!important;letter-spacing:-.025em}.login-page .text-gray-500{font-size:15px!important;color:#71809a!important}

@media(max-width:991.98px){
 .brand-logo-full{width:150px}
 .login-form-side{min-height:auto;padding:28px 20px 42px}
 .login-visual-inner{padding:46px 24px;width:100%}
 .login-brand-new{margin-bottom:28px}.login-brand-new img{width:62px;height:58px}.login-brand-new div{font-size:24px}
 .login-copy h1{font-size:32px}.login-copy p{font-size:15px;line-height:1.6}
 .login-form-logo{margin-bottom:24px}.login-form-logo img{width:230px}
}
@media(max-width:767.98px){
 .app-sidebar .brand-logo-full{width:165px}
 .login-page .login-visual{min-height:auto}
 .login-copy h1{font-size:28px}.login-eyebrow{font-size:10px}.login-features{display:none!important}
 .login-form-wrap{padding:10px 0}.login-form-logo img{width:215px}
}

/* =========================================================
   Notificaciones de vencimientos
   ========================================================= */
.notification-menu .btn{overflow:visible}
.notification-dot{
  position:absolute;top:-4px;right:-5px;min-width:18px;height:18px;padding:0 5px;
  display:inline-flex;align-items:center;justify-content:center;border-radius:999px;
  background:#f1416c;color:#fff;border:2px solid #fff;font-size:10px;font-weight:700;
  line-height:1;box-shadow:0 3px 8px rgba(241,65,108,.3)
}
.notification-dropdown{
  width:min(390px,calc(100vw - 24px));padding:0;border:0;border-radius:16px;
  overflow:hidden;box-shadow:0 18px 55px rgba(15,23,42,.18)
}
.notification-header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #eef1f6;background:#fff}
.notification-header>div{display:flex;flex-direction:column;gap:3px}
.notification-header strong{font-size:15px;color:#181c32}
.notification-header span:not(.notification-total){font-size:11px;color:#a1a5b7}
.notification-total{min-width:25px;height:25px;padding:0 7px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#fff0f4;color:#f1416c;font-size:11px;font-weight:700}
.notification-list{max-height:430px;overflow-y:auto;background:#fff}
.notification-item{display:flex;gap:12px;padding:14px 18px;border-bottom:1px solid #f1f3f7;text-decoration:none;transition:background .18s ease}
.notification-item:hover{background:#f8faff}
.notification-icon{width:40px;height:40px;flex:0 0 40px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center}
.notification-icon i{font-size:20px}
.notification-icon-task{background:#fff0f4;color:#f1416c}
.notification-icon-project{background:#fff5e8;color:#f59e0b}
.notification-content{min-width:0;display:flex;flex:1;flex-direction:column;gap:2px}
.notification-content>strong{color:#f1416c;font-size:11px;text-transform:uppercase;letter-spacing:.03em}
.notification-name{color:#181c32;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.notification-content small{color:#7e8299;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.notification-content .notification-date{color:#f1416c;font-weight:600;margin-top:2px}
.notification-empty{padding:36px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}
.notification-empty i{font-size:38px;color:#50cd89;margin-bottom:4px}
.notification-empty strong{color:#181c32;font-size:14px}
.notification-empty span{color:#a1a5b7;font-size:12px}
.notification-footer{text-align:center;padding:11px 15px;background:#f8faff;color:#7e8299;font-size:11px;border-top:1px solid #eef1f6}
@media (max-width:575.98px){
  .notification-dropdown{position:fixed!important;top:62px!important;left:12px!important;right:12px!important;width:auto!important;transform:none!important}
  .notification-list{max-height:calc(100vh - 165px)}
}


/* Subtareas jerárquicas */
.nested-subtask {
    margin-left: calc(var(--subtask-level, 0) * 28px);
    position: relative;
}
.nested-subtask-children {
    border-left: 2px solid #e8eef7;
    margin-left: 17px;
    padding-left: 10px;
}
.nested-subtask-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding: 11px 12px;
    border: 1px solid #edf1f7;
    border-radius: 10px;
    background: #fff;
}
.nested-subtask-add {
    margin-left: 42px;
}
@media (max-width: 767.98px) {
    .nested-subtask { margin-left: calc(var(--subtask-level, 0) * 14px); }
    .nested-subtask-row { align-items: flex-start; }
    .nested-subtask-add { margin-left: 18px; }
}

.notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px;align-items:start}
.note-card{min-height:220px;padding:22px;border:1px solid rgba(15,23,42,.1);border-radius:18px;background:var(--note-color,#fff3b0);box-shadow:0 8px 24px rgba(15,23,42,.06);transition:.18s}
.note-card:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(15,23,42,.1)}
.note-card.is-dragging{opacity:.45}.note-card-toolbar{display:flex;justify-content:space-between;margin:-8px -8px 8px}
.note-drag-handle,.note-menu-button{width:36px;height:36px;border:0;border-radius:10px;background:rgba(255,255,255,.55);color:#64748b}
.note-drag-handle{cursor:grab}.note-card h3{margin:6px 0 12px;font-weight:750}.note-card-content{min-height:115px;line-height:1.65;color:#334155;overflow-wrap:anywhere}
.note-card small{display:block;margin-top:14px;padding-top:10px;border-top:1px solid rgba(15,23,42,.08);color:#64748b}
.notes-empty{grid-column:1/-1;text-align:center;padding:55px}.notes-empty>i{font-size:2.5rem;color:#94a3b8}
.note-color-picker{display:flex;flex-wrap:wrap;gap:12px}.note-color-option input{position:absolute;opacity:0}.note-color-option span{display:block;width:38px;height:38px;border-radius:50%;background:var(--swatch);border:2px solid #fff;box-shadow:0 0 0 1px #cbd5e1;cursor:pointer}
.note-color-option input:checked+span{box-shadow:0 0 0 3px #2878ed;transform:scale(1.08)}
@media(max-width:767.98px){.notes-grid{grid-template-columns:1fr}}

.gantt-card{overflow:hidden}.gantt-legend{display:flex;flex-wrap:wrap;gap:14px;color:#64748b;font-size:.78rem}.gantt-legend span{display:inline-flex;align-items:center;gap:6px}.gantt-dot{width:9px;height:9px;display:inline-block;border-radius:50%}
.gantt-scroll{overflow:auto;border-top:1px solid #e7edf5}.gantt-layout{display:grid;grid-template-columns:310px var(--timeline-width);min-width:calc(310px + var(--timeline-width))}
.gantt-sidebar,.gantt-timeline-header,.gantt-row{min-height:72px;border-bottom:1px solid #e7edf5}.gantt-sidebar{position:sticky;left:0;z-index:4;padding:15px 18px;background:#fff;border-right:1px solid #e7edf5}
.gantt-sidebar-header{top:0;z-index:8;min-height:58px;font-weight:700;background:#f8fafc}.gantt-sidebar-subtitle{margin-top:3px;color:#94a3b8;font-size:.72rem;font-weight:500}
.gantt-timeline-header{position:sticky;top:0;z-index:7;display:flex;min-height:58px;background:#f8fafc}.gantt-timeline-header>div{flex:0 0 auto;display:flex;align-items:center;justify-content:center;padding:8px;border-right:1px solid #e7edf5;color:#475569;font-size:.75rem;font-weight:700;white-space:nowrap}
.gantt-task-info{display:flex;flex-direction:column;justify-content:center}.gantt-task-title{color:#0f172a;font-weight:700;text-decoration:none}.gantt-task-title:hover{color:#2878ed}.gantt-task-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:5px;color:#64748b;font-size:.75rem}
.gantt-row{position:relative;display:flex;background:#fff}.gantt-grid-cell{flex:0 0 auto;border-right:1px solid #edf1f7}.gantt-bar{position:absolute;top:20px;height:32px;min-width:16px;overflow:hidden;border-radius:9px;box-shadow:0 5px 12px rgba(15,23,42,.12);color:#fff;text-decoration:none;transition:.15s}
.gantt-bar:hover{z-index:5;transform:translateY(-2px);box-shadow:0 8px 18px rgba(15,23,42,.18)}.gantt-bar strong{position:relative;z-index:2;display:flex;height:100%;align-items:center;padding:0 10px;font-size:.72rem;white-space:nowrap}.gantt-bar-progress{position:absolute;inset:0 auto 0 0;background:rgba(255,255,255,.24);border-right:1px solid rgba(255,255,255,.45)}
.gantt-bar.status-pending,.gantt-dot.status-pending{background:#64748b}.gantt-bar.status-in_progress,.gantt-dot.status-in_progress{background:#2878ed}.gantt-bar.status-urgent,.gantt-dot.status-urgent{background:#d97706}.gantt-bar.status-completed,.gantt-dot.status-completed{background:#16855b}
.gantt-today-line{position:absolute;top:0;bottom:0;z-index:3;width:2px;background:#ef4444;pointer-events:none}.gantt-empty{grid-column:1/-1;padding:70px 24px;text-align:center;color:#64748b}.gantt-empty>i{margin-bottom:16px;color:#94a3b8;font-size:2.5rem}
@media(max-width:767.98px){.gantt-layout{grid-template-columns:235px var(--timeline-width);min-width:calc(235px + var(--timeline-width))}.gantt-sidebar{padding:12px}.gantt-legend{display:none}}

/* =========================================================
   CORRECCIÓN TAMAÑO DE FOTO EN MI PERFIL
   ========================================================= */

.profile-summary-card .card-body {
    display: flex;
    flex-direction: column;
}

.profile-avatar-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px;
    width: 100%;
}

.profile-avatar-preview {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 120px !important;
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;

    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;

    aspect-ratio: 1 / 1;
    overflow: hidden !important;

    border: 4px solid #ffffff;
    border-radius: 50% !important;

    background: #2684ff;
    color: #ffffff;

    font-size: 32px;
    font-weight: 700;

    box-shadow:
        0 0 0 1px #e5eaf2,
        0 10px 25px rgba(37, 99, 235, 0.18);
}

.profile-avatar-preview img,
.profile-summary-card .profile-avatar-preview img {
    position: absolute !important;
    inset: 0 !important;

    display: block;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;

    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 50% !important;

    object-fit: cover !important;
    object-position: center !important;
}

.profile-avatar-preview > span {
    position: relative;
    z-index: 1;
}

.profile-summary-name {
    margin: 0 0 4px;
    text-align: center;
    font-size: 19px;
    font-weight: 700;
}

.profile-summary-role,
.profile-summary-email {
    text-align: center;
}

.profile-summary-card {
    height: auto !important;
}

.profile-summary-card .card-body {
    height: auto !important;
    min-height: 0 !important;
}

/* Evitar que estilos generales agranden la imagen */
.profile-summary-card img {
    max-height: 120px !important;
}

/* Vista móvil */
@media (max-width: 767.98px) {
    .profile-avatar-preview {
        flex-basis: 100px !important;
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;

        height: 100px !important;
        min-height: 100px !important;
        max-height: 100px !important;

        font-size: 27px;
    }

    .profile-summary-card img {
        max-height: 100px !important;
    }
}

@media (max-width: 479.98px) {
    .profile-avatar-preview {
        flex-basis: 88px !important;
        width: 88px !important;
        min-width: 88px !important;
        max-width: 88px !important;

        height: 88px !important;
        min-height: 88px !important;
        max-height: 88px !important;

        font-size: 24px;
    }

    .profile-summary-card img {
        max-height: 88px !important;
    }
}