/* NINA onboarding wizard, profile/company steps and mobile fixes.
 * Extracted from assets/css/frontend-v2.css lines 9401-11242.
 */
    border:1px solid rgba(0,51,102,.08)!important;
    background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(249,252,255,.85))!important;
    box-shadow:0 8px 18px rgba(0,51,102,.035)!important;
    text-decoration:none!important;
    color:inherit!important;
    transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease!important;
}
.imecapi-finalist-action-card:hover{
    transform:translateY(-1px)!important;
    border-color:rgba(0,131,255,.2)!important;
    box-shadow:0 12px 22px rgba(0,51,102,.05)!important;
}
.imecapi-finalist-action-card i{
    width:16px!important;
    height:16px!important;
    color:#0b72df!important;
}
.imecapi-finalist-action-card i svg{
    width:16px!important;
    height:16px!important;
    display:block!important;
}
.imecapi-finalist-action-card strong{
    display:block!important;
    color:#17345d!important;
    font-size:11px!important;
    line-height:1.24!important;
    font-weight:800!important;
}
.imecapi-finalist-action-card span{
    display:block!important;
    margin-top:2px!important;
    color:#71839b!important;
    font-size:9px!important;
    line-height:1.35!important;
}
.imecapi-finalist-action-card.is-disabled{
    opacity:.72!important;
    cursor:default!important;
}
.imecapi-finalist-action-card.is-button{
    width:100%!important;
    text-align:left!important;
}
@media (max-width:1320px){
    .imecapi-finalist-card{
        min-width:244px!important;
        flex:0 0 min(270px,calc(50vw - 52px))!important;
    }
    .imecapi-finalist-card-grid{
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
    }
    .imecapi-finalist-detail-grid{
        grid-template-columns:minmax(190px,.84fr) minmax(0,1.14fr)!important;
    }
    .imecapi-finalist-detail-right{
        grid-column:1 / -1!important;
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        padding-left:0!important;
        border-left:none!important;
        border-top:1px solid rgba(0,51,102,.08)!important;
        padding-top:12px!important;
    }
}
@media (max-width:980px){
    .imecapi-finalists-head{
        flex-direction:column!important;
        align-items:stretch!important;
    }
    .imecapi-finalists-head-meta{
        justify-items:start!important;
    }
    .imecapi-finalist-detail-grid{
        grid-template-columns:1fr!important;
    }
    .imecapi-finalist-detail-left,
    .imecapi-finalist-detail-right{
        border:none!important;
        padding:0!important;
    }
    .imecapi-finalist-detail-right{
        grid-template-columns:1fr!important;
    }
}
@media (max-width:720px){
    .imecapi-finalists-module{
        gap:10px!important;
    }
    .imecapi-finalists-head-copy strong{
        font-size:15px!important;
    }
    .imecapi-finalist-card{
        min-width:218px!important;
        padding:10px!important;
    }
    .imecapi-finalist-card-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    .imecapi-finalist-detail{
        padding:14px!important;
        border-radius:18px!important;
    }
    .imecapi-finalist-detail-identity{
        grid-template-columns:48px minmax(0,1fr)!important;
    }
    .imecapi-finalist-detail-avatar{
        width:48px!important;
        height:48px!important;
        font-size:18px!important;
    }
    .imecapi-finalist-detail-identity strong{
        font-size:16px!important;
    }
    .imecapi-finalist-tabs{
        overflow:auto!important;
        flex-wrap:nowrap!important;
        scrollbar-width:none!important;
    }
    .imecapi-finalist-tabs::-webkit-scrollbar{
        display:none!important;
    }
    .imecapi-finalist-tabs button{
        white-space:nowrap!important;
    }
}



