/* ARTESANÍAS EMILY V5.2 — COPILOTO EMPRESARIAL + PRIORIZACIÓN INTELIGENTE */
.copilotNavItem{position:relative}.copilotNavItem span{filter:drop-shadow(0 0 7px rgba(212,175,55,.25))}
.copilotHeading{align-items:flex-end}.copilotPeriodBox{display:flex;align-items:flex-end;gap:10px}.copilotPeriodBox label{font-size:12px;color:#84909c}.copilotPeriodBox input{display:block;margin-top:5px}
.copilotExecutive{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.copilotMetric{background:linear-gradient(145deg,#111a23,#0c131a);border:1px solid rgba(212,175,55,.16);border-radius:16px;padding:16px;box-shadow:0 14px 35px rgba(0,0,0,.12)}
.copilotMetric small{display:block;color:#8795a2;text-transform:uppercase;font-size:10px;letter-spacing:.08em}.copilotMetric strong{display:block;font-size:26px;margin:7px 0 3px;color:#f4f7fa}.copilotMetric span{font-size:12px;color:#aeb9c3}
.copilotShell{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px;align-items:stretch}.copilotMain,.copilotSide{background:linear-gradient(150deg,#111a23,#0b1218);border:1px solid rgba(255,255,255,.07);border-radius:18px;overflow:hidden}
.copilotTopbar{padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.06);display:flex;justify-content:space-between;gap:12px}.copilotTopbar h3{margin:0}.copilotTopbar p{margin:4px 0 0;color:#8795a2;font-size:12px}.copilotStatus{font-size:11px;color:#75d6a1;white-space:nowrap}
.copilotMessages{height:440px;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:12px;background:radial-gradient(circle at 10% 0%,rgba(212,175,55,.055),transparent 32%)}
.copilotMessage{display:flex}.copilotMessage.user{justify-content:flex-end}.copilotBubble{max-width:82%;padding:12px 14px;border-radius:15px;background:#17222d;border:1px solid rgba(255,255,255,.06);color:#eaf0f5;white-space:pre-wrap;line-height:1.45;font-size:14px}.copilotMessage.user .copilotBubble{background:linear-gradient(135deg,#b9942e,#d3b04d);color:#151515;border-color:transparent}.copilotDetails{margin:10px 0 0;padding-left:18px;white-space:normal}.copilotDetails li{margin:4px 0}.copilotAction{margin-top:10px}
.copilotComposer{padding:14px;border-top:1px solid rgba(255,255,255,.06);display:flex;gap:10px;align-items:stretch}
.copilotComposer textarea{display:block;flex:1 1 auto;width:auto;min-width:0;min-height:58px;max-height:140px;padding:12px 14px;resize:vertical;box-sizing:border-box;background:#080d14;color:#f8fafc;border:1px solid #334155;border-radius:11px;outline:none;font:inherit;line-height:1.4}
.copilotComposer textarea::placeholder{color:#64748b}
.copilotComposer textarea:focus{border-color:#34d399;box-shadow:0 0 0 3px rgba(52,211,153,.10)}
.copilotComposer button{width:auto!important;min-width:110px;margin-top:0!important;flex:0 0 auto}
.copilotSide{padding:16px}.copilotSide h3{margin:0 0 5px}.copilotSide>p{color:#8795a2;font-size:12px;margin:0 0 14px}.copilotQuick{display:flex;flex-direction:column;gap:8px}.copilotQuick button{text-align:left;background:#121d26;border:1px solid rgba(255,255,255,.07);color:#dfe7ed;border-radius:12px;padding:11px 12px;cursor:pointer;font-size:12px}.copilotQuick button:hover{border-color:rgba(212,175,55,.35);background:#17232d}.copilotHint{margin-top:16px;padding:12px;border-radius:12px;background:rgba(212,175,55,.07);color:#b6c0c8;font-size:11px;line-height:1.45}.copilotLoading,.copilotError{grid-column:1/-1;padding:18px;color:#94a2ad}.copilotError{color:#f2a0a0}
@media(max-width:980px){.copilotExecutive{grid-template-columns:repeat(2,1fr)}.copilotShell{grid-template-columns:1fr}.copilotSide{order:-1}.copilotQuick{display:grid;grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.copilotExecutive{grid-template-columns:1fr 1fr}.copilotMetric{padding:12px}.copilotMetric strong{font-size:20px}.copilotMessages{height:380px}.copilotBubble{max-width:92%}.copilotComposer{flex-direction:column}.copilotComposer textarea{width:100%;min-width:100%}.copilotComposer button{width:100%!important;margin-top:0!important}.copilotQuick{grid-template-columns:1fr}.copilotPeriodBox{width:100%;flex-wrap:wrap}}

/* V5.0.1 - permisos parciales aplicados al atraso */
.attendanceJustified {
  display: inline-block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  color: #0f766e;
  white-space: normal;
}


/* =========================================================
   V5.1 — BANDEJA DE ACCIONES INTELIGENTES
   ========================================================= */
.copilotActionCenter{margin:0 0 16px;background:linear-gradient(145deg,#101922,#0a1117);border:1px solid rgba(255,255,255,.07);border-radius:18px;overflow:hidden;box-shadow:0 16px 40px rgba(0,0,0,.13)}
.copilotActionCenterHead{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:17px 18px;border-bottom:1px solid rgba(255,255,255,.06)}
.copilotActionCenterHead h3{margin:2px 0 3px}.copilotActionCenterHead p{margin:0;color:#8795a2;font-size:12px;max-width:780px;line-height:1.45}
.copilotActionCenterTools{display:flex;align-items:center;gap:9px;flex:0 0 auto}.copilotActionCenterTools button{width:auto!important;margin:0!important}
.copilotActionCount{display:inline-flex;align-items:center;min-height:32px;padding:0 11px;border-radius:999px;background:rgba(212,175,55,.09);border:1px solid rgba(212,175,55,.18);color:#e2c66c;font-size:11px;font-weight:800;white-space:nowrap}
.copilotActions{padding:13px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.copilotSmartAction{position:relative;display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 13px 13px 0;background:#111b24;border:1px solid rgba(255,255,255,.065);border-radius:14px;overflow:hidden}
.copilotSmartAction:hover{border-color:rgba(212,175,55,.23)}
.copilotSmartBar{align-self:stretch;border-radius:0 8px 8px 0;background:#64748b}.copilotSmartAction.urgente .copilotSmartBar{background:#ef4444}.copilotSmartAction.atencion .copilotSmartBar{background:#f59e0b}.copilotSmartAction.info .copilotSmartBar{background:#3b82f6}
.copilotSmartBody{min-width:0}.copilotSmartMeta{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-bottom:4px}.copilotSmartLevel,.copilotSmartModule{font-size:9px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.copilotSmartLevel{color:#b7c4cf}.copilotSmartAction.urgente .copilotSmartLevel{color:#fca5a5}.copilotSmartAction.atencion .copilotSmartLevel{color:#fcd34d}.copilotSmartAction.info .copilotSmartLevel{color:#93c5fd}.copilotSmartModule{color:#73818e}
.copilotSmartBody strong{display:block;color:#edf3f7;font-size:13px;line-height:1.3}.copilotSmartBody p{margin:4px 0 0;color:#93a0ab;font-size:11px;line-height:1.4}.copilotSmartSubject{margin-top:6px!important;color:#bac5ce!important}
.copilotSmartButtons{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.copilotSmartButtons button{width:auto!important;min-width:82px;margin:0!important;padding:8px 10px!important;font-size:11px!important;white-space:nowrap}
.copilotSmartButtons .copilotSafeAction{background:transparent!important;border:1px solid rgba(255,255,255,.13)!important;color:#dbe5ec!important}.copilotSmartButtons .copilotSafeAction:hover{border-color:rgba(212,175,55,.35)!important}
.copilotActionsEmpty{grid-column:1/-1;text-align:center;padding:22px 16px;border:1px dashed rgba(117,214,161,.23);border-radius:14px;background:rgba(117,214,161,.035)}.copilotActionsEmpty strong{display:block;color:#9ee5bc;margin-bottom:4px}.copilotActionsEmpty span{font-size:12px;color:#82919e}
@media(max-width:980px){.copilotActions{grid-template-columns:1fr}.copilotActionCenterHead{align-items:flex-start}.copilotActionCenterTools{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:650px){.copilotActionCenterHead{flex-direction:column}.copilotActionCenterTools{width:100%;justify-content:space-between}.copilotSmartAction{grid-template-columns:7px minmax(0,1fr)}.copilotSmartButtons{grid-column:2;justify-content:flex-start}.copilotSmartButtons button{flex:1 1 auto}.copilotActionCount{max-width:55%;overflow:hidden;text-overflow:ellipsis}}


/* =========================================================
   V5.2 — PRIORIDADES: CRÍTICA / IMPORTANTE / INFORMATIVA
   ========================================================= */
.copilotPriorityFilters{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:10px 13px 0}
.copilotPriorityFilter{width:auto!important;margin:0!important;padding:7px 10px!important;border-radius:999px!important;background:#0d151d!important;border:1px solid rgba(255,255,255,.09)!important;color:#9eacb8!important;font-size:10px!important;font-weight:800!important;cursor:pointer}
.copilotPriorityFilter span{display:inline-flex;min-width:18px;height:18px;padding:0 5px;align-items:center;justify-content:center;margin-left:4px;border-radius:999px;background:rgba(255,255,255,.07);color:#dbe5ec}
.copilotPriorityFilter:hover{border-color:rgba(212,175,55,.3)!important;color:#e7eef3!important}
.copilotPriorityFilter.active{background:rgba(212,175,55,.11)!important;border-color:rgba(212,175,55,.34)!important;color:#e6c95f!important}
.copilotSmartAction.urgente{border-color:rgba(239,68,68,.18)}
.copilotSmartAction.atencion{border-color:rgba(245,158,11,.15)}
.copilotSmartAction.info{opacity:.86}
@media(max-width:650px){.copilotPriorityFilters{overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.copilotPriorityFilter{flex:0 0 auto}}
