/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: block))) 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-border-style: solid;
      --tw-leading: initial;
      --tw-font-weight: 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-scale-x: 1;
      --tw-scale-y: 1;
      --tw-scale-z: 1;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, 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-amber-400: oklch(82.8% .189 84.429);
    --color-amber-600: oklch(66.6% .179 58.318);
    --color-blue-50: oklch(97% .014 254.604);
    --color-blue-200: oklch(88.2% .059 254.128);
    --color-blue-900: oklch(37.9% .146 265.522);
    --color-slate-100: oklch(96.8% .007 247.896);
    --color-slate-500: oklch(55.4% .046 257.417);
    --color-slate-700: oklch(37.2% .044 257.287);
    --color-slate-800: oklch(27.9% .041 260.031);
    --color-slate-900: oklch(20.8% .042 265.755);
    --color-white: #fff;
    --spacing: .25rem;
    --container-sm: 24rem;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --leading-snug: 1.375;
    --leading-relaxed: 1.625;
    --radius-md: .375rem;
    --radius-lg: .5rem;
    --radius-xl: .75rem;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, 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;
    -webkit-text-decoration: 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 {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :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)) {
      ::placeholder {
        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 {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-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"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }

  * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  }

  body {
    background: var(--bg);
    color: #0f172a;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    -webkit-tap-highlight-color: transparent;
    margin: 0;
  }

  label {
    color: #334155;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    display: block;
  }

  select, input[type="text"], input[type="email"], input[type="tel"], textarea {
    color: #0f172a;
    background: #fff;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 15px;
  }

  textarea {
    resize: vertical;
    min-height: 75px;
  }
}

@layer components;

@layer utilities {
  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .inset-0 {
    inset: 0;
  }

  .bottom-\[72px\] {
    bottom: 72px;
  }

  .left-3 {
    left: calc(var(--spacing) * 3);
  }

  .z-\[95\] {
    z-index: 95;
  }

  .z-\[220\] {
    z-index: 220;
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .m-0 {
    margin: 0;
  }

  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }

  .mt-4 {
    margin-top: calc(var(--spacing) * 4);
  }

  .mb-1\.5 {
    margin-bottom: calc(var(--spacing) * 1.5);
  }

  .mb-2\.5 {
    margin-bottom: calc(var(--spacing) * 2.5);
  }

  .mb-3 {
    margin-bottom: calc(var(--spacing) * 3);
  }

  .block {
    display: block;
  }

  .flex {
    display: flex;
  }

  .inline-block {
    display: inline-block;
  }

  .inline-flex {
    display: inline-flex;
  }

  .h-3\.5 {
    height: calc(var(--spacing) * 3.5);
  }

  .h-4 {
    height: calc(var(--spacing) * 4);
  }

  .w-3\.5 {
    width: calc(var(--spacing) * 3.5);
  }

  .w-4 {
    width: calc(var(--spacing) * 4);
  }

  .w-full {
    width: 100%;
  }

  .max-w-sm {
    max-width: var(--container-sm);
  }

  .flex-1 {
    flex: 1;
  }

  .flex-shrink {
    flex-shrink: 1;
  }

  .shrink-0 {
    flex-shrink: 0;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .cursor-pointer {
    cursor: pointer;
  }

  .resize {
    resize: both;
  }

  .list-decimal {
    list-style-type: decimal;
  }

  .flex-wrap {
    flex-wrap: wrap;
  }

  .items-center {
    align-items: center;
  }

  .items-start {
    align-items: flex-start;
  }

  .justify-between {
    justify-content: space-between;
  }

  .justify-center {
    justify-content: center;
  }

  .gap-1 {
    gap: var(--spacing);
  }

  .gap-1\.5 {
    gap: calc(var(--spacing) * 1.5);
  }

  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }

  :where(.space-y-1\.5 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)));
  }

  :where(.space-y-2 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));
  }

  .truncate {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .rounded-\[10px\] {
    border-radius: 10px;
  }

  .rounded-full {
    border-radius: 2147483647px;
  }

  .rounded-lg {
    border-radius: var(--radius-lg);
  }

  .rounded-md {
    border-radius: var(--radius-md);
  }

  .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-\[\#2563eb\] {
    border-color: #2563eb;
  }

  .border-blue-200 {
    border-color: var(--color-blue-200);
  }

  .bg-\[\#1b365d\] {
    background-color: #1b365d;
  }

  .bg-\[\#2563eb\] {
    background-color: #2563eb;
  }

  .bg-\[\#eff6ff\] {
    background-color: #eff6ff;
  }

  .bg-amber-400 {
    background-color: var(--color-amber-400);
  }

  .bg-amber-600 {
    background-color: var(--color-amber-600);
  }

  .bg-blue-50 {
    background-color: var(--color-blue-50);
  }

  .bg-slate-900\/80 {
    background-color: #0f172bcc;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-slate-900\/80 {
      background-color: color-mix(in oklab, var(--color-slate-900) 80%, transparent);
    }
  }

  .bg-white {
    background-color: var(--color-white);
  }

  .bg-white\/80 {
    background-color: #fffc;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-white\/80 {
      background-color: color-mix(in oklab, var(--color-white) 80%, transparent);
    }
  }

  .p-0\.5 {
    padding: calc(var(--spacing) * .5);
  }

  .p-1 {
    padding: var(--spacing);
  }

  .p-2\.5 {
    padding: calc(var(--spacing) * 2.5);
  }

  .p-3 {
    padding: calc(var(--spacing) * 3);
  }

  .p-4 {
    padding: calc(var(--spacing) * 4);
  }

  .p-5 {
    padding: calc(var(--spacing) * 5);
  }

  .px-2 {
    padding-inline: calc(var(--spacing) * 2);
  }

  .px-2\.5 {
    padding-inline: calc(var(--spacing) * 2.5);
  }

  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }

  .py-1 {
    padding-block: var(--spacing);
  }

  .py-1\.5 {
    padding-block: calc(var(--spacing) * 1.5);
  }

  .py-2\.5 {
    padding-block: calc(var(--spacing) * 2.5);
  }

  .py-\[3px\] {
    padding-block: 3px;
  }

  .pl-5 {
    padding-left: calc(var(--spacing) * 5);
  }

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

  .text-\[11\.5px\] {
    font-size: 11.5px;
  }

  .text-\[11px\] {
    font-size: 11px;
  }

  .text-\[12\.5px\] {
    font-size: 12.5px;
  }

  .text-\[12px\] {
    font-size: 12px;
  }

  .text-\[13px\] {
    font-size: 13px;
  }

  .text-\[15px\] {
    font-size: 15px;
  }

  .leading-relaxed {
    --tw-leading: var(--leading-relaxed);
    line-height: var(--leading-relaxed);
  }

  .leading-snug {
    --tw-leading: var(--leading-snug);
    line-height: var(--leading-snug);
  }

  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }

  .font-extrabold {
    --tw-font-weight: var(--font-weight-extrabold);
    font-weight: var(--font-weight-extrabold);
  }

  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }

  .whitespace-nowrap {
    white-space: nowrap;
  }

  .text-\[\#1b365d\] {
    color: #1b365d;
  }

  .text-\[\#2563eb\] {
    color: #2563eb;
  }

  .text-blue-900 {
    color: var(--color-blue-900);
  }

  .text-slate-500 {
    color: var(--color-slate-500);
  }

  .text-slate-700 {
    color: var(--color-slate-700);
  }

  .text-slate-900 {
    color: var(--color-slate-900);
  }

  .text-white {
    color: var(--color-white);
  }

  .capitalize {
    text-transform: capitalize;
  }

  .uppercase {
    text-transform: uppercase;
  }

  .shadow-2xl {
    --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, #00000040);
    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, #0000001a), 0 4px 6px -4px var(--tw-shadow-color, #0000001a);
    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, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-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));
  }

  @media (hover: hover) {
    .hover\:bg-slate-100:hover {
      background-color: var(--color-slate-100);
    }

    .hover\:text-slate-800:hover {
      color: var(--color-slate-800);
    }
  }

  .active\:scale-95:active {
    --tw-scale-x: 95%;
    --tw-scale-y: 95%;
    --tw-scale-z: 95%;
    scale: var(--tw-scale-x) var(--tw-scale-y);
  }

  .active\:scale-\[0\.99\]:active {
    scale: .99;
  }

  .disabled\:opacity-60:disabled {
    opacity: .6;
  }
}

