/**
Function_neve: HRL Frontend Styles (Employee Leave UI)
Params:
nincs
Return:
nincs
Leírás:
- Csinos, széles, jól olvasható dolgozói szabadság igénylő UI
- Kártyás layout + responsive űrlap
- Szép táblázat: zebra, hover, pill-ek, státusz badge-ek
- Kategória mellett: maradék napok badge
*/
.hrl-box-login {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.hrl-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 12px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.hrl-banner {
  display: none;
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d0d7de;
  background: #f6f8fa;
  font-size: 14px;
}
.hrl-banner-ok { border-color: #2da44e55; background: #2da44e10; }
.hrl-banner-warn { border-color: #bf870055; background: #bf870010; }
.hrl-banner-err { border-color: #cf222e55; background: #cf222e10; }

.hrl-card {
  background: #fff;
  border: 1px solid #d0d7de;
  padding: 18px;
  margin: 14px 0;
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(27,31,36,0.04);
}

.hrl-card h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
}

.hrl-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hrl-row { display: flex; flex-direction: column; gap: 6px; }
.hrl-row-span { grid-column: 1 / span 3; }

.hrl-label {
  font-size: 13px;
  color: #57606a;
}

.hrl-input {
  border: 1px solid #d0d7de;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
.hrl-input:focus {
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9,105,218,0.15);
}

.hrl-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hrl-balance {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #d0d7de;
  background: #f6f8fa;
  font-size: 13px;
  white-space: nowrap;
}

.hrl-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hrl-inline-msg {
  font-size: 14px;
  color: #24292f;
}

.hrl-muted { color: #57606a; font-size: 14px; }
.hrl-error { color: #cf222e; font-size: 14px; }

.hrl-btn {
  border: 1px solid #d0d7de;
  background: #f6f8fa;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: transform .02s ease, background .12s ease, border-color .12s ease;
}
.hrl-btn:hover { background: #eef2f6; }
.hrl-btn:active { transform: translateY(1px); }

.hrl-btn-primary {
  background: #0969da;
  border-color: #0969da;
  color: #fff;
}
.hrl-btn-primary:hover { background: #075fc4; }

.hrl-btn-secondary { background: #ffffff; }
.hrl-btn-ghost { background: transparent; }

.hrl-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #d0d7de;
}
.hrl-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  background: #fff;
}
.hrl-table thead th {
  text-align: left;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #57606a;
  padding: 12px 12px;
  background: #f6f8fa;
  border-bottom: 1px solid #d0d7de;
}
.hrl-table td {
  padding: 12px 12px;
  border-bottom: 1px solid #eaeef2;
  vertical-align: top;
  font-size: 14px;
}
.hrl-table tbody tr:nth-child(even) td { background: #fbfcfe; }
.hrl-table tbody tr:hover td { background: #f0f6ff; }

.hrl-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.hrl-pill {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  background: #f6f8fa;
  font-size: 13px;
}

.hrl-status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid #d0d7de;
  background: #f6f8fa;
}
.hrl-status-submitted { border-color: #bf870055; background: #bf870010; }
.hrl-status-approved { border-color: #2da44e55; background: #2da44e10; }
.hrl-status-rejected { border-color: #cf222e55; background: #cf222e10; }
.hrl-status-cancelled { border-color: #57606a55; background: #57606a10; }

.hrl-foot {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .hrl-form { grid-template-columns: 1fr; }
  .hrl-row-span { grid-column: 1 / span 1; }
  .hrl-inline { flex-direction: column; align-items: stretch; }
  .hrl-table { min-width: 900px; }
}

/*
Function_neve: HRL Login Form Styling
Params:
(nincs)
Return:
(nincs)
Leírás:
- A wp_login_form() kimenetét csak HRL wrapperen belül ( .hrl-loginwrap ) csinosítja.
- Nem nyúl a site többi login / űrlap eleméhez.
*/

.hrl-loginwrap form {
  margin: 0;
}

.hrl-loginwrap label {
  font-weight: 600;
  font-size: 13px;
}

.hrl-loginwrap input[type="text"],
.hrl-loginwrap input[type="password"] {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.2;
}

.hrl-loginwrap input[type="text"]:focus,
.hrl-loginwrap input[type="password"]:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9,105,218,0.18);
}

.hrl-loginwrap .login-remember {
  margin: 8px 0 0 0;
}

.hrl-loginwrap .login-submit {
  margin-top: 12px;
}

.hrl-loginwrap input[type="submit"] {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #0969da;
  background: #0969da;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.hrl-loginwrap input[type="submit"]:hover {
  filter: brightness(0.95);
}

/**
Function_neve: HRL Leave Form Fallback Styling (Ugly-Markup Hardening)
Params:
(nincs)
Return:
(nincs)
Leírás:
- Akkor is széppé teszi a szabadság igénylő űrlapot, ha a HTML nem használja a .hrl-form/.hrl-row/.hrl-input osztályokat.
- A .hrl-card-on belüli formokat “kártyás, reszponzív, szellős” layout-ra állítja.
- A mezők nem csúsznak egymásra, a textarea teljes szélességet kap, a gomb nem ragad be furán.
- Biztonság: csak HRL UI-n belül hat ( .hrl-box + .hrl-card ), nem nyúl a site többi formjához.
*/
.hrl-box .hrl-card form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin: 0;
}

/* Sok WP/shortcode markup <p>-kbe csomagolja a label+input párokat -> kezeljük őket “mezőként”. */
.hrl-box .hrl-card form > p,
.hrl-box .hrl-card form > div,
.hrl-box .hrl-card form > span {
  margin: 0;
}

/* A klasszikus: <label>Szöveg <input/></label> – itt a label legyen a “mező konténer”. */
.hrl-box .hrl-card form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #57606a;
  min-width: 240px;
  flex: 1 1 240px;
}

/* Ha nem label-be ágyazott a szöveg, legalább a label-ek ne maradjanak inline-ban. */
.hrl-box .hrl-card form label + select,
.hrl-box .hrl-card form label + input,
.hrl-box .hrl-card form label + textarea {
  margin-top: 6px;
}

/* Alap mező stílus: ugyanaz a “HRL input feel”, de osztály nélkül is. */
.hrl-box .hrl-card form select,
.hrl-box .hrl-card form input[type="text"],
.hrl-box .hrl-card form input[type="date"],
.hrl-box .hrl-card form input[type="email"],
.hrl-box .hrl-card form input[type="number"],
.hrl-box .hrl-card form input[type="password"],
.hrl-box .hrl-card form textarea {
  width: 100%;
  min-width: 240px;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.2;
  outline: none;
  background: #fff;
  box-sizing: border-box;
}

/* Focus állapot – egységes kék fókuszgyűrű. */
.hrl-box .hrl-card form select:focus,
.hrl-box .hrl-card form input:focus,
.hrl-box .hrl-card form textarea:focus {
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9,105,218,0.15);
}

/* Textarea: ne legyen bélyeg méretű, és menjen full szélességre. */
.hrl-box .hrl-card form textarea {
  min-height: 92px;
  resize: vertical;
}

/* Ha a textarea külön elemként szerepel (nem label-ben), legyen teljes sor. */
.hrl-box .hrl-card form textarea,
.hrl-box .hrl-card form label:has(textarea) {
  flex-basis: 100%;
}

/* Submit gomb: egységes HRL primary megjelenés, még ha WP alap input[type=submit]. */
.hrl-box .hrl-card form input[type="submit"],
.hrl-box .hrl-card form button[type="submit"],
.hrl-box .hrl-card form .button,
.hrl-box .hrl-card form .button-primary {
  border: 1px solid #0969da;
  background: #0969da;
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .02s ease, filter .12s ease, background .12s ease, border-color .12s ease;
}

/* Hover/active a gombon. */
.hrl-box .hrl-card form input[type="submit"]:hover,
.hrl-box .hrl-card form button[type="submit"]:hover,
.hrl-box .hrl-card form .button:hover,
.hrl-box .hrl-card form .button-primary:hover {
  filter: brightness(0.95);
}
.hrl-box .hrl-card form input[type="submit"]:active,
.hrl-box .hrl-card form button[type="submit"]:active,
.hrl-box .hrl-card form .button:active,
.hrl-box .hrl-card form .button-primary:active {
  transform: translateY(1px);
}

/* Mobilon legyen még levegősebb, és ne akarjon 3 oszlopot játszani. */
@media (max-width: 980px) {
  .hrl-box .hrl-card form label {
    min-width: 100%;
    flex-basis: 100%;
  }

  .hrl-box .hrl-card form select,
  .hrl-box .hrl-card form input,
  .hrl-box .hrl-card form textarea {
    min-width: 100%;
  }
}

/* HRL form “force fix” – akkor is, ha a markup nem kapott .hrl-* classokat */
.hrl-box form,
.hrl-card form {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  align-items: flex-end !important;
  margin: 0 !important;
}

.hrl-box form label,
.hrl-card form label {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #57606a !important;
  min-width: 240px !important;
  flex: 1 1 240px !important;
}

.hrl-box form select,
.hrl-box form input[type="date"],
.hrl-box form input[type="text"],
.hrl-box form textarea,
.hrl-card form select,
.hrl-card form input[type="date"],
.hrl-card form input[type="text"],
.hrl-card form textarea {
  width: 100% !important;
  min-width: 240px !important;
  border: 1px solid #d0d7de !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

.hrl-box form textarea,
.hrl-card form textarea {
  min-height: 92px !important;
  resize: vertical !important;
  flex: 1 1 100% !important;
}

.hrl-box form input[type="submit"],
.hrl-card form input[type="submit"],
.hrl-box form button[type="submit"],
.hrl-card form button[type="submit"] {
  border: 1px solid #0969da !important;
  background: #0969da !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
}

@media (max-width: 980px) {
  .hrl-box form label,
  .hrl-card form label {
    min-width: 100% !important;
    flex-basis: 100% !important;
  }

  /* HRL form “force fix” – akkor is, ha a markup nem kapott .hrl-* classokat */
  .hrl-box form,
  .hrl-card form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    align-items: flex-end !important;
    margin: 0 !important;
  }

  .hrl-box form label,
  .hrl-card form label {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #57606a !important;
    min-width: 240px !important;
    flex: 1 1 240px !important;
  }

  .hrl-box form select,
  .hrl-box form input[type="date"],
  .hrl-box form input[type="text"],
  .hrl-box form textarea,
  .hrl-card form select,
  .hrl-card form input[type="date"],
  .hrl-card form input[type="text"],
  .hrl-card form textarea {
    width: 100% !important;
    min-width: 240px !important;
    border: 1px solid #d0d7de !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }

  .hrl-box form textarea,
  .hrl-card form textarea {
    min-height: 92px !important;
    resize: vertical !important;
    flex: 1 1 100% !important;
  }

  .hrl-box form input[type="submit"],
  .hrl-card form input[type="submit"],
  .hrl-box form button[type="submit"],
  .hrl-card form button[type="submit"] {
    border: 1px solid #0969da !important;
    background: #0969da !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
  }

  @media (max-width: 980px) {
    .hrl-box form label,
    .hrl-card form label {
      min-width: 100% !important;
      flex-basis: 100% !important;
    }
  }
}