/* Open kitchen tools: yield inspector and delivery simulator.
   Desktop 1440x900 professional density; mobile 390x844 zero horizontal overflow, controls >= 44px.
   Radii <= 6px, 1px rules, tabular numerals right-aligned. No inline styles (CSP style-src 'self'). */

.tl-body {
  background: #F3F2EE;
  color: #1B1F1C;
  font-family: var(--font-ui);
  font-size: 13px;
  overflow-x: hidden;
}
.tl-body a {
  color: #14532D;
}

.tl-topbar {
  background: #141917;
  height: 48px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.tl-brand {
  color: #FBFAF7 !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.tl-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.tl-nav-link {
  color: #C9CEC8 !important;
  text-decoration: none;
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  font-size: 12.5px;
}
.tl-nav-link:hover,
.tl-nav-link.active {
  background: #1F2622;
  color: #FBFAF7 !important;
}
.tl-nav-cta {
  margin-left: 6px;
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  background: #14532D;
  border: 1px solid #14532D;
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
}
.tl-nav-cta:hover {
  background: #0F4123;
}

.tl-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 20px 32px;
}
.tl-hero h1 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 6px;
  color: #1B1F1C;
}
.tl-lead {
  margin: 0 0 14px;
  max-width: 920px;
  font-size: 14px;
  line-height: 1.45;
  color: #4A514C;
}

.tl-grid {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.tl-panel {
  background: #FFFFFF;
  border: 1px solid #DCD8CF;
  border-radius: 6px;
  padding: 14px;
  min-width: 0;
}
.tl-panel h2 {
  font-size: 14px;
  margin: 0 0 10px;
  color: #1B1F1C;
}
.tl-calc {
  position: sticky;
  top: 62px;
  background: #FBFAF7;
}
.tl-table-panel {
  padding: 0;
  overflow: hidden;
}
.tl-table-panel > .tl-hint {
  padding: 0 14px 12px;
}

.tl-toolbar {
  padding: 12px 14px;
  border-bottom: 1px solid #DCD8CF;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  background: #FBFAF7;
}
.tl-toolbar h2 {
  margin: 0;
}
.tl-count-wrap {
  color: #666C66;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.tl-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tl-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
  min-width: 0;
}
.tl-field-inline {
  margin-bottom: 0;
}
.tl-field-static .tl-static {
  height: 32px;
  display: flex;
  align-items: center;
  color: #4A514C;
  font-variant-numeric: tabular-nums;
}
.tl-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4A514C;
}
.tl-unit {
  text-transform: none;
  font-weight: 500;
  color: #666C66;
}
.tl-input {
  height: 32px;
  padding: 0 8px;
  border: 1px solid #BDB9AC;
  border-radius: 4px;
  background: #FFFFFF;
  color: #1B1F1C;
  font: inherit;
  font-size: 13px;
  width: 100%;
  min-width: 0;
}
.tl-input:focus {
  outline: 2px solid #1D4E6B;
  outline-offset: -1px;
}
#tl-search {
  width: 220px;
}
.tl-input-xs {
  width: 72px;
  height: 28px;
}
.tl-num,
.tl-table td.num,
.tl-out-row output {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.tl-fields-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 10px;
}

.tl-outs {
  margin: 6px 0 12px;
  border: 1px solid #DCD8CF;
  border-radius: 4px;
  background: #FFFFFF;
}
.tl-out-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 4px 10px;
  border-bottom: 1px solid #ECE9E1;
  color: #4A514C;
}
.tl-out-row:last-child {
  border-bottom: 0;
}
.tl-out-row output {
  color: #1B1F1C;
  white-space: nowrap;
}
.tl-out-strong span {
  color: #1B1F1C;
  font-weight: 600;
}
.tl-out-strong output {
  font-weight: 700;
}

