/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
    --color-red-500: oklch(63.7% 0.237 25.331);
    --color-red-600: oklch(57.7% 0.245 27.325);
    --color-red-700: oklch(50.5% 0.213 27.518);
    --color-amber-500: oklch(76.9% 0.188 70.08);
    --color-amber-600: oklch(66.6% 0.179 58.318);
    --color-green-400: oklch(79.2% 0.209 151.711);
    --color-emerald-50: oklch(97.9% 0.021 166.113);
    --color-emerald-200: oklch(90.5% 0.093 164.15);
    --color-emerald-500: oklch(69.6% 0.17 162.48);
    --color-emerald-600: oklch(59.6% 0.145 163.225);
    --color-emerald-700: oklch(50.8% 0.118 165.612);
    --color-emerald-800: oklch(43.2% 0.095 166.913);
    --color-emerald-900: oklch(37.8% 0.077 168.94);
    --color-sky-500: oklch(68.5% 0.169 237.323);
    --color-sky-700: oklch(50% 0.134 242.749);
    --color-blue-50: oklch(97% 0.014 254.604);
    --color-blue-100: oklch(93.2% 0.032 255.585);
    --color-blue-200: oklch(88.2% 0.059 254.128);
    --color-blue-400: oklch(70.7% 0.165 254.624);
    --color-blue-500: oklch(62.3% 0.214 259.815);
    --color-blue-600: oklch(54.6% 0.245 262.881);
    --color-blue-700: oklch(48.8% 0.243 264.376);
    --color-blue-800: oklch(42.4% 0.199 265.638);
    --color-blue-900: oklch(37.9% 0.146 265.522);
    --color-purple-600: oklch(55.8% 0.288 302.321);
    --color-purple-800: oklch(43.8% 0.218 303.724);
    --color-slate-50: oklch(98.4% 0.003 247.858);
    --color-slate-100: oklch(96.8% 0.007 247.896);
    --color-slate-200: oklch(92.9% 0.013 255.508);
    --color-slate-300: oklch(86.9% 0.022 252.894);
    --color-slate-400: oklch(70.4% 0.04 256.788);
    --color-slate-500: oklch(55.4% 0.046 257.417);
    --color-slate-600: oklch(44.6% 0.043 257.281);
    --color-slate-700: oklch(37.2% 0.044 257.287);
    --color-slate-800: oklch(27.9% 0.041 260.031);
    --color-white: #fff;
    --spacing: 0.25rem;
    --container-xs: 20rem;
    --container-2xl: 42rem;
    --container-5xl: 64rem;
    --container-7xl: 80rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-base: 1rem;
    --text-base--line-height: calc(1.5 / 1);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --text-3xl: 1.875rem;
    --text-3xl--line-height: calc(2.25 / 1.875);
    --text-4xl: 2.25rem;
    --text-4xl--line-height: calc(2.5 / 2.25);
    --text-6xl: 3.75rem;
    --text-6xl--line-height: 1;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    --leading-tight: 1.25;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji');
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type='button'], [type='reset'], [type='submit']), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden='until-found'])) {
    display: none !important;
  }
}
@layer utilities {
  .visible {
    visibility: visible;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .right-6 {
    right: calc(var(--spacing) * 6);
  }
  .bottom-6 {
    bottom: calc(var(--spacing) * 6);
  }
  .z-50 {
    z-index: 50;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .mx-2 {
    margin-inline: calc(var(--spacing) * 2);
  }
  .mx-auto {
    margin-inline: auto;
  }
  .mt-0\.5 {
    margin-top: calc(var(--spacing) * 0.5);
  }
  .mt-1 {
    margin-top: calc(var(--spacing) * 1);
  }
  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }
  .mt-8 {
    margin-top: calc(var(--spacing) * 8);
  }
  .mb-0\.5 {
    margin-bottom: calc(var(--spacing) * 0.5);
  }
  .mb-1 {
    margin-bottom: calc(var(--spacing) * 1);
  }
  .mb-3 {
    margin-bottom: calc(var(--spacing) * 3);
  }
  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }
  .mb-5 {
    margin-bottom: calc(var(--spacing) * 5);
  }
  .mb-6 {
    margin-bottom: calc(var(--spacing) * 6);
  }
  .mb-8 {
    margin-bottom: calc(var(--spacing) * 8);
  }
  .ml-2 {
    margin-left: calc(var(--spacing) * 2);
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline-block {
    display: inline-block;
  }
  .table {
    display: table;
  }
  .h-2 {
    height: calc(var(--spacing) * 2);
  }
  .h-5 {
    height: calc(var(--spacing) * 5);
  }
  .h-10 {
    height: calc(var(--spacing) * 10);
  }
  .h-12 {
    height: calc(var(--spacing) * 12);
  }
  .h-32 {
    height: calc(var(--spacing) * 32);
  }
  .h-36 {
    height: calc(var(--spacing) * 36);
  }
  .h-44 {
    height: calc(var(--spacing) * 44);
  }
  .h-screen {
    height: 100vh;
  }
  .min-h-screen {
    min-height: 100vh;
  }
  .w-2 {
    width: calc(var(--spacing) * 2);
  }
  .w-5 {
    width: calc(var(--spacing) * 5);
  }
  .w-10 {
    width: calc(var(--spacing) * 10);
  }
  .w-12 {
    width: calc(var(--spacing) * 12);
  }
  .w-14 {
    width: calc(var(--spacing) * 14);
  }
  .w-16 {
    width: calc(var(--spacing) * 16);
  }
  .w-full {
    width: 100%;
  }
  .max-w-2xl {
    max-width: var(--container-2xl);
  }
  .max-w-5xl {
    max-width: var(--container-5xl);
  }
  .max-w-7xl {
    max-width: var(--container-7xl);
  }
  .max-w-xs {
    max-width: var(--container-xs);
  }
  .min-w-\[2rem\] {
    min-width: 2rem;
  }
  .flex-shrink-0 {
    flex-shrink: 0;
  }
  .border-collapse {
    border-collapse: collapse;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .cursor-default {
    cursor: default;
  }
  .resize-none {
    resize: none;
  }
  .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .flex-col {
    flex-direction: column;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .items-center {
    align-items: center;
  }
  .justify-between {
    justify-content: space-between;
  }
  .justify-center {
    justify-content: center;
  }
  .justify-end {
    justify-content: flex-end;
  }
  .gap-1\.5 {
    gap: calc(var(--spacing) * 1.5);
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .gap-5 {
    gap: calc(var(--spacing) * 5);
  }
  .space-y-5 {
    :where(& > :not(:last-child)) {
      --tw-space-y-reverse: 0;
      margin-block-start: calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));
      margin-block-end: calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  .divide-y {
    :where(& > :not(:last-child)) {
      --tw-divide-y-reverse: 0;
      border-bottom-style: var(--tw-border-style);
      border-top-style: var(--tw-border-style);
      border-top-width: calc(1px * var(--tw-divide-y-reverse));
      border-bottom-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
    }
  }
  .divide-slate-100 {
    :where(& > :not(:last-child)) {
      border-color: var(--color-slate-100);
    }
  }
  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .overflow-hidden {
    overflow: hidden;
  }
  .rounded {
    border-radius: 0.25rem;
  }
  .rounded-2xl {
    border-radius: var(--radius-2xl);
  }
  .rounded-\[2rem\] {
    border-radius: 2rem;
  }
  .rounded-full {
    border-radius: calc(infinity * 1px);
  }
  .rounded-lg {
    border-radius: var(--radius-lg);
  }
  .rounded-xl {
    border-radius: var(--radius-xl);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-2 {
    border-style: var(--tw-border-style);
    border-width: 2px;
  }
  .border-b-8 {
    border-bottom-style: var(--tw-border-style);
    border-bottom-width: 8px;
  }
  .border-blue-600 {
    border-color: var(--color-blue-600);
  }
  .border-blue-900 {
    border-color: var(--color-blue-900);
  }
  .border-emerald-200 {
    border-color: var(--color-emerald-200);
  }
  .border-emerald-800 {
    border-color: var(--color-emerald-800);
  }
  .border-purple-800 {
    border-color: var(--color-purple-800);
  }
  .border-red-700 {
    border-color: var(--color-red-700);
  }
  .border-sky-700 {
    border-color: var(--color-sky-700);
  }
  .border-slate-200 {
    border-color: var(--color-slate-200);
  }
  .border-slate-300 {
    border-color: var(--color-slate-300);
  }
  .bg-amber-500 {
    background-color: var(--color-amber-500);
  }
  .bg-blue-50 {
    background-color: var(--color-blue-50);
  }
  .bg-blue-500 {
    background-color: var(--color-blue-500);
  }
  .bg-blue-600 {
    background-color: var(--color-blue-600);
  }
  .bg-blue-700 {
    background-color: var(--color-blue-700);
  }
  .bg-blue-800 {
    background-color: var(--color-blue-800);
  }
  .bg-blue-900 {
    background-color: var(--color-blue-900);
  }
  .bg-emerald-50 {
    background-color: var(--color-emerald-50);
  }
  .bg-emerald-500 {
    background-color: var(--color-emerald-500);
  }
  .bg-emerald-600 {
    background-color: var(--color-emerald-600);
  }
  .bg-green-400 {
    background-color: var(--color-green-400);
  }
  .bg-purple-600 {
    background-color: var(--color-purple-600);
  }
  .bg-red-500 {
    background-color: var(--color-red-500);
  }
  .bg-sky-500 {
    background-color: var(--color-sky-500);
  }
  .bg-slate-50 {
    background-color: var(--color-slate-50);
  }
  .bg-slate-100 {
    background-color: var(--color-slate-100);
  }
  .bg-slate-700 {
    background-color: var(--color-slate-700);
  }
  .bg-slate-800 {
    background-color: var(--color-slate-800);
  }
  .bg-white {
    background-color: var(--color-white);
  }
  .p-6 {
    padding: calc(var(--spacing) * 6);
  }
  .px-2\.5 {
    padding-inline: calc(var(--spacing) * 2.5);
  }
  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }
  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }
  .px-5 {
    padding-inline: calc(var(--spacing) * 5);
  }
  .px-6 {
    padding-inline: calc(var(--spacing) * 6);
  }
  .py-1 {
    padding-block: calc(var(--spacing) * 1);
  }
  .py-1\.5 {
    padding-block: calc(var(--spacing) * 1.5);
  }
  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }
  .py-3 {
    padding-block: calc(var(--spacing) * 3);
  }
  .py-4 {
    padding-block: calc(var(--spacing) * 4);
  }
  .py-8 {
    padding-block: calc(var(--spacing) * 8);
  }
  .py-10 {
    padding-block: calc(var(--spacing) * 10);
  }
  .py-14 {
    padding-block: calc(var(--spacing) * 14);
  }
  .py-16 {
    padding-block: calc(var(--spacing) * 16);
  }
  .text-center {
    text-align: center;
  }
  .text-left {
    text-align: left;
  }
  .text-right {
    text-align: right;
  }
  .font-sans {
    font-family: var(--font-sans);
  }
  .text-2xl {
    font-size: var(--text-2xl);
    line-height: var(--tw-leading, var(--text-2xl--line-height));
  }
  .text-3xl {
    font-size: var(--text-3xl);
    line-height: var(--tw-leading, var(--text-3xl--line-height));
  }
  .text-4xl {
    font-size: var(--text-4xl);
    line-height: var(--tw-leading, var(--text-4xl--line-height));
  }
  .text-6xl {
    font-size: var(--text-6xl);
    line-height: var(--tw-leading, var(--text-6xl--line-height));
  }
  .text-base {
    font-size: var(--text-base);
    line-height: var(--tw-leading, var(--text-base--line-height));
  }
  .text-lg {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .text-xl {
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
  }
  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .leading-tight {
    --tw-leading: var(--leading-tight);
    line-height: var(--leading-tight);
  }
  .font-black {
    --tw-font-weight: var(--font-weight-black);
    font-weight: var(--font-weight-black);
  }
  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }
  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }
  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }
  .tracking-tight {
    --tw-tracking: var(--tracking-tight);
    letter-spacing: var(--tracking-tight);
  }
  .tracking-tighter {
    --tw-tracking: var(--tracking-tighter);
    letter-spacing: var(--tracking-tighter);
  }
  .tracking-wide {
    --tw-tracking: var(--tracking-wide);
    letter-spacing: var(--tracking-wide);
  }
  .tracking-wider {
    --tw-tracking: var(--tracking-wider);
    letter-spacing: var(--tracking-wider);
  }
  .tracking-widest {
    --tw-tracking: var(--tracking-widest);
    letter-spacing: var(--tracking-widest);
  }
  .whitespace-nowrap {
    white-space: nowrap;
  }
  .text-amber-500 {
    color: var(--color-amber-500);
  }
  .text-blue-100 {
    color: var(--color-blue-100);
  }
  .text-blue-200 {
    color: var(--color-blue-200);
  }
  .text-blue-400 {
    color: var(--color-blue-400);
  }
  .text-blue-600 {
    color: var(--color-blue-600);
  }
  .text-emerald-600 {
    color: var(--color-emerald-600);
  }
  .text-emerald-700 {
    color: var(--color-emerald-700);
  }
  .text-emerald-900 {
    color: var(--color-emerald-900);
  }
  .text-green-400 {
    color: var(--color-green-400);
  }
  .text-red-600 {
    color: var(--color-red-600);
  }
  .text-slate-300 {
    color: var(--color-slate-300);
  }
  .text-slate-400 {
    color: var(--color-slate-400);
  }
  .text-slate-500 {
    color: var(--color-slate-500);
  }
  .text-slate-600 {
    color: var(--color-slate-600);
  }
  .text-slate-700 {
    color: var(--color-slate-700);
  }
  .text-slate-800 {
    color: var(--color-slate-800);
  }
  .text-white {
    color: var(--color-white);
  }
  .uppercase {
    text-transform: uppercase;
  }
  .opacity-40 {
    opacity: 40%;
  }
  .opacity-75 {
    opacity: 75%;
  }
  .opacity-80 {
    opacity: 80%;
  }
  .opacity-90 {
    opacity: 90%;
  }
  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .shadow-2xl {
    --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .shadow-inner {
    --tw-shadow: inset 0 2px 4px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.05));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .shadow-lg {
    --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .shadow-md {
    --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .shadow-sm {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .shadow-xl {
    --tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-all {
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-colors {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .select-none {
    -webkit-user-select: none;
    user-select: none;
  }
  .hover\:bg-amber-600 {
    &:hover {
      @media (hover: hover) {
        background-color: var(--color-amber-600);
      }
    }
  }
  .hover\:bg-blue-50 {
    &:hover {
      @media (hover: hover) {
        background-color: var(--color-blue-50);
      }
    }
  }
  .hover\:bg-blue-500 {
    &:hover {
      @media (hover: hover) {
        background-color: var(--color-blue-500);
      }
    }
  }
  .hover\:bg-blue-600 {
    &:hover {
      @media (hover: hover) {
        background-color: var(--color-blue-600);
      }
    }
  }
  .hover\:bg-blue-700 {
    &:hover {
      @media (hover: hover) {
        background-color: var(--color-blue-700);
      }
    }
  }
  .hover\:bg-emerald-600 {
    &:hover {
      @media (hover: hover) {
        background-color: var(--color-emerald-600);
      }
    }
  }
  .hover\:bg-emerald-700 {
    &:hover {
      @media (hover: hover) {
        background-color: var(--color-emerald-700);
      }
    }
  }
  .hover\:bg-red-600 {
    &:hover {
      @media (hover: hover) {
        background-color: var(--color-red-600);
      }
    }
  }
  .hover\:bg-slate-50 {
    &:hover {
      @media (hover: hover) {
        background-color: var(--color-slate-50);
      }
    }
  }
  .focus\:border-blue-500 {
    &:focus {
      border-color: var(--color-blue-500);
    }
  }
  .focus\:border-white {
    &:focus {
      border-color: var(--color-white);
    }
  }
  .focus\:outline-none {
    &:focus {
      --tw-outline-style: none;
      outline-style: none;
    }
  }
  .active\:bg-blue-800 {
    &:active {
      background-color: var(--color-blue-800);
    }
  }
  .sm\:grid-cols-2 {
    @media (width >= 40rem) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}
.btn-volver-menu {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  height: 3rem;
  width: 3rem;
  border-radius: 2rem;
  padding: 0 .75rem;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px) saturate(1.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.8);
  box-shadow: 0 4px 16px rgba(37,99,235,.18), 0 1px 0 rgba(255,255,255,.95) inset, 0 0 0 1.5px rgba(56,189,248,.40);
  border: none;
  color: #1a3a8f;
  text-decoration: none;
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: .8rem;
  white-space: nowrap;
  transition: width .28s cubic-bezier(.4,0,.2,1), box-shadow .2s, transform .15s;
}
.btn-volver-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.60) 0%, transparent 100%);
  border-radius: 2rem 2rem 0 0;
  pointer-events: none;
}
.btn-volver-menu .bvm-icon {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  object-fit: contain;
  transition: transform .2s;
  position: relative;
}
.btn-volver-menu .bvm-label {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity .18s .06s, max-width .28s cubic-bezier(.4,0,.2,1);
  font-size: .78rem;
  margin-left: .5rem;
  pointer-events: none;
  position: relative;
}
.btn-volver-menu:hover {
  width: 9rem;
  box-shadow: 0 6px 22px rgba(37,99,235,.28), 0 1px 0 rgba(255,255,255,.95) inset, 0 0 0 1.5px rgba(56,189,248,.60);
  transform: translateY(-2px);
}
.btn-volver-menu:hover .bvm-label {
  opacity: 1;
  max-width: 7rem;
}
.btn-volver-menu:hover .bvm-icon {
  transform: scale(1.08);
}
.btn-volver-menu:active {
  transform: scale(.94);
}
.btn-active:active {
  transform: scale(0.95);
  filter: brightness(0.8);
}
@media print {
  body > * {
    display: none !important;
  }
  #ticket-imprimir {
    display: block !important;
  }
}
#ticket-imprimir {
  display: none;
}
@media print {
  @page {
    size: 58mm auto;
    margin: 0;
  }
  body {
    margin: 0;
    padding: 0;
  }
  #ticket-imprimir {
    display: block !important;
    width: 48mm !important;
    margin: 0 auto;
    text-align: center;
  }
  body > *:not(#ticket-imprimir) {
    display: none !important;
  }
}
.pantalla {
  background-color: #fff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}
body#pantalla {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
  user-select: none;
}
body#pantalla * {
  box-sizing: border-box;
}
body#pantalla #overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(155deg, #081445 0%, #0f2472 40%, #1a3a8f 75%, #312e81 100%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 1.75rem;
  overflow: hidden;
}
body#pantalla #overlay::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  top: -25%;
  right: -18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, .55) 0%, rgba(37, 99, 235, .30) 35%, rgba(99, 102, 241, .12) 60%, transparent 75% );
  pointer-events: none;
  will-change: transform;
  animation: ov-orb-top 18s ease-in-out infinite alternate;
}
body#pantalla #overlay::after {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  bottom: -30%;
  left: -22%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, .50) 0%, rgba(99, 102, 241, .30) 35%, rgba(56, 189, 248, .12) 58%, transparent 74% );
  pointer-events: none;
  will-change: transform;
  animation: ov-orb-bot 22s ease-in-out infinite alternate;
}
@keyframes ov-orb-top {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-10%, 22%);
  }
  100% {
    transform: translate(-16%, 8%);
  }
}
@keyframes ov-orb-bot {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(18%, -14%);
  }
  100% {
    transform: translate(8%, -24%);
  }
}
body#pantalla #overlay-logo {
  position: relative;
  z-index: 1;
  width: 78%;
  max-width: 30rem;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 6px 28px rgba(56,189,248,.45));
}
body#pantalla #overlay-sub {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.50);
  font-size: clamp(.85rem, 1.8vw, 1.1rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
}
body#pantalla #overlay-btn {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(14px) saturate(1.6);
  color: #fff;
  padding: .95rem 3.5rem;
  border-radius: 9999px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
  font-family: inherit;
  border: 2px solid rgba(255,255,255,.30);
  cursor: pointer;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow: hidden;
  transition: background .2s, border-color .2s;
  animation: ov-pulse 2.4s ease-in-out infinite;
}
body#pantalla #overlay-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, transparent 100%);
  border-radius: 9999px 9999px 0 0;
  pointer-events: none;
}
body#pantalla #overlay-btn:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.55);
}
@keyframes ov-pulse {
  0%, 100% {
    box-shadow: 0 4px 24px rgba(56,189,248,.20), 0 0 0 0 rgba(56,189,248,.08);
  }
  50% {
    box-shadow: 0 4px 36px rgba(56,189,248,.45), 0 0 0 12px rgba(56,189,248,.00);
  }
}
@media (prefers-reduced-motion: reduce) {
  body#pantalla #overlay::before, body#pantalla #overlay::after, body#pantalla #overlay-btn {
    animation: none;
  }
}
body#pantalla #layout {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
}
body#pantalla #col-actual {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 2px solid rgba(56,189,248,.15);
}
body#pantalla #col-header {
  background: linear-gradient(100deg, #081445 0%, #1a1a6e 40%, #1a3a8f 75%, #312e81 100%);
  padding: .9rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 16px rgba(8,20,69,.45);
}
body#pantalla #header-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(56,189,248,.50));
}
body#pantalla #header-sub {
  color: rgba(255,255,255,.80);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
}
body#pantalla #area-pb {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
  transition: background .3s;
}
body#pantalla #area-pb::before {
  content: '';
  position: absolute;
  width: 65%;
  height: 65%;
  top: -15%;
  right: -15%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, .09) 0%, rgba(37, 99, 235, .05) 45%, transparent 68% );
  pointer-events: none;
  will-change: transform;
  animation: pb-orb-cyan 26s ease-in-out infinite alternate;
}
body#pantalla #area-pb::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 70%;
  bottom: -18%;
  left: -18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, .09) 0%, rgba(99, 102, 241, .06) 40%, transparent 68% );
  pointer-events: none;
  will-change: transform;
  animation: pb-orb-purple 32s ease-in-out infinite alternate;
}
@keyframes pb-orb-cyan {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-14%, 18%);
  }
}
@keyframes pb-orb-purple {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(12%, -16%);
  }
}
@media (prefers-reduced-motion: reduce) {
  body#pantalla #area-pb::before, body#pantalla #area-pb::after {
    animation: none;
  }
}
body#pantalla #area-pb .label, body#pantalla #pb-numero, body#pantalla #pb-box {
  position: relative;
  z-index: 1;
}
body#pantalla #area-pb .label {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,.80);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 1rem;
}
body#pantalla #pb-numero {
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: .75rem;
}
body#pantalla #pb-box {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fe3939;
  text-transform: uppercase;
}
body#pantalla #col-anteriores {
  width: 22rem;
  display: flex;
  flex-direction: column;
  background: #000;
  border-left: 2px solid rgba(129,140,248,.12);
}
body#pantalla #col-anteriores header {
  background: linear-gradient(100deg, #081445 0%, #1a1a6e 40%, #1a3a8f 75%, #312e81 100%);
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(8,20,69,.40);
}
body#pantalla #col-anteriores header h2 {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255,255,255,.85);
}
body#pantalla #pb-historial {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body#pantalla .hist-item {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(56,189,248,.08);
  display: flex;
  flex-direction: column;
}
body#pantalla .hist-item .hist-num {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
body#pantalla .hist-item .hist-box {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fe3939;
  margin-top: .2rem;
}
body#pantalla .hist-item.first {
  background: rgba(56,189,248,.06);
}
@keyframes blinker {
  50% {
    opacity: 0.15;
  }
}
body#pantalla .blink {
  animation: blinker 1s linear infinite;
}
@font-face {
  font-family: "Haskoy";
  src: url("/static/fonts/Haskoy-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Haskoy";
  src: url("/static/fonts/Haskoy-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Haskoy";
  src: url("/static/fonts/Haskoy-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
body#secretarias {
  --cm-navy: #1a3a8f;
  --cm-blue: #2563eb;
  --cm-cyan: #38bdf8;
  --cm-sky-1: #e0f2fe;
  --cm-sky-2: #f0f9ff;
  background: linear-gradient(160deg, var(--cm-sky-1) 0%, var(--cm-sky-2) 45%, #fff 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  color-scheme: light;
}
body#secretarias::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 20% 10%, rgba(56,189,248,.10) 0%, transparent 60%), radial-gradient(ellipse 50% 40% at 80% 80%, rgba(37,99,235,.07) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
body#secretarias::after {
  content: '';
  position: fixed;
  width: 110vw;
  height: 110vw;
  top: -40vw;
  left: -25vw;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, .13) 0%, rgba(99, 102, 241, .09) 30%, rgba(56, 189, 248, .07) 55%, rgba(37, 99, 235, .03) 70%, transparent 80% );
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  animation: sec-orb-drift 38s ease-in-out infinite alternate;
}
@keyframes sec-orb-drift {
  0% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(22vw, 14vh);
  }
  66% {
    transform: translate(38vw, 35vh);
  }
  100% {
    transform: translate(12vw, 52vh);
  }
}
@media (prefers-reduced-motion: reduce) {
  body#secretarias::after {
    animation: none;
  }
}
body#secretarias header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(100deg, #081445 0%, #1a1a6e 40%, #1a3a8f 75%, #312e81 100%);
  box-shadow: 0 2px 16px rgba(8, 20, 69, 0.45);
}
body#secretarias header > div {
  max-width: 64rem;
  margin-inline: auto;
  padding: .875rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
