﻿
    .panel-header {
      background: #fff; border-bottom: 1px solid #e2e6ea;
      display: grid; grid-template-columns: 260px minmax(0, 1fr) 260px; align-items: center;
      padding: 0 24px; height: 60px;
      position: sticky; top: 0; z-index: 100;
      box-shadow: 0 1px 4px rgba(0,0,0,.06);
    }
    .panel-brand { display: flex; flex-direction: column; min-width: 0; }
    .ptitle    { font-size: 22px; line-height: 1.05; font-weight: 750; color: #1a1a2e; }
    .psubtitle { font-size: 13.5px; line-height: 1.2; color: #8a94a6; }
    .panel-nav { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding-bottom: 10px; }
    .panel-nav a {
      display: inline-flex; align-items: center; gap: 7px;
      padding: 7px 15px; border-radius: 6px; font-size: 15px; font-weight: 650;
      color: #5a6478; transition: background .15s,color .15s;
    }
    .panel-nav a:hover  { background: #f0f2f5; color: #1a1a2e; }
    .panel-nav a.active { color: #3b82f6; }
    .panel-nav a.active {
      pointer-events: none;
      cursor: default;
    }
    .panel-nav-indicator {
      position: absolute;
      left: 0;
      bottom: 0;
      height: 3px;
      width: 36px;
      border-radius: 999px;
      background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
      box-shadow: 0 4px 12px rgba(37,99,235,.22);
      transform: translateX(0);
      opacity: 0;
      transition: transform .22s cubic-bezier(.22, 1, .36, 1), width .22s cubic-bezier(.22, 1, .36, 1), opacity .16s ease;
      pointer-events: none;
    }
    .panel-nav-indicator.no-animate { transition: none; }
    .panel-nav.has-indicator .panel-nav-indicator { opacity: 1; }
    .panel-nav.indicator-preview .panel-nav-indicator { opacity: .82; }
    .panel-user { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
    .u-info { text-align: right; }
    .u-name { display: block; font-size: 12px; font-weight: 700; color: #1a1a2e; }
    .u-role { display: block; font-size: 11px; color: #3b82f6; }
    .avatar {
      width: 32px; height: 32px; background: linear-gradient(135deg,#667eea,#764ba2);
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      color: #fff; font-size: 13px; font-weight: 700;
    }
    .ui-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 1em;
      height: 1em;
      flex-shrink: 0;
      color: currentColor;
    }
    .ui-icon svg {
      width: 100%;
      height: 100%;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .panel-nav .ui-icon { font-size: 16px; }
    .icon-btn { width: 30px; height: 30px; border-radius: 6px; background: #f0f2f5; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #9a5b32; cursor: pointer; }

    

    .subnav { background: #fff; border-bottom: 1px solid #e2e6ea; padding: 0 24px; }
    .subnav-inner { position: relative; display: flex; gap: 0; }
    .subnav a {
      display: inline-block; padding: 12px 18px; font-size: 12.5px; font-weight: 600;
      color: #8a94a6; border-bottom: 2px solid transparent; transition: color .15s,border-color .15s;
    }
    .subnav a:hover  { color: #3b82f6; }
    .subnav a.active { color: #3b82f6; border-bottom-color: transparent; }
    .subnav a.active {
      pointer-events: none;
      cursor: default;
    }
    .subnav-indicator {
      position: absolute;
      left: 0;
      bottom: 0;
      height: 2px;
      width: 52px;
      border-radius: 999px;
      background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
      transform: translateX(0);
      opacity: 0;
      transition: transform .2s cubic-bezier(.22, 1, .36, 1), width .2s cubic-bezier(.22, 1, .36, 1), opacity .14s ease;
      pointer-events: none;
    }
    .subnav-indicator.no-animate { transition: none; }
    .subnav-inner.has-subnav-indicator .subnav-indicator { opacity: 1; }
    .subnav-inner.subnav-preview .subnav-indicator { opacity: .8; }

    

    .pmain { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; max-width: 1200px; margin: 0 auto; width: 100%; }
    .card { background: #fff; border: 1px solid #e2e6ea; border-radius: 10px; overflow: hidden; }
    .card:has(.filtros-body),
    .card:has(.filtros-bus-body),
    .card:has(.rep-filtros) {
      overflow: visible;
      position: relative;
      z-index: 20;
    }

    .filtro-group { position: relative; }
    select.native-select-hidden,
    .filtro-group select.native-select-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
      }
    .has-custom-select { overflow: visible !important; }
    .modal.has-custom-select,
    .modal-body:has(.custom-select),
    .modal-field:has(.custom-select),
    .manual-panel.has-custom-select,
    .rep-filtros.has-custom-select,
    .card.has-custom-select {
        overflow: visible !important;
      }
    .custom-select { position: relative; width: 100%; }
    .custom-select-trigger {
      width: 100%;
      min-height: 34px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 7px 10px;
      border: 1px solid #d1d9e0;
      border-radius: 8px;
      background: #fff;
      color: #3a4455;
      font-size: 12px;
      font-family: "Noto Sans", Inter, sans-serif;
      text-align: left;
      cursor: pointer;
      outline: none;
      transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    }
    .custom-select-trigger:hover { background: #fafbfc; }
    .custom-select-trigger:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
    .custom-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .custom-select-chevron { color: #5a6478; font-size: 11px; line-height: 1; transition: transform .16s ease; }
    .custom-select.is-open .custom-select-chevron { transform: rotate(180deg); }
    .custom-select-menu {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      right: 0;
      z-index: 200;
      display: flex;
      flex-direction: column;
      max-height: 220px;
      overflow-y: auto;
      padding: 4px;
      border: 1px solid #dbe3ea;
      border-radius: 10px;
      background: #fff;
      box-shadow: 0 14px 34px rgba(15,23,42,.14);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(-6px) scale(.98);
      transform-origin: top center;
      transition: opacity .14s ease, transform .18s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .18s;
    }
    .custom-select.is-open .custom-select-menu {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0) scale(1);
      transition: opacity .14s ease, transform .18s cubic-bezier(.22, 1, .36, 1), visibility 0s linear 0s;
    }
    .custom-select-option {
      width: 100%;
      padding: 8px 10px;
      border: 0;
      border-radius: 7px;
      background: transparent;
      color: #3a4455;
      font-size: 12px;
      font-family: "Noto Sans", Inter, sans-serif;
      text-align: left;
      cursor: pointer;
      transition: background .12s ease, color .12s ease;
    }
    .custom-select-option:hover { background: #f0f6ff; color: #1d4ed8; }
    .custom-select-option.is-selected { background: #2563eb; color: #fff; }
    .custom-select.is-disabled .custom-select-trigger,
    .custom-select-trigger:disabled {
        cursor: not-allowed;
        opacity: .72;
        color: #8a94a6;
        background: #f3f6fa;
      }

    

    .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.38); z-index: 900; align-items: center; justify-content: center; }
    .modal-overlay.open { display: flex; }
    .modal { background: #fff; border-radius: 12px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.22); animation: modalIn .18s ease; overflow: hidden; }
    .modal-lg { max-width: 500px; }
    .modal-sm { max-width: 360px; }
    @keyframes modalIn { from{opacity:0;transform:scale(.96) translateY(-10px)} to{opacity:1;transform:scale(1) translateY(0)} }
    .modal-header { padding: 16px 20px; border-bottom: 1px solid #f0f2f5; display: flex; align-items: center; justify-content: space-between; }
    .modal-header h3 { font-size: 15px; font-weight: 700; color: #1a1a2e; }
    .modal-header p  { font-size: 12px; color: #8a94a6; margin-top: 3px; }
    .modal-close { width: 24px; height: 24px; border-radius: 50%; background: #f0f2f5; border: none; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; font-family: "Noto Sans", Inter, sans-serif; }
    .modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
    .modal-field label { display: block; font-size: 12px; font-weight: 600; color: #3a4455; margin-bottom: 6px; }
    .modal-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .modal-input { width: 100%; padding: 9px 12px; border: 1px solid #d1d9e0; border-radius: 6px; font-size: 13px; font-family: "Noto Sans", Inter, sans-serif; color: #1a1a2e; outline: none; transition: border-color .15s; background: #fff; }
    .modal-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
    .modal-input-readonly { width: 100%; padding: 9px 12px; border: 1px solid #e2e6ea; border-radius: 6px; font-size: 13px; font-family: "Noto Sans", Inter, sans-serif; color: #8a94a6; background: #fafbfc; }
    .modal-select { width: 100%; padding: 9px 12px; border: 1px solid #d1d9e0; border-radius: 6px; font-size: 13px; font-family: "Noto Sans", Inter, sans-serif; color: #1a1a2e; background: #fff; cursor: pointer; outline: none; }
    .modal-select:focus { border-color: #3b82f6; }
    .modal-textarea { width: 100%; padding: 9px 12px; border: 1px solid #d1d9e0; border-radius: 6px; font-size: 13px; font-family: "Noto Sans", Inter, sans-serif; color: #1a1a2e; outline: none; resize: vertical; min-height: 80px; transition: border-color .15s; }
    .modal-textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
    .modal-check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #3a4455; cursor: pointer; margin-top: 4px; }
    .modal-check-row input { width: 15px; height: 15px; accent-color: #3b82f6; cursor: pointer; }
    .modal-footer { padding: 14px 20px; border-top: 1px solid #f0f2f5; display: flex; gap: 10px; justify-content: flex-end; }
    .btn-modal-cancel { padding: 8px 20px; border-radius: 6px; border: 1px solid #d1d9e0; background: #f0f2f5; font-size: 13px; font-weight: 500; font-family: "Noto Sans", Inter, sans-serif; color: #5a6478; cursor: pointer; transition: background .15s; }
    .btn-modal-cancel:hover { background: #e2e6ea; }
    .btn-modal-submit { padding: 8px 20px; border-radius: 6px; border: none; background: #3b82f6; font-size: 13px; font-weight: 600; font-family: "Noto Sans", Inter, sans-serif; color: #fff; cursor: pointer; transition: background .15s; }
    .btn-modal-submit:hover { background: #2563eb; }
    .btn-modal-submit.green { background: #22c55e; }
    .btn-modal-submit.green:hover { background: #16a34a; }

    .user-menu-wrap { position: relative; }
    .avatar-btn {
      border: none; background: none; padding: 0; cursor: pointer;
      border-radius: 50%; line-height: 0;
      transition: transform .12s ease, filter .12s ease;
    }
    .avatar-btn:active { transform: scale(.94); }
    .avatar-btn .avatar { transition: box-shadow .14s ease, transform .14s ease; }
    .avatar-btn:hover .avatar { box-shadow: 0 8px 18px rgba(102,126,234,.22); }
    .avatar-btn.avatar-clicked { animation: avatarTap .24s ease-out; }
    .avatar-btn.avatar-clicked .avatar { box-shadow: 0 0 0 4px rgba(59,130,246,.14), 0 10px 22px rgba(102,126,234,.24); }
    @keyframes avatarTap {
      0% { transform: scale(1); }
      45% { transform: scale(.9); }
      100% { transform: scale(1); }
    }
    .user-dropdown {
      position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
      min-width: 240px; background: #fff; border: 1px solid #e2e6ea; border-radius: 10px;
      box-shadow: 0 12px 40px rgba(0,0,0,.12); overflow: hidden;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(-8px) scale(.98);
      transform-origin: top right;
      transition:
        opacity .16s ease,
        transform .18s cubic-bezier(.22, 1, .36, 1),
        visibility 0s linear .18s;
      }
    .user-dropdown.open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0) scale(1);
      transition:
        opacity .16s ease,
        transform .18s cubic-bezier(.22, 1, .36, 1),
        visibility 0s linear 0s;
    }
    .ud-profile {
      padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px;
      border-bottom: 1px solid #f0f2f5; background: #fafbfc;
    }
    .ud-avatar-lg {
      width: 48px; height: 48px; border-radius: 50%;
      background: linear-gradient(135deg,#667eea,#764ba2); color: #fff;
      display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
    }
    .ud-profile .ud-name { font-size: 14px; font-weight: 700; color: #1a1a2e; }
    .ud-profile .ud-email { font-size: 11px; color: #8a94a6; }
    .ud-menu { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
    .ud-item {
      display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
      padding: 10px 12px; border: none; border-radius: 8px; background: transparent;
      font-size: 13px; font-family: "Noto Sans", Inter, sans-serif; color: #3a4455; cursor: pointer;
      transition: background .12s;
    }
    .ud-item:hover { background: #f0f2f5; }
    .ud-item.danger { color: #dc2626; }
    .ud-item.danger:hover { background: #fef2f2; }
    .ud-divider { height: 1px; background: #f0f2f5; margin: 4px 0; }
    .ud-icon { font-size: 15px; color: currentColor; }

    .tag { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
    .tag-e { background: #d1fae5; color: #065f46; }
    .tag-s { background: #fee2e2; color: #991b1b; }

    .rol-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
    .rol-instructor { background: #dbeafe; color: #1e40af; }
    .rol-aprendiz { background: #d1fae5; color: #065f46; }
    .rol-servicios { background: #fef3c7; color: #92400e; }


    
