  html { overscroll-behavior-y: contain; }
  * { box-sizing: border-box; }
  body { font-family: Arial, sans-serif; margin: 0; background: #f7f9fc; color: #1a2340; overscroll-behavior-y: contain; }

  .ant-app-navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
    background: #1a2340; height: 48px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  }
  .ant-app-navbar-titulo {
    font-family: Arial, sans-serif; font-size: 16px; font-weight: 900;
    color: #fff; letter-spacing: 1px; display: flex; align-items: center; gap: 8px;
  }
  .ant-app-navbar-salir {
    font-family: Arial, sans-serif; font-size: 13px; font-weight: 700;
    color: #fff; text-decoration: none; padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.3); border-radius: 6px;
    transition: background .2s;
  }
  .ant-app-navbar-salir:hover { background: rgba(255,255,255,0.12); }

  .ant-secciones-nav {
    position: fixed; top: 48px; left: 0; right: 0; z-index: 9998;
    background: #f4f6fb; border-bottom: 1px solid #dde3ec;
    display: flex; gap: 4px; padding: 6px 12px; overflow-x: auto;
    scrollbar-width: thin; scrollbar-color: #b8c2d4 transparent;
  }
  .ant-secciones-nav::-webkit-scrollbar { height: 4px; }
  .ant-secciones-nav::-webkit-scrollbar-thumb { background: #b8c2d4; border-radius: 4px; }
  .ant-secciones-nav::-webkit-scrollbar-track { background: transparent; }
  .tramy-seccion-tab {
    font-family: Arial, sans-serif; font-size: 12.5px; font-weight: 700;
    color: #5b6472; text-decoration: none; padding: 7px 14px;
    border-radius: 7px; white-space: nowrap; transition: background .15s, color .15s;
  }
  .tramy-seccion-tab:hover { background: #e4e9f4; }
  .tramy-seccion-tab.activa { background: #1a2340; color: #fff; }

  .ant-wrap { max-width: 760px; margin: 0 auto; padding: 86px 8px 40px 8px; }

  .ant-card { background: #fff; border: 1px solid #dde3ec; border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
  .ant-card h2 { font-size: 16px; margin: 0 0 4px 0; }
  .ant-card p.hint { font-size: 12.5px; color: #888; margin: 0 0 14px 0; }

  label { display: block; font-size: 12.5px; font-weight: 700; margin: 10px 0 4px 0; color: #333; }
  input[type=text] {
    width: 100%; padding: 9px 10px; border: 1.5px solid #DAD3C2; border-radius: 8px;
    font-size: 14px; box-sizing: border-box;
  }

  .ant-btn {
    display: inline-block; width: 100%; margin-top: 16px; padding: 11px; border-radius: 8px;
    border: none; background: #1a2340; color: #fff; font-size: 14.5px; font-weight: 700;
    cursor: pointer; text-align: center;
  }
  .ant-btn:disabled { opacity: 0.6; cursor: default; }
  .ant-btn-verde { background: #1a6e3c; }
  .ant-btn-morado { background: #7a4fc7; }

  .ant-alert { padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-top: 10px; }
  .ant-alert.error { background: #fdecec; color: #a33; }

  .ant-loading { display: flex; align-items: center; gap: 12px; padding: 14px 0; color: #555; font-size: 13.5px; }
  .ant-spinner-ring {
    width: 26px; height: 26px; flex-shrink: 0;
    background-image: url('/tramy-logo-navbar.png');
    background-size: contain; background-repeat: no-repeat; background-position: center;
    animation: ant-pulso 1.1s ease-in-out infinite;
  }
  @keyframes ant-pulso {
    0%, 100% { transform: scale(0.85); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
  }

  .loading-box { max-width: 480px; margin: 100px auto; text-align: center; color: #888; }
  .ant-bloque-titulo {
    font-size: 15px; font-weight: 900; color: #fff;
    background: #1a2340; border-radius: 7px;
    padding: 11px 16px; margin-bottom: 16px;
    display: flex; align-items: center; justify-content: space-between;
    text-transform: uppercase; letter-spacing: 0.5px;
  }
  .ant-bloque-titulo-texto { flex: 1; text-align: center; }
  .ant-bloque-titulo-chevron { font-size: 14px; min-width: 20px; text-align: right; }
  .ant-bloque-titulo-left { min-width: 20px; }
  .ant-no-depto { background: #fff3cd; border: 1px solid #ffc107; border-radius: 7px; padding: 10px 14px; color: #856404; font-size: 13px; font-weight: 600; }
  .ant-result { margin-top: 12px; }
  .ant-alert  { padding: 12px 16px; border-radius: 7px; font-size: 14px; margin-bottom: 10px; }
  .ant-alert.error   { background: #fff0f0; border: 1px solid #f5c6c6; color: #c0392b; }
  .ant-alert.success { background: #f0fff6; border: 1px solid #b2e4c8; color: #1a6e3c; }
  .ant-alert.warning { background: #fffaf0; border: 1px solid #f5dba0; color: #7a4a00; }
  .ant-info { display: flex; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
  .ant-info-item label { font-size: 11px; color: #888; display: block; margin-bottom: 2px; }
  .ant-info-item span  { font-size: 13px; font-weight: 600; color: #1a2340; }
  .ant-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .ant-table th { background: #f4f6fb; color: #555; font-weight: 600; padding: 8px 10px; text-align: left; border-bottom: 2px solid #dde3ec; }
  .ant-table td { padding: 8px 10px; border-bottom: 1px solid #eef0f5; color: #333; }
  .ant-table tr:last-child td { border-bottom: none; }
  .ant-total-bar { display: flex; justify-content: space-between; align-items: center; background: #2a7fd8; color: #fff; border-radius: 7px; padding: 12px 16px; margin-top: 12px; }
  .ant-total-bar span:first-child { font-size: 13px; opacity: .85; }
  .ant-total-bar span:last-child  { font-size: 20px; font-weight: 700; }
  .ant-extra { display: flex; justify-content: space-between; padding: 8px 14px; background: #f4f6fb; border-radius: 6px; margin-top: 6px; font-size: 13px; color: #444; }
  .ant-loading { display: flex; align-items: center; gap: 12px; padding: 18px 0; color: #555; font-size: 14px; }
  .ant-spinner-ring {
    width: 28px; height: 28px; flex-shrink: 0;
    background-image: url('/tramy-logo-navbar.png');
    background-size: contain; background-repeat: no-repeat; background-position: center;
    animation: ant-pulso 1.1s ease-in-out infinite;
  }
  @keyframes ant-pulso {
    0%, 100% { transform: scale(0.85); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
  }
  .ant-warning { background: #fff3cd; border: 1px solid #ffc107; border-radius: 7px; padding: 10px 14px; color: #856404; font-size: 13px; margin-top: 10px; }
  .ant-progreso-wrap { padding: 14px; background: #f8fafc; border-radius: 8px; border: 1px solid #dde3ec; }
  .ant-progreso-msg { font-size: 14px; color: #1a2340; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
  .ant-progreso-barra-bg { background: #e0e7ef; border-radius: 10px; height: 10px; overflow: hidden; }
  .ant-progreso-barra { background: linear-gradient(90deg, #1a5fa8, #25a06e); height: 10px; border-radius: 10px; width: 5%; transition: width 0.8s ease; }
.tramy-tab-panel { display:block; }