body#secretarias header h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
}
body#secretarias header p {
  color: rgba(255,255,255,.55);
  font-size: .72rem;
  margin-top: .1rem;
}
body#secretarias header .flex.items-center.gap-3 {
  background: rgba(8, 20, 69, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(56,189,248,.28);
  border-radius: .875rem;
  padding: .5rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.20) inset;
}
body#secretarias header .flex.items-center.gap-3 span {
  color: rgba(255,255,255,.65);
}
body#secretarias #mi-box {
  background: rgba(37,99,235,.35);
  border: 1.5px solid rgba(56,189,248,.55);
  color: #fff;
  border-radius: .5rem;
  font-weight: 700;
  font-family: inherit;
}
body#secretarias #mi-box:focus {
  outline: none;
  border-color: var(--cm-cyan);
  box-shadow: 0 0 0 3px rgba(56,189,248,.18);
}
body#secretarias main {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin-inline: auto;
  padding: 2rem 1.5rem 4rem;
}
body#secretarias #badge-count {
  background: linear-gradient(135deg, var(--cm-blue) 0%, var(--cm-cyan) 100%);
  color: #fff;
  font-weight: 700;
  padding: .2rem .75rem;
  border-radius: 2rem;
  font-size: .8rem;
  box-shadow: 0 2px 8px rgba(37,99,235,.30);
}
body#secretarias #ultimo-llamado {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.9);
  border-top: 1.5px solid rgba(16,185,129,.45);
  border-radius: 1.25rem;
  box-shadow: 0 4px 18px rgba(16,185,129,.12), 0 1px 0 rgba(255,255,255,.9) inset;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
