/* Pagina cu solicitari.
   Culorile se iau din variabilele temei daca exista (--accent, --text,
   --radius); valorile de rezerva fac pagina sa arate decent pe orice tema. */

.fl-page {
	--fl-accent: var(--accent, #0E6B5E);
	--fl-text: var(--text, #14201C);
	--fl-muted: #57635d;
	--fl-faint: #7b837e;
	--fl-line: #e5e3db;
	--fl-bg: #f6f3ec;
	--fl-radius: var(--radius, 14px);
}

/* ---- Antet ---- */
.fl-hero { background: #fff; border-bottom: 1px solid var(--fl-line); }
.fl-hero__inner { max-width: 1180px; margin: 0 auto; padding: clamp(36px, 5vw, 60px) 16px clamp(24px, 3.5vw, 36px); text-align: center; }
.fl-hero__title { margin: 0 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; color: var(--fl-text); }
.fl-hero__text { margin: 0; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6; color: var(--fl-muted); }

.fl-body { background: #f3f3f3; }
.fl-body__inner { max-width: 1180px; margin: 0 auto; padding: clamp(28px, 4vw, 48px) 16px clamp(44px, 6vw, 72px); }

/* ---- Buton ---- */
.fl-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 28px; font-family: inherit; font-size: 16px; font-weight: 600; color: #fff; background: var(--fl-accent); border: 0; border-radius: calc(var(--fl-radius) - 2px); cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.fl-btn:hover { transform: translateY(-1px); color: #fff; }

/* ---- Poarta de acces ---- */
.fl-gate { max-width: 520px; margin: 0 auto; padding: clamp(26px, 4vw, 40px); background: #fff; border: 1px solid var(--fl-line); border-radius: calc(var(--fl-radius) + 4px); text-align: center; }
.fl-gate__title { margin: 0 0 10px; font-size: clamp(20px, 2.4vw, 26px); color: var(--fl-text); }
.fl-gate__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fl-muted); }
.fl-gate__form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
/* Eticheta e doar pentru cititoarele de ecran. Nu toate temele definesc
   .screen-reader-text (e o clasa a WordPress), asa ca o ascundem aici. */
.fl-page .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.fl-gate__form input[type="password"] { flex: 1 1 220px; min-width: 0; padding: 13px 16px; font-family: inherit; font-size: 16px; color: var(--fl-text); background: #fff; border: 1px solid #d9d6cc; border-radius: calc(var(--fl-radius) - 2px); }
.fl-gate__form input[type="password"]:focus { outline: 2px solid var(--fl-accent); outline-offset: 1px; border-color: transparent; }
.fl-gate__error { margin: 14px 0 0; font-size: 15px; color: #b3261e; }

/* ---- Avertisment pentru administrator ---- */
.fl-warning { padding: 16px 20px; margin-bottom: 24px; background: #fff5d6; border: 1px solid #e6cf8a; border-radius: calc(var(--fl-radius) - 2px); font-size: 15px; line-height: 1.6; color: #5c4a12; }
.fl-warning strong { display: block; margin-bottom: 4px; }
.fl-warning a { color: #5c4a12; }

/* ---- Taburi (cate unul per formular) ---- */
.fl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.fl-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: #fff; border: 1px solid var(--fl-line); border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--fl-muted); text-decoration: none; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.fl-tab:hover { border-color: var(--fl-accent); color: var(--fl-accent); }
/* Tabul deschis: plin cu culoarea de accent, ca sa se vada dintr-o privire pe
   care formular esti. Regula de :hover e repetata, ca trecerea cu mouse-ul
   peste tabul activ sa nu-i schimbe culoarea textului. */
.fl-tab.is-active,
.fl-tab.is-active:hover { background: #033743; border-color: #033743; color: #fff; font-weight: 700; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .45); }
.fl-tab__count { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: rgba(20, 32, 28, .08); font-size: 12px; font-weight: 700; text-align: center; }
.fl-tab.is-active .fl-tab__count { background: rgba(255, 255, 255, .25); color: #fff; }

.fl-notice { margin: 0 0 16px; padding: 12px 16px; background: #e8f3ee; border: 1px solid #b9dfd0; border-radius: calc(var(--fl-radius) - 2px); font-size: 15px; color: #1d4f3f; }
.fl-notice--bad { background: #fdecea; border-color: #f2c4bf; color: #8c1d18; }

.fl-count { margin: 0 0 12px; font-size: 15px; color: var(--fl-muted); }
.fl-empty { margin: 0; padding: 32px; background: #fff; border: 1px dashed #d9d6cc; border-radius: calc(var(--fl-radius) - 2px); text-align: center; font-size: 16px; color: var(--fl-muted); }
.fl-empty-cell { color: #a8ada9; }
.fl-note { margin: 18px 0 0; font-size: 13px; line-height: 1.6; color: var(--fl-faint); }

/* ---- Tabel ---- */
.fl-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--fl-line); border-radius: calc(var(--fl-radius) - 2px); }
.fl-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fl-table th { padding: 14px 16px; text-align: left; white-space: nowrap; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--fl-faint); background: #ffffff; border-bottom: 1px solid var(--fl-line); }
.fl-table td { padding: 14px 16px; border-bottom: 1px solid #f0eee6; color: var(--fl-text); vertical-align: top; }
.fl-table tbody tr:last-child td { border-bottom: 0; }
.fl-link { color:#033743; font-weight: 600; text-decoration: none; }
.fl-link:hover { text-decoration: underline; }

/* Stergerea: coloana exista doar pentru administratorii autentificati. */
.fl-actions { white-space: nowrap; text-align: right; }
.fl-delete-form { margin: 0; }
.fl-delete { padding: 6px 13px; font-family: inherit; font-size: 13px; font-weight: 600; color: #b3261e; background: #fff; border: 1px solid #e8c9c6; border-radius: 999px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.fl-delete:hover { background: #b3261e; border-color: #b3261e; color: #fff; }
.fl-delete:focus-visible { outline: 2px solid #b3261e; outline-offset: 2px; }

/* Data sta pe ultima coloana: informatie de context, nu prima pe care o cauti. */
.fl-when { white-space: nowrap; }
.fl-date { display: block; font-weight: 600; white-space: nowrap; }
.fl-time { display: block; font-size: 13px; color: var(--fl-faint); }

/* ---- Paginare si iesire ---- */
.fl-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.fl-pager__link { padding: 10px 20px; background: #fff; border: 1px solid var(--fl-line); border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--fl-text); text-decoration: none; }
.fl-pager__link:hover { border-color: var(--fl-accent); color: var(--fl-accent); }
.fl-pager__pos { font-size: 14px; color: var(--fl-muted); }

.fl-session { margin: 22px 0 0; text-align: center; }
.fl-session__out { font-size: 14px; color: var(--fl-muted); text-decoration: underline; }
.fl-session__out:hover { color: var(--fl-accent); }

/* ---- Pe telefon tabelul devine un teanc de carduri ---- */
@media (max-width: 860px) {
	.fl-table-wrap { background: transparent; border: 0; border-radius: 0; overflow: visible; }
	.fl-table, .fl-table tbody, .fl-table tr, .fl-table td { display: block; width: 100%; }
	.fl-table thead { display: none; }
	.fl-table tr { margin-bottom: 12px; padding: 6px 0; background: #fff; border: 1px solid var(--fl-line); border-radius: calc(var(--fl-radius) - 2px); }
	.fl-table tbody tr:hover td { background: transparent; }
	.fl-table td { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 16px; border-bottom: 0; text-align: right; }
	.fl-table td::before { content: attr(data-label); flex: none; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--fl-faint); text-align: left; }
	.fl-table td:first-child { margin-bottom: 4px; padding-bottom: 12px; border-bottom: 1px solid #f0eee6; }
	.fl-date, .fl-time { display: inline; }
	.fl-time { margin-left: 6px; }
}
