/* ============================================================
   EMPUJÓN MANAGER — CSS COMPLETO v2
   Reemplaza app.css + app-fase2.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---- Variables ---- */
:root {
  --em-sidebar-bg:     #0F172A;
  --em-sidebar-w:      256px;
  --em-sidebar-text:   #94A3B8;
  --em-sidebar-hover:  rgba(255,255,255,0.06);
  --em-sidebar-active-bg: rgba(59,130,246,0.15);
  --em-sidebar-active: #60A5FA;
  --em-sidebar-label:  #3B4F6B;
  --em-sidebar-border: rgba(255,255,255,0.06);

  --em-bg:             #F1F5F9;
  --em-surface:        #FFFFFF;
  --em-border:         #E2E8F0;
  --em-border-light:   #F1F5F9;

  --em-text:           #0F172A;
  --em-text-muted:     #64748B;
  --em-text-light:     #94A3B8;

  --em-blue:           #3B82F6;
  --em-blue-dark:      #2563EB;
  --em-blue-light:     #EFF6FF;
  --em-blue-mid:       #DBEAFE;
  --em-green:          #10B981;
  --em-green-light:    #ECFDF5;
  --em-red:            #EF4444;
  --em-red-light:      #FEF2F2;
  --em-orange:         #F59E0B;
  --em-orange-light:   #FFFBEB;
  --em-purple:         #8B5CF6;
  --em-purple-light:   #F5F3FF;
  --em-yellow-light:   #FEFCE8;

  --em-radius:         12px;
  --em-radius-sm:      8px;
  --em-radius-xs:      5px;
  --em-shadow-sm:      0 1px 2px rgba(0,0,0,.05);
  --em-shadow:         0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --em-shadow-md:      0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);

  --em-topbar-h:       64px;
  --em-font:           'Inter', system-ui, -apple-system, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: var(--em-font);
  background: var(--em-bg);
  color: var(--em-text);
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.em-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--em-sidebar-w);
  background: var(--em-sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  scrollbar-width: none;
  border-right: 1px solid rgba(255,255,255,.04);
}
.em-sidebar::-webkit-scrollbar { display: none; }

.em-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 18px 18px;
  border-bottom: 1px solid var(--em-sidebar-border);
}
.em-logo-icon { font-size: 24px; filter: drop-shadow(0 0 8px rgba(250,204,21,.4)); }
.em-logo-text {
  font-size: 17px;
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: -.4px;
}

.em-sidebar-nav { flex: 1; padding: 10px 10px; }

.em-nav-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--em-sidebar-label);
  padding: 14px 8px 5px;
}

.em-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--em-radius-xs);
  color: var(--em-sidebar-text);
  font-size: 13.5px;
  font-weight: 500;
  transition: all .15s;
  margin-bottom: 1px;
  position: relative;
}
.em-nav-link i {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  opacity: .8;
}
.em-nav-link:hover {
  background: var(--em-sidebar-hover);
  color: #E2E8F0;
}
.em-nav-link.active {
  background: var(--em-sidebar-active-bg);
  color: var(--em-sidebar-active);
}
.em-nav-link.active i { opacity: 1; }
.em-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--em-sidebar-active);
  border-radius: 0 3px 3px 0;
}

.em-sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--em-sidebar-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.em-user-info { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.em-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--em-blue), #6366F1);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(99,102,241,.3);
}
.em-user-name {
  font-size: 13px; font-weight: 500;
  color: #CBD5E1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.em-logout-btn {
  background: none; border: none;
  color: var(--em-sidebar-text);
  cursor: pointer; padding: 6px 7px;
  border-radius: var(--em-radius-xs);
  font-size: 15px;
  transition: all .15s;
}
.em-logout-btn:hover { color: var(--em-red); background: rgba(239,68,68,.1); }
.em-sidebar-toggle {
  background: none; border: none;
  color: var(--em-sidebar-text);
  cursor: pointer; font-size: 18px; padding: 2px 4px;
}
.em-sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
  backdrop-filter: blur(2px);
}

/* ============================================================
   TOPBAR + MAIN
   ============================================================ */