:root {
  --primary: #1b365d;
  --accent: #2563eb;
  --success: #15803d;
  --danger: #b91c1c;
  --warn: #b45309;
  --bg: #f1f5f9;
  --card: #fff;
  --border: #cbd5e1;
}

.hse-header {
  background: var(--primary);
  color: #fff;
  padding: calc(11px + env(safe-area-inset-top, 0px)) 14px 11px 14px;
  z-index: 50;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 6px #0003;
}

.hse-header h1 {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
}

.sub-bar {
  color: #cbd5e1;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 11.5px;
  display: flex;
}

.hse-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 12px 4px;
}

.tab-page {
  display: none;
}

.tab-page.active {
  display: block;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 12px;
  box-shadow: 0 1px 3px #0000000d;
}

.tab-page .card:last-child {
  margin-bottom: 4px;
}

.card-title {
  color: var(--primary);
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
}

.row-flex {
  align-items: center;
  gap: 6px;
  display: flex;
}

.input-wrap {
  flex: 1;
  align-items: center;
  margin-bottom: 10px;
  display: flex;
  position: relative;
}

.input-wrap input {
  margin-bottom: 0;
  padding-right: 34px;
}

.btn-clear-in {
  color: #475569;
  cursor: pointer;
  background: #e2e8f0;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  position: absolute;
  right: 6px;
}