.tl-btn {
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.tl-btn-cta {
  background: #14532D;
  border: 1px solid #14532D;
  color: #FFFFFF !important;
}
.tl-btn-cta:hover {
  background: #0F4123;
}
.tl-btn-ghost {
  background: transparent;
  border: 1px solid #BDB9AC;
  color: #1B1F1C;
}
.tl-btn-ghost:hover {
  background: #F0EEE7;
}
.tl-btn-block {
  display: flex;
  width: 100%;
  height: 40px;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}
.tl-hint {
  font-size: 12px;
  color: #666C66;
  line-height: 1.4;
  margin: 8px 0 0;
}

.tl-table-scroll {
  max-height: 760px;
  overflow: auto;
}
.tl-table td,
.tl-table th {
  border-color: #DCD8CF;
}
.tl-table tbody tr {
  background: #FFFFFF;
}
.tl-table tbody tr:nth-child(even) {
  background: #FBFAF7;
}
.tl-table tbody tr:hover {
  background: #F0EEE7;
}
.tl-table th {
  padding: 6px 4px;
  font-size: 10.5px;
  white-space: nowrap;
}
.tl-table td {
  padding: 5px 4px;
}
.tl-name-cell {
  min-width: 165px;
  max-width: 240px;
}
.tl-name-cell strong {
  display: block;
}
.tl-note {
  display: block;
  font-size: 11px;
  color: #666C66;
  line-height: 1.3;
  margin-top: 2px;
}
.tl-fam-cell {
  color: #4A514C;
  font-size: 11px;
}
.tl-al-cell {
  white-space: normal;
  min-width: 58px;
}
.tl-al-cell abbr {
  text-decoration: none;
  margin-right: 3px;
}
.tl-act-cell {
  white-space: nowrap;
}
.tl-act-cell .tl-btn {
  padding: 0 7px;
  font-size: 11.5px;
}
.tl-act-cell .tl-btn + .tl-btn {
  margin-left: 4px;
}
.tl-strong {
  font-weight: 700;
}
.tl-gain {
  color: #14532D;
}
.tl-neg {
  color: #A3271F;
}
.tl-muted {
  color: #666C66;
  font-size: 12px;
}
.tl-hidden {
  display: none;
}

.tl-faq {
  margin-top: 14px;
}
.tl-faq .guide-faq-row {
  border-color: #DCD8CF;
}
.tl-faq .guide-faq-row p {
  line-height: 1.45;
}
.tl-crosslink {
  margin-top: 12px;
  font-weight: 600;
}

.tl-footer {
  margin-top: 8px;
}
.tl-footer-inner {
  max-width: 1400px;
}
.tl-footer-note {
  margin-top: 4px;
  max-width: 760px;
}

@media (max-width: 1100px) {
  .tl-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tl-calc {
    position: static;
  }
}

@media (max-width: 860px) {
  .tl-main {
    padding: 12px 12px 24px;
  }
  .tl-topbar {
    padding: 0 10px;
  }
  .tl-nav-link {
    padding: 0 8px;
    height: 44px;
  }
  .tl-nav-cta {
    display: none;
  }
  .tl-hero h1 {
    font-size: 18px;
  }
  .tl-input,
  .tl-input-xs,
  .tl-btn,
  .tl-btn-block {
    min-height: 44px;
    height: 44px;
    font-size: 16px;
  }
  .tl-btn {
    font-size: 14px;
  }
  #tl-search {
    width: 100%;
  }
  .tl-filters,
  .tl-field-inline {
    width: 100%;
  }
  .tl-fields-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .tl-table-scroll {
    max-height: none;
    max-width: 100%;
  }
  .tl-name-cell {
    min-width: 200px;
  }
  .tl-act-cell .tl-btn {
    display: flex;
    width: 100%;
  }
  .tl-act-cell .tl-btn + .tl-btn {
    margin: 4px 0 0;
  }
  .tl-footer-inner {
    flex-direction: column;
  }
  .tl-footer .sb-legal-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    margin-right: 12px;
  }
}

/* Dough and batch scaler (/escalador-masas, /dough-scaler) */
.tl-nav-short {
  display: none;
}
.tl-dough-allergens {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
}
.tl-dough-notes {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #DCD8CF;
  color: #4A514C;
  font-size: 12.5px;
  line-height: 1.45;
  background: #FFFFFF;
}
.tl-dough-table .tl-price-cell {
  white-space: nowrap;
}
.tl-dough-table .tl-price-cell .tl-unit {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  min-width: 42px;
  text-align: left;
}
.tl-dough-table tfoot td {
  background: #F3F2EE;
  border-top: 1px solid #BDB9AC;
  font-variant-numeric: tabular-nums;
  padding: 7px 4px;
}
.tl-dough-library {
  margin-top: 14px;
}
.tl-crosslink a {
  display: block;
  margin-top: 6px;
}
.tl-disabled {
  pointer-events: none;
  opacity: 0.5;
}

@media (max-width: 860px) {
  .tl-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tl-nav-long {
    display: none;
  }
  .tl-nav-short {
    display: inline;
  }
  .tl-nav-link {
    white-space: nowrap;
  }
  .tl-dough-table .tl-price-cell .tl-unit {
    display: block;
    margin: 2px 0 0;
    text-align: right;
  }
  .tl-crosslink a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0;
  }
}
