
.error-boundary[data-v-e6fbc202] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 2rem;
}
.error-boundary-card[data-v-e6fbc202] {
  max-width: 640px;
  width: 100%;
  text-align: center;
  background: var(--p-content-background, #fff);
  border: 1px solid var(--p-red-200, #fecaca);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.error-boundary-icon[data-v-e6fbc202] {
  font-size: 2.75rem;
  color: var(--p-red-500, #ef4444);
  margin-bottom: 0.75rem;
  display: block;
}
.error-boundary-title[data-v-e6fbc202] {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--p-text-color);
}
.error-boundary-message[data-v-e6fbc202] {
  font-size: 0.95rem;
  color: var(--p-text-muted-color);
  margin: 0 0 0.75rem;
  word-break: break-word;
}
.error-boundary-id[data-v-e6fbc202] {
  font-size: 0.78rem;
  color: var(--p-text-muted-color);
  margin: 0 0 1.25rem;
}
.error-boundary-id code[data-v-e6fbc202] {
  font-family: ui-monospace, monospace;
  background: var(--p-surface-100, #f3f4f6);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}
.error-boundary-actions[data-v-e6fbc202] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.error-boundary-stack[data-v-e6fbc202] {
  text-align: left;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  background: var(--p-surface-50, #f9fafb);
  border: 1px solid var(--p-surface-200, #e5e7eb);
  border-radius: 6px;
  padding: 0.75rem;
  margin-top: 1rem;
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.dark-mode .error-boundary-card[data-v-e6fbc202] {
  background: var(--p-surface-800);
  border-color: var(--p-red-700, #b91c1c);
}
.dark-mode .error-boundary-stack[data-v-e6fbc202] {
  background: var(--p-surface-900);
  border-color: var(--p-surface-700);
}
@font-face {
    font-family: 'primeicons';
    font-display: block;
    src: url('/assets/primeicons-DMOk5skT.eot');
    src: url('/assets/primeicons-DMOk5skT.eot?#iefix') format('embedded-opentype'), url('/assets/primeicons-C6QP2o4f.woff2') format('woff2'), url('/assets/primeicons-WjwUDZjB.woff') format('woff'), url('/assets/primeicons-MpK4pl85.ttf') format('truetype'), url('/assets/primeicons-Dr5RGzOO.svg?#primeicons') format('svg');
    font-weight: normal;
    font-style: normal;
}

.pi {
    font-family: 'primeicons';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pi:before {
    --webkit-backface-visibility:hidden;
    backface-visibility: hidden;
}

.pi-fw {
    width: 1.28571429em;
    text-align: center;
}

.pi-spin {
    -webkit-animation: fa-spin 2s infinite linear;
    animation: fa-spin 2s infinite linear;
}

@media (prefers-reduced-motion: reduce) {
  .pi-spin {
    -webkit-animation-delay: -1ms;
    animation-delay: -1ms;
    -webkit-animation-duration: 1ms;
    animation-duration: 1ms;
    -webkit-animation-iteration-count: 1;
    animation-iteration-count: 1;
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
    -webkit-transition-duration: 0s;
    transition-duration: 0s;
  }
}

@-webkit-keyframes fa-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

@keyframes fa-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

.pi-folder-plus:before {
    content: "\ea05";
}

.pi-receipt:before {
    content: "\ea06";
}

.pi-asterisk:before {
    content: "\ea07";
}

.pi-face-smile:before {
    content: "\ea08";
}

.pi-pinterest:before {
    content: "\ea09";
}

.pi-expand:before {
    content: "\ea0a";
}

.pi-pen-to-square:before {
    content: "\ea0b";
}

.pi-wave-pulse:before {
    content: "\ea0c";
}

.pi-turkish-lira:before {
    content: "\ea0d";
}

.pi-spinner-dotted:before {
    content: "\ea0e";
}

.pi-crown:before {
    content: "\ea0f";
}

.pi-pause-circle:before {
    content: "\ea10";
}

.pi-warehouse:before {
    content: "\ea11";
}

.pi-objects-column:before {
    content: "\ea12";
}

.pi-clipboard:before {
    content: "\ea13";
}

.pi-play-circle:before {
    content: "\ea14";
}

.pi-venus:before {
    content: "\ea15";
}

.pi-cart-minus:before {
    content: "\ea16";
}

.pi-file-plus:before {
    content: "\ea17";
}

.pi-microchip:before {
    content: "\ea18";
}

.pi-twitch:before {
    content: "\ea19";
}

.pi-building-columns:before {
    content: "\ea1a";
}

.pi-file-check:before {
    content: "\ea1b";
}

.pi-microchip-ai:before {
    content: "\ea1c";
}

.pi-trophy:before {
    content: "\ea1d";
}

.pi-barcode:before {
    content: "\ea1e";
}

.pi-file-arrow-up:before {
    content: "\ea1f";
}

.pi-mars:before {
    content: "\ea20";
}

.pi-tiktok:before {
    content: "\ea21";
}

.pi-arrow-up-right-and-arrow-down-left-from-center:before {
    content: "\ea22";
}

.pi-ethereum:before {
    content: "\ea23";
}

.pi-list-check:before {
    content: "\ea24";
}

.pi-thumbtack:before {
    content: "\ea25";
}

.pi-arrow-down-left-and-arrow-up-right-to-center:before {
    content: "\ea26";
}

.pi-equals:before {
    content: "\ea27";
}

.pi-lightbulb:before {
    content: "\ea28";
}

.pi-star-half:before {
    content: "\ea29";
}

.pi-address-book:before {
    content: "\ea2a";
}

.pi-chart-scatter:before {
    content: "\ea2b";
}

.pi-indian-rupee:before {
    content: "\ea2c";
}

.pi-star-half-fill:before {
    content: "\ea2d";
}

.pi-cart-arrow-down:before {
    content: "\ea2e";
}

.pi-calendar-clock:before {
    content: "\ea2f";
}

.pi-sort-up-fill:before {
    content: "\ea30";
}

.pi-sparkles:before {
    content: "\ea31";
}

.pi-bullseye:before {
    content: "\ea32";
}

.pi-sort-down-fill:before {
    content: "\ea33";
}

.pi-graduation-cap:before {
    content: "\ea34";
}

.pi-hammer:before {
    content: "\ea35";
}

.pi-bell-slash:before {
    content: "\ea36";
}

.pi-gauge:before {
    content: "\ea37";
}

.pi-shop:before {
    content: "\ea38";
}

.pi-headphones:before {
    content: "\ea39";
}

.pi-eraser:before {
    content: "\ea04";
}

.pi-stopwatch:before {
    content: "\ea01";
}

.pi-verified:before {
    content: "\ea02";
}

.pi-delete-left:before {
    content: "\ea03";
}

.pi-hourglass:before {
    content: "\e9fe";
}

.pi-truck:before {
    content: "\ea00";
}

.pi-wrench:before {
    content: "\e9ff";
}

.pi-microphone:before {
    content: "\e9fa";
}

.pi-megaphone:before {
    content: "\e9fb";
}

.pi-arrow-right-arrow-left:before {
    content: "\e9fc";
}

.pi-bitcoin:before {
    content: "\e9fd";
}

.pi-file-edit:before {
    content: "\e9f6";
}

.pi-language:before {
    content: "\e9f7";
}

.pi-file-export:before {
    content: "\e9f8";
}

.pi-file-import:before {
    content: "\e9f9";
}

.pi-file-word:before {
    content: "\e9f1";
}

.pi-gift:before {
    content: "\e9f2";
}

.pi-cart-plus:before {
    content: "\e9f3";
}

.pi-thumbs-down-fill:before {
    content: "\e9f4";
}

.pi-thumbs-up-fill:before {
    content: "\e9f5";
}

.pi-arrows-alt:before {
    content: "\e9f0";
}

.pi-calculator:before {
    content: "\e9ef";
}

.pi-sort-alt-slash:before {
    content: "\e9ee";
}

.pi-arrows-h:before {
    content: "\e9ec";
}

.pi-arrows-v:before {
    content: "\e9ed";
}

.pi-pound:before {
    content: "\e9eb";
}

.pi-prime:before {
    content: "\e9ea";
}

.pi-chart-pie:before {
    content: "\e9e9";
}

.pi-reddit:before {
    content: "\e9e8";
}

.pi-code:before {
    content: "\e9e7";
}

.pi-sync:before {
    content: "\e9e6";
}

.pi-shopping-bag:before {
    content: "\e9e5";
}

.pi-server:before {
    content: "\e9e4";
}

.pi-database:before {
    content: "\e9e3";
}

.pi-hashtag:before {
    content: "\e9e2";
}

.pi-bookmark-fill:before {
    content: "\e9df";
}

.pi-filter-fill:before {
    content: "\e9e0";
}

.pi-heart-fill:before {
    content: "\e9e1";
}

.pi-flag-fill:before {
    content: "\e9de";
}

.pi-circle:before {
    content: "\e9dc";
}

.pi-circle-fill:before {
    content: "\e9dd";
}

.pi-bolt:before {
    content: "\e9db";
}

.pi-history:before {
    content: "\e9da";
}

.pi-box:before {
    content: "\e9d9";
}

.pi-at:before {
    content: "\e9d8";
}

.pi-arrow-up-right:before {
    content: "\e9d4";
}

.pi-arrow-up-left:before {
    content: "\e9d5";
}

.pi-arrow-down-left:before {
    content: "\e9d6";
}

.pi-arrow-down-right:before {
    content: "\e9d7";
}

.pi-telegram:before {
    content: "\e9d3";
}

.pi-stop-circle:before {
    content: "\e9d2";
}

.pi-stop:before {
    content: "\e9d1";
}

.pi-whatsapp:before {
    content: "\e9d0";
}

.pi-building:before {
    content: "\e9cf";
}

.pi-qrcode:before {
    content: "\e9ce";
}

.pi-car:before {
    content: "\e9cd";
}

.pi-instagram:before {
    content: "\e9cc";
}

.pi-linkedin:before {
    content: "\e9cb";
}

.pi-send:before {
    content: "\e9ca";
}

.pi-slack:before {
    content: "\e9c9";
}

.pi-sun:before {
    content: "\e9c8";
}

.pi-moon:before {
    content: "\e9c7";
}

.pi-vimeo:before {
    content: "\e9c6";
}

.pi-youtube:before {
    content: "\e9c5";
}

.pi-flag:before {
    content: "\e9c4";
}

.pi-wallet:before {
    content: "\e9c3";
}

.pi-map:before {
    content: "\e9c2";
}

.pi-link:before {
    content: "\e9c1";
}

.pi-credit-card:before {
    content: "\e9bf";
}

.pi-discord:before {
    content: "\e9c0";
}

.pi-percentage:before {
    content: "\e9be";
}

.pi-euro:before {
    content: "\e9bd";
}

.pi-book:before {
    content: "\e9ba";
}

.pi-shield:before {
    content: "\e9b9";
}

.pi-paypal:before {
    content: "\e9bb";
}

.pi-amazon:before {
    content: "\e9bc";
}

.pi-phone:before {
    content: "\e9b8";
}

.pi-filter-slash:before {
    content: "\e9b7";
}

.pi-facebook:before {
    content: "\e9b4";
}

.pi-github:before {
    content: "\e9b5";
}

.pi-twitter:before {
    content: "\e9b6";
}

.pi-step-backward-alt:before {
    content: "\e9ac";
}

.pi-step-forward-alt:before {
    content: "\e9ad";
}

.pi-forward:before {
    content: "\e9ae";
}

.pi-backward:before {
    content: "\e9af";
}

.pi-fast-backward:before {
    content: "\e9b0";
}

.pi-fast-forward:before {
    content: "\e9b1";
}

.pi-pause:before {
    content: "\e9b2";
}

.pi-play:before {
    content: "\e9b3";
}

.pi-compass:before {
    content: "\e9ab";
}

.pi-id-card:before {
    content: "\e9aa";
}

.pi-ticket:before {
    content: "\e9a9";
}

.pi-file-o:before {
    content: "\e9a8";
}

.pi-reply:before {
    content: "\e9a7";
}

.pi-directions-alt:before {
    content: "\e9a5";
}

.pi-directions:before {
    content: "\e9a6";
}

.pi-thumbs-up:before {
    content: "\e9a3";
}

.pi-thumbs-down:before {
    content: "\e9a4";
}

.pi-sort-numeric-down-alt:before {
    content: "\e996";
}

.pi-sort-numeric-up-alt:before {
    content: "\e997";
}

.pi-sort-alpha-down-alt:before {
    content: "\e998";
}

.pi-sort-alpha-up-alt:before {
    content: "\e999";
}

.pi-sort-numeric-down:before {
    content: "\e99a";
}

.pi-sort-numeric-up:before {
    content: "\e99b";
}

.pi-sort-alpha-down:before {
    content: "\e99c";
}

.pi-sort-alpha-up:before {
    content: "\e99d";
}

.pi-sort-alt:before {
    content: "\e99e";
}

.pi-sort-amount-up:before {
    content: "\e99f";
}

.pi-sort-amount-down:before {
    content: "\e9a0";
}

.pi-sort-amount-down-alt:before {
    content: "\e9a1";
}

.pi-sort-amount-up-alt:before {
    content: "\e9a2";
}

.pi-palette:before {
    content: "\e995";
}

.pi-undo:before {
    content: "\e994";
}

.pi-desktop:before {
    content: "\e993";
}

.pi-sliders-v:before {
    content: "\e991";
}

.pi-sliders-h:before {
    content: "\e992";
}

.pi-search-plus:before {
    content: "\e98f";
}

.pi-search-minus:before {
    content: "\e990";
}

.pi-file-excel:before {
    content: "\e98e";
}

.pi-file-pdf:before {
    content: "\e98d";
}

.pi-check-square:before {
    content: "\e98c";
}

.pi-chart-line:before {
    content: "\e98b";
}

.pi-user-edit:before {
    content: "\e98a";
}

.pi-exclamation-circle:before {
    content: "\e989";
}

.pi-android:before {
    content: "\e985";
}

.pi-google:before {
    content: "\e986";
}

.pi-apple:before {
    content: "\e987";
}

.pi-microsoft:before {
    content: "\e988";
}

.pi-heart:before {
    content: "\e984";
}

.pi-mobile:before {
    content: "\e982";
}

.pi-tablet:before {
    content: "\e983";
}

.pi-key:before {
    content: "\e981";
}

.pi-shopping-cart:before {
    content: "\e980";
}

.pi-comments:before {
    content: "\e97e";
}

.pi-comment:before {
    content: "\e97f";
}

.pi-briefcase:before {
    content: "\e97d";
}

.pi-bell:before {
    content: "\e97c";
}

.pi-paperclip:before {
    content: "\e97b";
}

.pi-share-alt:before {
    content: "\e97a";
}

.pi-envelope:before {
    content: "\e979";
}

.pi-volume-down:before {
    content: "\e976";
}

.pi-volume-up:before {
    content: "\e977";
}

.pi-volume-off:before {
    content: "\e978";
}

.pi-eject:before {
    content: "\e975";
}

.pi-money-bill:before {
    content: "\e974";
}

.pi-images:before {
    content: "\e973";
}

.pi-image:before {
    content: "\e972";
}

.pi-sign-in:before {
    content: "\e970";
}

.pi-sign-out:before {
    content: "\e971";
}

.pi-wifi:before {
    content: "\e96f";
}

.pi-sitemap:before {
    content: "\e96e";
}

.pi-chart-bar:before {
    content: "\e96d";
}

.pi-camera:before {
    content: "\e96c";
}

.pi-dollar:before {
    content: "\e96b";
}

.pi-lock-open:before {
    content: "\e96a";
}

.pi-table:before {
    content: "\e969";
}

.pi-map-marker:before {
    content: "\e968";
}

.pi-list:before {
    content: "\e967";
}

.pi-eye-slash:before {
    content: "\e965";
}

.pi-eye:before {
    content: "\e966";
}

.pi-folder-open:before {
    content: "\e964";
}

.pi-folder:before {
    content: "\e963";
}

.pi-video:before {
    content: "\e962";
}

.pi-inbox:before {
    content: "\e961";
}

.pi-lock:before {
    content: "\e95f";
}

.pi-unlock:before {
    content: "\e960";
}

.pi-tags:before {
    content: "\e95d";
}

.pi-tag:before {
    content: "\e95e";
}

.pi-power-off:before {
    content: "\e95c";
}

.pi-save:before {
    content: "\e95b";
}

.pi-question-circle:before {
    content: "\e959";
}

.pi-question:before {
    content: "\e95a";
}

.pi-copy:before {
    content: "\e957";
}

.pi-file:before {
    content: "\e958";
}

.pi-clone:before {
    content: "\e955";
}

.pi-calendar-times:before {
    content: "\e952";
}

.pi-calendar-minus:before {
    content: "\e953";
}

.pi-calendar-plus:before {
    content: "\e954";
}

.pi-ellipsis-v:before {
    content: "\e950";
}

.pi-ellipsis-h:before {
    content: "\e951";
}

.pi-bookmark:before {
    content: "\e94e";
}

.pi-globe:before {
    content: "\e94f";
}

.pi-replay:before {
    content: "\e94d";
}

.pi-filter:before {
    content: "\e94c";
}

.pi-print:before {
    content: "\e94b";
}

.pi-align-right:before {
    content: "\e946";
}

.pi-align-left:before {
    content: "\e947";
}

.pi-align-center:before {
    content: "\e948";
}

.pi-align-justify:before {
    content: "\e949";
}

.pi-cog:before {
    content: "\e94a";
}

.pi-cloud-download:before {
    content: "\e943";
}

.pi-cloud-upload:before {
    content: "\e944";
}

.pi-cloud:before {
    content: "\e945";
}

.pi-pencil:before {
    content: "\e942";
}

.pi-users:before {
    content: "\e941";
}

.pi-clock:before {
    content: "\e940";
}

.pi-user-minus:before {
    content: "\e93e";
}

.pi-user-plus:before {
    content: "\e93f";
}

.pi-trash:before {
    content: "\e93d";
}

.pi-external-link:before {
    content: "\e93c";
}

.pi-window-maximize:before {
    content: "\e93b";
}

.pi-window-minimize:before {
    content: "\e93a";
}

.pi-refresh:before {
    content: "\e938";
}

.pi-user:before {
    content: "\e939";
}

.pi-exclamation-triangle:before {
    content: "\e922";
}

.pi-calendar:before {
    content: "\e927";
}

.pi-chevron-circle-left:before {
    content: "\e928";
}

.pi-chevron-circle-down:before {
    content: "\e929";
}

.pi-chevron-circle-right:before {
    content: "\e92a";
}

.pi-chevron-circle-up:before {
    content: "\e92b";
}

.pi-angle-double-down:before {
    content: "\e92c";
}

.pi-angle-double-left:before {
    content: "\e92d";
}

.pi-angle-double-right:before {
    content: "\e92e";
}

.pi-angle-double-up:before {
    content: "\e92f";
}

.pi-angle-down:before {
    content: "\e930";
}

.pi-angle-left:before {
    content: "\e931";
}

.pi-angle-right:before {
    content: "\e932";
}

.pi-angle-up:before {
    content: "\e933";
}

.pi-upload:before {
    content: "\e934";
}

.pi-download:before {
    content: "\e956";
}

.pi-ban:before {
    content: "\e935";
}

.pi-star-fill:before {
    content: "\e936";
}

.pi-star:before {
    content: "\e937";
}

.pi-chevron-left:before {
    content: "\e900";
}

.pi-chevron-right:before {
    content: "\e901";
}

.pi-chevron-down:before {
    content: "\e902";
}

.pi-chevron-up:before {
    content: "\e903";
}

.pi-caret-left:before {
    content: "\e904";
}

.pi-caret-right:before {
    content: "\e905";
}

.pi-caret-down:before {
    content: "\e906";
}

.pi-caret-up:before {
    content: "\e907";
}

.pi-search:before {
    content: "\e908";
}

.pi-check:before {
    content: "\e909";
}

.pi-check-circle:before {
    content: "\e90a";
}

.pi-times:before {
    content: "\e90b";
}

.pi-times-circle:before {
    content: "\e90c";
}

.pi-plus:before {
    content: "\e90d";
}

.pi-plus-circle:before {
    content: "\e90e";
}

.pi-minus:before {
    content: "\e90f";
}

.pi-minus-circle:before {
    content: "\e910";
}

.pi-circle-on:before {
    content: "\e911";
}

.pi-circle-off:before {
    content: "\e912";
}

.pi-sort-down:before {
    content: "\e913";
}

.pi-sort-up:before {
    content: "\e914";
}

.pi-sort:before {
    content: "\e915";
}

.pi-step-backward:before {
    content: "\e916";
}

.pi-step-forward:before {
    content: "\e917";
}

.pi-th-large:before {
    content: "\e918";
}

.pi-arrow-down:before {
    content: "\e919";
}

.pi-arrow-left:before {
    content: "\e91a";
}

.pi-arrow-right:before {
    content: "\e91b";
}

.pi-arrow-up:before {
    content: "\e91c";
}

.pi-bars:before {
    content: "\e91d";
}

.pi-arrow-circle-down:before {
    content: "\e91e";
}

.pi-arrow-circle-left:before {
    content: "\e91f";
}

.pi-arrow-circle-right:before {
    content: "\e920";
}

.pi-arrow-circle-up:before {
    content: "\e921";
}

.pi-info:before {
    content: "\e923";
}

.pi-info-circle:before {
    content: "\e924";
}

.pi-home:before {
    content: "\e925";
}

.pi-spinner:before {
    content: "\e926";
}

/* ============================================================
 * Paleta MarineWiz (compartida con marinewiz_vue_dev/marinewiz-frontend).
 * Mantenemos un set de --mw-* para componentes que los referencian
 * directamente; los componentes PrimeVue siguen usando --p-* (mapeados
 * al preset MwAura, con primary = blue 500).
 * ============================================================ */

:root {
  /* Primarios */
  --mw-primary: #3b82f6;
  --mw-primary-hover: #2563eb;
  --mw-primary-light: #eff6ff;
  --mw-primary-dark: #1d4ed8;

  /* Estados */
  --mw-success: #10b981;
  --mw-success-light: #d1fae5;
  --mw-danger: #ef4444;
  --mw-danger-light: #fee2e2;
  --mw-warning: #f59e0b;
  --mw-warning-light: #fef3c7;
  --mw-info: #3b82f6;
  --mw-info-light: #dbeafe;

  /* Grises */
  --mw-gray-50:  #f8fafc;
  --mw-gray-100: #f1f5f9;
  --mw-gray-200: #e2e8f0;
  --mw-gray-300: #cbd5e1;
  --mw-gray-400: #94a3b8;
  --mw-gray-500: #64748b;
  --mw-gray-600: #475569;
  --mw-gray-700: #334155;
  --mw-gray-800: #1e293b;
  --mw-gray-900: #0f172a;

  /* Texto / fondo / bordes */
  --mw-text-primary:   #0f172a;
  --mw-text-secondary: #475569;
  --mw-text-muted:     #94a3b8;
  --mw-bg-main:        #f8fafc;
  --mw-bg-card:        #ffffff;
  --mw-border-color:   #e2e8f0;
  --mw-border-light:   #f1f5f9;

  /* Layout */
  --mw-sidebar-width: 268px;
  --mw-sidebar-collapsed-width: 64px;
  --mw-header-height: 60px;

  /* Shell theming — los toma services/theme.ts desde /theme.json al boot.
     Estos defaults son el fallback si /theme.json no existe o falla. */
  --mw-sidebar-from:   #0f172a;
  --mw-sidebar-to:     #1e293b;
  --mw-sidebar-active: #60a5fa;
  --mw-topbar-bg:      #ffffff;
  --mw-topbar-border:  #e2e8f0;

  /* Sombras / radii / transitions */
  --mw-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --mw-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --mw-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --mw-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  --mw-radius-sm: 6px;
  --mw-radius-md: 8px;
  --mw-radius-lg: 12px;
  --mw-radius-xl: 16px;
  --mw-transition-fast:   0.15s ease;
  --mw-transition-normal: 0.2s ease;
  --mw-transition-speed:  0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body, #app {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--p-surface-50);
  color: var(--p-text-color);
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* DataTable polish — softer hover and selection */

.p-datatable-tbody > tr { transition: background 0.15s ease; }

.p-datatable-tbody > tr:hover > td {
  background: var(--p-primary-50) !important;
}

.p-datatable-tbody > tr.p-datatable-row-selected > td,
.p-datatable-tbody > tr[data-p-selected="true"] > td {
  background: var(--p-primary-100) !important;
}

.p-datatable .p-datatable-thead > tr > th {
  background: var(--p-surface-50);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--p-text-muted-color);
  border-bottom: 1px solid var(--p-surface-200);
}

/* Buttons */

.p-button { transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s; }

.p-button:active { transform: translateY(1px); }

.p-button.p-button-primary,
.p-button:not(.p-button-text):not(.p-button-outlined):not(.p-button-secondary) {
  box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 1px 1px rgba(0,0,0,0.04);
}

/* Inputs — clearer focus ring */

.p-inputtext, .p-textarea, .p-password input,
.p-select, .p-multiselect, .p-datepicker-input {
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.p-inputtext:focus, .p-textarea:focus, .p-password input:focus,
.p-select.p-focus, .p-multiselect.p-focus,
.p-datepicker-input:focus {
  border-color: var(--p-primary-400) !important;
  box-shadow: 0 0 0 3px var(--p-primary-100) !important;
}

/* Tag — slightly tighter */

.p-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Card */

.p-card {
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.03);
  border: 1px solid var(--p-surface-200);
  background: var(--p-surface-0);
}

/* Dialog polish */

.p-dialog {
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(15,23,42,0.18), 0 8px 16px rgba(15,23,42,0.10);
  border: 1px solid var(--p-surface-200);
}

.p-dialog-mask {
  backdrop-filter: blur(2px);
  background: rgba(15,23,42,0.36) !important;
}

/* Scrollbar */

*::-webkit-scrollbar { width: 8px; height: 8px; }

*::-webkit-scrollbar-track { background: transparent; }

*::-webkit-scrollbar-thumb { background: var(--p-surface-300); border-radius: 9999px; }

*::-webkit-scrollbar-thumb:hover { background: var(--p-surface-400); }

/* Page transitions */

.page-fade-enter-active, .page-fade-leave-active { transition: opacity 0.15s ease; }

.page-fade-enter-from, .page-fade-leave-to { opacity: 0; }

/* Small set of layout helpers — pure CSS, no Tailwind */

.tabular-nums { font-variant-numeric: tabular-nums; }

.text-right { text-align: right; }

.w-full { width: 100%; }

/* Layout estándar de página. Cualquier vista debería envolverse en .page
   y usar .page-head para el encabezado. Mantiene padding/anchos uniformes. */

.page {
  padding: 1.5rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.page-head h1 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--p-text-color);
  letter-spacing: -0.01em;
  margin: 0;
}

.page-head h1 i {
  color: var(--p-primary-600);
  font-size: 1.1rem;
  margin-right: 0.4rem;
}

.subtitle {
  font-size: 0.85rem;
  color: var(--p-text-muted-color);
  margin-top: 2px;
}

.subtitle code {
  background: var(--p-surface-100);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
}

@media (max-width: 640px) {
  .page { padding: 1rem; }
}

/* Filas clickables en DataTables (abrir registro al click). */

.p-datatable-tbody > tr.row-clickable { cursor: pointer; }

/* Acciones por fila en DataTables: ahora todas las pantallas usan el componente
   <RowActionsMenu> que renderiza un único trigger hamburguesa con popover en
   hover. La regla `.row-actions` legacy quedó sin uso pero la conservamos como
   safety-net por si algún catálogo externo todavía la referencia. */

.row-actions { display: flex; gap: 0.25rem; align-items: center; }

/* Botón "Deshacer" inyectado por useUndoableAction dentro del Toast de PrimeVue. */

.undo-btn {
  margin-left: 0.6rem;
  padding: 0.25rem 0.6rem;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: inherit;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.undo-btn:hover { background: rgba(255,255,255,0.15); }

.undo-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }

/* Marcador de campo requerido en labels de formulario. */

.req {
  color: #dc2626;
  font-weight: 700;
  margin-left: 0.15rem;
}

.dark-mode .req { color: #f87171; }

/* Mensaje inline de validación. */

.field-error {
  color: #dc2626;
  font-size: 0.7rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dark-mode .field-error { color: #f87171; }

/* Dark-mode polish — fix contrast on stat cards, sidebar, etc. */

.dark-mode body { background: var(--p-surface-950); }

.dark-mode .stat-card,
.dark-mode .info-card,
.dark-mode .table-card,
.dark-mode .editor-card,
.dark-mode .results-card {
  background: var(--p-surface-900) !important;
  border-color: var(--p-surface-800) !important;
}

.dark-mode .stat-icon,
.dark-mode .ql-item > i:first-child {
  background: rgba(59, 130, 246, 0.15) !important;
  color: var(--p-primary-300) !important;
}

.dark-mode .stat-value,
.dark-mode .ql-title,
.dark-mode .page-header h1,
.dark-mode .page-head h1 {
  color: var(--p-surface-50) !important;
}

.dark-mode .subtitle,
.dark-mode .stat-label,
.dark-mode .ql-sub {
  color: var(--p-surface-400) !important;
}

.dark-mode .p-datatable .p-datatable-thead > tr > th {
  background: var(--p-surface-900);
  color: var(--p-surface-400);
  border-bottom-color: var(--p-surface-800);
}

.dark-mode .p-datatable-tbody > tr:hover > td {
  background: var(--p-primary-100) !important;
}

/* Sidebar es siempre oscuro (estilo MarineWiz) — no necesita overrides en
   dark-mode. Los selectores de sidebar quedaron obsoletos al adoptar el
   gradient permanente en AppShell. */

.dark-mode .content { background: var(--p-surface-950); }

.dark-mode .app-breadcrumb { background: var(--p-surface-900); border-bottom-color: var(--p-surface-800); }

.dark-mode .bc-title-row h1,
.dark-mode .browse-catalog h1 { color: var(--p-surface-50) !important; }

.dark-mode .bc-meta { color: var(--p-surface-400) !important; }

.dark-mode .bc-grid-card,
.dark-mode .editor-card,
.dark-mode .table-card,
.dark-mode .results-card {
  background: var(--p-surface-900) !important;
  border-color: var(--p-surface-800) !important;
}

.dark-mode .editor-bar { background: var(--p-surface-950) !important; border-top-color: var(--p-surface-800) !important; }

/* Dialog en dark-mode: el contenedor lo maneja PrimeVue, pero los inputs
   dentro de Dialog quedan demasiado claros. Forzamos el contraste. */

.dark-mode .p-dialog {
  background: var(--p-surface-900) !important;
  border-color: var(--p-surface-800) !important;
  color: var(--p-surface-50) !important;
}

.dark-mode .p-dialog-header,
.dark-mode .p-dialog-content,
.dark-mode .p-dialog-footer {
  background: var(--p-surface-900) !important;
  color: var(--p-surface-50) !important;
}

.dark-mode .p-dialog .p-inputtext,
.dark-mode .p-dialog .p-textarea,
.dark-mode .p-dialog .p-password input,
.dark-mode .p-dialog .p-select,
.dark-mode .p-dialog .p-multiselect,
.dark-mode .p-dialog .p-inputnumber-input,
.dark-mode .p-dialog .p-datepicker-input {
  background: var(--p-surface-950) !important;
  color: var(--p-surface-50) !important;
  border-color: var(--p-surface-700) !important;
}

.dark-mode .p-dialog label,
.dark-mode .p-dialog .col-2 > span {
  color: var(--p-surface-300) !important;
}

/* Texto truncado con tooltip — los <td> y <span class="cell-name"> usan
   text-overflow: ellipsis. Aseguramos que el tooltip aparezca al hover. */

[data-truncate] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

/* Topbar in dark mode — fondo elevado del surface-900 con borde inferior */

.dark-mode .topbar {
  background: var(--p-surface-900) !important;
  color: var(--p-surface-100) !important;
  border-bottom-color: var(--p-surface-800) !important;
}

.dark-mode .topbar .logo-text { color: var(--p-surface-100) !important; }

.dark-mode .topbar .empresa-badge {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.3);
}

.dark-mode .topbar .palette-trigger {
  background: var(--p-surface-800);
  border-color: var(--p-surface-700);
  color: var(--p-surface-300);
}

.dark-mode .topbar .palette-trigger:hover {
  background: var(--p-surface-700);
  color: var(--p-surface-100);
}

.dark-mode .topbar .kbd-hint {
  background: var(--p-surface-800);
  color: var(--p-surface-300);
  border-color: var(--p-surface-700);
}

.dark-mode .topbar .user-chip {
  background: var(--p-surface-800);
  color: var(--p-surface-100);
  border-color: var(--p-surface-700);
}

.dark-mode .topbar .user-chip:hover {
  background: var(--p-surface-700);
  border-color: var(--p-surface-600);
}

.dark-mode .topbar-btn :deep(.p-button-icon) { color: var(--p-surface-300) !important; }

/* Print */

@media print {
  .topbar, .sidebar, .app-breadcrumb, .action-buttons { display: none !important; }
  .content { padding: 0 !important; }
  .main-area { display: block !important; }
  .p-datatable { font-size: 9pt !important; }
  .p-paginator { display: none !important; }
}

/* === Microanimaciones globales (W3#13) ===
   Pequeñas mejoras de feedback: clicks en buttons hacen scale-down
   sutil; los drawers/dialogs entran con fade. Aplican a TODA la app
   sin pasos extra. */

.p-button:not(:disabled):active {
  transform: scale(0.97);
  transition: transform 0.05s ease-out;
}

.p-button {
  transition: background-color 0.12s ease, border-color 0.12s ease,
              color 0.12s ease, transform 0.12s ease;
}

.p-drawer, .p-dialog {
  animation: dlg-fade-in 160ms ease-out both;
}

@keyframes dlg-fade-in {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Reduced motion (W3#10) ===
   Respeta usuarios con vestibular issues / preferencia OS.
   Desactiva animaciones agresivas pero deja transiciones de color
   (que son inocuas y comunican estado). */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .p-button:active { transform: none !important; }
  .p-drawer, .p-dialog { animation: none !important; }
}

/* === Skip-to-content link (W3#9) ===
   Visualmente oculto hasta focus. */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--p-primary-color);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 0 0 6px 0;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus { left: 0; outline: 3px solid #fff; outline-offset: 2px; }

/* === Save flash (W3#6) ===
   Botón Guardar momentáneamente verde tras success. */

.p-button.save-flash, .p-button.save-flash:hover {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: white !important;
}
