/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@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-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;
    }
  }
}
@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;
    --spacing: 0.25rem;
    --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,
      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;
    -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: -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 {
    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;
  }
}
@layer components;
@layer utilities {
  .visible {
    visibility: visible;
  }
  .absolute {
    position: absolute;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .start {
    inset-inline-start: var(--spacing);
  }
  .end {
    inset-inline-end: var(--spacing);
  }
  .flex {
    display: flex;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .table {
    display: table;
  }
  .resize {
    resize: both;
  }
  .italic {
    font-style: italic;
  }
  .blur {
    --tw-blur: blur(8px);
    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,);
  }
  .invert {
    --tw-invert: invert(100%);
    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,);
  }
  .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,);
  }
}
:root {
  --bg: #f3f1e9;
  --surface: #fffdf8;
  --ink: #173126;
  --muted: #6c7c72;
  --green: #2f6f45;
  --green-dark: #1c4b30;
  --green-soft: #dfeadf;
  --gold: #b89c55;
  --gold-soft: #f2ead3;
  --danger: #b5443e;
  --danger-soft: #f8e3e0;
  --line: #2f6f451f;
  --shadow: 0 16px 44px #1f513417;
  --radius: 22px;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  scroll-behavior: smooth;
}
body {
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -8%, #b89c5529, transparent 30%),
    linear-gradient(180deg, #f8f6ef 0%, var(--bg) 100%);
  font-family: var(--font-geist-sans), Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #2f6f4547;
}
.app {
  min-height: 100vh;
  padding-bottom: 92px;
}
.shell {
  width: min(calc(100% - 24px), var(--max));
  margin: 0 auto;
}
.topbar {
  z-index: 40;
  height: 72px;
  padding: 0 max(12px, calc((100% - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: #f8f6efe6;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  display: flex;
  position: sticky;
  top: 0;
}
.brand,
.user-box {
  align-items: center;
  gap: 10px;
  display: flex;
}
.brand img {
  border-radius: 11px;
  width: 38px;
  height: 38px;
  box-shadow: 0 7px 20px #1f51342e;
}
.brand div,
.user-box div {
  flex-direction: column;
  display: flex;
}
.brand strong {
  letter-spacing: 0.09em;
  font-size: 0.8rem;
}
.brand span,
.user-box small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 0.68rem;
}
.user-box > div {
  text-align: right;
}
.user-box strong {
  font-size: 0.79rem;
}
.sync-dot {
  background: #58a36d;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 4px #58a36d21;
}
.ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 12px;
}
.compact-btn {
  height: 36px;
  padding: 0 10px;
  font-size: 0.72rem;
}
.hero {
  grid-template-columns: 1fr 320px;
  align-items: end;
  gap: 28px;
  padding: 42px 0 24px;
  display: grid;
}
.eyebrow {
  color: var(--green-dark);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.71rem;
  font-weight: 850;
  display: flex;
}
.eyebrow:before {
  content: "";
  background: var(--gold);
  border-radius: 9px;
  width: 22px;
  height: 2px;
  display: block;
}
.hero h1,
.page-head h1 {
  letter-spacing: -0.055em;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 0.96;
}
.hero > div > p:last-child,
.page-head > p {
  max-width: 690px;
  color: var(--muted);
  margin: 14px 0 0;
  line-height: 1.6;
}
.responsible {
  background: linear-gradient(145deg, var(--green-dark), var(--green));
  color: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 40px #1f513433;
}
.responsible > span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffffad;
  font-size: 0.7rem;
}
.responsible > div {
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  display: flex;
}
.responsible i {
  background: #ffffff29;
  border-radius: 50%;
  place-items: center;
  width: 36px;
  height: 36px;
  font-style: normal;
  font-weight: 900;
  display: grid;
}
.responsible button {
  color: #fff;
  background: #ffffff14;
  border: 1px solid #ffffff40;
  border-radius: 11px;
  width: 100%;
  padding: 9px;
  font-size: 0.76rem;
  font-weight: 800;
}
.responsible small {
  color: #ffffff9e;
  margin-top: 8px;
  font-size: 0.65rem;
  display: block;
}
.week-picker {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  grid-template-columns: 42px minmax(0, 1fr) 42px auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px;
  display: grid;
  box-shadow: 0 8px 28px #1f51340f;
}
.week-picker > button {
  border: 1px solid var(--line);
  height: 42px;
  color: var(--green-dark);
  background: #f7faf5;
  border-radius: 12px;
  font-size: 1.45rem;
}
.week-picker label {
  flex-direction: column;
  padding: 0 10px;
  display: flex;
  position: relative;
}
.week-picker label span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
}
.week-picker label strong {
  margin-top: 3px;
  font-size: 0.9rem;
}
.week-picker input {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  inset: 0;
}
.week-picker .today-btn {
  padding: 0 13px;
  font-size: 0.72rem;
  font-weight: 800;
}
.metrics-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  display: grid;
}
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 18px;
}
.metric > span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.71rem;
  font-weight: 800;
  display: block;
}
.metric > strong {
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  margin: 8px 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  display: block;
  overflow: hidden;
}
.metric.primary {
  background: linear-gradient(145deg, var(--green-dark), var(--green));
  color: #fff;
}
.metric.primary > span {
  color: #ffffffad;
}
.delta {
  font-size: 0.72rem;
  font-weight: 850;
}
.delta small {
  color: var(--muted);
  font-weight: 500;
}
.metric.primary .delta small {
  color: #ffffff94;
}
.delta.good {
  color: #318454;
}
.delta.bad {
  color: var(--danger);
}
.metric.primary .delta {
  color: #fff;
}
.christiane-card {
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(145deg, #6e3b5f, #985a7d);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  padding: 20px 22px;
  display: grid;
  box-shadow: 0 16px 36px #6e3b5f2e;
}
.christiane-card .eyebrow {
  color: #ffffffb8;
}
.christiane-card > div > strong {
  letter-spacing: -0.04em;
  font-size: 2rem;
  display: block;
}
.christiane-card > div > span,
.history-total span {
  color: #ffffffad;
  margin-top: 4px;
  font-size: 0.73rem;
  display: block;
}
.christiane-card details {
  background: #ffffff12;
  border: 1px solid #ffffff29;
  border-radius: 14px;
  padding: 11px 13px;
}
.christiane-card summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}
.history-total {
  border-bottom: 1px solid #ffffff1f;
  margin: 12px 0;
  padding-bottom: 10px;
}
.history-total b {
  font-size: 1.25rem;
}
.christiane-history {
  max-height: 180px;
  overflow: auto;
}
.christiane-history div {
  border-bottom: 1px solid #ffffff14;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.72rem;
  display: flex;
}
.two-col {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  display: grid;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  padding: 20px;
  overflow: hidden;
}
.panel > header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  display: flex;
}
.panel h2 {
  letter-spacing: -0.025em;
  margin: 0;
  font-size: 1.16rem;
}
.panel-total {
  color: var(--green-dark);
  font-weight: 900;
}
.sale-grid {
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  display: grid;
}
.sale-grid > button {
  text-align: left;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #fff, #f7faf5);
  border-radius: 16px;
  min-height: 108px;
  padding: 14px;
  transition: all 0.18s;
}
.sale-grid > button:hover {
  border-color: #2f6f4557;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px #1f513417;
}
.sale-grid strong,
.sale-grid small {
  display: block;
}
.sale-grid strong {
  margin-top: 9px;
  font-size: 0.86rem;
}
.sale-grid small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 0.67rem;
}
.origin-icon {
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  place-items: center;
  width: 32px;
  height: 32px;
  font-weight: 900;
  display: grid;
}
.origin-icon.puerto {
  background: #315d72;
}
.origin-icon.gomera {
  background: #a18436;
}
.origin-icon.web {
  background: #246f69;
}
.expense-btn {
  text-align: left;
  background: #fff9f7;
  border: 1px solid #b5443e29;
  border-radius: 15px;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 9px;
  padding: 12px;
  display: flex;
}
.expense-btn > span {
  background: var(--danger-soft);
  width: 34px;
  height: 34px;
  color: var(--danger);
  border-radius: 10px;
  place-items: center;
  font-weight: 900;
  display: grid;
}
.expense-btn strong,
.expense-btn small {
  display: block;
}
.expense-btn small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 0.66rem;
}
.chart {
  width: 100%;
  overflow: hidden;
}
.chart svg {
  width: 100%;
  height: auto;
  min-height: 230px;
  display: block;
}
.chart svg line {
  stroke: #2f6f451a;
  stroke-width: 1px;
}
.chart svg text {
  fill: var(--muted);
  font-size: 10px;
}
.bar-income {
  fill: var(--green);
}
.bar-expense {
  fill: var(--danger);
}
.result-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.result-point {
  fill: var(--gold);
  stroke: #fff;
  stroke-width: 2px;
}
.legend {
  color: var(--muted);
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
  font-size: 0.7rem;
  display: flex;
}
.legend span {
  align-items: center;
  gap: 6px;
  display: flex;
}
.legend i {
  border-radius: 50%;
  width: 8px;
  height: 8px;
}
.legend .income {
  background: var(--green);
}
.legend .expense {
  background: var(--danger);
}
.legend .result {
  background: var(--gold);
}
.transaction-list {
  flex-direction: column;
  gap: 8px;
  display: flex;
}
.transaction {
  background: #fafbf8;
  border: 1px solid #2f6f4514;
  border-radius: 15px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  display: grid;
}
.tx-symbol {
  background: var(--green-soft);
  width: 38px;
  height: 38px;
  color: var(--green-dark);
  border-radius: 12px;
  place-items: center;
  font-weight: 900;
  display: grid;
}
.transaction.expense .tx-symbol {
  background: var(--danger-soft);
  color: var(--danger);
}
.transaction > div:not(.tx-actions) {
  min-width: 0;
}
.transaction > div > strong,
.transaction > div > span {
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
  overflow: hidden;
}
.transaction > div > strong {
  font-size: 0.84rem;
}
.transaction > div > span {
  color: var(--muted);
  margin-top: 3px;
  font-size: 0.67rem;
}
.tx-value {
  white-space: nowrap;
  font-size: 0.84rem;
}
.transaction.sale .tx-value {
  color: var(--green-dark);
}
.transaction.expense .tx-value {
  color: var(--danger);
}
.tx-actions {
  grid-column: 2/4;
  justify-content: flex-end;
  gap: 7px;
  display: flex;
}
.tx-actions button,
.incident footer button {
  background: var(--green-soft);
  color: var(--green-dark);
  border: 0;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 0.68rem;
  font-weight: 750;
}
.tx-actions button:last-child {
  background: var(--danger-soft);
  color: var(--danger);
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 36px 12px;
}
.empty b,
.empty span {
  display: block;
}
.empty b {
  color: var(--ink);
  margin-bottom: 4px;
}
.page {
  padding: 38px 0;
}
.page-head {
  margin-bottom: 24px;
}
.page-head h1 {
  font-size: clamp(2.15rem, 6vw, 4rem);
}
.panel-page-head,
.report-header {
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  display: flex;
}
.primary-btn {
  background: linear-gradient(145deg, var(--green-dark), var(--green));
  color: #fff;
  border: 0;
  border-radius: 13px;
  width: 100%;
  padding: 13px 16px;
  font-weight: 850;
  box-shadow: 0 10px 24px #2f6f452e;
}
.primary-btn.inline {
  white-space: nowrap;
  width: auto;
}
.primary-btn.danger {
  background: linear-gradient(145deg, #8f302c, var(--danger));
}
.filter-row {
  gap: 8px;
  margin-bottom: 12px;
  display: flex;
}
.filter-row button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 0.75rem;
}
.filter-row button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.incident-form {
  grid-template-columns: 180px 1fr;
  gap: 12px;
  display: grid;
}
.incident-form label:last-of-type,
.incident-form button {
  grid-column: 1/-1;
}
.incident-list {
  gap: 11px;
  display: grid;
}
.incident {
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px #1f51340f;
}
.incident.problem {
  border-left-color: var(--danger);
}
.incident.important {
  border-left-color: var(--gold);
}
.incident.positive {
  border-left-color: #4c9861;
}
.incident.suggestion {
  border-left-color: #315d72;
}
.incident.resolved {
  opacity: 0.66;
}
.incident header {
  align-items: center;
  gap: 11px;
  display: flex;
}
.incident-icon {
  background: var(--green-soft);
  border-radius: 12px;
  place-items: center;
  width: 38px;
  height: 38px;
  font-weight: 900;
  display: grid;
}
.incident header div {
  flex: 1;
}
.incident header div > span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 0.64rem;
}
.incident h2 {
  margin: 2px 0 0;
  font-size: 1rem;
}
.incident header > i {
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.64rem;
  font-style: normal;
}
.incident > p {
  white-space: pre-wrap;
  color: #42564a;
  font-size: 0.85rem;
  line-height: 1.55;
}
.incident footer {
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.67rem;
  display: flex;
}
.paper {
  background: #fff;
  border: 1px solid #e3e0d7;
  border-radius: 18px;
  padding: 38px;
  box-shadow: 0 18px 50px #00000014;
}
.paper > header {
  border-bottom: 3px solid var(--green);
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  display: flex;
}
.paper > header div strong,
.paper > header div span {
  display: block;
}
.paper > header div span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.72rem;
}
.paper > header > b {
  color: var(--green-dark);
  font-size: 1.8rem;
}
.report-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
  display: grid;
}
.report-grid div {
  background: #f6f7f3;
  border-radius: 12px;
  padding: 14px;
}
.report-grid span,
.report-grid strong {
  display: block;
}
.report-grid span {
  color: var(--muted);
  margin-bottom: 5px;
  font-size: 0.68rem;
}
.paper > h2 {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 28px 0 10px;
  font-size: 0.75rem;
}
.report-row {
  border-bottom: 1px solid #eceae3;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.82rem;
  display: flex;
}
.bottom-nav {
  z-index: 50;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: #173126f5;
  border: 1px solid #ffffff1f;
  border-radius: 19px 19px 0 0;
  grid-template-columns: repeat(4, 1fr);
  width: min(100% - 20px, 580px);
  padding: 7px;
  display: grid;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%);
  box-shadow: 0 -10px 34px #1731262e;
}
.bottom-nav button {
  color: #ffffff9e;
  background: 0 0;
  border: 0;
  border-radius: 12px;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 4px;
  display: flex;
  position: relative;
}
.bottom-nav button.active {
  color: #fff;
  background: #ffffff1f;
}
.bottom-nav b {
  font-size: 1rem;
}
.bottom-nav span {
  font-size: 0.62rem;
}
.unread-dot {
  color: #30250e;
  background: #e7b550;
  border-radius: 99px;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 900;
  display: grid;
  position: absolute;
  top: 3px;
  right: 20%;
}
.toast {
  z-index: 100;
  color: #fff;
  background: #173126;
  border-radius: 12px;
  max-width: min(90vw, 480px);
  padding: 11px 15px;
  font-size: 0.78rem;
  position: fixed;
  bottom: 82px;
  left: 50%;
  transform: translate(-50%);
  box-shadow: 0 12px 32px #00000038;
}
.modal-backdrop {
  z-index: 90;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: #0f20188c;
  place-items: center;
  padding: 18px;
  display: grid;
  position: fixed;
  inset: 0;
}
.modal {
  background: var(--surface);
  border-radius: 22px;
  width: min(100%, 500px);
  max-height: 92vh;
  padding: 22px;
  overflow: auto;
  box-shadow: 0 30px 70px #0000003d;
}
.modal > header {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  display: flex;
}
.modal h2 {
  margin: 0;
}
.modal > header > button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
}
.modal label,
.auth-card label,
.incident-form label {
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 750;
  display: block;
}
.modal input,
.modal select,
.modal textarea,
.auth-card input,
.incident-form input,
.incident-form select,
.incident-form textarea {
  border: 1px solid var(--line);
  width: 100%;
  color: var(--ink);
  background: #fff;
  border-radius: 12px;
  margin-top: 6px;
  padding: 12px;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
.money-input {
  position: relative;
}
.money-input span {
  color: var(--muted);
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
}
.money-input input {
  padding-left: 34px;
}
fieldset {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
}
legend {
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 750;
}
.segmented {
  border: 1px solid var(--line);
  background: #f1f4ee;
  border-radius: 13px;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  display: grid;
}
.segmented button {
  color: var(--muted);
  background: 0 0;
  border: 0;
  border-radius: 9px;
  padding: 9px;
}
.segmented button.active {
  color: var(--green-dark);
  background: #fff;
  font-weight: 850;
  box-shadow: 0 4px 12px #1f513417;
}
.auth-shell {
  background:
    radial-gradient(circle at 10% 0, #b89c5533, #0000 35%),
    linear-gradient(145deg, #f8f5ea, #e7efe5);
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  display: grid;
}
.auth-card {
  background: #fffdf8f5;
  border: 1px solid #2f6f451f;
  border-radius: 26px;
  width: min(100%, 480px);
  padding: 28px;
  box-shadow: 0 28px 80px #1f513426;
}
.auth-card h1 {
  letter-spacing: -0.05em;
  margin: 12px 0;
  font-size: clamp(2rem, 8vw, 3.3rem);
  line-height: 1;
}
.auth-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}
.auth-card > small {
  text-align: center;
  color: var(--muted);
  margin-top: 12px;
  font-size: 0.68rem;
  display: block;
}
.form-error {
  background: var(--danger-soft);
  color: #7f2f2b;
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 10px;
  font-size: 0.75rem;
}
.people-selector {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 16px 0;
  display: grid;
}
.people-selector button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 10px 4px;
  font-size: 0.7rem;
}
.people-selector button.selected {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  font-weight: 850;
}
.loading-card {
  text-align: center;
  place-items: center;
  gap: 14px;
  display: grid;
}
.loader {
  border: 3px solid var(--green-soft);
  border-top-color: var(--green);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  animation: 0.8s linear infinite spin;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (width<=850px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }
  .responsible {
    width: 100%;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric.primary {
    grid-column: 1/-1;
  }
  .christiane-card,
  .two-col {
    grid-template-columns: 1fr;
  }
  .report-grid {
    grid-template-columns: 1fr 1fr;
  }
  .incident-form {
    grid-template-columns: 1fr;
  }
  .incident-form label:last-of-type,
  .incident-form button {
    grid-column: auto;
  }
}
@media (width<=560px) {
  .topbar {
    height: 64px;
  }
  .brand div,
  .user-box > div {
    display: none;
  }
  .shell {
    width: min(calc(100% - 18px), var(--max));
  }
  .hero {
    padding: 22px 3px 16px;
  }
  .hero h1 {
    font-size: 2.65rem;
  }
  .week-picker {
    grid-template-columns: 36px 1fr 36px;
  }
  .week-picker > button {
    height: 38px;
  }
  .week-picker .today-btn {
    grid-column: 1/-1;
    height: 32px;
  }
  .metrics-grid {
    gap: 8px;
  }
  .metric {
    padding: 14px;
  }
  .metric > strong {
    font-size: 1.35rem;
  }
  .delta small {
    display: none;
  }
  .christiane-card {
    padding: 17px;
  }
  .panel {
    padding: 15px;
  }
  .sale-grid > button {
    min-height: 100px;
    padding: 12px;
  }
  .panel-page-head,
  .report-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .primary-btn.inline {
    width: 100%;
  }
  .transaction {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .tx-value {
    text-align: left;
    grid-column: 2;
  }
  .tx-actions {
    grid-column: 2;
  }
  .paper {
    padding: 18px;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .paper > header {
    flex-direction: column;
  }
  .people-selector {
    grid-template-columns: 1fr;
  }
  .modal-backdrop {
    padding: 9px;
  }
  .modal {
    padding: 18px;
  }
  .incident footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .bottom-nav {
    border-radius: 18px 18px 0 0;
    width: 100%;
  }
}
@media print {
  body {
    background: #fff;
  }
  .topbar,
  .bottom-nav,
  .report-header .primary-btn,
  .week-picker,
  .toast {
    display: none !important;
  }
  .app {
    padding: 0;
  }
  .shell {
    width: 100%;
  }
  .page {
    padding: 0;
  }
  .report-page > .report-header {
    display: block;
  }
  .paper {
    box-shadow: none;
    border: 0;
    padding: 0;
  }
  .transaction {
    break-inside: avoid;
  }
  .paper .transaction-list {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .loader {
    animation: none;
  }
}
.top-actions {
  align-items: center;
  gap: 10px;
  display: flex;
}
.language-switcher {
  border: 1px solid var(--line);
  background: #fffdf8d6;
  border-radius: 13px;
  align-items: center;
  gap: 3px;
  padding: 3px;
  display: flex;
  box-shadow: 0 5px 16px #1f513412;
}
.language-switcher button {
  filter: saturate(0.65);
  background: 0 0;
  border: 1px solid #0000;
  border-radius: 9px;
  width: 34px;
  height: 30px;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1;
  transition: all 0.16s;
}
.language-switcher button:hover {
  background: var(--green-soft);
  filter: saturate();
}
.language-switcher button.active {
  filter: saturate();
  background: #fff;
  border-color: #2f6f4533;
  box-shadow: 0 3px 9px #1f51341f;
}
.auth-language {
  z-index: 2;
  position: fixed;
  top: 18px;
  right: 18px;
}
.auth-logo {
  margin-bottom: 18px;
}
.auth-logo img {
  border-radius: 24px;
  width: 104px;
  height: 104px;
}
.loading-card > img {
  border-radius: 20px;
  box-shadow: 0 12px 28px #1f513433;
}
.report-brand {
  align-items: center;
  gap: 12px;
  display: flex;
}
.report-brand > img {
  border-radius: 14px;
  box-shadow: 0 8px 20px #1f513429;
}
.report-brand > div {
  flex-direction: column;
  display: flex;
}
@media (width<=650px) {
  .top-actions {
    gap: 6px;
  }
  .language-switcher {
    gap: 2px;
    padding: 2px;
  }
  .language-switcher button {
    width: 30px;
    height: 28px;
    font-size: 0.96rem;
  }
  .sync-dot {
    display: none;
  }
  .compact-btn {
    height: 32px;
    padding: 0 8px;
  }
  .brand img {
    width: 42px;
    height: 42px;
  }
  .auth-language {
    top: 12px;
    right: 12px;
  }
}
@media (width<=390px) {
  .topbar {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .top-actions {
    gap: 4px;
  }
  .language-switcher button {
    width: 27px;
  }
  .compact-btn {
    padding: 0 6px;
    font-size: 0.67rem;
  }
  .brand img {
    width: 39px;
    height: 39px;
  }
}
.web-calculation {
  background: #f4f8f1;
  border: 1px solid #2f6f4526;
  border-radius: 14px;
  margin: 2px 0 14px;
  padding: 13px;
}
.web-calculation > strong {
  color: var(--green-dark);
  margin-bottom: 10px;
  font-size: 0.76rem;
  display: block;
}
.web-calculation > div {
  border-bottom: 1px solid #2f6f451c;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  display: grid;
}
.web-calculation > div > span {
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 900;
}
.web-calculation small {
  color: var(--muted);
  font-size: 0.68rem;
}
.web-calculation b {
  font-size: 0.82rem;
}
.web-calculation footer {
  color: var(--green-dark);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  font-size: 0.78rem;
  font-weight: 850;
  display: flex;
}
.web-calculation footer b {
  font-size: 1rem;
}
.people-selector.quick-access {
  grid-template-columns: 1fr;
  gap: 9px;
}
.quick-access button {
  text-align: left;
  background: linear-gradient(145deg, #fff, #f3f8f1);
  border-color: #2f6f4524;
  justify-content: space-between;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  box-shadow: 0 7px 18px #1f51340d;
}
.quick-access button:hover {
  border-color: #2f6f4561;
  transform: translateY(-1px);
}
.quick-access button strong,
.quick-access button span {
  display: block;
}
.quick-access button strong {
  color: var(--ink);
  font-size: 0.88rem;
}
.quick-access button span {
  color: var(--green-dark);
  font-size: 0.69rem;
  font-weight: 800;
}
.install-cta {
  z-index: 70;
  color: #fff;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: #173126f7;
  border: 1px solid #ffffff24;
  border-radius: 18px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px 11px;
  width: min(100% - 28px, 440px);
  padding: 10px 11px;
  display: grid;
  position: fixed;
  bottom: 82px;
  left: 14px;
  box-shadow: 0 18px 46px #0e25194d;
}
.install-cta > img {
  border-radius: 12px;
  width: 46px;
  height: 46px;
  box-shadow: 0 7px 18px #00000040;
}
.install-cta > div {
  min-width: 0;
}
.install-cta strong,
.install-cta span {
  display: block;
}
.install-cta strong {
  font-size: 0.82rem;
}
.install-cta span {
  color: #ffffffa3;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 3px;
  font-size: 0.65rem;
  overflow: hidden;
}
.install-cta > button:not(.iphone-help) {
  color: #173126;
  background: linear-gradient(145deg, #d9f269, #9ecb28);
  border: 0;
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 7px 18px #9ecb2833;
}
.install-cta .iphone-help {
  color: #d6e9c7;
  text-underline-offset: 3px;
  background: 0 0;
  border: 0;
  grid-column: 2/4;
  justify-self: start;
  padding: 0;
  font-size: 0.65rem;
  text-decoration: underline;
}
.install-backdrop {
  z-index: 120;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #091810b3;
  place-items: center;
  padding: 16px;
  display: grid;
  position: fixed;
  inset: 0;
}
.install-dialog {
  background: #fffdf8;
  border-radius: 26px;
  width: min(100%, 510px);
  max-height: 92vh;
  padding: 22px;
  overflow: auto;
  box-shadow: 0 30px 90px #00000059;
}
.install-dialog > header {
  grid-template-columns: 70px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  display: grid;
}
.install-dialog > header > img {
  border-radius: 18px;
  width: 70px;
  height: 70px;
  box-shadow: 0 10px 26px #1f513433;
}
.install-dialog > header h2 {
  letter-spacing: -0.035em;
  margin: 3px 0 0;
  font-size: 1.45rem;
}
.install-dialog > header .eyebrow {
  margin: 0;
}
.install-dialog > header > button {
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: #fff;
  border-radius: 12px;
  align-self: start;
  font-size: 1.4rem;
}
.install-dialog ol {
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}
.install-dialog li {
  border: 1px solid var(--line);
  color: #3d5145;
  background: #f7faf5;
  border-radius: 15px;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  font-size: 0.82rem;
  line-height: 1.45;
  display: flex;
}
.install-dialog li b {
  background: var(--green);
  color: #fff;
  border-radius: 9px;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  display: grid;
}
.install-dialog > p {
  color: var(--muted);
  margin: 14px 2px;
  font-size: 0.72rem;
  line-height: 1.5;
}
.auth-logo img {
  border-radius: 29px;
  width: 132px;
  height: 132px;
  box-shadow: 0 14px 32px #1f513438;
}
@media (width<=560px) {
  .auth-shell {
    padding-bottom: 150px;
  }
  .install-cta {
    border-radius: 15px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    width: calc(100% - 18px);
    padding: 8px 9px;
    bottom: 72px;
    left: 9px;
  }
  .install-cta > img {
    width: 42px;
    height: 42px;
  }
  .install-cta > button:not(.iphone-help) {
    padding: 9px 10px;
  }
  .install-dialog {
    padding: 18px;
  }
  .install-dialog > header {
    grid-template-columns: 58px minmax(0, 1fr) 36px;
    gap: 11px;
  }
  .install-dialog > header > img {
    width: 58px;
    height: 58px;
  }
  .install-dialog > header h2 {
    font-size: 1.2rem;
  }
}
@media print {
  .install-cta,
  .install-backdrop {
    display: none !important;
  }
}
@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;
}

/* Bestand / Existencias */
.bottom-nav {
  grid-template-columns: repeat(5, 1fr);
  width: min(100% - 20px, 680px);
}
.stock-form {
  overflow: visible;
}
.stock-counter {
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.7rem;
  font-weight: 850;
}
.stock-rows {
  display: grid;
  gap: 10px;
}
.stock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 42px;
  align-items: end;
  gap: 10px;
  padding: 13px;
  background: #f7faf5;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.stock-row label {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 750;
}
.stock-row input,
.stock-row select {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.stock-remove {
  width: 42px;
  height: 44px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 0;
  border-radius: 11px;
  font-size: 1.2rem;
  font-weight: 900;
}
.stock-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.stock-add-line {
  padding: 11px 14px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 850;
}
.stock-history > header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 26px 2px 12px;
}
.stock-history > header h2 {
  margin: 0;
  font-size: 1.2rem;
}
.stock-history > header span {
  color: var(--muted);
  font-size: 0.7rem;
}
.stock-batch {
  margin-bottom: 11px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 18px;
  box-shadow: 0 10px 28px #1f51340f;
}
.stock-batch.latest {
  border-left-color: var(--green);
  background: linear-gradient(145deg, #fffdf8, #f1f7ee);
}
.stock-batch > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.stock-batch > header strong,
.stock-batch > header span {
  display: block;
}
.stock-batch > header span,
.stock-batch > header small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 0.68rem;
}
.stock-batch ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 13px 0 0;
  padding: 0;
}
.stock-batch li {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stock-batch li strong {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--green);
  border-radius: 10px;
}
.stock-batch li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.8rem;
  font-weight: 750;
}
@media (width <= 700px) {
  .stock-batch ul {
    grid-template-columns: 1fr 1fr;
  }
}
@media (width <= 560px) {
  .bottom-nav {
    width: 100%;
  }
  .bottom-nav span {
    font-size: 0.56rem;
  }
  .stock-row {
    grid-template-columns: minmax(0, 1fr) 92px 40px;
    padding: 10px;
    gap: 7px;
  }
  .stock-remove {
    width: 40px;
  }
  .stock-actions {
    flex-direction: column;
  }
  .stock-actions .primary-btn.inline {
    width: 100%;
  }
  .stock-batch ul {
    grid-template-columns: 1fr;
  }
}
