/* Endast kundens planeringslista. Rör inte övriga formulärknappar. */
.lhfa-lunch-plan-table td.lhfa-lunch-plan-actions {
    min-width: 190px;
    vertical-align: middle;
    line-height: 1.45;
}
.lhfa-lunch-plan-table td.lhfa-lunch-plan-actions > .button,
.lhfa-lunch-plan-table td.lhfa-lunch-plan-actions > form > .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 5px 10px !important;
    margin: 2px 4px 2px 0 !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    white-space: nowrap;
    vertical-align: middle;
}
.lhfa-lunch-plan-table td.lhfa-lunch-plan-actions > form {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}
@media (max-width: 700px) {
    .lhfa-lunch-plan-table td.lhfa-lunch-plan-actions { min-width: 145px; }
    .lhfa-lunch-plan-table td.lhfa-lunch-plan-actions > .button,
    .lhfa-lunch-plan-table td.lhfa-lunch-plan-actions > form > .button {
        padding: 4px 7px !important;
        font-size: 12px !important;
    }
}

/* Datum och klockslag hålls ihop på egna rader, även med långt menynamn. */
.lhfa-lunch-plan-table th:first-child,
.lhfa-lunch-plan-table td:first-child,
.lhfa-lunch-plan-admin .widefat th:first-child,
.lhfa-lunch-plan-admin .widefat td:first-child {
    min-width: 220px;
    width: 235px;
}
.lhfa-plan-period { display:flex; flex-direction:column; gap:3px; font-size:0.92em; line-height:1.45; }
.lhfa-plan-date-line { display:block; white-space:nowrap; font-variant-numeric:tabular-nums; }
.lhfa-plan-date-prefix { font-weight:600; }
.lhfa-plan-internal-name { display:block; overflow-wrap:anywhere; font-size:1.05em; margin-bottom:2px; }
@media (max-width:700px) {
 .lhfa-lunch-plan-table th:first-child, .lhfa-lunch-plan-table td:first-child { min-width:195px; }
 .lhfa-plan-period { font-size:0.86em; }
}

/* v0.1.948 – Visuellt separata inskickningar. Endast lunchmenyformulären.
   En vanlig POST per meny; inget extra AJAX-anrop eller JS-samordning. */
#lhfa-lunch-unified .lhfa-lunch-legacy-submit,
#lhfa-lunch-plan-create .lhfa-lunch-plan-legacy-submit {
    margin: 26px 0 14px !important;
    padding: 20px 0 4px !important;
    border-top: 2px solid #d9e2d0;
}
#lhfa-lunch-unified .lhfa-lunch-legacy-submit .button,
#lhfa-lunch-plan-create .lhfa-lunch-plan-legacy-submit .button {
    background: #566b42 !important;
    color: #fff !important;
    border: 1px solid #566b42 !important;
    border-radius: 12px !important;
    padding: 10px 20px !important;
    min-height: 44px !important;
    height: auto !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    cursor: pointer;
    box-shadow: none !important;
}
#lhfa-lunch-unified .lhfa-lunch-legacy-submit .button:hover,
#lhfa-lunch-plan-create .lhfa-lunch-plan-legacy-submit .button:hover {
    background: #3f5230 !important;
    color: #fff !important;
    border-color: #3f5230 !important;
}
#lhfa-lunch-unified .lhfa-lunch-legacy-submit .button:focus-visible,
#lhfa-lunch-plan-create .lhfa-lunch-plan-legacy-submit .button:focus-visible {
    outline: 3px solid #354d86 !important;
    outline-offset: 3px;
}
#lhfa-lunch-unified #lhfa-lunch-feedback { margin-top: 12px !important; }
#lhfa-lunch-plan-create > p[role="status"] { margin-top: 12px; }
@media (max-width: 700px) {
  #lhfa-lunch-unified .lhfa-lunch-legacy-submit .button,
  #lhfa-lunch-plan-create .lhfa-lunch-plan-legacy-submit .button {
      max-width: 100%; white-space: normal;
  }
}

/* v0.1.951 – tydligt formatval och serverbekräftelse i rätt formulär. */
#lhfa-lunch-plan-create .lhfa-plan-format-box {
  padding: 15px 18px; margin: 18px 0; border: 1px solid #aab99b;
  background: #f7f9f4; border-radius: 12px;
}
#lhfa-lunch-plan-create .lhfa-plan-format-box > label { display: block; margin: 0 0 8px; }
#lhfa-lunch-plan-create .lhfa-plan-format-box > select { display: block; min-width: 210px; margin: 10px 0 8px; }
#lhfa-lunch-plan-create .lhfa-plan-format-hint { margin: 8px 0 0; font-size: .93em; }
#lhfa-lunch-plan-create .lhfa-plan-inline-error { color: #a12222; font-weight: 600; }
#lhfa-lunch-plan-create .lhfa-plan-result, #lhfa-lunch-feedback [data-lhfa-lunch-result] {
  border-radius: 9px; padding: 13px 16px; margin: 14px 0 16px;
  font-weight: 600;
}
#lhfa-lunch-plan-create .lhfa-lunch-result-ok, #lhfa-lunch-feedback .lhfa-lunch-result-ok { background:#f0f7ea; border-left:4px solid #63894b; color:#25461f; }
#lhfa-lunch-plan-create .lhfa-lunch-result-error, #lhfa-lunch-feedback .lhfa-lunch-result-error { background:#fff3f1; border-left:4px solid #b33b31; color:#8f2724; }
