/*
 * TangramFood - editar centro UI polish
 * Scope: editar-centro.php
 * Solo presentacion. No contiene logica de guardado.
 */

.tf-centro-editor-page,
.tf-editar-centro-page,
.tfv3-editar-centro-wrap {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.tf-centro-editor-page,
.tf-editar-centro-page {
  background: #f8fafc;
  border: 1px solid #e8e2dc;
  border-radius: 22px;
  box-shadow: 0 22px 54px rgba(31, 41, 55, 0.08);
}

.tf-centro-editor-page h1,
.tf-editar-centro-page h1 {
  margin-bottom: 22px;
  letter-spacing: -0.025em;
}

.tf-centro-editor-page fieldset,
.tf-editar-centro-page fieldset {
  border: 1px solid #e4ded8;
  border-radius: 16px;
  background: #ffffff;
  padding: 22px;
  margin-bottom: 28px;
}

.tf-centro-editor-page legend,
.tf-editar-centro-page legend {
  padding: 0 8px;
  font-weight: 800;
  color: #1f2937;
}

.tf-centro-editor-page input[type="text"],
.tf-centro-editor-page input[type="number"],
.tf-editar-centro-page input[type="text"],
.tf-editar-centro-page input[type="number"] {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid #ddd7d1;
  background: #ffffff;
}

.tf-centro-editor-page .tf-check-tools,
.tf-editar-centro-page .tf-check-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 18px;
}

.tf-centro-editor-page .tf-check-group,
.tf-editar-centro-page .tf-check-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px 18px;
  margin-top: 10px;
}

.tf-centro-editor-page .tf-variants-table,
.tf-editar-centro-page .tf-variants-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid #e7e2dc;
  border-radius: 16px;
  overflow: hidden;
}

.tf-centro-editor-page .tf-variants-table th,
.tf-editar-centro-page .tf-variants-table th {
  background: #f4f2ef;
  color: #1f2937;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 12px;
  border-bottom: 1px solid #e7e2dc;
}

.tf-centro-editor-page .tf-variants-table td,
.tf-editar-centro-page .tf-variants-table td {
  padding: 12px;
  border-bottom: 1px solid #ece7e1;
  vertical-align: middle;
}

.tf-centro-editor-page .tf-variants-table tr:last-child td,
.tf-editar-centro-page .tf-variants-table tr:last-child td {
  border-bottom: 0;
}

.tf-centro-editor-page .tf-variants-table td:first-child,
.tf-editar-centro-page .tf-variants-table td:first-child {
  width: 72px;
  font-weight: 800;
  color: #4b5563;
}

.tf-centro-editor-page .tf-variants-actions,
.tf-centro-editor-page td.tf-col-move,
.tf-centro-editor-page .tf-move-buttons,
.tf-centro-editor-page .tf-move-buttons-inline,
.tf-editar-centro-page .tf-variants-actions,
.tf-editar-centro-page td.tf-col-move,
.tf-editar-centro-page .tf-move-buttons,
.tf-editar-centro-page .tf-move-buttons-inline {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  white-space: nowrap;
}

.tf-centro-editor-page .tf-variants-actions button,
.tf-centro-editor-page .tf-move-buttons button,
.tf-centro-editor-page .tf-move-buttons-inline button,
.tf-editar-centro-page .tf-variants-actions button,
.tf-editar-centro-page .tf-move-buttons button,
.tf-editar-centro-page .tf-move-buttons-inline button {
  width: 36px !important;
  min-width: 36px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.tf-centro-editor-page .tf-variant-limit-note,
.tf-editar-centro-page .tf-variant-limit-note {
  margin-left: 10px;
  font-weight: 800;
  color: #374151;
}

.tf-centro-editor-page #tf-add-variant-row,
.tf-editar-centro-page #tf-add-variant-row {
  margin-top: 18px;
}

.tf-centro-editor-page .tf-editar-centro-submit,
.tf-editar-centro-page .tf-editar-centro-submit {
  margin-top: 18px;
}

.tf-centro-editor-page a[href*="mis-centros"],
.tf-editar-centro-page a[href*="mis-centros"] {
  display: inline-block;
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
}

.tfv3-edit-center-status-pill,
.tfv3-operational-days-note,
.tfv3-floating-days-note {
  display: none !important;
}

@media (max-width: 760px) {
  .tf-centro-editor-page,
  .tf-editar-centro-page {
    padding: 22px;
    border-radius: 18px;
  }

  .tf-centro-editor-page .tf-variants-table,
  .tf-editar-centro-page .tf-variants-table {
    display: block;
    overflow-x: auto;
  }
}

/* TFV3 EDITAR CENTRO VISUAL POLISH 20260603 */

