/* Action Table WordPress Styles - Zero Watermarks */
.wp-block-jobtheta-action-table.action-table-wrapper {
    margin: 2rem 0;
    font-family: inherit;
    position: relative;
    max-width: 100%;
}

.action-table-header-block {
    margin-bottom: 1rem;
}

.action-table-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
    color: #1e293b;
}

.action-table-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.action-table-filter-bar {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

.action-table-search-input {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    width: 240px;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.action-table-search-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.action-table-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.action-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: left;
}

.action-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.action-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    color: #1e293b;
}

.action-table.is-striped tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.action-table.has-hover tbody tr:hover {
    background-color: #f1f5f9;
}

.action-table.is-bordered {
    border: 1px solid #e2e8f0;
}

.action-table.is-bordered th,
.action-table.is-bordered td {
    border: 1px solid #e2e8f0;
}

.action-table.is-compact th,
.action-table.is-compact td {
    padding: 0.5rem 0.75rem;
}

/* In-Cell Buttons */
.action-table__cell-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.action-table__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-family: inherit;
    font-weight: 500;
    text-decoration: none !important;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    border: 1px solid transparent;
    line-height: 1;
    white-space: nowrap;
}

.action-table__btn svg {
    flex-shrink: 0;
}

.action-table__btn.btn-pill {
    border-radius: 9999px !important;
}

/* Sizes */
.action-table__btn.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.action-table__btn.btn-sm {
    padding: 0.375rem 0.65rem;
    font-size: 0.8125rem;
}

.action-table__btn.btn-md {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
}

.action-table__btn.btn-lg {
    padding: 0.625rem 1.125rem;
    font-size: 0.9375rem;
}

/* Default Variants */
.action-table__btn.btn-primary {
    background-color: #2271b1;
    color: #ffffff !important;
}
.action-table__btn.btn-primary:hover {
    background-color: #135e96;
}

.action-table__btn.btn-secondary {
    background-color: #475569;
    color: #ffffff !important;
}
.action-table__btn.btn-secondary:hover {
    background-color: #334155;
}

.action-table__btn.btn-outline {
    background-color: transparent;
    border-color: #cbd5e1;
    color: #1e293b !important;
}
.action-table__btn.btn-outline:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.action-table__btn.btn-ghost {
    background-color: rgba(0, 0, 0, 0.05);
    color: #475569 !important;
}
.action-table__btn.btn-ghost:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.action-table__btn.btn-success {
    background-color: #10b981;
    color: #ffffff !important;
}
.action-table__btn.btn-success:hover {
    background-color: #059669;
}

.action-table__btn.btn-danger {
    background-color: #ef4444;
    color: #ffffff !important;
}
.action-table__btn.btn-danger:hover {
    background-color: #dc2626;
}

.action-table__btn.btn-warning {
    background-color: #f59e0b;
    color: #ffffff !important;
}
.action-table__btn.btn-warning:hover {
    background-color: #d97706;
}

.action-table__btn.btn-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff !important;
}
.action-table__btn.btn-gradient:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Badges */
.action-table__badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    line-height: 1.2;
}
.badge-blue { background: #e0f2fe; color: #0284c7; }
.badge-green { background: #dcfce7; color: #16a34a; }
.badge-amber { background: #fef3c7; color: #d97706; }
.badge-purple { background: #f3e8ff; color: #9333ea; }
.badge-red { background: #fee2e2; color: #dc2626; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* Toast */
.action-table-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e293b;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.2s ease;
    z-index: 99999;
    pointer-events: none;
}
.action-table-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Modal */
.action-table-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 1rem;
}
.action-table-modal-backdrop.open {
    display: flex;
}
.action-table-modal-dialog {
    background: #ffffff;
    border-radius: 10px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.action-table-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}
.action-table-modal-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}
.action-table-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
}
.action-table-modal-body {
    padding: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #334155;
    white-space: pre-wrap;
}
