/* Forminator Table View — Frontend Styles */

.ftv-wrap {
    font-family: inherit;
    margin: 20px 0;
}

.ftv-title {
    font-size: 1.5em;
    margin-bottom: 16px;
}

/* ── Filter Form ─────────────────────────────────────────── */
.ftv-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: #f7f8fa;
    border: 1px solid #dde1e7;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.ftv-filter-form label {
    font-weight: 600;
    font-size: 13px;
    color: #444;
}

.ftv-filter-form input[type="date"] {
    border: 1px solid #c0c5ce;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 14px;
    background: #fff;
    color: #333;
}

/* ── Buttons ─────────────────────────────────────────────── */
.ftv-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.15s, opacity 0.15s;
}

.ftv-btn-filter {
    background: #2271b1;
    color: #fff;
}
.ftv-btn-filter:hover { background: #135e96; color: #fff; }

.ftv-btn-reset {
    background: #fff;
    color: #2271b1;
    border: 1px solid #2271b1;
}
.ftv-btn-reset:hover { background: #f0f6fc; }

.ftv-btn-pdf {
    background: #c0392b;
    color: #fff;
}
.ftv-btn-pdf:hover { background: #a93226; color: #fff; }

/* ── Toolbar ─────────────────────────────────────────────── */
.ftv-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.ftv-count {
    font-size: 13px;
    color: #666;
}

/* ── Table ───────────────────────────────────────────────── */
.ftv-table-wrap {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid #dde1e7;
}

.ftv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}

.ftv-table thead th {
    background: #2271b1;
    color: #fff;
    text-align: left;
    padding: 11px 14px;
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.ftv-table tbody tr {
    border-bottom: 1px solid #eef0f3;
    transition: background 0.1s;
}

.ftv-table tbody tr:last-child {
    border-bottom: none;
}

.ftv-table tbody tr:hover {
    background: #f0f6fc;
}

.ftv-table tbody td {
    padding: 10px 14px;
    color: #333;
    vertical-align: top;
}

.ftv-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.ftv-table tbody tr:nth-child(even):hover {
    background: #f0f6fc;
}

/* ── Notice ──────────────────────────────────────────────── */
.ftv-notice {
    background: #fff8e5;
    border-left: 4px solid #f0b429;
    padding: 12px 16px;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    color: #555;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .ftv-filter-form {
        flex-direction: column;
        align-items: flex-start;
    }
}