.tf-editar-centro-page,
.tf-centro-editor-page {
    max-width: 960px !important;
    margin: 0 auto !important;
}

.tf-centro-editor-page .inside-article,
.tf-editar-centro-page .inside-article,
.tf-centro-editor-page {
    background: #f4f1ef !important;
}

.tf-centro-editor-page h1,
.tf-editar-centro-page h1 {
    color: #f04b23 !important;
    font-size: clamp(34px, 4vw, 48px) !important;
    line-height: 1.05 !important;
    margin-bottom: 32px !important;
}

.tf-centro-editor-page h2,
.tf-editar-centro-page h2,
#tf-point5n-operativa-title {
    color: #f04b23 !important;
    font-size: clamp(28px, 3vw, 38px) !important;
    line-height: 1.1 !important;
    margin: 36px 0 22px !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.tf-centro-editor-page .tf-nuevo-centro-form,
.tf-editar-centro-page .tf-nuevo-centro-form {
    max-width: 760px !important;
}

.tf-centro-editor-page input[type="text"],
.tf-centro-editor-page input[type="number"],
.tf-editar-centro-page input[type="text"],
.tf-editar-centro-page input[type="number"] {
    min-height: 46px !important;
    border-radius: 8px !important;
    border: 1px solid #ddd5cf !important;
    background: #fff !important;
    color: #222 !important;
    font-size: 16px !important;
}

.tf-centro-editor-page fieldset,
.tf-editar-centro-page fieldset,
.tf-centro-editor-page .tf-check-group,
.tf-editar-centro-page .tf-check-group,
.tf-centro-editor-page .tf-point5n-operativa-card,
.tf-editar-centro-page .tf-point5n-operativa-card {
    background: #fff !important;
    border: 1px solid #e2d9d3 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04) !important;
}

.tf-centro-editor-page label,
.tf-editar-centro-page label {
    color: #252525 !important;
    font-size: 15px !important;
}

.tf-centro-editor-page .tf-help,
.tf-editar-centro-page .tf-help,
.tf-centro-editor-page p,
.tf-editar-centro-page p {
    color: #333 !important;
}

.tf-centro-editor-page .tf-check-tools,
.tf-editar-centro-page .tf-check-tools {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin: 14px 0 20px !important;
}

.tf-centro-editor-page .tf-check-toggle,
.tf-editar-centro-page .tf-check-toggle,
.tf-centro-editor-page #tf-add-variant-row,
.tf-editar-centro-page #tf-add-variant-row {
    background: #fff !important;
    color: #222 !important;
    border: 1px solid #cfc7c2 !important;
    border-radius: 0 !important;
    padding: 12px 18px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.tf-centro-editor-page .tf-check-toggle:hover,
.tf-editar-centro-page .tf-check-toggle:hover,
.tf-centro-editor-page #tf-add-variant-row:hover,
.tf-editar-centro-page #tf-add-variant-row:hover {
    border-color: #f04b23 !important;
    color: #f04b23 !important;
}

.tf-centro-editor-page .tf-editar-centro-submit,
.tf-editar-centro-page .tf-editar-centro-submit {
    background: #f04b23 !important;
    color: #fff !important;
    border: 1px solid #f04b23 !important;
    border-radius: 0 !important;
    min-height: 56px !important;
    padding: 16px 28px !important;
    font-weight: 800 !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.tf-centro-editor-page .tf-editar-centro-submit:hover,
.tf-editar-centro-page .tf-editar-centro-submit:hover {
    background: #d93f1b !important;
    border-color: #d93f1b !important;
}

.tf-centro-editor-page .tf-variants-table,
.tf-editar-centro-page .tf-variants-table {
    width: 100% !important;
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 22px !important;
}

.tf-centro-editor-page .tf-variants-table th,
.tf-editar-centro-page .tf-variants-table th {
    background: #fffaf7 !important;
    color: #1f2933 !important;
    font-weight: 800 !important;
    padding: 18px !important;
}

.tf-centro-editor-page .tf-variants-table td,
.tf-editar-centro-page .tf-variants-table td {
    padding: 16px 18px !important;
    border-top: 1px solid #eee6e1 !important;
}

.tf-centro-editor-page a,
.tf-editar-centro-page a {
    color: #f04b23 !important;
    font-weight: 600 !important;
}

@media (max-width: 768px) {
    .tf-editar-centro-page,
    .tf-centro-editor-page {
        max-width: 100% !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .tf-centro-editor-page .tf-nuevo-centro-form,
    .tf-editar-centro-page .tf-nuevo-centro-form {
        max-width: 100% !important;
    }

    .tf-centro-editor-page h1,
    .tf-editar-centro-page h1 {
        font-size: 34px !important;
    }
}
