#easyhelp-tickets-content {
    background: #fff;
    padding: 1em 2em;
}
#easyhelp-tickets-content h2 {
    font-size: 30px;
    font-size: 2em;
    font-weight: 600;
    line-height: 2em;
}
.easyhelp-tickets-button {
    background: #fff;
    padding: 1px 4px;
    font-size: 12px;
    margin: 0 10px;
    border: 1px solid;
    font-weight: normal;
    height: 22px;
    line-height: 20px;
    color: #000;
}
/* ticket status badge */
.easyhelp-tickets-status, .easyhelp-tickets-status:hover {
    background: #fff;
    padding: 1px 4px;
    font-size: 12px;
    margin: 0 10px;
    border: 1px solid;
    font-weight: normal;
    height: 22px;
    line-height: 20px;
}
.easyhelp-tickets-status-publish, .easyhelp-tickets-status-publish:hover {
    background: #0e890e;
    color: #fff;
    border-color: #0e890e;
}
.easyhelp-tickets-status-open, .easyhelp-tickets-status-open:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}
.easyhelp-tickets-status-in-progress, .easyhelp-tickets-status-in-progress:hover {
    background: #17a2b8;
    color: #fff;
    border-color: #17a2b8;
}
.easyhelp-tickets-status-waiting, .easyhelp-tickets-status-waiting:hover {
    background: #fd7e14;
    color: #000;
    border-color: #fd7e14;
}
.easyhelp-tickets-status-on-hold, .easyhelp-tickets-status-on-hold:hover {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
}
.easyhelp-tickets-status-resolved, .easyhelp-tickets-status-resolved:hover {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}
.easyhelp-tickets-status-cancelled, .easyhelp-tickets-status-cancelled:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}
.easyhelp-tickets-status-closed, .easyhelp-tickets-status-closed:hover {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
}
.easyhelp-tickets-status-reopened, .easyhelp-tickets-status-reopened:hover {
    background: #ff5733;
    color: #fff;
    border-color: #ff5733;
}
/* ticket status badge ends */

/* login form */
#easyhelp-tickets-login-wrap {
    width: 400px;
}
#easyhelp-tickets-tickets-meta {
    margin-bottom: 20px;
}
.easyhelp-tickets-field-wrapper > * {
    display: grid;
}
.easyhelp-tickets-field-wrapper select {
    width: 100%;
}
#easyhelp-tickets-edit-modal {
    width: 600px;
    margin: 0 auto;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 6px;
    position: fixed;
    z-index: 99;
}
#easyhelp-tickets-edit-form p {
    margin-bottom: 10px;
}
#easyhelp-tickets-close {
    position: absolute;
    right: -5px;
    top: -5px;
    background: black;
    height: 20px;
    width: 20px;
    line-height: 20px;
    font-size: 20px;
    text-align: center;
    color: #fff;
}
.single-easyhelp_ticket #comments section.comment img {
    border: 1px solid #ddd;
    box-shadow: 0 0 8px 4px #e5e5e5;
    border-radius: 10px;
    margin: 10px auto;
    max-width: 900px;
}
#easyhelp-tickets-tickets-meta {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}
#easyhelp-tickets-tickets-filter .active {
    font-weight: bold;
}
.easyhelp-tickets-tickets-table .unattended {
    background: #ff000012;
}

/* Edit ticket modal */
#easyhelp-tickets-edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
#easyhelp-tickets-edit-modal .easyhelp-tickets-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.15);
}
#easyhelp-tickets-edit-modal .easyhelp-tickets-modal-content {
    position: relative;
    background: #fff;
    padding: 30px 24px 24px;
    border-radius: 8px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    z-index: 100000;
}
#easyhelp-tickets-edit-modal .easyhelp-tickets-modal-content h3 {
    margin: 0 0 16px;
    font-size: 18px;
}
#easyhelp-tickets-edit-modal .easyhelp-tickets-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
}
#easyhelp-tickets-edit-modal .easyhelp-tickets-modal-close:hover {
    color: #000;
}
#easyhelp-tickets-edit-modal .easyhelp-tickets-edit {
    margin: 0 0 12px;
}
#easyhelp-tickets-edit-modal .easyhelp-tickets-edit label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 13px;
}
#easyhelp-tickets-edit-modal .easyhelp-tickets-edit select,
#easyhelp-tickets-edit-modal .easyhelp-tickets-edit input[type="number"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
#easyhelp-tickets-edit-modal .easyhelp-tickets-edit-submit input[type="submit"] {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
#easyhelp-tickets-edit-modal .easyhelp-tickets-edit-submit input[type="submit"]:hover {
    background: #135e96;
}
#easyhelp-tickets-edit-modal.show {
    display: flex !important;
}

.easyhelp-text-right {
    text-align: right;
}

/* ── All Tickets (agent view) ─────────────────────────────────────────── */

/* Filter bar */
.easyhelp-at-filters {
    margin-bottom: 16px;
}
.easyhelp-at-filter-row {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
}
.easyhelp-at-input,
.easyhelp-at-select {
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    height: 32px;
    box-sizing: border-box;
}
.easyhelp-at-input[type="search"] {
    min-width: 200px;
}
.easyhelp-at-date {
    width: 140px;
}
.easyhelp-at-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #2271b1;
    background: #2271b1;
    color: #fff;
    height: 32px;
    line-height: 1;
    text-decoration: none;
}
.easyhelp-at-btn:hover,
.easyhelp-at-btn:focus { color: #fff; text-decoration: none; }
.easyhelp-at-btn:hover { background: #135e96; border-color: #135e96; }
.easyhelp-at-btn-ghost {
    background: #fff;
    color: #2271b1;
}
.easyhelp-at-btn-ghost:hover { background: #f0f6fc; }

/* Status tabs */
.easyhelp-at-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}
.easyhelp-at-tab {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 4px 4px 0 0;
    text-decoration: none;
    color: #555;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -2px;
}
.easyhelp-at-tab:hover { color: #2271b1; background: #f0f6fc; }
.easyhelp-at-tab.active {
    color: #2271b1;
    background: #fff;
    border-color: #e0e0e0;
    font-weight: 600;
}

/* Table */
.easyhelp-at-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 16px;
}
.easyhelp-at-table th,
.easyhelp-at-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.easyhelp-at-table th {
    background: #f9f9f9;
    font-weight: 600;
    white-space: nowrap;
}
.easyhelp-at-table tr:hover td { background: #fafafa; }
.easyhelp-at-email { color: #888; font-size: 12px; }
.easyhelp-at-actions { white-space: nowrap; }
.easyhelp-at-actions .easyhelp-at-btn { font-size: 12px; padding: 3px 8px; height: auto; }

/* Modal shared */
.easyhelp-at-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.easyhelp-at-modal.show { display: flex !important; }
.easyhelp-at-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}
.easyhelp-at-modal-content {
    position: relative;
    background: #fff;
    padding: 30px 24px 24px;
    border-radius: 8px;
    max-width: 440px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    z-index: 100000;
}
.easyhelp-at-modal-content h3 { margin: 0 0 16px; font-size: 18px; }
.easyhelp-at-modal-close {
    position: absolute;
    top: 8px; right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
}
.easyhelp-at-modal-close:hover { color: #000; }

/* Reply modal */
.easyhelp-at-reply-subject {
    font-size: 13px;
    color: #555;
    margin: -8px 0 16px;
}
.easyhelp-at-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
}