body#secretarias #ultimo-llamado.hidden {
  display: none !important;
}
body#secretarias .bg-white.rounded-2xl {
  background: rgba(255,255,255,.82) !important;
  backdrop-filter: blur(10px) saturate(1.5);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  border-radius: 1.5rem !important;
  border: 1px solid rgba(255,255,255,.92) !important;
  border-top: 1.5px solid rgba(56,189,248,.5) !important;
  box-shadow: 0 2px 8px rgba(37,99,235,.12), 0 8px 28px rgba(56,189,248,.10), 0 1px 0 rgba(255,255,255,.9) inset;
  overflow: hidden;
  position: relative;
}
body#secretarias thead tr {
  background: linear-gradient(100deg, var(--cm-navy) 0%, var(--cm-blue) 100%) !important;
}
body#secretarias tbody tr:hover {
  background: rgba(56,189,248,.06) !important;
}
body#secretarias tbody tr.bg-blue-50 {
  background: rgba(37,99,235,.05) !important;
}
.btn-llamar {
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 2rem;
  padding: .45rem 1.1rem;
  font-size: .8rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, filter .15s;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.btn-llamar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, transparent 100%);
  border-radius: 2rem 2rem 0 0;
  pointer-events: none;
}
.btn-llamar:active {
  transform: scale(.95);
}
.btn-llamar.bg-blue-600 {
  background: linear-gradient(135deg, var(--cm-blue) 0%, var(--cm-cyan) 100%) !important;
  box-shadow: 0 3px 12px rgba(37,99,235,.35);
}
.btn-llamar.bg-blue-600:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-llamar.bg-blue-500 {
  background: linear-gradient(135deg, #3b82f6 0%, #67e8f9 100%) !important;
  box-shadow: 0 3px 10px rgba(59,130,246,.30);
}
.btn-llamar.bg-blue-500:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-llamar.bg-emerald-500 {
  background: linear-gradient(135deg, #059669 0%, #34d399 100%) !important;
  box-shadow: 0 3px 10px rgba(5,150,105,.30);
}
.btn-llamar.bg-emerald-500:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-llamar.bg-red-500 {
  background: linear-gradient(135deg, #dc2626 0%, #f87171 100%) !important;
  box-shadow: 0 3px 10px rgba(220,38,38,.30);
}
.btn-llamar.bg-red-500:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-reiniciar-fila {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 999;
  height: 3rem;
  width: 3rem;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  overflow: hidden;
  white-space: nowrap;
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f87171 0%, #fca5a5 100%);
  box-shadow: 0 4px 12px rgba(220,38,38,.18), 0 1px 0 rgba(255,255,255,.25) inset;
  transition: width .28s cubic-bezier(.4,0,.2,1), box-shadow .2s;
}
.btn-reiniciar-fila::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, transparent 100%);
  border-radius: 2rem 2rem 0 0;
  pointer-events: none;
}
.btn-reiniciar-fila:hover {
  width: 10rem;
  box-shadow: 0 6px 18px rgba(220,38,38,.28), 0 1px 0 rgba(255,255,255,.25) inset;
}
.brf-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.brf-label {
  opacity: 0;
  transition: opacity .15s .12s;
  pointer-events: none;
}
.btn-reiniciar-fila:hover .brf-label {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .btn-reiniciar-fila {
    transition: none;
  }
  .btn-reiniciar-fila:hover {
    width: 10rem;
  }
}
body#secretarias .btn-volver-menu {
  bottom: 5.5rem;
}
#toast > div {
  background: rgba(15,23,42,.88) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56,189,248,.20);
  border-radius: 1rem !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}
.row-in {
  animation: fadeIn .25s ease-out;
}
.toast {
  animation: fadeIn .3s ease-out;
}
@font-face {
  font-family: "Haskoy";
  src: url("/static/fonts/Haskoy-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Haskoy";
  src: url("/static/fonts/Haskoy-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Haskoy";
  src: url("/static/fonts/Haskoy-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
body#menu {
  --cm-cel: #7dd3fc;
  --cm-ind: #818cf8;
  --cm-navy: #1e3a8a;
  --cm-blue: #2563eb;
  --cm-white: #ffffff;
  --cm-glass: rgba(255, 255, 255, 0.76);
  --cm-shadow-cel: rgba(125, 211, 252, 0.28);
  --cm-shadow-ind: rgba(129, 140, 248, 0.16);
  --cm-text-dark: #0f172a;
  --cm-text-mid: #334155;
  --cm-text-soft: #64748b;
  background: linear-gradient(148deg, #f0f9ff 0%, #eef2ff 100%);
  min-height: 100vh;
  font-family: "Haskoy", sans-serif;
  color: var(--cm-text-dark);
  color-scheme: light;
  display: flex;
  flex-direction: column;
  background-attachment: fixed;
}
body#menu::before {
  content: '';
  position: fixed;
  width: 60vw;
  height: 60vw;
  top: -18vw;
  left: -12vw;
  background: radial-gradient(circle, rgba(125,211,252,0.38) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: menu-orb-a 13s ease-in-out infinite;
  will-change: transform;
}
body#menu::after {
  content: '';
  position: fixed;
  width: 55vw;
  height: 55vw;
  bottom: -16vw;
  right: -10vw;
  background: radial-gradient(circle, rgba(129,140,248,0.32) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: menu-orb-b 16s ease-in-out infinite;
  will-change: transform;
}
@keyframes menu-orb-a {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(4vw, 3vw) scale(1.09);
  }
}
@keyframes menu-orb-b {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-3vw, -4vw) scale(1.07);
  }
}
@media (prefers-reduced-motion: reduce) {
  body#menu::before, body#menu::after {
    animation: none;
  }
}
.menu-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(100deg, #081445 0%, #1a1a6e 40%, #1a3a8f 75%, #312e81 100%);
  box-shadow: 0 2px 16px rgba(8, 20, 69, 0.45);
  overflow: hidden;
}
.menu-header::before {
  content: '';
  position: absolute;
  width: 50%;
  height: 400%;
  top: -160%;
  right: -5%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(56,189,248,.38) 0%, rgba(37,99,235,.20) 35%, rgba(99,102,241,.08) 60%, transparent 72% );
  pointer-events: none;
  animation: menu-header-orb-a 22s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  will-change: transform;
}
.menu-header::after {
  content: '';
  position: absolute;
  width: 40%;
  height: 400%;
  bottom: -160%;
  left: 5%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(168,85,247,.32) 0%, rgba(99,102,241,.18) 30%, rgba(56,189,248,.07) 58%, transparent 72% );
  pointer-events: none;
  animation: menu-header-orb-b 28s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  will-change: transform;
}
@keyframes menu-header-orb-a {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-4%, 10%) scale(1.04);
  }
  50% {
    transform: translate(-8%, 16%) scale(1.07);
  }
  75% {
    transform: translate(-5%, 22%) scale(1.03);
  }
  100% {
    transform: translate(-12%, 8%) scale(1.05);
  }
}
@keyframes menu-header-orb-b {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(8%, -8%) scale(1.05);
  }
  50% {
    transform: translate(14%, -14%) scale(1.08);
  }
  75% {
    transform: translate(10%, -20%) scale(1.04);
  }
  100% {
    transform: translate(6%, -10%) scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu-header::before, .menu-header::after {
    animation: none;
  }
}
.menu-header-inner {
  max-width: 68rem;
  margin-inline: auto;
  padding: .7rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.menu-logo-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.menu-logo-img {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1) drop-shadow(0 2px 14px rgba(125,211,252,.55));
  transition: filter .2s, transform .2s;
}
.menu-logo-img:hover {
  filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(125,211,252,.80));
  transform: scale(1.04);
}
.menu-subtitulo {
  color: rgba(255,255,255,.55);
  font-size: .72rem;
  font-weight: 400;
}
.menu-nombre {
  font-weight: 700;
  color: var(--cm-cel);
}
.menu-btn-salir {
  background: rgba(255,255,255,.10);
  color: #fff;
  font-weight: 700;
  font-size: .72rem;
  padding: .4rem 1.1rem;
  border-radius: 2rem;
  border: 1px solid rgba(255,255,255,.22);
  cursor: pointer;
  transition: background .15s, transform .15s;
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
}
.menu-btn-salir:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-1px);
}
.menu-btn-salir:active {
  transform: translateY(0);
}
.menu-main {
  max-width: 68rem;
  margin-inline: auto;
  padding: 3rem 1.5rem 4rem;
  flex: 1;
  width: 100%;
  position: relative;
  z-index: 1;
}
.menu-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cm-navy);
  margin-bottom: .35rem;
  letter-spacing: -.02em;
}
.menu-subheading {
  color: var(--cm-text-soft);
  font-size: .82rem;
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.menu-card {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px) saturate(1.6);
  -webkit-backdrop-filter: blur(10px) saturate(1.6);
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-top: 1.5px solid rgba(129, 140, 248, 0.38);
  box-shadow: 0 2px 8px var(--cm-shadow-cel), 0 6px 24px var(--cm-shadow-ind), 0 1px 0 rgba(255,255,255,0.9) inset;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease;
}
.menu-card::before, .menu-card::after {
  display: none;
}
.menu-card.hidden {
  display: none !important;
}
.menu-card > * {
  position: relative;
  z-index: 1;
}
.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px var(--cm-shadow-cel), 0 16px 48px var(--cm-shadow-ind), 0 1px 0 rgba(255,255,255,0.95) inset;
}
.menu-card-icono {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
  overflow: hidden;
}
.menu-card-icono img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.menu-card-icono.azul, .menu-card-icono.ambar, .menu-card-icono.purpura {
  background: linear-gradient(135deg, #0ea5e9 0%, #6d28d9 100%);
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.30), 0 2px 6px rgba(14, 165, 233, 0.22);
}
.menu-card-titulo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cm-text-dark);
  margin-bottom: .3rem;
  letter-spacing: -.01em;
}
.menu-card-desc {
  color: var(--cm-text-soft);
  font-size: .78rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.menu-card-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 700;
  padding: .7rem 1rem;
  border-radius: 2rem;
  font-size: .85rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: .02em;
  transition: transform .15s, box-shadow .15s, filter .15s;
  position: relative;
  overflow: hidden;
}
.menu-card-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: rgba(255,255,255,0.2);
  border-radius: 2rem 2rem 0 0;
  pointer-events: none;
}
.menu-card-btn.azul, .menu-card-btn.ambar, .menu-card-btn.purpura {
  background: linear-gradient(135deg, #0ea5e9 0%, #6d28d9 100%);
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.30);
}
.menu-card-btn.azul:hover, .menu-card-btn.ambar:hover, .menu-card-btn.purpura:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.42);
  filter: brightness(1.08);
}
.menu-card-btn:active {
  transform: translateY(0);
  filter: brightness(.97);
}
.menu-sublinks {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
  margin-bottom: .75rem;
}
@media (min-width: 640px) {
  .menu-sublinks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.menu-sublink {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cm-text-mid);
  font-size: .75rem;
  font-weight: 600;
  padding: .8rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.35);
  text-align: center;
  text-decoration: none;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
  display: block;
}
.menu-sublink:hover {
  background: rgba(238, 242, 255, 0.92);
  border-color: rgba(129, 140, 248, 0.55);
  color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--cm-shadow-ind);
}
body#login {
  --cm-navy: :#3730A3;
  --cm-blue: #2563eb;
  --cm-cyan: #38bdf8;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
body#login::before {
  display: none;
}
.login-panel-left {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  background: linear-gradient(155deg, #081445 0%, #0f2472 40%, #1a3a8f 75%, #1e40af 100%);
}
.login-panel-left::before {
  content: '';
  position: absolute;
  width: 85%;
  height: 85%;
  top: -28%;
  right: -22%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, .55) 0%, rgba(37, 99, 235, .30) 35%, rgba(99, 102, 241, .12) 60%, transparent 75% );
  pointer-events: none;
  will-change: transform;
  animation: login-orb-top 15s ease-in-out infinite alternate;
}
.login-panel-left::after {
  content: '';
  position: absolute;
  width: 95%;
  height: 95%;
  bottom: -30%;
  left: -25%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, .50) 0%, rgba(99, 102, 241, .32) 30%, rgba(56, 189, 248, .14) 58%, transparent 74% );
  pointer-events: none;
  will-change: transform;
  animation: login-orb-bot 15s ease-in-out infinite alternate;
}
@keyframes login-orb-top {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-8%, 20%);
  }
  100% {
    transform: translate(-14%, 10%);
  }
}
@keyframes login-orb-bot {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(16%, -12%);
  }
  100% {
    transform: translate(8%, -22%);
  }
}
.login-brand-logo {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 38rem;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 8px 32px rgba(56,189,248,.50));
  transition: filter .25s;
}
.login-brand-logo:hover {
  filter: brightness(0) invert(1) drop-shadow(0 10px 40px rgba(56,189,248,.70));
}
.login-brand-sub {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.45);
  font-size: 1.00rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 1.75rem;
  font-weight: 500;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .login-panel-left::before, .login-panel-left::after {
    animation: none;
  }
}
.login-panel-right {
  flex: 0 0 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  padding: 3rem 2rem;
}
.login-card {
  width: 100%;
  max-width: 22rem;
}
.login-welcome {
  font-size: 3.1rem;
  font-weight: 900;
  color: #3730A3;
  text-align: center;
  letter-spacing: -.03em;
  margin-bottom: .4rem;
}
.login-subtitulo {
  text-align: center;
  font-size: .85rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: .01em;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: .75rem;
  font-weight: 600;
  border-radius: .75rem;
  padding: .75rem 1rem;
  display: none;
}
.login-error.visible {
  display: block;
}
.login-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  color: var(--cm-navy);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: .35rem;
}
.login-input {
  width: 100%;
  border-radius: .875rem;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  padding: .75rem 1.1rem;
  font-size: .9rem;
  font-family: inherit;
  color: #0f172a;
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
}
.login-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}
.login-input:focus {
  border-color: var(--cm-cyan);
  box-shadow: 0 0 0 3px rgba(56,189,248,.18), 0 1px 4px rgba(37,99,235,.10);
  background: #fff;
}
.login-btn {
  width: 100%;
  margin-top: .5rem;
  padding: .85rem 1rem;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #0F172A 0%, #2563EB 55%, #8B5CF6 100%);
  box-shadow: 0 4px 18px rgba(82, 134, 246, 0.35), 0 1px 0 rgba(255,255,255,.20) inset;
  transition: transform .15s, box-shadow .15s, filter .15s;
  position: relative;
  overflow: hidden;
}
.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, transparent 100%);
  border-radius: 2rem 2rem 0 0;
  pointer-events: none;
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,.45), 0 1px 0 rgba(255,255,255,.20) inset;
  filter: brightness(1.06);
}
.login-btn:active {
  transform: translateY(0);
  filter: brightness(.97);
}
@media (max-width: 640px) {
  .login-panel-left {
    display: none;
  }
  .login-panel-right {
    flex: 1;
  }
}
body#panel {
  --cm-navy: #1a3a8f;
  --cm-blue: #2563eb;
  --cm-cyan: #38bdf8;
  --cm-sky-1: #e0f2fe;
  --cm-sky-2: #f0f9ff;
  background: linear-gradient(160deg, var(--cm-sky-1) 0%, var(--cm-sky-2) 45%, #fff 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  color-scheme: light;
}
body#panel::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 20% 10%, rgba(56,189,248,.10) 0%, transparent 60%), radial-gradient(ellipse 50% 40% at 80% 80%, rgba(37,99,235,.07) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
body#panel header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(100deg, #081445 0%, #1a1a6e 40%, #1a3a8f 75%, #312e81 100%);
  color: #fff;
  box-shadow: 0 2px 16px rgba(8, 20, 69, 0.45);
}
body#panel header > div {
  max-width: 80rem;
  margin-inline: auto;
  padding: .875rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