.btn {
  cursor: pointer;
  text-align: center;
  border: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s;
  display: inline-flex;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-outline {
  color: #1e293b;
  background: #e2e8f0;
}

.btn-cam {
  color: #fff;
  background: #0f766e;
  padding: 10px;
  font-size: 13px;
}

.btn-mic {
  color: #1e3a8a;
  background: #e0e7ff;
  width: 44px;
  min-width: 44px;
  margin-bottom: 10px;
  padding: 10px 0;
  font-size: 17px;
}

.filter-bar {
  gap: 5px;
  margin-bottom: 8px;
  padding-bottom: 2px;
  display: flex;
  overflow-x: auto;
}

.filter-pill {
  color: #475569;
  white-space: nowrap;
  cursor: pointer;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
}

.filter-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.chk-row {
  cursor: pointer;
  border-bottom: 1px solid #e2e8f0;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  padding: 10px 8px;
  display: flex;
}

.chk-row:last-child {
  border-bottom: none;
}

.chk-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.badge {
  border-radius: 4px;
  margin-left: 4px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-block;
}

.b-role {
  color: #1e40af;
  background: #dbeafe;
}

.b-alert {
  color: #991b1b;
  background: #fee2e2;
}

.b-ok {
  color: #166534;
  background: #dcfce7;
}

.b-warn {
  color: #92400e;
  background: #fef3c7;
}

.bdg-attivo {
  color: #fff;
  background: #22c55e;
}

.bdg-richiesto {
  color: #0f172a;
  background: #facc15;
  border: 1px solid #ca8a04;
}

.bdg-disattivato {
  color: #334155;
  background: #cbd5e1;
}

.bdg-nonrich {
  color: #be123c;
  background: #fff1f2;
  border: 1px solid #fda4af;
}

.bdg-doc-si {
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.bdg-foto-btn {
  color: #fff;
  cursor: pointer;
  background: #dc2626;
  border: 1px solid #991b1b;
  border-radius: 5px;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  padding: 3px 7px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
}

.bdg-priv-btn {
  color: #fff;
  cursor: pointer;
  background: #b45309;
  border: 1px solid #78350f;
  border-radius: 5px;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  padding: 3px 7px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
}

.bdg-foto-fatta {
  color: #fff;
  cursor: pointer;
  background: #0f766e;
  border: 1px solid #115e59;
  border-radius: 5px;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 3px 7px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
}

.bdg-colp-ok {
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  margin-top: 3px;
  margin-left: 0;
  margin-right: 4px;
}

.bdg-colp-scad {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  margin-top: 3px;
  margin-left: 0;
  margin-right: 4px;
}

.bdg-colp-manc {
  color: #fff;
  background: #dc2626;
  margin-top: 3px;
  margin-left: 0;
  margin-right: 4px;
}

.btn-colp {
  color: #1e293b;
  cursor: pointer;
  background: #f1f5f9;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  flex-shrink: 0;
  margin-left: auto;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.hl-digits {
  color: #854d0e;
  background: #fef08a;
  border: 1px solid #eab308;
  border-radius: 4px;
  padding: 1px 4px;
  font-weight: 800;
}

.semaforo {
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.sem-ok {
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.sem-ko {
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.sem-warn {
  color: #78350f;
  background: #fef3c7;
  border: 1px solid #fcd34d;
}

.photo-strip {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  display: flex;
}

.photo-thumb {
  background: #000;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  width: 92px;
  height: 92px;
  position: relative;
  overflow: hidden;
}

.photo-thumb img {
  object-fit: cover;
  cursor: zoom-in;
  width: 100%;
  height: 100%;
}

.photo-thumb span {
  color: #fff;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: #000000bf;
  padding: 2px 3px;
  font-size: 9px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}

.photo-thumb .btn-del-foto {
  color: #fff;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  background: #dc2626;
  border: 1px solid #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 13px;
  font-weight: bold;
  line-height: 20px;
  position: absolute;
  top: 3px;
  right: 3px;
}

.chip-token {
  color: #0369a1;
  cursor: pointer;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  border-radius: 14px;
  margin: 3px 4px 3px 0;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

.chip-nonpos {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 16px;
  align-items: center;
  gap: 6px;
  margin: 3px 5px 3px 0;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
}

.chip-nonpos button {
  color: #fff;
  cursor: pointer;
  background: #dc2626;
  border: none;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  padding: 0;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
}

.nonpos-row-card {
  background: #fff;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 7px 9px;
  display: flex;
}

.toast-msg {
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  color: #fff;
  z-index: 100;
  text-align: center;
  background: #1e293b;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 12.5px;
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  box-shadow: 0 4px 12px #0000004d;
}

.modal-zoom {
  z-index: 200;
  background: #000000eb;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px;
  display: none;
  position: fixed;
  inset: 0;
}

.modal-zoom img {
  object-fit: contain;
  border-radius: 6px;
  max-width: 100%;
  max-height: 82vh;
}

.modal-zoom button {
  color: #fff;
  cursor: pointer;
  background: #dc2626;
  border: none;
  border-radius: 8px;
  margin-top: 14px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: bold;
}

.modal-colp-wrap {
  z-index: 180;
  background: #0f172ac7;
  justify-content: center;
  align-items: center;
  padding: 10px;
  display: none;
  position: fixed;
  inset: 0;
}

.modal-colp-card {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  padding: 14px;
  overflow-y: auto;
  box-shadow: 0 10px 25px #00000059;
}

.sig-pad-wrap {
  touch-action: none;
  background: #f8fafc;
  border: 2px dashed #64748b;
  border-radius: 8px;
  margin-bottom: 8px;
  position: relative;
}

#canvasFirmaLav {
  touch-action: none;
  border-radius: 6px;
  width: 100%;
  height: 140px;
  display: block;
}

nav.bottom-nav {
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--border);
  z-index: 60;
  background: #fff;
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

nav.bottom-nav button {
  color: #64748b;
  cursor: pointer;
  background: none;
  border: none;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  display: flex;
}

nav.bottom-nav button.active {
  color: var(--primary);
  border-top: 3px solid var(--primary);
  background: #eff6ff;
}

nav.bottom-nav button .ico {
  margin-bottom: 2px;
  font-size: 19px;
}

.pill-list {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.ver-badge {
  color: #e2e8f0;
  vertical-align: middle;
  background: #ffffff2e;
  border: 1px solid #ffffff47;
  border-radius: 6px;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-block;
}

.author-footer {
  text-align: center;
  color: #64748b;
  letter-spacing: .2px;
  padding: 2px 6px 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

@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-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-leading {
  syntax: "*";
  inherits: false
}

@property --tw-font-weight {
  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: 0;
}

@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-scale-x {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-scale-y {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-scale-z {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
