/* ── Form Entries (src/pages/FormEntries.jsx) ── builds on lv-*, btn-*, op-modal-* in index.css */

.fe-toolbar { align-items: center; }
.fe-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fe-select { height: 36px; padding: 0 32px 0 12px; border: 1px solid #d4e0d8; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 500; color: #3d524d; cursor: pointer; outline: none; appearance: none; max-width: 260px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 11px center; }
.fe-select:hover { border-color: #99a39d; }
.fe-select:focus { border-color: #125c58; box-shadow: 0 0 0 3px rgba(18,92,88,.1); }
.fe-search { width: 260px; }
.fe-count { font-size: 13px; color: #72807b; white-space: nowrap; }

/* Header buttons and their drop-down menus (Export, Columns) */
.fe-dd { position: relative; }
.btn-filter:disabled { opacity: .5; cursor: not-allowed; }
.fe-icon-btn { width: 38px; height: 36px; padding: 0; justify-content: center; }
.fe-icon-btn--on { background: #e6f2ee; border-color: #c4ddd8; color: #125c58; }
.fe-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 200px; max-height: 340px; overflow-y: auto; background: #fff; border: 1px solid #e3e9e4; border-radius: 10px; box-shadow: 0 12px 32px rgba(17,24,39,.14); padding: 6px; }
.fe-menu--right { left: auto; right: 0; }
.fe-menu-head { font-size: 11px; font-weight: 600; color: #99a39d; text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px 8px; margin-bottom: 4px; border-bottom: 1px solid #eef3ef; }
.fe-menu-item { display: block; width: 100%; text-align: left; padding: 8px 10px; border: none; border-radius: 6px; background: none; font-size: 13px; color: #193b38; }
.fe-menu-item:hover { background: #eef3ef; }
.fe-menu-check { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 6px; font-size: 13px; color: #3d524d; cursor: pointer; }
.fe-menu-check:hover { background: #fafbf8; }

/* Table */
.fe-table-wrap { overflow-x: auto; }
.fe-table { min-width: 900px; }
.fe-table td { vertical-align: middle; }
.fe-th-actions, .fe-td-actions { text-align: right !important; }
.fe-form-name { font-weight: 600; color: #193b38; }
.fe-form-desc { font-size: 12px; color: #72807b; margin-top: 2px; max-width: 280px; }
.fe-mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.fe-muted { color: #99a39d; }
.fe-nowrap { white-space: nowrap; }
.fe-id { display: inline-flex; align-items: center; gap: 4px; }
.fe-copy { background: none; border: none; padding: 4px; border-radius: 6px; color: #99a39d; display: flex; }
.fe-copy:hover { background: #eef3ef; color: #3d524d; }
.fe-copy--done, .fe-copy--done:hover { color: #16a34a; }
.fe-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.fe-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fe-pill--ok { color: #15803d; background: #dcfce7; }
.fe-pill--muted { color: #72807b; background: #eef3ef; }
.fe-actions { display: inline-flex; align-items: center; gap: 6px; }
.fe-btn-sm { padding: 6px 10px; font-size: 12.5px; }
.fe-btn-sm svg { width: 15px; height: 15px; }
.lv-action-btn:disabled { opacity: .4; cursor: not-allowed; }
.fe-footer { padding: 11px 16px; border-top: 1px solid #eef3ef; font-size: 12.5px; color: #72807b; }

/* View / Raw modals */
.fe-modal { max-width: 560px; max-height: calc(100vh - 32px); }
.fe-modal--wide { max-width: 720px; }
.fe-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fe-modal-titles { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fe-modal-sub { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: #72807b; }
.fe-modal-sub strong { font-size: 14px; color: #193b38; font-weight: 600; }
.fe-x { background: none; border: none; color: #99a39d; font-size: 24px; line-height: 1; padding: 0 4px; border-radius: 6px; }
.fe-x:hover { color: #3d524d; background: #eef3ef; }
.fe-modal-body { flex: 1; min-height: 0; overflow-y: auto; }
.fe-loading { padding: 40px 0; text-align: center; color: #99a39d; font-size: 13px; }

.fe-answers { border: 1px solid #e3e9e4; border-radius: 10px; overflow: hidden; }
.fe-answer { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #eef3ef; }
.fe-answer:last-child { border-bottom: none; }
.fe-answer:nth-child(even) { background: #fafafa; }
.fe-answer dt { font-size: 13px; font-weight: 600; color: #3d524d; word-break: break-word; }
.fe-answer dd { margin: 0; font-size: 13.5px; color: #193b38; white-space: pre-wrap; word-break: break-word; }
.fe-answers-head { font-size: 12px; font-weight: 600; color: #72807b; text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 8px 2px; }
.fe-answer-img { display: block; max-width: 260px; max-height: 200px; border-radius: 8px; border: 1px solid #e3e9e4; background: #fff; }
.fe-link { color: #125c58; word-break: break-all; }

.fe-raw { margin: 0; padding: 14px 16px; border-radius: 10px; background: #fafbf8; border: 1px solid #e3e9e4; color: #193b38; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; line-height: 1.55; max-height: 50vh; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.fe-warn { font-size: 12.5px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 7px 10px; margin-bottom: 8px; }
.fe-note { font-size: 12.5px; color: #72807b; margin-top: 10px; }

@media (max-width: 600px) {
  .fe-search { width: 100%; }
  .fe-select { max-width: 100%; }
  .fe-answer { grid-template-columns: 1fr; gap: 4px; }
}
