
/* ── Pagination ── */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}
.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.pagination li a:hover {
    background: #fdf0f0;
    border-color: #d8232a;
    color: #d8232a;
}
.pagination li.active a,
.pagination li.active span,
.pagination li a.active {
    background: linear-gradient(135deg, #d8232a, #ff4d4f);
    border-color: #d8232a;
    color: #fff !important;
    font-weight: 600;
    pointer-events: none;
}
.pagination li.disabled a,
.pagination li.disabled span {
    opacity: 0.4;
    pointer-events: none;
}

/* ── No result ── */
.no-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 520px;
    margin: 2rem auto;
}
.no-result-icon {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: #FAECE7;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
}
.no-result-icon i { font-size: 38px; color: #d8232a; }
.no-result h4 { font-size: 20px; font-weight: 600; color: #222; margin: 0 0 10px; }
.no-result p  { font-size: 14px; color: #666; margin: 0 0 1.5rem; line-height: 1.6; }
.no-result-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn-back {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 24px; border-radius: 8px;
    background: linear-gradient(135deg, #d8232a, #ff4d4f);
    color: #fff; font-size: 14px; font-weight: 500;
    text-decoration: none; border: none; transition: opacity 0.2s;
}
.btn-back:hover { opacity: 0.88; color: #fff; }
.btn-back.ghost {
    background: #fff; color: #d8232a;
    border: 1.5px solid #d8232a;
}
.btn-back.ghost:hover { background: #fdf0f0; }

/* ── Search bar ── */
.agent-search-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 1.25rem;
}
.agent-search-wrap input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}
.agent-search-wrap input:focus { border-color: #d8232a; }
.agent-search-wrap button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #d8232a, #ff4d4f);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* ── Total label ── */
.total-label {
    font-size: 14px;
    color: #555;
    margin-bottom: 1rem;
}
.total-label strong { color: #d8232a; }

/* ── Modal ── */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}
.modal-header h3 { font-size: 16px; font-weight: 600; margin: 0; }
.modal-close {
    background: none; border: none;
    font-size: 18px; cursor: pointer; color: #888;
}
.modal-agent-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 1rem 1.25rem;
    background: #fdf5f5;
    border-bottom: 1px solid #f0e0e0;
}
.agent-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #d8232a, #ff4d4f);
    color: #fff; display: flex; align-items: center;
    justify-content: center; font-weight: 700; font-size: 18px;
    flex-shrink: 0;
}
.agent-meta p  { font-weight: 600; font-size: 14px; margin: 0 0 2px; }
.agent-meta span { font-size: 12px; color: #888; }
.modal-body { padding: 1.25rem; }
.m-field { margin-bottom: 12px; }
.m-input-wrap {
    display: flex; align-items: center; gap: 10px;
    border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 0 12px; background: #fafafa;
}
.m-input-wrap svg { width: 16px; height: 16px; color: #aaa; flex-shrink: 0; }
.m-input-wrap input,
.m-input-wrap select,
.m-input-wrap textarea {
    flex: 1; border: none; background: transparent;
    padding: 10px 0; font-size: 14px; outline: none;
}
.m-input-wrap textarea { resize: vertical; min-height: 80px; padding: 10px 0; }
.m-field-row { display: flex; gap: 8px; margin-bottom: 12px; }
.m-field-row .m-input-wrap:first-child { flex: 0 0 100px; }
.m-terms { font-size: 13px; color: #555; margin-bottom: 14px; display: flex; gap: 8px; align-items: flex-start; }
.m-terms a { color: #d8232a; }
.btn-submit-modal {
    width: 100%; padding: 12px;
    background: linear-gradient(135deg, #d8232a, #ff4d4f);
    color: #fff; border: none; border-radius: 8px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: opacity 0.2s;
}
.btn-submit-modal:hover { opacity: 0.9; }

@media (max-width: 600px) {
    .pagination li a, .pagination li span {
        min-width: 30px; height: 30px; font-size: 12px; padding: 0 7px;
    }
}