body#panel header h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
}
body#panel header p {
  color: #94a3b8;
  font-size: .72rem;
  margin-top: .1rem;
}
body#panel .panel-header-actions {
  display: flex;
  gap: .65rem;
  align-items: center;
}
body#panel .panel-metricas-link {
  font-size: .78rem;
  font-weight: 700;
  color: #93c5fd;
  text-decoration: none;
  padding: .45rem 1rem;
  border-radius: .5rem;
  border: 1px solid rgba(147,197,253,.30);
  transition: background .15s;
}
body#panel .panel-metricas-link:hover {
  background: rgba(147,197,253,.12);
}
body#panel main {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin-inline: auto;
  padding: 2rem 1.5rem 4rem;
}
.stat-card {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px) saturate(1.5);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.92);
  border-top: 1.5px solid rgba(56,189,248,.45);
  box-shadow: 0 2px 8px rgba(37,99,235,.10), 0 6px 20px rgba(56,189,248,.08), 0 1px 0 rgba(255,255,255,.9) inset;
  padding: 1.25rem 1.5rem;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37,99,235,.15), 0 12px 30px rgba(56,189,248,.12);
}
body#panel #filtros {
  position: relative;
  z-index: 1;
}
body#panel .filtro-btn {
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: .78rem;
  padding: .35rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
body#panel .filtro-btn::before, body#panel .btn-detalle::before {
  display: none;
}
body#panel .filtro-btn:not(.active-filtro) {
  background: rgba(71, 85, 105, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1e293b;
  border: 1px solid rgba(71, 85, 105, 0.35);
}
body#panel .filtro-btn:not(.active-filtro):hover {
  background: rgba(71, 85, 105, 0.38);
  border-color: rgba(71, 85, 105, 0.55);
}
body#panel .active-filtro {
  background: #1e293b;
  color: #fff;
  border: 1px solid #1e293b;
  box-shadow: 0 2px 8px rgba(15,23,42,0.25);
}
body#panel .btn-detalle {
  font-size: .75rem;
  font-weight: 700;
  padding: .375rem .625rem;
  border-radius: .5rem;
  background: rgba(71, 85, 105, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1e293b;
  border: 1px solid rgba(71, 85, 105, 0.32);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
body#panel .btn-detalle:hover {
  background: rgba(71, 85, 105, 0.34);
  border-color: rgba(71, 85, 105, 0.52);
}
body#panel .bg-white.rounded-2xl {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px) saturate(1.5);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,.92);
  border-top: 1.5px solid rgba(56,189,248,.50);
  box-shadow: 0 2px 8px rgba(37,99,235,.12), 0 8px 28px rgba(56,189,248,.10), 0 1px 0 rgba(255,255,255,.9) inset;
  overflow: hidden;
}
body#panel thead tr {
  background: linear-gradient(100deg, var(--cm-navy) 0%, var(--cm-blue) 100%);
}
body#panel tbody tr:hover {
  background: rgba(56,189,248,.05);
}
.badge-nuevo {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 2rem;
  padding: .2rem .65rem;
  font-size: .72rem;
  font-weight: 700;
}
.badge-notificado {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 2rem;
  padding: .2rem .65rem;
  font-size: .72rem;
  font-weight: 700;
}
.badge-revision {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  border-radius: 2rem;
  padding: .2rem .65rem;
  font-size: .72rem;
  font-weight: 700;
}
.badge-solucionado {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 2rem;
  padding: .2rem .65rem;
  font-size: .72rem;
  font-weight: 700;
}
body#panel button {
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 2rem;
  font-size: .72rem;
  padding: .35rem .85rem;
  cursor: pointer;
  transition: transform .15s, filter .15s;
  color: #fff;
  position: relative;
  overflow: hidden;
}
body#panel button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, transparent 100%);
  pointer-events: none;
}
body#panel button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
body#panel button:active {
  transform: scale(.95);
}
body#panel .bg-amber-500 {
  background: linear-gradient(135deg, #f59e0b 0%, #fcd34d 100%);
  box-shadow: 0 2px 8px rgba(245,158,11,.35);
  color: #78350f;
}
body#panel .bg-emerald-600 {
  background: linear-gradient(135deg, #059669 0%, #34d399 100%);
  box-shadow: 0 2px 8px rgba(5,150,105,.35);
}
body#panel .bg-blue-500 {
  background: linear-gradient(135deg, var(--cm-blue) 0%, var(--cm-cyan) 100%);
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.50);
  backdrop-filter: blur(4px);
  z-index: 50;
  align-items: center;
  justify-content: center;
}
#modal-overlay.open {
  display: flex;
}
#modal-box {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,.95);
  border-top: 1.5px solid rgba(56,189,248,.50);
  box-shadow: 0 20px 60px rgba(37,99,235,.18), 0 1px 0 rgba(255,255,255,.9) inset;
  width: 100%;
  max-width: 26rem;
  padding: 2rem;
}
#modal-tecnico, #modal-descripcion {
  border: 1.5px solid rgba(56,189,248,.35);
  border-radius: .875rem;
  background: rgba(255,255,255,.75);
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
#modal-tecnico:focus, #modal-descripcion:focus {
  border-color: var(--cm-cyan);
  box-shadow: 0 0 0 3px rgba(56,189,248,.18);
  outline: none;
  background: #fff;
}
#modal-confirmar {
  background: linear-gradient(135deg, var(--cm-blue) 0%, var(--cm-cyan) 100%);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
  border-radius: 2rem;
}
button[onclick="cerrarModal()"] {
  background: #dc2626;
  color: #fff;
  box-shadow: none;
  border-radius: 2rem;
  border: none;
  padding: .5rem 1.5rem;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
button[onclick="cerrarModal()"]:hover {
  background: #b91c1c;
  filter: none;
  transform: none;
}
.evo-section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #64748b;
  margin: .9rem 0 .4rem;
}
.evo-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  max-height: 190px;
  overflow-y: auto;
  margin-bottom: .5rem;
  padding-right: .25rem;
}
.evo-list::-webkit-scrollbar {
  width: 4px;
}
.evo-list::-webkit-scrollbar-track {
  background: transparent;
}
.evo-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}
.evo-item {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .55rem .7rem;
  border-radius: .6rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.evo-badge {
  font-size: .6rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: .3rem;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-top: .1rem;
  white-space: nowrap;
}
.evo-notificado {
  background: #dbeafe;
  color: #1d4ed8;
}
.evo-revision {
  background: #fef3c7;
  color: #b45309;
}
.evo-solucionado {
  background: #d1fae5;
  color: #065f46;
}
.evo-content {
  flex: 1;
  min-width: 0;
}
.evo-tecnico {
  font-size: .76rem;
  font-weight: 700;
  color: #1e293b;
}
.evo-desc {
  font-size: .71rem;
  color: #475569;
  margin-top: .1rem;
  word-break: break-word;
  line-height: 1.4;
}
.evo-fecha {
  font-size: .62rem;
  color: #94a3b8;
  margin-top: .15rem;
}
.modal-separator {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: .75rem 0;
}
#detalle-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.50);
  z-index: 60;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}
#detalle-overlay.open {
  display: flex;
}
#detalle-box {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  width: 100%;
  max-width: 44rem;
  box-shadow: 0 24px 64px rgba(0,0,0,.24);
  margin: auto;
}
.det-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.det-titulo {
  font-size: 1.1rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: .35rem;
}
.det-close-btn {
  background: #dc2626;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #fff;
  padding: .3rem .55rem;
  line-height: 1;
  transition: background .15s;
  border-radius: .4rem;
  font-weight: 700;
}
.det-close-btn:hover {
  background: #b91c1c;
}
.det-section {
  margin-top: 1.25rem;
}
.det-section-title {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.det-grid {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  background: #f8fafc;
  border-radius: .75rem;
  padding: .875rem 1rem;
  border: 1px solid #e2e8f0;
}
.det-row {
  display: flex;
  gap: .75rem;
  align-items: baseline;
}
.det-key {
  font-size: .72rem;
  font-weight: 600;
  color: #94a3b8;
  flex-shrink: 0;
  width: 9rem;
}
.det-val {
  font-size: .78rem;
  font-weight: 500;
  color: #334155;
  word-break: break-word;
}
.det-desc-box {
  background: #f8fafc;
  border-radius: .75rem;
  padding: .875rem 1rem;
  border: 1px solid #e2e8f0;
  font-size: .8rem;
  color: #334155;
  line-height: 1.65;
  word-break: break-word;
}
.det-evo-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.det-evo-item {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .65rem .75rem;
  border-radius: .7rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.det-evo-num {
  font-size: .65rem;
  font-weight: 700;
  color: #cbd5e1;
  flex-shrink: 0;
  width: 1rem;
  text-align: right;
  margin-top: .15rem;
}
.det-empty {
  font-size: .78rem;
  color: #94a3b8;
  text-align: center;
  padding: 1.5rem;
  font-style: italic;
  background: #f8fafc;
  border-radius: .75rem;
}
.det-count {
  font-size: .65rem;
  background: #e2e8f0;
  color: #64748b;
  border-radius: 2rem;
  padding: .1rem .5rem;
  font-weight: 700;
}
.det-link {
  font-size: .78rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}
.det-link:hover {
  text-decoration: underline;
}
.det-footer {
  border-top: 1px solid rgba(71,85,105,.25);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}
.btn-cerrar-detalle {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: .5rem 1.5rem;
  border-radius: 1.7rem;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.btn-cerrar-detalle:hover {
  background: #b91c1c;
}
body#metricas {
  --cm-navy: #1a3a8f;
  --cm-blue: #2563eb;
  --cm-cyan: #38bdf8;
  --cm-sky-1: #e0f2fe;
  --cm-sky-2: #f0f9ff;
  background: linear-gradient(160deg, var(--cm-sky-1) 0%, var(--cm-sky-2) 45%, #fff 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  color-scheme: light;
}
body#metricas::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 20% 10%, rgba(56,189,248,.10) 0%, transparent 60%), radial-gradient(ellipse 50% 40% at 80% 80%, rgba(37,99,235,.07) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
body#metricas header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(100deg, #081445 0%, #1a1a6e 40%, #1a3a8f 75%, #312e81 100%);
  box-shadow: 0 2px 16px rgba(8, 20, 69, 0.45);
}
body#metricas header > div {
  max-width: 80rem;
  margin-inline: auto;
  padding: .875rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
body#metricas header h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
}
body#metricas header p {
  color: rgba(255,255,255,.55);
  font-size: .72rem;
  margin-top: .1rem;
}
.met-header-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.met-nav-btn {
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: .75rem;
  padding: .42rem 1rem;
  border-radius: 2rem;
  border: 1.5px solid rgba(56,189,248,.35);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(6px);
  color: var(--cm-blue);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.met-nav-btn:hover {
  background: rgba(224,242,254,.9);
  border-color: rgba(56,189,248,.6);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(56,189,248,.20);
}
.met-refresh-btn {
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: .75rem;
  padding: .42rem 1.1rem;
  border-radius: 2rem;
  border: none;
  background: linear-gradient(135deg, var(--cm-blue) 0%, var(--cm-cyan) 100%);
  color: #fff;
  cursor: pointer;
  transition: transform .15s, filter .15s;
  box-shadow: 0 3px 12px rgba(37,99,235,.30);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  position: relative;
  overflow: hidden;
}
.met-refresh-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.20) 0%, transparent 100%);
  border-radius: 2rem 2rem 0 0;
  pointer-events: none;
}
.met-refresh-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.met-refresh-btn:active {
  transform: scale(.97);
}
body#metricas main {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin-inline: auto;
  padding: 2rem 1.5rem 4rem;
}
.met-section-title {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #64748b;
  margin-bottom: .875rem;
  margin-top: 2rem;
}
.met-section-title:first-child {
  margin-top: 0;
}
.met-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.met-kpi-card {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px) saturate(1.5);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.92);
  border-top: 1.5px solid rgba(56,189,248,.45);
  box-shadow: 0 2px 8px rgba(37,99,235,.10), 0 6px 20px rgba(56,189,248,.06), 0 1px 0 rgba(255,255,255,.9) inset;
  padding: 1.1rem 1.35rem;
  transition: transform .2s, box-shadow .2s;
}
.met-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37,99,235,.14), 0 12px 28px rgba(56,189,248,.10);
}
.met-kpi-label {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  margin-bottom: .3rem;
}
.met-kpi-value {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: #0f172a;
  margin-bottom: .15rem;
}
.met-kpi-sub {
  font-size: .67rem;
  color: #94a3b8;
  font-weight: 500;
}
.met-kpi-value.red {
  color: #dc2626;
}
.met-kpi-value.green {
  color: #059669;
}
.met-kpi-value.blue {
  color: var(--cm-blue);
}
.met-estado-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
.met-estado-card {
  border-radius: .875rem;
  padding: .875rem 1.1rem;
  border: 1px solid transparent;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}