.em-main {
  margin-left: var(--em-sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.em-topbar {
  position: sticky; top: 0;
  height: var(--em-topbar-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--em-border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  z-index: 100;
}
.em-menu-toggle {
  background: none; border: none;
  font-size: 20px; cursor: pointer;
  color: var(--em-text-muted); padding: 4px;
}
.em-topbar-title {
  font-size: 15px; font-weight: 600;
  color: var(--em-text); flex: 1;
}
.em-topbar-actions { display: flex; align-items: center; gap: 10px; }

.em-search-wrap { position: relative; }
.em-search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--em-text-light); font-size: 13px;
}
.em-search-input {
  background: var(--em-bg);
  border: 1px solid var(--em-border);
  border-radius: 8px;
  padding: 7px 14px 7px 32px;
  font-size: 13px;
  width: 260px;
  color: var(--em-text);
  outline: none;
  font-family: var(--em-font);
  transition: all .2s;
}
.em-search-input:focus {
  border-color: var(--em-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
  width: 300px;
  background: #fff;
}

/* ============================================================
   CONTENT
   ============================================================ */
.em-content { padding: 28px; flex: 1; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.em-flash {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
}
.em-flash i { font-size: 16px; }
.em-flash-success {
  background: linear-gradient(90deg, #ECFDF5, #F0FDF4);
  color: #065F46;
  border-bottom: 1px solid #A7F3D0;
}
.em-flash-error {
  background: linear-gradient(90deg, #FEF2F2, #FFF5F5);
  color: #991B1B;
  border-bottom: 1px solid #FECACA;
}
.em-flash-close {
  background: none; border: none; cursor: pointer;
  margin-left: auto; opacity: .5; font-size: 14px; color: inherit;
}
.em-flash-close:hover { opacity: 1; }

/* ============================================================
   CARDS
   ============================================================ */
.em-card {
  background: var(--em-surface);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  padding: 22px;
  box-shadow: var(--em-shadow);
}
.em-card.p-0 { padding: 0; overflow: hidden; }
.em-card-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.em-card-title {
  font-size: 14px; font-weight: 600;
  color: var(--em-text); margin: 0;
  display: flex; align-items: center; gap: 7px;
}
.em-card-title i { color: var(--em-text-muted); font-size: 15px; }
.em-card-action {
  font-size: 12px; color: var(--em-blue); font-weight: 500;
}
.em-card-action:hover { text-decoration: underline; }

/* ============================================================
   DASHBOARD STATS
   ============================================================ */
.em-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.em-stat-card {
  background: var(--em-surface);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--em-shadow);
  transition: box-shadow .2s, transform .2s;
}
.em-stat-card:hover {
  box-shadow: var(--em-shadow-md);
  transform: translateY(-1px);
}
.em-stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.em-stat-blue   .em-stat-icon { background: var(--em-blue-light);   color: var(--em-blue); }
.em-stat-green  .em-stat-icon { background: var(--em-green-light);  color: var(--em-green); }
.em-stat-red    .em-stat-icon { background: var(--em-red-light);    color: var(--em-red); }
.em-stat-orange .em-stat-icon { background: var(--em-orange-light); color: var(--em-orange); }
.em-stat-purple .em-stat-icon { background: var(--em-purple-light); color: var(--em-purple); }
.em-stat-value { font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -.5px; }
.em-stat-label { font-size: 12.5px; color: var(--em-text-muted); margin-top: 2px; font-weight: 500; }
.em-stat-sub   { font-size: 11px; color: var(--em-text-light); margin-top: 3px; }
.em-text-danger { color: var(--em-red) !important; }

/* ============================================================
   PRODUCTIVIDAD PANEL
   ============================================================ */
.em-productivity-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 10px;
}
.em-prod-item {
  text-align: center; padding: 16px 8px;
  border-radius: var(--em-radius-sm);
  text-decoration: none;
  transition: all .15s;
  border: 1px solid transparent;
}
.em-prod-item:hover { transform: translateY(-2px); box-shadow: var(--em-shadow-md); }
.em-prod-value { font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -.5px; }
.em-prod-label { font-size: 11px; margin-top: 5px; font-weight: 600; text-transform: uppercase; letter-spacing:.04em; }
.em-prod-red    { background: var(--em-red-light);    color: var(--em-red);    border-color: #FCA5A5; }
.em-prod-orange { background: var(--em-orange-light); color: var(--em-orange); border-color: #FCD34D; }
.em-prod-blue   { background: var(--em-blue-light);   color: var(--em-blue);   border-color: #BFDBFE; }
.em-prod-green  { background: var(--em-green-light);  color: var(--em-green);  border-color: #A7F3D0; }
.em-quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   COBROS PANEL
   ============================================================ */
.em-alert-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  border-radius: var(--em-radius-sm);
  font-size: 13px; font-weight: 500;
}
.em-alert-danger { background: var(--em-red-light); color: #991B1B; border: 1px solid #FECACA; }
.em-payment-list { display: flex; flex-direction: column; gap: 6px; }
.em-payment-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px;
  background: var(--em-bg);
  border-radius: var(--em-radius-sm);
  border: 1px solid var(--em-border-light);
  transition: background .15s;
}
.em-payment-item:hover { background: #F8FAFC; }
.em-payment-badge {
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 99px;
  white-space: nowrap; flex-shrink: 0;
}
.em-badge-danger  { background: var(--em-red-light);    color: #991B1B; }
.em-badge-warning { background: var(--em-orange-light); color: #78350F; }
.em-payment-info { flex: 1; min-width: 0; }
.em-payment-client { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-payment-service { font-size: 12px; color: var(--em-text-muted); margin-top: 1px; }
.em-payment-amount { font-size: 15px; font-weight: 700; color: var(--em-green); flex-shrink: 0; }

/* ============================================================
   ACTIVIDAD
   ============================================================ */
.em-activity-list { display: flex; flex-direction: column; }
.em-activity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--em-border-light);
}
.em-activity-item:last-child { border-bottom: none; }
.em-activity-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--em-blue);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.em-activity-body { flex: 1; font-size: 13px; }
.em-activity-action { font-weight: 600; }
.em-activity-desc { color: var(--em-text-muted); }
.em-activity-time { font-size: 11.5px; color: var(--em-text-light); flex-shrink: 0; }

/* ============================================================
   PÁGINA HEADERS
   ============================================================ */
.em-page-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.em-page-title {
  font-size: 22px; font-weight: 700;
  color: var(--em-text); margin: 0 0 2px;
  letter-spacing: -.4px;
}
.em-page-sub { font-size: 13px; color: var(--em-text-muted); margin: 0; }
.em-back-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--em-text-muted);
  margin-bottom: 5px; font-weight: 500;
  transition: color .15s;
}
.em-back-link:hover { color: var(--em-blue); }

/* ============================================================
   TABLAS
   ============================================================ */
.em-table-wrap { overflow-x: auto; }
.em-table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
}
.em-table thead th {
  background: #F8FAFC;
  padding: 11px 18px;
  text-align: left;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--em-text-muted);
  border-bottom: 1px solid var(--em-border);
  white-space: nowrap;
}
.em-table thead th:first-child { border-radius: var(--em-radius) 0 0 0; }
.em-table thead th:last-child  { border-radius: 0 var(--em-radius) 0 0; }
.em-table tbody tr {
  border-bottom: 1px solid var(--em-border-light);
  transition: background .1s;
}
.em-table tbody tr:last-child { border-bottom: none; }
.em-table tbody tr:hover { background: #F8FBFF; }
.em-table tbody td { padding: 13px 18px; vertical-align: middle; }
.em-row-overdue { background: #FFF8F8 !important; }
.em-table-name {
  font-weight: 600; color: var(--em-text);
  transition: color .15s;
}
.em-table-name:hover { color: var(--em-blue); }
.em-table-sub { font-size: 12px; color: var(--em-text-muted); margin-top: 2px; }

/* ---- Botones de acción en tablas ---- */
.em-row-actions { display: flex; align-items: center; gap: 2px; }
.em-action-btn {
  background: none; border: none;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px;
  color: var(--em-text-muted);
  cursor: pointer; font-size: 14px;
  text-decoration: none;
  transition: all .15s;
}
.em-action-btn:hover { background: var(--em-blue-light); color: var(--em-blue); }
.em-action-danger:hover { background: var(--em-red-light) !important; color: var(--em-red) !important; }

/* ============================================================
   BADGES
   ============================================================ */
.em-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.em-badge-green  { background: #DCFCE7;  color: #15803D; }
.em-badge-blue   { background: var(--em-blue-mid); color: #1D4ED8; }
.em-badge-red    { background: #FEE2E2;  color: #B91C1C; }
.em-badge-orange { background: #FEF3C7;  color: #92400E; }
.em-badge-yellow { background: var(--em-yellow-light); color: #78350F; }
.em-badge-purple { background: #EDE9FE;  color: #6D28D9; }
.em-badge-gray   { background: #F1F5F9;  color: #475569; }

/* ============================================================
   FILTROS
   ============================================================ */
.em-filter-bar {
  display: flex; align-items: center;
  gap: 8px; flex-wrap: wrap;
}
.em-select {
  padding: 8px 12px;
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-sm);
  font-size: 13.5px;
  color: var(--em-text);
  background: var(--em-surface);
  outline: none; cursor: pointer;
  font-family: var(--em-font);
  transition: border-color .15s;
}
.em-select:focus { border-color: var(--em-blue); }

/* ============================================================
   FORMULARIOS
   ============================================================ */
.em-form-group { margin-bottom: 18px; }
.em-label {
  display: block; font-size: 13px;
  font-weight: 600; margin-bottom: 6px; color: var(--em-text);
}
.em-label small { font-weight: 400; color: var(--em-text-muted); }
.em-input-wrap { position: relative; }
.em-input-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--em-text-light); font-size: 14px; pointer-events: none;
}
.em-input {
  width: 100%; padding: 10px 12px 10px 36px;
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-sm);
  font-size: 14px; color: var(--em-text);
  background: var(--em-surface); outline: none;
  font-family: var(--em-font);
  transition: all .15s;
}
.em-input:focus {
  border-color: var(--em-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.em-input::placeholder { color: var(--em-text-light); }
.em-input-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: var(--em-text-muted); cursor: pointer; font-size: 14px; padding: 2px;
}
.em-textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius-sm);
  font-size: 14px; color: var(--em-text);
  background: var(--em-surface); outline: none;
  resize: vertical; font-family: var(--em-font);
  transition: all .15s; line-height: 1.5;
}
.em-textarea:focus {
  border-color: var(--em-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.em-required { color: var(--em-red); margin-left: 2px; }
.em-form-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--em-border);
}

/* ============================================================
   BOTONES
   ============================================================ */
.em-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  border-radius: var(--em-radius-sm);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  transition: all .15s; line-height: 1;
  font-family: var(--em-font);
  white-space: nowrap;
}
.em-btn:hover { transform: translateY(-1px); box-shadow: var(--em-shadow-md); }
.em-btn:active { transform: translateY(0); }
.em-btn-primary {
  background: var(--em-blue); color: #fff;
  border-color: var(--em-blue-dark);
  box-shadow: 0 1px 2px rgba(37,99,235,.3);
}
.em-btn-primary:hover { background: var(--em-blue-dark); }
.em-btn-outline {
  background: var(--em-surface);
  border-color: var(--em-border);
  color: var(--em-text);
}
.em-btn-outline:hover { background: var(--em-bg); border-color: #CBD5E1; }
.em-btn-danger { background: var(--em-red); color: #fff; border-color: #DC2626; }
.em-btn-danger:hover { background: #DC2626; }
.em-btn-full { width: 100%; justify-content: center; }
.em-btn-sm { padding: 6px 13px; font-size: 12.5px; }

/* ============================================================
   INFO LIST (ficha detalle)
   ============================================================ */
.em-info-list {
  display: grid; grid-template-columns: auto 1fr;
  gap: 8px 14px; margin: 0;
}
.em-info-list dt {
  font-size: 11px; font-weight: 700;
  color: var(--em-text-muted);
  text-transform: uppercase; letter-spacing: .06em;
  align-self: center; white-space: nowrap;
}
.em-info-list dd { font-size: 13.5px; color: var(--em-text); margin: 0; }
.em-info-list a { color: var(--em-blue); }
.em-info-list a:hover { text-decoration: underline; }
.em-info-notes {
  background: var(--em-bg);
  border-radius: var(--em-radius-sm);
  padding: 11px 13px;
  font-size: 13px; color: var(--em-text-muted);
  margin-top: 14px; line-height: 1.6;
  border: 1px solid var(--em-border-light);
}

/* ============================================================
   ITEM LIST (listas dentro de cards)
   ============================================================ */
.em-item-list { display: flex; flex-direction: column; }
.em-item-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--em-border-light);
}
.em-item-row:last-child { border-bottom: none; }
.em-item-info { flex: 1; min-width: 0; }
.em-item-title {
  font-size: 13.5px; font-weight: 500;
  color: var(--em-text); display: block; transition: color .15s;
}
.em-item-title:hover { color: var(--em-blue); }
.em-item-sub { font-size: 12px; color: var(--em-text-muted); margin-top: 2px; }

/* ============================================================
   NOTAS
   ============================================================ */
.em-notes-list { display: flex; flex-direction: column; gap: 8px; }
.em-note-item {
  background: var(--em-bg);
  border-radius: var(--em-radius-sm);
  padding: 11px 13px;
  border-left: 3px solid var(--em-blue);
}
.em-note-item p {
  font-size: 13px; color: var(--em-text);
  margin: 0 0 7px; line-height: 1.5;
}
.em-note-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--em-text-light);
}
.em-note-del {
  background: none; border: none; cursor: pointer;
  color: var(--em-text-light); font-size: 12px; padding: 0;
  transition: color .15s;
}
.em-note-del:hover { color: var(--em-red); }

/* ============================================================
   CHECKLIST
   ============================================================ */
.em-checklist { display: flex; flex-direction: column; gap: 5px; }
.em-checklist-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--em-radius-sm);
  background: var(--em-bg);
  border: 1px solid transparent;
  transition: all .15s;
}
.em-checklist-item:hover { background: var(--em-blue-light); border-color: var(--em-blue-mid); }
.em-item-done { background: var(--em-green-light) !important; border-color: #A7F3D0 !important; }
.em-check-btn {
  background: none; border: none; cursor: pointer;
  font-size: 19px; padding: 0; flex-shrink: 0;
  color: var(--em-text-muted); transition: color .15s;
  line-height: 1;
}
.em-item-done .em-check-btn { color: var(--em-green); }
.em-check-text { flex: 1; font-size: 13.5px; color: var(--em-text); }

/* ============================================================
   BARRA DE PROGRESO
   ============================================================ */
.em-progress-wrap { display: flex; align-items: center; gap: 12px; }
.em-progress {
  flex: 1; height: 8px;
  background: var(--em-border);
  border-radius: 99px; overflow: hidden;
}
.em-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--em-blue), #6366F1);
  border-radius: 99px; transition: width .4s cubic-bezier(.4,0,.2,1);
}
.em-progress-pct { font-size: 12.5px; font-weight: 700; color: var(--em-text-muted); white-space: nowrap; }

/* ============================================================
   ESTADO VACÍO
   ============================================================ */
.em-empty-state {
  text-align: center; padding: 40px 20px;
  color: var(--em-text-muted);
}
.em-empty-icon {
  font-size: 36px; display: block;
  margin-bottom: 10px; opacity: .3;
}
.em-empty-state p { font-size: 14px; color: var(--em-text-muted); }

/* ============================================================
   LINKS UTILES
   ============================================================ */
.em-link-muted { color: var(--em-text-muted); font-size: 13px; transition: color .15s; }
.em-link-muted:hover { color: var(--em-blue); }
.em-text-muted { color: var(--em-text-muted); font-size: 13px; }
.em-text-danger { color: var(--em-red) !important; }
.fw-600 { font-weight: 600; }

/* ============================================================
   AUTH — LOGIN
   ============================================================ */
.em-auth-body {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
}
.em-auth-wrap { width: 100%; max-width: 420px; padding: 24px; }
.em-auth-card {
  background: var(--em-surface);
  border-radius: 16px; padding: 40px 36px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.05);
}
.em-auth-brand { text-align: center; margin-bottom: 32px; }
.em-auth-logo { font-size: 42px; display: block; filter: drop-shadow(0 0 12px rgba(250,204,21,.5)); }
.em-auth-title { font-size: 22px; font-weight: 700; margin: 12px 0 4px; letter-spacing: -.4px; }
.em-auth-subtitle { font-size: 13px; color: var(--em-text-muted); margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .em-sidebar { transform: translateX(-100%); }
  .em-sidebar.open { transform: translateX(0); }
  .em-sidebar-overlay.open { display: block; }
  .em-main { margin-left: 0; }
  .em-stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 575.98px) {
  .em-content { padding: 16px; }
  .em-productivity-grid { grid-template-columns: repeat(2,1fr); }
  .em-stats-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .em-auth-card { padding: 28px 20px; }
}