/* --- NUEVA TERNA UNIFICADA --- */
.imecapi-unified-finalists-module {
    background: #fff;
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    margin-bottom: 24px;
    font-family: inherit;
}
.imecapi-unified-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.imecapi-unified-head-copy span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0083ff;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}
.imecapi-unified-head-copy h2 {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 800;
    color: #1a202c;
}
.imecapi-unified-head-copy p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}
.imecapi-unified-count-pill {
    background: #f1f5f9;
    color: #0083ff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}
.imecapi-unified-carousel-wrap {
    position: relative;
    margin: 0 -8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.imecapi-unified-carousel-track {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    justify-items: center;
    perspective: 1200px;
    width: 100%;
    padding: 16px 0;
}
.imecapi-unified-carousel-track::-webkit-scrollbar {
    display: none;
}
.imecapi-unified-card {
    grid-area: 1 / 1;
    width: 300px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease, box-shadow 0.6s ease, filter 0.6s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}
.imecapi-unified-card.is-active {
    transform: translateZ(0) scale(1);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    cursor: default;
    border-color: #0083ff;
    box-shadow: 0 20px 50px rgba(0,131,255,0.18), 0 0 0 4px rgba(0,131,255,0.06);
}

.imecapi-unified-card:hover:not(.is-active) {
    opacity: 1;
}

/* Pills y Label */
.imecapi-unified-avatar-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.imecapi-unified-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
}
.imecapi-unified-pills span {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}
.imecapi-pill-positive { background: #dcfce7; color: #166534; }
.imecapi-pill-success { background: #dbeafe; color: #1e40af; }
.imecapi-pill-warning { background: #fef3c7; color: #92400e; }
.imecapi-pill-info { background: #e0f2fe; color: #075985; }
.imecapi-pill-neutral { background: #f1f5f9; color: #475569; }
.imecapi-unified-card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 16px;
}
.imecapi-unified-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #10b981;
}
.imecapi-unified-card:nth-child(2n) .imecapi-unified-avatar {
    color: #0083ff;
}
.imecapi-unified-card:nth-child(3n) .imecapi-unified-avatar {
    color: #f59e0b;
}
.imecapi-unified-avatar span {
    display: none;
}
.imecapi-unified-avatar strong {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}
.imecapi-unified-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
}
.imecapi-unified-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
}
.imecapi-unified-card-grid > div {
    display: grid;
    grid-template-columns: 24px 1fr 1fr;
    align-items: center;
    gap: 8px;
}
.imecapi-unified-card-grid > div i {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0083ff;
}
.imecapi-unified-card-grid > div i svg {
    width: 18px;
    height: 18px;
}
.imecapi-unified-card-grid > div span {
    font-size: 12px;
    color: #64748b;
}
.imecapi-unified-card-grid > div b {
    font-size: 12px;
    font-weight: 600;
    color: #1a202c;
    text-align: right;
}
.imecapi-unified-card-comments {
    margin-top: auto;
    margin-bottom: 16px;
}
.imecapi-unified-card-comments span {
    font-size: 11px;
    font-weight: 700;
    color: #0083ff;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}
.imecapi-unified-comments-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    min-height: 60px;
}
.imecapi-unified-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.imecapi-unified-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0083ff;
    border: 1px solid #0083ff;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.imecapi-unified-btn.is-outline {
    background: #fff;
    color: #0083ff;
}
.imecapi-unified-btn:hover {
    background: #006bce;
    border-color: #006bce;
    color: #fff;
}
.imecapi-unified-btn.is-outline:hover {
    background: #f0f7ff;
    color: #0083ff;
    border-color: #0083ff;
}
.imecapi-unified-btn i svg {
    width: 16px;
    height: 16px;
}
.imecapi-unified-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    z-index: 10;
    flex-shrink: 0;
    margin: 0 8px;
    transition: all 0.2s;
}
.imecapi-unified-arrow:hover:not(:disabled) {
    color: #0083ff;
    border-color: #0083ff;
    transform: scale(1.05);
}
.imecapi-unified-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}
.imecapi-unified-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.imecapi-unified-carousel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: background 0.2s;
}
.imecapi-unified-carousel-dots span.is-active {
    background: #0083ff;
}
.imecapi-unified-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 0 0;
    font-size: 12px;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .imecapi-unified-finalists-module {
        padding: 24px 16px;
    }
    .imecapi-unified-head {
        flex-direction: column;
    }
    .imecapi-unified-head-meta {
        margin-top: 12px;
    }
    .imecapi-unified-card {
        flex: 0 0 300px;
    }
    .imecapi-unified-arrow {
        display: none;
    }
    .imecapi-unified-carousel-track {
        padding-left: 16px;
        padding-right: 16px;
    }
    .imecapi-unified-carousel-wrap {
        margin: 0 -16px;
    }
}