.met-estado-card.nuevo {
  background: rgba(254,202,202,.45);
  border-color: rgba(252,165,165,.45);
}
.met-estado-card.notificado {
  background: rgba(191,219,254,.45);
  border-color: rgba(147,197,253,.45);
}
.met-estado-card.revision {
  background: rgba(253,230,138,.45);
  border-color: rgba(252,211,77,.45);
}
.met-estado-card.solucionado {
  background: rgba(167,243,208,.45);
  border-color: rgba(110,231,183,.45);
}
.met-estado-label {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.met-estado-card.nuevo .met-estado-label {
  color: #b91c1c;
}
.met-estado-card.notificado .met-estado-label {
  color: #1d4ed8;
}
.met-estado-card.revision .met-estado-label {
  color: #92400e;
}
.met-estado-card.solucionado .met-estado-label {
  color: #065f46;
}
.met-estado-num {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.met-estado-card.nuevo .met-estado-num {
  color: #dc2626;
}
.met-estado-card.notificado .met-estado-num {
  color: #2563eb;
}
.met-estado-card.revision .met-estado-num {
  color: #d97706;
}
.met-estado-card.solucionado .met-estado-num {
  color: #059669;
}
.met-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.met-chart-card {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px) saturate(1.5);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  border-radius: 1.35rem;
  border: 1px solid rgba(255,255,255,.92);
  border-top: 1.5px solid rgba(56,189,248,.40);
  box-shadow: 0 2px 8px rgba(37,99,235,.10), 0 1px 0 rgba(255,255,255,.9) inset;
  padding: 1.35rem 1.5rem;
}
.met-chart-title {
  font-size: .85rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -.01em;
  margin-bottom: .2rem;
}
.met-chart-subtitle {
  font-size: .68rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}
.met-chart-rows {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.met-chart-row {
  display: grid;
  grid-template-columns: 9rem 1fr 2.25rem;
  align-items: center;
  gap: .65rem;
}
.met-chart-label {
  font-size: .72rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.met-chart-track {
  height: .875rem;
  background: rgba(0,0,0,.06);
  border-radius: 2rem;
  overflow: hidden;
}
.met-chart-fill {
  height: 100%;
  border-radius: 2rem;
  transition: width .55s cubic-bezier(.4,0,.2,1);
  min-width: .25rem;
}
.met-chart-count {
  font-size: .72rem;
  font-weight: 700;
  color: #334155;
  text-align: right;
}
.met-chart-empty {
  font-size: .78rem;
  color: #94a3b8;
  text-align: center;
  padding: 1.5rem;
  font-style: italic;
}
.fill-blue {
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
}
.fill-amber {
  background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
}
.fill-navy {
  background: linear-gradient(90deg, #1a3a8f 0%, #2563eb 100%);
}
.fill-teal {
  background: linear-gradient(90deg, #0891b2 0%, #06b6d4 100%);
}
.met-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid rgba(56,189,248,.18);
}
.met-tab {
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  padding: .65rem 1.6rem;
  border: none;
  background: none;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  border-radius: .5rem .5rem 0 0;
  transition: color .15s, border-color .15s, background .15s;
  letter-spacing: .02em;
}
.met-tab:hover {
  color: #2563eb;
  background: rgba(37,99,235,.05);
}
.met-tab.activo {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: rgba(37,99,235,.06);
}
.met-filtro-periodo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 8px rgba(37,99,235,.08);
}
.met-filtro-periodo.hidden {
  display: none;
}
.met-filtro-periodo label {
  font-size: .72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .07em;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.met-filtro-select {
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  border: 1.5px solid rgba(56,189,248,.45);
  border-radius: .5rem;
  padding: .4rem .75rem;
  cursor: pointer;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.met-filtro-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.met-filtro-periodo input[type="date"] {
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  border: 1.5px solid rgba(56,189,248,.45);
  border-radius: .5rem;
  padding: .4rem .75rem;
  cursor: pointer;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.met-filtro-periodo input[type="date"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.met-periodo-label {
  font-size: .75rem;
  color: #64748b;
  font-weight: 500;
  font-style: italic;
  margin-left: auto;
}
.met-donuts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: .5rem;
}
@media (max-width: 900px) {
  .met-donuts-grid {
    grid-template-columns: 1fr;
  }
}
.met-chart-card--wide {
  grid-column: 1 / -1;
}
.met-tabla-wrap {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px) saturate(1.5);
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.92);
  border-top: 1.5px solid rgba(56,189,248,.40);
  box-shadow: 0 2px 8px rgba(37,99,235,.10), 0 1px 0 rgba(255,255,255,.9) inset;
  overflow: hidden;
}
.met-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.met-tabla thead tr {
  background: linear-gradient(100deg, #081445 0%, #1a3a8f 100%);
  color: rgba(255,255,255,.85);
}
.met-tabla th {
  padding: .75rem 1rem;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: left;
  white-space: nowrap;
}
.met-tabla td {
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(56,189,248,.08);
  color: #334155;
  vertical-align: middle;
}
.met-tabla tbody tr:last-child td {
  border-bottom: none;
}
.met-tabla tbody tr:hover td {
  background: rgba(56,189,248,.05);
}
.met-td-id {
  font-weight: 700;
  color: #64748b;
  font-size: .75rem;
}
.met-tabla-vacia {
  text-align: center;
  padding: 2.5rem;
  color: #94a3b8;
  font-style: italic;
}
.met-badge {
  display: inline-block;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .22rem .65rem;
  border-radius: 2rem;
}
.badge-nuevo {
  background: rgba(254,202,202,.6);
  color: #b91c1c;
}
.badge-notificado {
  background: rgba(191,219,254,.6);
  color: #1d4ed8;
}
.badge-revision {
  background: rgba(253,230,138,.6);
  color: #92400e;
}
.badge-solucionado {
  background: rgba(167,243,208,.6);
  color: #065f46;
}
.met-btn-detalle {
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 2rem;
  border: 1.5px solid rgba(37,99,235,.30);
  background: rgba(37,99,235,.07);
  color: #2563eb;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.met-btn-detalle:hover {
  background: rgba(37,99,235,.14);
  border-color: rgba(37,99,235,.55);
}
.met-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,20,69,.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.met-modal-overlay.hidden {
  display: none;
}
.met-modal {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 24px 64px rgba(8,20,69,.30);
  padding: 2rem 2.25rem;
  width: 100%;
  max-width: 42rem;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.met-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  transition: color .15s;
}
.met-modal-close:hover {
  color: #0f172a;
}
.met-modal-titulo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}
.met-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1.25rem;
}
.met-modal-field {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.met-modal-field--full {
  grid-column: 1 / -1;
}
.met-modal-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #94a3b8;
}
.met-modal-field > span:last-child {
  font-size: .875rem;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.45;
}
.met-modal-evos {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.met-evo-item {
  display: grid;
  grid-template-columns: 9rem auto 1fr;
  gap: .5rem .75rem;
  align-items: start;
  padding: .6rem .75rem;
  background: rgba(241,245,249,.7);
  border-radius: .6rem;
  font-size: .78rem;
}
.met-evo-fecha {
  color: #94a3b8;
  font-size: .7rem;
}
.met-evo-accion {
  font-weight: 700;
}
.met-evo-tecnico {
  color: #475569;
  font-weight: 600;
}
.met-evo-desc {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: .75rem;
  line-height: 1.4;
}
body#rrhh {
  min-height: 100vh;
  background: linear-gradient(148deg, #f0f9ff 0%, #eef2ff 100%);
  background-attachment: fixed;
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  display: flex;
  flex-direction: column;
}
body#rrhh::before {
  content: '';
  position: fixed;
  width: 55vw;
  height: 55vw;
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(125,211,252,0.30) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: rrhh-orb-a 14s ease-in-out infinite;
  will-change: transform;
}
body#rrhh::after {
  content: '';
  position: fixed;
  width: 50vw;
  height: 50vw;
  bottom: -14vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(129,140,248,0.26) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: rrhh-orb-b 18s ease-in-out infinite;
  will-change: transform;
}
@keyframes rrhh-orb-a {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(3vw,2vw) scale(1.07);
  }
}
@keyframes rrhh-orb-b {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(-2vw,-3vw) scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  body#rrhh::before, body#rrhh::after {
    animation: none;
  }
}
.rrhh-header {
  background: linear-gradient(100deg, #081445 0%, #1a1a6e 40%, #1a3a8f 75%, #312e81 100%);
  box-shadow: 0 2px 16px rgba(8,20,69,.45);
  position: sticky;
  top: 0;
  z-index: 50;
}
.rrhh-header-inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.rrhh-header-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.rrhh-header-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  font-weight: 400;
  margin-top: .1rem;
}
.rrhh-header-actions button {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  padding: .5rem 1.2rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  transition: background .15s, transform .15s;
  backdrop-filter: blur(8px);
  font-family: inherit;
}
.rrhh-header-actions button:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-1px);
}
.rrhh-main {
  max-width: 72rem;
  margin-inline: auto;
  padding: 2rem 1.5rem 5rem;
  width: 100%;
  position: relative;
  z-index: 1;
}
.rrhh-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.rrhh-toolbar input {
  flex: 1;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(129,140,248,.30);
  border-radius: 2rem;
  padding: .6rem 1.2rem;
  font-size: .85rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.rrhh-toolbar input:focus {
  border-color: rgba(129,140,248,.65);
  box-shadow: 0 0 0 3px rgba(129,140,248,.12);
}
.rrhh-count {
  font-size: .78rem;
  color: #64748b;
  white-space: nowrap;
  font-weight: 500;
}
.rrhh-table-wrap {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px) saturate(1.6);
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.92);
  border-top: 1.5px solid rgba(129,140,248,.28);
  box-shadow: 0 2px 8px rgba(125,211,252,.14), 0 6px 24px rgba(129,140,248,.12);
  overflow: hidden;
}
.rrhh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.rrhh-table thead tr {
  background: linear-gradient(100deg, #081445 0%, #1a3a8f 100%);
}
.rrhh-table th {
  padding: .85rem 1rem;
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  color: rgba(255,255,255,.80);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.rrhh-th-acciones {
  text-align: right;
}
.rrhh-table tbody tr {
  border-bottom: 1px solid rgba(226,232,240,.7);
  transition: background .15s;
}
.rrhh-table tbody tr:last-child {
  border-bottom: none;
}
.rrhh-table tbody tr:hover {
  background: rgba(238,242,255,.55);
}
.rrhh-table td {
  padding: .75rem 1rem;
  vertical-align: middle;
}
.rrhh-td-legajo {
  font-weight: 700;
  color: #334155;
  font-size: .78rem;
}
.rrhh-nombre {
  font-weight: 600;
  color: #0f172a;
}
.rrhh-username {
  background: rgba(129,140,248,.10);
  color: #4338ca;
  padding: .18rem .5rem;
  border-radius: .4rem;
  font-size: .78rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
}
.rrhh-vacio {
  color: #94a3b8;
}
.rrhh-td-acciones {
  text-align: right;
  white-space: nowrap;
  display: flex;
  justify-content: flex-end;
  gap: .4rem;
}
.rrhh-empty {
  text-align: center;
  padding: 2.5rem;
  color: #94a3b8;
  font-size: .85rem;
}
.rrhh-badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 2rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.badge-rol-admin {
  background: rgba(220,38,38,.10);
  color: #b91c1c;
}
.badge-rol-sec {
  background: rgba(14,165,233,.12);
  color: #0369a1;
}
.badge-rol-mant {
  background: rgba(245,158,11,.12);
  color: #92400e;
}
.badge-rol-lim {
  background: rgba(16,185,129,.12);
  color: #065f46;
}
.badge-rol-enf {
  background: rgba(168,85,247,.12);
  color: #7e22ce;
}
.badge-rol-img {
  background: rgba(20,184,166,.12);
  color: #0f766e;
}
.badge-rol-fac {
  background: rgba(249,115,22,.12);
  color: #c2410c;
}
.badge-rol-rrhh {
  background: rgba(236,72,153,.12);
  color: #9d174d;
}
.badge-activo {
  background: rgba(16,185,129,.12);
  color: #065f46;
}
.badge-suspendido {
  background: rgba(245,158,11,.12);
  color: #92400e;
}
.badge-baja {
  background: rgba(100,116,139,.12);
  color: #475569;
}
.rrhh-btn-edit, .rrhh-btn-delete2 {
  padding: .3rem .8rem;
  border-radius: 2rem;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform .12s, filter .12s;
}
.rrhh-btn-edit {
  background: rgba(37,99,235,.12);
  color: #1d4ed8;
}
.rrhh-btn-delete2 {
  background: rgba(220,38,38,.10);
  color: #b91c1c;
}
.rrhh-btn-edit:hover {
  background: rgba(37,99,235,.22);
  transform: translateY(-1px);
}
.rrhh-btn-delete2:hover {
  background: rgba(220,38,38,.20);
  transform: translateY(-1px);
}
.rrhh-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,20,69,.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.rrhh-modal-overlay.visible {
  display: flex;
}
.rrhh-modal {
  background: #fff;
  border-radius: 1.25rem;
  width: 100%;
  max-width: 42rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(8,20,69,.35);
  display: flex;
  flex-direction: column;
}
.rrhh-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.rrhh-modal-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.01em;
}
.rrhh-modal-close {
  background: none;
  border: none;
  font-size: 1rem;
  color: #94a3b8;
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: .5rem;
  transition: color .15s, background .15s;
}
.rrhh-modal-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}
#rrhh-form {
  padding: 1.25rem 1.5rem;
}
.rrhh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem 1.2rem;
}
.rrhh-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.rrhh-field--full {
  grid-column: 1 / -1;
}
.rrhh-field label {
  font-size: .72rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.req {
  color: #dc2626;
}
.rrhh-field input, .rrhh-field select {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: .6rem;
  padding: .55rem .85rem;
  font-size: .83rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.rrhh-field input:focus, .rrhh-field select:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129,140,248,.14);
  background: #fff;
}
.rrhh-field small {
  font-size: .68rem;
  color: #94a3b8;
}
.rrhh-pass-wrap {
  position: relative;
  display: flex;
}
.rrhh-pass-wrap input {
  flex: 1;
  padding-right: 2.8rem;
}
.rrhh-eye {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  padding: .15rem .3rem;
  border-radius: .3rem;
  opacity: .55;
  transition: opacity .15s;
}
.rrhh-eye:hover {
  opacity: 1;
}
.rrhh-form-error {
  margin-top: .85rem;
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.25);
  color: #b91c1c;
  border-radius: .65rem;
  padding: .6rem .9rem;
  font-size: .78rem;
  font-weight: 600;
}
.rrhh-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}
.rrhh-btn-cancel {
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: .55rem 1.3rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.rrhh-btn-cancel:hover {
  background: #e2e8f0;
}
.rrhh-btn-save {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  padding: .55rem 1.5rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(79,70,229,.28);
  transition: filter .15s, transform .15s;
}
.rrhh-btn-save:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.rrhh-btn-save:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}
.rrhh-confirm {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.25rem;
  max-width: 26rem;
  width: 100%;
  box-shadow: 0 24px 60px rgba(8,20,69,.35);
  text-align: center;
}
.rrhh-confirm p {
  font-size: .9rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.rrhh-confirm-actions {
  display: flex;
  justify-content: center;
  gap: .75rem;
}
.rrhh-btn-delete {
  background: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
  color: #fff;
  border: none;
  padding: .55rem 1.4rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(220,38,38,.25);
  transition: filter .15s, transform .15s;
}
.rrhh-btn-delete:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.rrhh-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  background: #1e293b;
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: .85rem;
  font-size: .82rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: opacity .2s;
}
.rrhh-toast.hidden {
  display: none;
}
.rrhh-toast.toast-error {
  background: #991b1b;
}
@media (max-width: 640px) {
  .rrhh-form-grid {
    grid-template-columns: 1fr;
  }
  .rrhh-table th:nth-child(5), .rrhh-table td:nth-child(5), .rrhh-table th:nth-child(6), .rrhh-table td:nth-child(6) {
    display: none;
  }
}
body#editzona {
  min-height: 100vh;
  background: linear-gradient(148deg, #f0f9ff 0%, #eef2ff 100%);
  background-attachment: fixed;
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  display: flex;
  flex-direction: column;
}
body#editzona::before {
  content: '';
  position: fixed;
  width: 55vw;
  height: 55vw;
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(56,189,248,0.28) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: ez-orb-a 14s ease-in-out infinite;
}
body#editzona::after {
  content: '';
  position: fixed;
  width: 50vw;
  height: 50vw;
  bottom: -14vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: ez-orb-b 18s ease-in-out infinite;
}
@keyframes ez-orb-a {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(3vw,2vw) scale(1.07);
  }
}
@keyframes ez-orb-b {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(-2vw,-3vw) scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  body#editzona::before, body#editzona::after {
    animation: none;
  }
}
.ez-header {
  background: linear-gradient(100deg, #081445 0%, #1a1a6e 40%, #1a3a8f 75%, #312e81 100%);
  box-shadow: 0 2px 16px rgba(8,20,69,.45);
  position: sticky;
  top: 0;
  z-index: 50;
}
.ez-header-inner {
  max-width: 56rem;
  margin-inline: auto;
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ez-header-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.ez-header-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  font-weight: 400;
  margin-top: .1rem;
}
.ez-header-actions button {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  padding: .5rem 1.2rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  transition: background .15s, transform .15s;
  backdrop-filter: blur(8px);
  font-family: inherit;
}
.ez-header-actions button:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-1px);
}
.ez-main {
  max-width: 56rem;
  margin-inline: auto;
  padding: 2rem 1.5rem 5rem;
  width: 100%;
  position: relative;
  z-index: 1;
}
.ez-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.ez-toolbar input {
  flex: 1;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(99,102,241,.28);
  border-radius: 2rem;
  padding: .6rem 1.2rem;
  font-size: .85rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.ez-toolbar input:focus {
  border-color: rgba(99,102,241,.6);
  box-shadow: 0 0 0 3px rgba(99,102,241,.10);
}
.ez-count {
  font-size: .78rem;
  color: #64748b;
  white-space: nowrap;
  font-weight: 500;
}
.ez-table-wrap {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px) saturate(1.6);
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.92);
  border-top: 1.5px solid rgba(99,102,241,.25);
  box-shadow: 0 2px 8px rgba(56,189,248,.12), 0 6px 24px rgba(99,102,241,.10);
  overflow: hidden;
}
.ez-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .83rem;
}
.ez-table thead tr {
  background: linear-gradient(100deg, #081445 0%, #1a3a8f 100%);
}
.ez-table th {
  padding: .85rem 1rem;
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  color: rgba(255,255,255,.80);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ez-th-acciones {
  text-align: right;
}
.ez-table tbody tr {
  border-bottom: 1px solid rgba(226,232,240,.7);
  transition: background .15s;
}
.ez-table tbody tr:last-child {
  border-bottom: none;
}
.ez-table tbody tr:hover {
  background: rgba(238,242,255,.55);
}
.ez-table td {
  padding: .75rem 1rem;
  vertical-align: middle;
}
.ez-td-id {
  font-size: .72rem;
  font-weight: 700;
  color: #94a3b8;
}
.ez-td-nombre {
  font-weight: 600;
  color: #0f172a;
}
.ez-td-acciones {
  text-align: right;
  white-space: nowrap;
  display: flex;
  justify-content: flex-end;
  gap: .4rem;
}
.ez-empty {
  text-align: center;
  padding: 2.5rem;
  color: #94a3b8;
  font-size: .85rem;
}
.ez-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .75rem;
  border-radius: 2rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.badge-iot-on {
  background: rgba(5,150,105,.12);
  color: #065f46;
}
.badge-iot-off {
  background: rgba(100,116,139,.10);
  color: #64748b;
}
.ez-btn-edit, .ez-btn-delete {
  padding: .3rem .8rem;
  border-radius: 2rem;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform .12s, filter .12s;
}
.ez-btn-edit {
  background: rgba(37,99,235,.12);
  color: #1d4ed8;
}
.ez-btn-delete {
  background: rgba(220,38,38,.10);
  color: #b91c1c;
}
.ez-btn-edit:hover {
  background: rgba(37,99,235,.22);
  transform: translateY(-1px);
}
.ez-btn-delete:hover {
  background: rgba(220,38,38,.20);
  transform: translateY(-1px);
}
.ez-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,20,69,.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ez-modal-overlay.visible {
  display: flex;
}
.ez-modal {
  background: #fff;
  border-radius: 1.25rem;
  width: 100%;
  max-width: 30rem;
  box-shadow: 0 24px 60px rgba(8,20,69,.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ez-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.ez-modal-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.01em;
}
.ez-modal-close {
  background: none;
  border: none;
  font-size: 1rem;
  color: #94a3b8;
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: .5rem;
  transition: color .15s, background .15s;
}
.ez-modal-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}
#ez-form {
  padding: 1.25rem 1.5rem;
}
.ez-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1.1rem;
}
.ez-field label {
  font-size: .72rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ez-field input {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: .6rem;
  padding: .6rem .9rem;
  font-size: .9rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.ez-field input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129,140,248,.14);
  background: #fff;
}
.req {
  color: #dc2626;
}
.ez-field-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: .85rem;
  padding: .9rem 1rem;
  margin-bottom: .4rem;
}
.ez-toggle-title {
  font-size: .83rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: .2rem;
}
.ez-toggle-desc {
  font-size: .72rem;
  color: #94a3b8;
  line-height: 1.4;
}
.ez-toggle {
  position: relative;
  display: inline-block;
  width: 3.2rem;
  height: 1.75rem;
  flex-shrink: 0;
}
.ez-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.ez-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 2rem;
  transition: background .22s;
}
.ez-toggle-slider::before {
  content: '';
  position: absolute;
  width: 1.3rem;
  height: 1.3rem;
  left: .22rem;
  top: .22rem;
  background: #fff;
  border-radius: 50%;
  transition: transform .22s;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.ez-toggle input:checked + .ez-toggle-slider {
  background: #2563eb;
}
.ez-toggle input:checked + .ez-toggle-slider::before {
  transform: translateX(1.45rem);
}
.ez-iot-estado {
  font-size: .73rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 1rem;
  padding-left: .25rem;
  transition: color .2s;
}
.ez-iot-estado.on {
  color: #059669;
}
.ez-form-error {
  margin-top: .6rem;
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.25);
  color: #b91c1c;
  border-radius: .65rem;
  padding: .55rem .9rem;
  font-size: .78rem;
  font-weight: 600;
}
.ez-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}
.ez-btn-cancel {
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: .55rem 1.3rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.ez-btn-cancel:hover {
  background: #e2e8f0;
}
.ez-btn-save {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  padding: .55rem 1.5rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(79,70,229,.28);
  transition: filter .15s, transform .15s;
}
.ez-btn-save:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.ez-btn-save:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}
.ez-confirm {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.5rem 1.5rem;
  max-width: 24rem;
  width: 100%;
  box-shadow: 0 24px 60px rgba(8,20,69,.35);
  text-align: center;
}
.ez-confirm-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}
.ez-confirm p {
  font-size: .88rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.ez-confirm-actions {
  display: flex;
  justify-content: center;
  gap: .75rem;
}
.ez-btn-delete {
  background: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
  color: #fff;
  border: none;
  padding: .55rem 1.4rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(220,38,38,.25);
  transition: filter .15s, transform .15s;
}
.ez-btn-delete:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.ez-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  background: #1e293b;
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: .85rem;
  font-size: .82rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: opacity .2s;
}
.ez-toast.hidden {
  display: none;
}
.ez-toast.toast-error {
  background: #991b1b;
}
body#iotSalas {
  min-height: 100vh;
  background: linear-gradient(148deg, #f0f9ff 0%, #eef2ff 100%);
  background-attachment: fixed;
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  display: flex;
  flex-direction: column;
}
body#iotSalas::before {
  content: '';
  position: fixed;
  width: 55vw;
  height: 55vw;
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(125,211,252,0.28) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: is-orb-a 14s ease-in-out infinite;
}
body#iotSalas::after {
  content: '';
  position: fixed;
  width: 50vw;
  height: 50vw;
  bottom: -14vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: is-orb-b 18s ease-in-out infinite;
}
@keyframes is-orb-a {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(3vw,2vw) scale(1.07);
  }
}
@keyframes is-orb-b {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(-2vw,-3vw) scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  body#iotSalas::before, body#iotSalas::after {
    animation: none;
  }
}
.is-header {
  background: linear-gradient(100deg, #081445 0%, #1a1a6e 40%, #1a3a8f 75%, #312e81 100%);
  box-shadow: 0 2px 16px rgba(8,20,69,.45);
  position: sticky;
  top: 0;
  z-index: 50;
}
.is-header-inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.is-header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.is-header-dot-wrap {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex-shrink: 0;
}
.is-dot {
  display: block;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  animation: is-pulse 2.4s ease-in-out infinite;
}
.is-dot-b {
  animation-delay: .8s;
  background: #22d3ee;
  box-shadow: 0 0 6px #22d3ee;
}
.is-dot-c {
  animation-delay: 1.6s;
  background: #6ee7b7;
  box-shadow: 0 0 6px #6ee7b7;
}
@keyframes is-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: .4;
    transform: scale(.72);
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-dot {
    animation: none;
  }
}
.is-header-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.is-header-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.50);
  margin-top: .1rem;
}
.is-role-badge {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.22);
  padding: .3rem .9rem;
  border-radius: 2rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  backdrop-filter: blur(8px);
}
.is-main {
  max-width: 72rem;
  margin-inline: auto;
  padding: 2rem 1.5rem 5rem;
  width: 100%;
  position: relative;
  z-index: 1;
  flex: 1;
}
.is-hidden {
  display: none !important;
}
.is-placeholder {
  text-align: center;
  color: #94a3b8;
  font-size: .85rem;
  padding: 2.5rem 1rem;
  grid-column: 1 / -1;
}
.is-section {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px) saturate(1.6);
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.92);
  border-top: 1.5px solid rgba(99,102,241,.25);
  box-shadow: 0 2px 8px rgba(56,189,248,.12), 0 6px 24px rgba(99,102,241,.10);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.is-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.is-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.01em;
  margin-bottom: .15rem;
}
.is-section-sub {
  font-size: .75rem;
  color: #64748b;
}
.is-section-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}
.is-live-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(5,150,105,.10);
  color: #065f46;
  border: 1px solid rgba(5,150,105,.25);
  padding: .28rem .8rem;
  border-radius: 2rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.is-live-dot {
  width: .5rem;
  height: .5rem;
  background: #059669;
  border-radius: 50%;
  box-shadow: 0 0 6px #059669;
  animation: is-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
.is-btn-refresh {
  background: rgba(255,255,255,.85);
  color: #1e3a8a;
  border: 1.5px solid rgba(99,102,241,.30);
  padding: .32rem .9rem;
  border-radius: 2rem;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .12s;
  backdrop-filter: blur(6px);
}
.is-btn-refresh:hover {
  background: rgba(99,102,241,.10);
  transform: translateY(-1px);
}
.is-estado-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}
.is-zona-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  border-left: 4px solid #94a3b8;
  box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 2px 12px rgba(0,0,0,.04);
  transition: transform .18s, box-shadow .18s;
}
.is-zona-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0,0,0,.10);
}
.is-card-normal {
  border-left-color: #059669;
}
.is-card-alerta {
  border-left-color: #d97706;
}
.is-card-peligro {
  border-left-color: #ea580c;
}
.is-card-critico {
  border-left-color: #dc2626;
}
.is-card-sindata {
  border-left-color: #94a3b8;
}
.is-zona-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .4rem;
  margin-bottom: .75rem;
}
.is-zona-nombre {
  font-weight: 700;
  font-size: .88rem;
  color: #0f172a;
  line-height: 1.3;
}
.is-zona-badge {
  display: inline-flex;
  align-items: center;
  padding: .17rem .65rem;
  border-radius: 2rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  flex-shrink: 0;
}
.is-badge-normal {
  background: rgba(5,150,105,.12);
  color: #065f46;
}
.is-badge-alerta {
  background: rgba(217,119,6,.12);
  color: #92400e;
}
.is-badge-peligro {
  background: rgba(234,88,12,.14);
  color: #9a3412;
}
.is-badge-critico {
  background: rgba(220,38,38,.12);
  color: #991b1b;
}
.is-badge-sindata {
  background: rgba(148,163,184,.12);
  color: #64748b;
}
.is-zona-temp {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin-bottom: .6rem;
  letter-spacing: -.04em;
}
.is-temp-unit {
  font-size: .95rem;
  font-weight: 600;
  color: #64748b;
  margin-left: .12rem;
}
.is-temp-nodata {
  color: #cbd5e1;
}
.is-zona-meta {
  font-size: .7rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.is-form-consulta {
  background: #f8fafc;
  border-radius: .9rem;
  padding: 1.25rem;
  border: 1.5px solid #e2e8f0;
}
.is-form-row {
  display: flex;
  align-items: flex-end;
  gap: .85rem;
  flex-wrap: wrap;
}
.is-form-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
  min-width: 160px;
}
.is-field-sala {
  flex: 2;
  min-width: 200px;
}
.is-form-field label {
  font-size: .68rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.is-form-field select, .is-form-field input[type="datetime-local"] {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: .6rem;
  padding: .55rem .9rem;
  font-size: .85rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.is-form-field select:focus, .is-form-field input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129,140,248,.14);
}
.is-req {
  color: #dc2626;
}
.is-btn-consultar {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  padding: .58rem 1.5rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .83rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(79,70,229,.28);
  transition: filter .15s, transform .15s;
  white-space: nowrap;
  align-self: flex-end;
}
.is-btn-consultar:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.is-btn-consultar:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}
.is-form-hint {
  font-size: .72rem;
  color: #94a3b8;
  margin-top: .7rem;
  margin-bottom: 0;
}
.is-form-error {
  margin-top: .65rem;
  margin-bottom: 0;
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.25);
  color: #b91c1c;
  border-radius: .65rem;
  padding: .5rem .9rem;
  font-size: .78rem;
  font-weight: 600;
}
.is-table-wrap {
  border-radius: 1rem;
  border: 1px solid rgba(226,232,240,.8);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.is-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .83rem;
}
.is-table thead tr {
  background: linear-gradient(100deg, #081445 0%, #1a3a8f 100%);
}
.is-table th {
  padding: .8rem 1rem;
  text-align: left;
  font-size: .68rem;
  font-weight: 700;
  color: rgba(255,255,255,.80);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.is-table tbody tr {
  border-bottom: 1px solid rgba(226,232,240,.6);
  transition: background .12s;
}
.is-table tbody tr:last-child {
  border-bottom: none;
}
.is-table tbody tr:hover {
  background: rgba(240,253,250,.6);
}
.is-table td {
  padding: .7rem 1rem;
  vertical-align: middle;
}
.is-td-hora {
  font-variant-numeric: tabular-nums;
  color: #475569;
}
.is-td-temp {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.is-td-empty {
  text-align: center;
  padding: 2.5rem;
  color: #94a3b8;
  font-size: .85rem;
}
.is-chart-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.is-chart-title {
  font-size: .95rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.01em;
  margin-bottom: .15rem;
}
.is-chart-sub {
  font-size: .75rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}
.is-chart-wrap {
  position: relative;
  height: 320px;
}
body#metricasSecretaria {
  min-height: 100vh;
  background: linear-gradient(148deg, #f0f9ff 0%, #eef2ff 100%);
  background-attachment: fixed;
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  display: flex;
  flex-direction: column;
}
body#metricasSecretaria::before {
  content: '';
  position: fixed;
  width: 55vw;
  height: 55vw;
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(125,211,252,.26) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: ms-orb-a 15s ease-in-out infinite;
}
body#metricasSecretaria::after {
  content: '';
  position: fixed;
  width: 50vw;
  height: 50vw;
  bottom: -14vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(99,102,241,.20) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: ms-orb-b 19s ease-in-out infinite;
}
@keyframes ms-orb-a {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(3vw,2vw) scale(1.07);
  }
}
@keyframes ms-orb-b {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(-2vw,-3vw) scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  body#metricasSecretaria::before, body#metricasSecretaria::after {
    animation: none;
  }
}
.ms-header {
  background: linear-gradient(100deg, #081445 0%, #1a1a6e 40%, #1a3a8f 75%, #312e81 100%);
  box-shadow: 0 2px 16px rgba(8,20,69,.45);
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: hidden;
}
.ms-header::before {
  content: '';
  position: absolute;
  width: 50%;
  height: 400%;
  top: -160%;
  right: -5%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(56,189,248,.32) 0%, rgba(37,99,235,.16) 35%, transparent 70%);
  pointer-events: none;
  animation: ms-header-orb-a 22s cubic-bezier(.45,.05,.55,.95) infinite alternate;
}
.ms-header::after {
  content: '';
  position: absolute;
  width: 40%;
  height: 400%;
  bottom: -160%;
  left: 5%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(168,85,247,.26) 0%, rgba(99,102,241,.14) 30%, transparent 70%);
  pointer-events: none;
  animation: ms-header-orb-b 28s cubic-bezier(.45,.05,.55,.95) infinite alternate;
}
@keyframes ms-header-orb-a {
  0% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(-5%,14%) scale(1.04);
  }
  100% {
    transform: translate(-10%,7%) scale(1.05);
  }
}
@keyframes ms-header-orb-b {
  0% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(10%,-10%) scale(1.06);
  }
  100% {
    transform: translate(5%,-18%) scale(1.04);
  }
}
.ms-header-inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: .9rem 1.5rem;
  position: relative;
  z-index: 1;
}
.ms-header-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.ms-header-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.50);
  margin-top: .1rem;
}
.ms-main {
  max-width: 72rem;
  margin-inline: auto;
  padding: 2rem 1.5rem 5rem;
  width: 100%;
  position: relative;
  z-index: 1;
  flex: 1;
}
.ms-section {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px) saturate(1.6);
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.92);
  border-top: 1.5px solid rgba(99,102,241,.25);
  box-shadow: 0 2px 8px rgba(56,189,248,.10), 0 6px 24px rgba(99,102,241,.08);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.ms-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.ms-section-title {
  font-size: .95rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.01em;
}
.ms-section-filtro {
  padding: 1rem 1.5rem;
}
.ms-filtro-row {
  display: flex;
  align-items: flex-end;
  gap: .85rem;
  flex-wrap: wrap;
}
.ms-filtro-field {
  display: flex;
  flex-direction: column;
  gap: .28rem;
}
.ms-filtro-field label {
  font-size: .68rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ms-filtro-field input[type="date"] {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: .6rem;
  padding: .5rem .85rem;
  font-size: .85rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.ms-filtro-field input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129,140,248,.14);
}
.ms-btn-consultar {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  padding: .54rem 1.4rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(79,70,229,.28);
  transition: filter .15s, transform .15s;
}
.ms-btn-consultar:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.ms-btn-consultar:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}
.ms-btn-hoy {
  background: rgba(255,255,255,.85);
  color: #1e3a8a;
  border: 1.5px solid rgba(99,102,241,.30);
  padding: .54rem 1rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.ms-btn-hoy:hover {
  background: rgba(99,102,241,.10);
}
.ms-filtro-sub {
  font-size: .75rem;
  color: #94a3b8;
  margin-top: .55rem;
  margin-bottom: 0;
}
.ms-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 900px) {
  .ms-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .ms-kpi-grid {
    grid-template-columns: 1fr;
  }
}
.ms-kpi-card {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-radius: 1.1rem;
  border: 1px solid rgba(255,255,255,.92);
  border-top: 3px solid #94a3b8;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  transition: transform .18s, box-shadow .18s;
}
.ms-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
}
.ms-kpi-total {
  border-top-color: #6366f1;
}
.ms-kpi-atendidos {
  border-top-color: #059669;
}
.ms-kpi-noatendidos {
  border-top-color: #dc2626;
}
.ms-kpi-tasa {
  border-top-color: #0ea5e9;
}
.ms-kpi-label {
  font-size: .7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ms-kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.04em;
  line-height: 1;
}
.ms-kpi-sub {
  font-size: .72rem;
  font-weight: 500;
  color: #94a3b8;
  margin-top: .15rem;
}
.ms-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 700px) {
  .ms-charts-row {
    grid-template-columns: 1fr;
  }
}
.ms-chart-section {
  margin-bottom: 0;
}
.ms-chart-wrap {
  position: relative;
  height: 240px;
  margin-top: .75rem;
}
.ms-chart-wrap-tall {
  height: 280px;
}
.ms-count {
  font-size: .75rem;
  font-weight: 600;
  color: #64748b;
}
.ms-table-wrap {
  border-radius: 1rem;
  border: 1px solid rgba(226,232,240,.8);
  overflow: hidden;
  overflow-x: auto;
}
.ms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  min-width: 600px;
}
.ms-table thead tr {
  background: linear-gradient(100deg, #081445 0%, #1a3a8f 100%);
}
.ms-table th {
  padding: .8rem 1rem;
  text-align: left;
  font-size: .68rem;
  font-weight: 700;
  color: rgba(255,255,255,.80);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ms-table tbody tr {
  border-bottom: 1px solid rgba(226,232,240,.6);
  transition: background .12s;
}
.ms-table tbody tr:last-child {
  border-bottom: none;
}
.ms-table tbody tr:hover {
  background: rgba(238,242,255,.55);
}
.ms-table td {
  padding: .65rem 1rem;
  vertical-align: middle;
}
.ms-td-num {
  font-weight: 700;
  color: #6366f1;
}
.ms-td-mono {
  font-variant-numeric: tabular-nums;
  color: #475569;
  font-size: .78rem;
}
.ms-td-empty {
  text-align: center;
  padding: 2.5rem;
  color: #94a3b8;
  font-size: .85rem;
}
.ms-badge {
  display: inline-flex;
  align-items: center;
  padding: .18rem .65rem;
  border-radius: 2rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.ms-badge-atendido {
  background: rgba(5,150,105,.12);
  color: #065f46;
}
.ms-badge-noatendido {
  background: rgba(220,38,38,.12);
  color: #991b1b;
}
.ms-badge-llamado {
  background: rgba(37,99,235,.12);
  color: #1d4ed8;
}
.ms-badge-espera {
  background: rgba(217,119,6,.12);
  color: #92400e;
}
body#generarhorario {
  min-height: 100vh;
  background: linear-gradient(148deg, #f0f9ff 0%, #eef2ff 100%);
  background-attachment: fixed;
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  display: flex;
  flex-direction: column;
}
body#generarhorario::before {
  content: '';
  position: fixed;
  width: 55vw;
  height: 55vw;
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(125,211,252,.26) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: gh-orb-a 15s ease-in-out infinite;
}
body#generarhorario::after {
  content: '';
  position: fixed;
  width: 50vw;
  height: 50vw;
  bottom: -14vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(99,102,241,.20) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: gh-orb-b 19s ease-in-out infinite;
}
@keyframes gh-orb-a {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(3vw,2vw) scale(1.07);
  }
}
@keyframes gh-orb-b {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(-2vw,-3vw) scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  body#generarhorario::before, body#generarhorario::after {
    animation: none;
  }
}
.gh-header {
  background: linear-gradient(100deg, #081445 0%, #1a1a6e 40%, #1a3a8f 75%, #312e81 100%);
  box-shadow: 0 2px 16px rgba(8,20,69,.45);
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: hidden;
}
.gh-header::before {
  content: '';
  position: absolute;
  width: 50%;
  height: 400%;
  top: -160%;
  right: -5%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(56,189,248,.32) 0%, rgba(37,99,235,.16) 35%, transparent 70%);
  pointer-events: none;
  animation: gh-header-orb-a 22s cubic-bezier(.45,.05,.55,.95) infinite alternate;
}
.gh-header::after {
  content: '';
  position: absolute;
  width: 40%;
  height: 400%;
  bottom: -160%;
  left: 5%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(168,85,247,.26) 0%, rgba(99,102,241,.14) 30%, transparent 70%);
  pointer-events: none;
  animation: gh-header-orb-b 28s cubic-bezier(.45,.05,.55,.95) infinite alternate;
}
@keyframes gh-header-orb-a {
  0% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(-5%,14%) scale(1.04);
  }
  100% {
    transform: translate(-10%,7%) scale(1.05);
  }
}
@keyframes gh-header-orb-b {
  0% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(10%,-10%) scale(1.06);
  }
  100% {
    transform: translate(5%,-18%) scale(1.04);
  }
}
.gh-header-inner {
  max-width: 64rem;
  margin-inline: auto;
  padding: .9rem 1.5rem;
  position: relative;
  z-index: 1;
}
.gh-header-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.gh-header-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.50);
  margin-top: .1rem;
}
.gh-main {
  max-width: 64rem;
  margin-inline: auto;
  padding: 2rem 1.5rem 5rem;
  width: 100%;
  position: relative;
  z-index: 1;
  flex: 1;
}
.gh-section {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px) saturate(1.6);
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.92);
  border-top: 1.5px solid rgba(99,102,241,.25);
  box-shadow: 0 2px 8px rgba(56,189,248,.10), 0 6px 24px rgba(99,102,241,.08);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.gh-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.gh-section-title {
  font-size: .95rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.01em;
}
.gh-count {
  font-size: .75rem;
  font-weight: 600;
  color: #64748b;
}
.gh-subtitulo {
  font-size: .68rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 1.1rem 0 .5rem;
}
.gh-form-row {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
}
.gh-field {
  display: flex;
  flex-direction: column;
  gap: .28rem;
}
.gh-field-grow {
  flex: 1;
  min-width: 240px;
}
.gh-field label {
  font-size: .68rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.gh-field input, .gh-field select {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: .6rem;
  padding: .5rem .85rem;
  font-size: .85rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.gh-field input:focus, .gh-field select:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129,140,248,.14);
}
.gh-tramo-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
  flex-wrap: wrap;
}
.gh-tramo-row select, .gh-tramo-row input[type="time"] {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: .6rem;
  padding: .42rem .7rem;
  font-size: .85rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.gh-tramo-row select:focus, .gh-tramo-row input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129,140,248,.14);
}
.gh-tramo-dia {
  min-width: 8.5rem;
}
.gh-tramo-sep {
  font-size: .8rem;
  color: #94a3b8;
}
.gh-btn-quitar {
  background: rgba(220,38,38,.08);
  color: #b91c1c;
  border: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  font-size: .8rem;
  cursor: pointer;
  transition: background .15s;
}
.gh-btn-quitar:hover {
  background: rgba(220,38,38,.16);
}
.gh-btn-copiar {
  background: rgba(99,102,241,.08);
  color: #4338ca;
  border: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  font-size: .8rem;
  cursor: pointer;
  transition: background .15s;
}
.gh-btn-copiar:hover {
  background: rgba(99,102,241,.18);
}
.gh-btn-primario {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  padding: .54rem 1.4rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(79,70,229,.28);
  transition: filter .15s, transform .15s;
}
.gh-btn-primario:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.gh-btn-primario:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}
.gh-btn-secundario {
  background: rgba(255,255,255,.85);
  color: #1e3a8a;
  border: 1.5px solid rgba(99,102,241,.30);
  padding: .45rem 1rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .78rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.gh-btn-secundario:hover {
  background: rgba(99,102,241,.10);
}
.gh-btn-peligro {
  background: rgba(220,38,38,.06);
  color: #b91c1c;
  border: 1.5px solid rgba(220,38,38,.28);
  padding: .45rem 1rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .78rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.gh-btn-peligro:hover {
  background: rgba(220,38,38,.14);
}
.gh-form-acciones {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}
.gh-card {
  border: 1px solid rgba(226,232,240,.8);
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,.65);
}
.gh-card:last-child {
  margin-bottom: 0;
}
.gh-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.gh-card-titulo {
  font-size: .95rem;
  font-weight: 800;
  color: #1e3a8a;
}
.gh-card-sector {
  display: inline-block;
  margin-left: .45rem;
  padding: .14rem .6rem;
  border-radius: 2rem;
  background: rgba(99,102,241,.10);
  color: #4338ca;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.gh-card-obs {
  font-size: .78rem;
  color: #64748b;
  margin-top: .15rem;
}
.gh-card-creador {
  font-size: .7rem;
  color: #94a3b8;
  margin-top: .15rem;
}
.gh-card-acciones {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}
.gh-tabla-tramos {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  border-radius: .75rem;
  overflow: hidden;
}
.gh-tabla-tramos thead tr {
  background: linear-gradient(100deg, #081445 0%, #1a3a8f 100%);
}
.gh-tabla-tramos th {
  padding: .55rem .9rem;
  text-align: left;
  font-size: .66rem;
  font-weight: 700;
  color: rgba(255,255,255,.80);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gh-tabla-tramos tbody tr {
  border-bottom: 1px solid rgba(226,232,240,.6);
}
.gh-tabla-tramos tbody tr:last-child {
  border-bottom: none;
}
.gh-tabla-tramos tbody tr:hover {
  background: rgba(238,242,255,.55);
}
.gh-tabla-tramos td {
  padding: .5rem .9rem;
}
.gh-td-hora {
  font-variant-numeric: tabular-nums;
  color: #475569;
}
.gh-vacio {
  text-align: center;
  padding: 2rem;
  color: #94a3b8;
  font-size: .85rem;
}
.hidden {
  display: none !important;
}
body#planillaHorario {
  min-height: 100vh;
  background: linear-gradient(148deg, #f0f9ff 0%, #eef2ff 100%);
  background-attachment: fixed;
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  display: flex;
  flex-direction: column;
}
body#planillaHorario::before {
  content: '';
  position: fixed;
  width: 55vw;
  height: 55vw;
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(125,211,252,.26) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: ph-orb-a 15s ease-in-out infinite;
}
body#planillaHorario::after {
  content: '';
  position: fixed;
  width: 50vw;
  height: 50vw;
  bottom: -14vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(99,102,241,.20) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: ph-orb-b 19s ease-in-out infinite;
}
@keyframes ph-orb-a {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(3vw,2vw) scale(1.07);
  }
}
@keyframes ph-orb-b {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(-2vw,-3vw) scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  body#planillaHorario::before, body#planillaHorario::after {
    animation: none;
  }
}
.ph-header {
  background: linear-gradient(100deg, #081445 0%, #1a1a6e 40%, #1a3a8f 75%, #312e81 100%);
  box-shadow: 0 2px 16px rgba(8,20,69,.45);
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: hidden;
}
.ph-header::before {
  content: '';
  position: absolute;
  width: 50%;
  height: 400%;
  top: -160%;
  right: -5%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(56,189,248,.32) 0%, rgba(37,99,235,.16) 35%, transparent 70%);
  pointer-events: none;
  animation: ph-header-orb-a 22s cubic-bezier(.45,.05,.55,.95) infinite alternate;
}
.ph-header::after {
  content: '';
  position: absolute;
  width: 40%;
  height: 400%;
  bottom: -160%;
  left: 5%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(168,85,247,.26) 0%, rgba(99,102,241,.14) 30%, transparent 70%);
  pointer-events: none;
  animation: ph-header-orb-b 28s cubic-bezier(.45,.05,.55,.95) infinite alternate;
}
@keyframes ph-header-orb-a {
  0% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(-5%,14%) scale(1.04);
  }
  100% {
    transform: translate(-10%,7%) scale(1.05);
  }
}
@keyframes ph-header-orb-b {
  0% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(10%,-10%) scale(1.06);
  }
  100% {
    transform: translate(5%,-18%) scale(1.04);
  }
}
.ph-header-inner {
  max-width: 76rem;
  margin-inline: auto;
  padding: .9rem 1.5rem;
  position: relative;
  z-index: 1;
}
.ph-header-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.ph-header-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.50);
  margin-top: .1rem;
}
.ph-main {
  max-width: 76rem;
  margin-inline: auto;
  padding: 2rem 1.5rem 5rem;
  width: 100%;
  position: relative;
  z-index: 1;
  flex: 1;
}
.ph-section {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px) saturate(1.6);
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.92);
  border-top: 1.5px solid rgba(99,102,241,.25);
  box-shadow: 0 2px 8px rgba(56,189,248,.10), 0 6px 24px rgba(99,102,241,.08);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.ph-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.ph-section-title {
  font-size: .95rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.01em;
  margin-bottom: .85rem;
}
.ph-section-head .ph-section-title {
  margin-bottom: 0;
}
.ph-form-row {
  display: flex;
  align-items: flex-end;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.ph-field {
  display: flex;
  flex-direction: column;
  gap: .28rem;
}
.ph-field-grow {
  flex: 1;
  min-width: 200px;
}
.ph-field label {
  font-size: .66rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ph-opcional {
  color: #94a3b8;
  font-weight: 500;
  text-transform: none;
}
.ph-field input, .ph-field select {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: .6rem;
  padding: .5rem .8rem;
  font-size: .83rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.ph-field input:focus, .ph-field select:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129,140,248,.14);
}
.ph-btn-primario {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  padding: .54rem 1.4rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(79,70,229,.28);
  transition: filter .15s, transform .15s;
}
.ph-btn-primario:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.ph-btn-primario:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}
.ph-btn-quitar {
  background: rgba(220,38,38,.08);
  color: #b91c1c;
  border: none;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  font-size: .72rem;
  cursor: pointer;
  transition: background .15s;
}
.ph-btn-quitar:hover {
  background: rgba(220,38,38,.18);
}
.ph-filtros {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.ph-filtros select, .ph-filtros input {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: .6rem;
  padding: .4rem .75rem;
  font-size: .78rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.ph-filtros input {
  width: 11rem;
}
.ph-filtros select:focus, .ph-filtros input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129,140,248,.14);
}
.ph-filtros-count {
  font-size: .72rem;
  font-weight: 600;
  color: #94a3b8;
  margin-left: auto;
}
.ph-filtros-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ph-estado {
  display: inline-flex;
  align-items: center;
  padding: .18rem .65rem;
  border-radius: 2rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.ph-est-ok {
  background: rgba(5,150,105,.12);
  color: #065f46;
}
.ph-est-mal {
  background: rgba(220,38,38,.12);
  color: #991b1b;
}
.ph-est-sin {
  background: rgba(100,116,139,.12);
  color: #475569;
}
.ph-est-nov {
  background: rgba(217,119,6,.12);
  color: #92400e;
}
.ph-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
  border-radius: .85rem;
  overflow: hidden;
}
.ph-tabla thead tr {
  background: linear-gradient(100deg, #081445 0%, #1a3a8f 100%);
}
.ph-tabla th {
  padding: .6rem .9rem;
  text-align: left;
  font-size: .64rem;
  font-weight: 700;
  color: rgba(255,255,255,.80);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ph-tabla tbody tr {
  border-bottom: 1px solid rgba(226,232,240,.6);
  transition: background .12s;
}
.ph-tabla tbody tr:last-child {
  border-bottom: none;
}
.ph-tabla tbody tr:hover {
  background: rgba(238,242,255,.55);
}
.ph-tabla td {
  padding: .5rem .9rem;
  vertical-align: middle;
}
.ph-td-num {
  font-weight: 700;
  color: #6366f1;
}
.ph-td-mono {
  font-variant-numeric: tabular-nums;
  color: #475569;
}
.ph-vacio {
  text-align: center;
  padding: 1.8rem;
  color: #94a3b8;
  font-size: .85rem;
}
.ph-planilla-head-izq {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.ph-tabs {
  display: inline-flex;
  gap: .25rem;
  background: rgba(226,232,240,.55);
  border-radius: 2rem;
  padding: .2rem;
}
.ph-tab {
  background: transparent;
  border: none;
  padding: .35rem 1rem;
  border-radius: 2rem;
  font-size: .76rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.ph-tab:hover {
  color: #1e3a8a;
}
.ph-tab.activo {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,.30);
}
.ph-planilla-controles {
  display: flex;
  gap: .6rem;
  align-items: center;
}
.ph-planilla-controles select, .ph-planilla-controles input[type="date"] {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: .6rem;
  padding: .45rem .8rem;
  font-size: .82rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
}
.ph-planilla-wrap {
  overflow-x: auto;
}
.ph-planilla {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  min-width: 760px;
}
.ph-planilla th, .ph-planilla td {
  border: 1px solid #cbd5e1;
  text-align: center;
  padding: .45rem .55rem;
}
.ph-planilla-sector th {
  background: #081445;
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .04em;
}
.ph-planilla-sector th:first-child {
  background: #0f172a;
  text-align: left;
  padding-left: .9rem;
  font-size: .9rem;
}
.ph-planilla-subhead th {
  background: #1a3a8f;
  color: rgba(255,255,255,.88);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ph-planilla th.ph-hoy {
  background: #f59e0b;
  color: #1e293b;
}
.ph-planilla .ph-td-nombre {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.ph-planilla .ph-td-num {
  text-align: center;
}
.ph-celda {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: #fff;
}
.ph-celda-vacia {
  background: #f8fafc;
}
td.ph-finde {
  background: #f0f7ee;
}
th.ph-finde {
  background: #2d5a27;
}
.ph-planilla-mensual {
  min-width: 1080px;
  font-size: .66rem;
}
.ph-planilla-mensual th, .ph-planilla-mensual td {
  padding: .3rem .2rem;
}
.ph-planilla-mensual .ph-td-nombre {
  font-size: .72rem;
  padding-inline: .5rem;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-planilla-mensual .ph-planilla-sector th:first-child {
  font-size: .78rem;
}
.ph-mini-nov {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 .2rem;
  border-radius: .3rem;
  font-size: .62rem;
  font-weight: 800;
  vertical-align: middle;
  margin-left: .2rem;
}
.ph-planilla-mensual .ph-mini-nov {
  min-width: .95rem;
  height: .95rem;
  font-size: .55rem;
  margin-left: .1rem;
}
.ph-nov-franco {
  background: #2563eb !important;
  color: #fff !important;
  font-weight: 800;
}
.ph-nov-licencia {
  background: #38bdf8 !important;
  color: #062a45 !important;
  font-weight: 800;
}
.ph-nov-vacaciones {
  background: #4ade80 !important;
  color: #14532d !important;
  font-weight: 800;
}
.ph-nov-suspension {
  background: #dc2626 !important;
  color: #fff !important;
  font-weight: 800;
}
.ph-nov-guardia {
  background: #ec4899 !important;
  color: #fff !important;
  font-weight: 800;
}
.ph-nov-otros {
  background: #64748b !important;
  color: #fff !important;
  font-weight: 800;
}
.ph-leyenda {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.ph-ref {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .74rem;
  font-weight: 600;
  color: #475569;
}
.ph-ref-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: .35rem;
  font-size: .72rem;
}
.ph-filtros-nota {
  font-size: .72rem;
  color: #94a3b8;
  font-weight: 500;
}
.ph-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,20,69,.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.ph-modal {
  background: #fff;
  border-radius: 1.1rem;
  border-top: 4px solid #dc2626;
  box-shadow: 0 20px 60px rgba(8,20,69,.35);
  padding: 1.5rem 1.75rem;
  max-width: 26rem;
  width: 100%;
}
.ph-modal-titulo {
  font-size: 1rem;
  font-weight: 800;
  color: #b91c1c;
  margin-bottom: .75rem;
}
.ph-modal-texto {
  font-size: .84rem;
  color: #334155;
  margin-bottom: .6rem;
  line-height: 1.45;
}
.ph-modal-alerta {
  background: rgba(220,38,38,.07);
  border: 1px solid rgba(220,38,38,.20);
  border-radius: .6rem;
  padding: .6rem .8rem;
  color: #991b1b;
  font-weight: 600;
}
.ph-modal-acciones {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: 1.1rem;
}
.ph-btn-modal-no {
  background: rgba(255,255,255,.9);
  color: #334155;
  border: 1.5px solid #cbd5e1;
  padding: .5rem 1.3rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.ph-btn-modal-no:hover {
  background: #f1f5f9;
}
.ph-btn-modal-si {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  border: none;
  padding: .5rem 1.3rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(220,38,38,.30);
  transition: filter .15s;
}
.ph-btn-modal-si:hover {
  filter: brightness(1.1);
}
.hidden {
  display: none !important;
}
body#miHorario {
  min-height: 100vh;
  background: linear-gradient(148deg, #f0f9ff 0%, #eef2ff 100%);
  background-attachment: fixed;
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  display: flex;
  flex-direction: column;
}
body#miHorario::before {
  content: '';
  position: fixed;
  width: 55vw;
  height: 55vw;
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(125,211,252,.26) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: mh-orb-a 15s ease-in-out infinite;
}
body#miHorario::after {
  content: '';
  position: fixed;
  width: 50vw;
  height: 50vw;
  bottom: -14vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(99,102,241,.20) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: mh-orb-b 19s ease-in-out infinite;
}
@keyframes mh-orb-a {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(3vw,2vw) scale(1.07);
  }
}
@keyframes mh-orb-b {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(-2vw,-3vw) scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  body#miHorario::before, body#miHorario::after {
    animation: none;
  }
}
.mh-fila-propia .ph-td-num, .mh-fila-propia .ph-td-nombre {
  background: #fef3c7;
  font-weight: 800;
}
.mh-fila-propia td.ph-celda {
  background: #fffbeb;
}
.mh-fila-propia td.ph-celda.ph-finde {
  background: #fef3c7;
}
body#asistencia {
  min-height: 100vh;
  background: linear-gradient(148deg, #f0f9ff 0%, #eef2ff 100%);
  background-attachment: fixed;
  font-family: "Haskoy", "Segoe UI", system-ui, sans-serif;
  color: #0f172a;
  display: flex;
  flex-direction: column;
}
body#asistencia::before {
  content: '';
  position: fixed;
  width: 55vw;
  height: 55vw;
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(125,211,252,.26) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: asi-orb-a 15s ease-in-out infinite;
}
body#asistencia::after {
  content: '';
  position: fixed;
  width: 50vw;
  height: 50vw;
  bottom: -14vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(99,102,241,.20) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: asi-orb-b 19s ease-in-out infinite;
}
@keyframes asi-orb-a {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(3vw,2vw) scale(1.07);
  }
}
@keyframes asi-orb-b {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(-2vw,-3vw) scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  body#asistencia::before, body#asistencia::after {
    animation: none;
  }
}
td.asi-ok, .ph-ref-chip.asi-ok {
  background: rgba(5,150,105,.16) !important;
  color: #065f46 !important;
  font-weight: 800;
}
td.asi-tarde, .ph-ref-chip.asi-tarde {
  background: rgba(217,119,6,.18) !important;
  color: #92400e !important;
  font-weight: 800;
  white-space: nowrap;
}
td.asi-sa, .ph-ref-chip.asi-sa {
  background: rgba(234,88,12,.18) !important;
  color: #9a3412 !important;
  font-weight: 800;
}
td.asi-nr, .ph-ref-chip.asi-nr {
  background: rgba(220,38,38,.16) !important;
  color: #991b1b !important;
  font-weight: 800;
}
@media print {
  @page {
    size: 58mm auto;
    margin: 0;
  }
  #ticket-imprimir {
    display: block !important;
    width: 46mm !important;
    margin: 0 auto;
  }
  body > *:not(#ticket-imprimir) {
    display: none !important;
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-space-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-divide-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-leading {
  syntax: "*";
  inherits: false;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-tracking {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-space-y-reverse: 0;
      --tw-divide-y-reverse: 0;
      --tw-border-style: solid;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}