/* v0.9.49 PDCA Diagnostic Block */
.imecapi-pdca-diagnostic-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.imecapi-pdca-diagnostic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.imecapi-pdca-diagnostic-header h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.imecapi-pdca-diagnostic-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.imecapi-pdca-diagnostic-meta {
    display: flex;
    gap: 16px;
}

.imecapi-pdca-diagnostic-meta span {
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.imecapi-pdca-diagnostic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.imecapi-pdca-col h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.imecapi-pdca-desc article {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.imecapi-pdca-desc article h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #334155;
    font-weight: 600;
}

.imecapi-pdca-desc article p {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.imecapi-pdca-chart {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.imecapi-pdca-chart-bar {
    margin-bottom: 12px;
}

.imecapi-pdca-chart-bar:last-child {
    margin-bottom: 0;
}

.imecapi-pdca-chart-bar .bar-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #334155;
    margin-bottom: 4px;
}

.imecapi-pdca-chart-bar .bar-label {
    font-weight: 500;
}

.imecapi-pdca-chart-bar .bar-value {
    font-weight: 700;
}

.imecapi-pdca-chart-bar .bar-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.imecapi-pdca-chart-bar .bar-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 4px;
}

.imecapi-pdca-chart-bar:nth-child(1) .bar-fill { background: #ef4444; }
.imecapi-pdca-chart-bar:nth-child(2) .bar-fill { background: #f59e0b; }
.imecapi-pdca-chart-bar:nth-child(3) .bar-fill { background: #3b82f6; }

.imecapi-pdca-conclusion {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    padding: 16px;
    border-radius: 8px;
}

.imecapi-pdca-conclusion h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #be123c;
    font-weight: 600;
}

.imecapi-pdca-conclusion p {
    margin: 0;
    font-size: 14px;
    color: #9f1239;
    line-height: 1.5;
}

.imecapi-pdca-action-group {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.imecapi-pdca-action-group h4 {
    margin: 0;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
}

.imecapi-pdca-action-group h4.pdca-plan { color: #3b82f6; border-left: 3px solid #3b82f6; }
.imecapi-pdca-action-group h4.pdca-do { color: #f59e0b; border-left: 3px solid #f59e0b; }
.imecapi-pdca-action-group h4.pdca-check { color: #10b981; border-left: 3px solid #10b981; }
.imecapi-pdca-action-group h4.pdca-act { color: #8b5cf6; border-left: 3px solid #8b5cf6; }

.imecapi-pdca-action-group h4 span {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
}

.imecapi-pdca-action-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.imecapi-pdca-action-group li {
    padding: 10px 16px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 24px;
}

.imecapi-pdca-action-group li::before {
    content: "\2022";
    position: absolute;
    left: 12px;
    color: #cbd5e1;
}

.imecapi-pdca-action-group li:last-child {
    border-bottom: none;
}

.imecapi-pdca-action-group li.empty {
    color: #94a3b8;
    font-style: italic;
}

.imecapi-pdca-action-group li.empty::before {
    display: none;
}

@media (max-width: 992px) {
    .imecapi-pdca-diagnostic-grid {
        grid-template-columns: 1fr;
    }
}

/* Kanban Board Styling (overriding workboard) */
.imecapi-workboard-clean {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.imecapi-workboard-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.imecapi-workboard-head span {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.imecapi-workboard-head h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #1e293b;
}

.imecapi-workboard-head p {
    margin: 0;
    color: #475569;
    font-size: 14px;
}

.imecapi-workboard-head b {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.imecapi-workboard-head b.tone-success { background: #dcfce7; color: #166534; }
.imecapi-workboard-head b.tone-warning { background: #fef9c3; color: #854d0e; }
.imecapi-workboard-head b.tone-danger { background: #fee2e2; color: #991b1b; }
.imecapi-workboard-head b.tone-neutral { background: #f1f5f9; color: #475569; }

.imecapi-workboard-kpis {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.imecapi-workboard-kpis article {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px;
    flex: 1;
}

.imecapi-workboard-kpis span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.imecapi-workboard-kpis strong {
    display: block;
    font-size: 18px;
    color: #1e293b;
}

.imecapi-workboard-lanes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.imecapi-workboard-lane {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 12px;
}

.imecapi-workboard-lane header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.imecapi-workboard-lane header strong {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.imecapi-workboard-lane header span {
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.imecapi-workboard-lane.tone-plan header strong { color: #0284c7; }
.imecapi-workboard-lane.tone-plan header span { background: #e0f2fe; color: #0369a1; }
.imecapi-workboard-lane.tone-plan { border-top: 3px solid #38bdf8; }

.imecapi-workboard-lane.tone-progress header strong { color: #ca8a04; }
.imecapi-workboard-lane.tone-progress header span { background: #fef3c7; color: #b45309; }
.imecapi-workboard-lane.tone-progress { border-top: 3px solid #facc15; }

.imecapi-workboard-lane.tone-review header strong { color: #16a34a; }
.imecapi-workboard-lane.tone-review header span { background: #dcfce7; color: #15803d; }
.imecapi-workboard-lane.tone-review { border-top: 3px solid #4ade80; }

.imecapi-workboard-cards {
    display: grid;
    gap: 10px;
}

.imecapi-workboard-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.imecapi-workboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.imecapi-workboard-card strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
}

.imecapi-workboard-card span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.imecapi-workboard-card p {
    margin: 0;
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .imecapi-workboard-lanes {
        grid-template-columns: 1fr;
    }
}

/* v0.9.60 Imecapi Clone Redesign */
.imecapi-k-board {
    background: #f4f5f7;
    border-radius: 12px;
    padding: 8px 20px 20px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px); /* Fill screen */
    min-height: 600px;
}

.imecapi-header-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.imecapi-toolbar-left, .imecapi-toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.imecapi-subtitle {
    margin: 0;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.imecapi-filters {
    display: flex;
    gap: 12px;
}

.imecapi-filters select, .imecapi-filter-btn, .imecapi-export-btn, .imecapi-view-toggles button {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.imecapi-view-toggles {
    display: flex;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}

.imecapi-view-toggles button {
    border: none;
    border-radius: 0;
    border-right: 1px solid #cbd5e1;
}
.imecapi-view-toggles button:last-child {
    border-right: none;
}
.imecapi-view-toggles button.active {
    background: #e2e8f0;
    color: #0f172a;
}

.imecapi-k-board-main-area {
    display: flex;
    flex: 1;
    overflow: hidden;
    gap: 16px;
}

/* Sidebar Bandeja de Entrada (Inbox) */
.imecapi-inbox-sidebar {
    background: #46335a; /* Purple dark theme from screenshot */
    border-radius: 12px;
    width: 260px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    color: #fff;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.3s;
    overflow: hidden;
}

.imecapi-inbox-sidebar.collapsed {
    width: 48px;
    min-width: 48px;
    cursor: pointer;
}

.imecapi-inbox-sidebar.collapsed:hover {
    background: #5a4273;
}

.imecapi-inbox-sidebar .sidebar-header {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: transform 0.3s;
}

.sidebar-toggle-btn:hover {
    background: rgba(255,255,255,0.1);
}

.imecapi-inbox-sidebar.collapsed .sidebar-toggle-btn {
    transform: rotate(180deg);
}

.sidebar-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s;
}

.imecapi-inbox-sidebar.collapsed .sidebar-title {
    opacity: 0;
    pointer-events: none;
}

.sidebar-title .badge {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto;
    opacity: 1;
    transition: opacity 0.2s;
}

.imecapi-inbox-sidebar.collapsed .sidebar-content {
    opacity: 0;
    pointer-events: none;
    padding: 0;
}

.inbox-cards {
    flex: 1;
}

.inbox-cards .imecapi-k-card {
    background: #2a1f36; /* Darker card in sidebar */
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
}

.inbox-cards .imecapi-k-card-header strong {
    color: inherit;
}

.inbox-cards .imecapi-k-card-subtitle {
    color: #94a3b8;
}

.inbox-cards .imecapi-k-add-card-btn {
    color: #eab308;
}

.imecapi-k-board-title {
    margin: 0;
    font-size: 20px;
    color: #1e293b;
    font-weight: 700;
}

.imecapi-k-board-views {
    display: flex;
    gap: 8px;
    align-items: center;
}

.imecapi-k-board-views button {
    background: transparent;
    border: none;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.imecapi-k-board-views button:hover {
    background: #e2e8f0;
}

.imecapi-k-board-views button.active {
    background: #0f172a;
    color: #fff;
}

.imecapi-view-more {
    font-size: 12px !important;
}

/* Horizontal Scroll Container */
.imecapi-k-lanes-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 12px 12px 24px 12px;
    flex: 1;
    align-items: flex-start;
}

/* Custom Scrollbar for lanes */
.imecapi-k-lanes-container::-webkit-scrollbar {
    height: 10px;
}
.imecapi-k-lanes-container::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 5px;
}
.imecapi-k-lanes-container::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 5px;
}

.imecapi-k-lane {
    min-width: 270px;
    width: 270px;
    background: #f4f5f7;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    max-height: 100%;
    transition: width 0.3s ease, min-width 0.3s ease;
}

.imecapi-k-lane-header {
    padding: 16px;
    border-radius: 12px 12px 0 0;
    background-color: #0083ff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.imecapi-k-lane.collapsed {
    min-width: 60px;
    width: 60px;
    overflow: hidden;
}

.imecapi-k-lane.collapsed .imecapi-k-cards-container,
.imecapi-k-lane.collapsed .imecapi-k-add-card-btn,
.imecapi-k-lane.collapsed .lane-progress-text,
.imecapi-k-lane.collapsed .lane-count-badge {
    display: none;
}

.imecapi-k-lane.collapsed .lane-title-row {
    flex-direction: column-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.imecapi-k-lane.collapsed .editable-col-name {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    margin-top: 16px;
    white-space: nowrap;
}

.lane-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.lane-title-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: column; /* Cambiado a columna para cuando está colapsado no se rompa */
}
.imecapi-k-lane:not(.collapsed) .lane-title-right {
    flex-direction: row; /* En modo normal es fila */
}

/* Blur Background Class */
.board-blurred .imecapi-k-board-main-area {
    filter: blur(5px);
    pointer-events: none;
    transition: filter 0.3s ease;
}
.imecapi-k-col-menu-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 4px;
}

.imecapi-k-col-menu-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.editable-col-name {
    font-size: 15px;
    color: inherit;
    outline: none;
}

.editable-col-name:focus {
    background: #fff;
    padding: 2px 4px;
    border-radius: 4px;
    box-shadow: 0 0 0 2px #3b82f6;
}

.lane-count-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.lane-progress-text {
    font-size: 12px;
    color: inherit;
    opacity: 0.8;
}

.imecapi-k-cards-container {
    padding: 12px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 50px;
}

.imecapi-k-cards-container.drag-over {
    background: #f1f5f9;
    border-radius: 8px;
}

.imecapi-k-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.imecapi-k-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

.imecapi-k-card.note-card {
    background: #fef08a !important;
    border-radius: 2px 12px 2px 12px;
    box-shadow: 3px 4px 8px rgba(0,0,0,0.15);
    border: none;
}
.imecapi-k-card.note-card strong, .imecapi-k-card.note-card .imecapi-k-card-subtitle {
    color: #451a03 !important;
}

.imecapi-k-card.is-dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.imecapi-k-lane.is-dragging {
    opacity: 0.5;
    transform: rotate(1deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.custom-range {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.custom-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 2px;
}
.custom-range:focus {
    outline: none;
}
.custom-range::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 2px;
}
.custom-range::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.imecapi-k-card-cover {
    height: 100px;
    background-size: cover;
    background-position: center;
}

.imecapi-k-card-header {
    padding: 12px 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.imecapi-k-card-header strong {
    font-size: 14px;
    color: inherit;
    line-height: 1.3;
}

.imecapi-k-card-menu-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-weight: bold;
}

.imecapi-k-card-menu-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.imecapi-k-card-subtitle {
    display: block;
    padding: 0 12px;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.imecapi-k-card-date {
    display: inline-block;
    margin: 8px 12px 0;
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.imecapi-k-card-footer {
    padding: 12px;
}

.imecapi-k-card-progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 12px;
    position: relative;
}

.imecapi-k-card-progress-bar .fill {
    height: 100%;
    border-radius: 2px;
}

.imecapi-k-card-progress-bar .pct {
    position: absolute;
    right: 0;
    top: -16px;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
}

.imecapi-k-card-avatars {
    display: flex;
    margin-top: 8px;
}

.imecapi-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    margin-left: -6px;
}
.imecapi-avatar:first-child {
    margin-left: 0;
}

.imecapi-k-add-card-btn {
    background: transparent;
    border: none;
    padding: 12px;
    color: #0083ff;
    font-size: 14px;
    font-weight: 600;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.imecapi-k-add-card-btn:hover {
    background: rgba(0, 131, 255, 0.1);
    color: #0083ff;
    border-radius: 0 0 10px 10px;
}

.imecapi-k-add-lane-wrapper {
    min-width: 50px;
    display: flex;
    align-items: flex-start;
}

.imecapi-k-add-lane-btn {
    background: #ef4444;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4) !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.imecapi-k-add-lane-btn:hover {
    background-color: #dc2626 !important;
    border-radius: 50% !important;
    outline: none !important;
}

.imecapi-k-add-lane-btn::before, .imecapi-k-add-lane-btn::after {
    display: none !important;
}

/* Modal Imecapi Clone (Dark Theme) */
.imecapi-k-modal {
    border: none;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: #ffffff;
    color: #1e293b;
}

.imecapi-k-modal::backdrop {
    background: rgba(0, 0, 0, 0.75);
}

.imecapi-k-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.imecapi-k-modal-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-left {
    display: flex;
    gap: 12px;
    flex: 1;
}

.header-left svg {
    color: #9fadbc;
    margin-top: 4px;
}

#imecapi-k-modal-title {
    background: transparent;
    border: none;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
    width: 100%;
    outline: none;
    margin-bottom: 4px;
}

#imecapi-k-modal-title:focus {
    background: #f8fafc;
    box-shadow: inset 0 0 0 2px #85b8ff;
    border-radius: 4px;
}

.in-list {
    font-size: 14px;
    color: #9fadbc;
}
.in-list a {
    color: #9fadbc;
    text-decoration: underline;
}

.header-right {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #475569;
    cursor: pointer;
    border-radius: 4px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: #f1f5f9;
}

.imecapi-k-modal-body {
    display: flex;
    padding: 0 24px 24px;
    gap: 24px;
    overflow-y: auto;
}

.imecapi-k-modal-main {
    flex: 1;
}

.imecapi-action-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.imecapi-action-buttons button, .imecapi-btn-secondary {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.imecapi-action-buttons button:hover, .imecapi-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.imecapi-section {
    margin-bottom: 32px;
}

.imecapi-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.imecapi-section-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 16px;
    color: #1e293b;
}

.imecapi-description-content textarea {
    width: 100%;
    min-height: 100px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 12px;
    color: #1e293b;
    font-family: inherit;
    resize: vertical;
}

.imecapi-checklist-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #9fadbc;
}

.imecapi-checklist-progress .bar {
    flex: 1;
    height: 8px;
    background: #2c333a;
    border-radius: 4px;
}

.imecapi-checklist-progress .fill {
    height: 100%;
    background: #579dff;
    border-radius: 4px;
    transition: width 0.3s;
}

.imecapi-k-modal-sidebar {
    width: 200px;
}

.sidebar-module h4 {
    font-size: 12px;
    color: #9fadbc;
    margin-top: 0;
    margin-bottom: 8px;
}

.sidebar-btn {
    width: 100%;
    text-align: left;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sidebar-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.sidebar-btn.text-red {
    color: #f87171;
}

.imecapi-k-modal-comments {
    padding: 0 24px 24px;
}

.comment-input-area {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.comment-input-area textarea {
    flex: 1;
    background: #22272b;
    border: 1px solid #738496;
    border-radius: 4px;
    padding: 12px;
    color: #b6c2cf;
    min-height: 40px;
    resize: none;
}

.comment-input-area textarea:focus {
    background: #2c333a;
    border-color: #85b8ff;
    outline: none;
}

.activity-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.activity-content {
    font-size: 14px;
    color: #b6c2cf;
}

.activity-time {
    display: block;
    font-size: 12px;
    color: #9fadbc;
    margin-top: 4px;
}
ction-btn {
    padding: 2px 6px;
    font-size: 10px;
}

/* Modal Inputs Styling */
.imecapi-k-modal input[type="text"],
.imecapi-k-modal input[type="number"],
.imecapi-k-modal select,
.imecapi-k-modal textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 12px;
    color: #1e293b;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    margin-top: 6px;
}

.imecapi-k-modal input[type="text"]:focus,
.imecapi-k-modal textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.imecapi-k-modal input[type="text"]:focus,
.imecapi-k-modal input[type="number"]:focus,
.imecapi-k-modal select:focus {
    border-color: #85b8ff;
    box-shadow: 0 0 0 2px rgba(133, 184, 255, 0.2);
}

.imecapi-k-modal label {
    font-size: 13px;
    color: #9fadbc;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    margin-top: 16px;
}

.imecapi-k-modal input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 100%;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    margin-top: 6px;
}
.imecapi-k-modal input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.imecapi-k-modal input[type="color"]::-webkit-color-swatch {
    border: 1px solid #738496;
    border-radius: 6px;
}

.imecapi-k-modal input[type="range"] {
    width: 100%;
    margin-top: 12px;
    accent-color: #579dff;
}

.imecapi-k-modal input[type="file"] {
    color: #1e293b;
    font-size: 14px;
    margin-top: 8px;
}

/* HISTORIAL DE AVANCE - PORTAL DE CLIENTES
   ==========================================================================
   Fecha: 2026-06-12 (22:34)
   Autor: Antigravity
   
   Avances Realizados:
   - Se ajustó el viewport móvil ocultando el bloque ".imecapi-portal-welcome" para dar inicio directamente con el header.
   - El Header en móviles se comprimió a una sola línea alineando: menú, logo, avatar del representante y el botón de notificaciones.
   - Se corrigieron los problemas de visualización del menú de "Editar Perfil" en móviles ajustando el posicionamiento, el z-index de los contenedores padres y eliminando la regla 'overflow:hidden' del topbar.
   - Se homologó el backdrop-filter (blur de 22px) y la opacidad de fondo (88% blanca) en los dropdowns de móviles para que luzcan premium e idénticos a la versión de escritorio.
   ========================================================================== */


/* Override spacing and borders for all special blocks */
.imecapi-phase-visual-block, .imecapi-exec-block, .imecapi-simple-special-block, .imecapi-phase-file-block, .imecapi-interviews-block, .imecapi-selected-candidate-block, .imecapi-terna-simple-block, .imecapi-generic-special-block, .imecapi-phase-metrics-block { padding-top: 1% !important; padding-bottom: 1% !important; border: none !important; }

/* Premium Header Description Toggle */
.ipph-description p { margin: 0 !important; color: #51657f !important; font-size: 14px !important; line-height: 1.55 !important; }
.ipph-description.is-collapsed p { display: -webkit-box !important; -webkit-box-orient: vertical !important; -webkit-line-clamp: 2 !important; overflow: hidden !important; }
.ipph-description-toggle { background: transparent !important; border: none !important; color: #0083ff !important; font-size: 13px !important; font-weight: 700 !important; cursor: pointer !important; padding: 0 !important; margin-top: 6px !important; text-decoration: underline !important; }
.ipph-description-toggle:hover { color: #0056b3 !important; }
/* v0.9.90 UI Refinements */
.imecapi-phase-workspace { gap: 10px; }
.imecapi-phase-chip-wrapper { flex: 1 0 185px; min-width: 175px; }
.imecapi-phase-chip { padding: 10px 10px 10px 18px; grid-template-columns: 22px 1fr; row-gap: 2px; }
.imecapi-phase-chip span { width: 22px; height: 22px; font-size: 11px !important; }
.imecapi-phase-chip strong { font-size: 12.5px; }
.imecapi-phase-chip em { font-size: 10px; gap: 3px; }
.imecapi-process-premium-header { margin-bottom: 12px; }

/* NINA - empty modules state */
