.swal2-popup .update-input, .swal2-popup .update-textarea, .swal2-popup .update-select {
	width: 100% !important;
	margin: 0px auto !important;
	padding: 6px !important;
	height: 40px !important;
	max-width: 100% !important;
	font-size: 15px !important;
}
.swal2-popup .update-input, .swal2-popup .update-select {
	height: 40px !important;
	margin: 5px 0px auto !important;
}
.swal2-popup .update-textarea {
	height: auto !important;
    margin-top: 10px;
}
.wp-datatable th , .wp-ace-datatable th{
    max-width: fit-content;
}
.wp-form-con {
    /* max-width: 600px; */
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
.wp-table-con{
    max-width: 100% !important;
    overflow: auto;
}
.wp-form-con h2 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin: 0px 0px 1rem !important;
    text-align: center;
    position: relative;
}

.wp-form-con h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.wp-form-con form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wp-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.wp-form-field label {
    font-weight: 600;
    color: #34495e;
    font-size: 0.95rem;
    position: relative;
    padding-left: 12px;
}
.table-header .table-title {
	position: relative;
	padding-left: 10px;
	margin: 0;
}
.wp-form-field label::before , .table-header .table-title:before{
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    opacity: 0.7;
}

/* Social Posts grid - freelancer dashboard */
.wp-social-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.ace-social-post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.25rem;
    position: relative;
    border: 1px solid #e8e8e8;
}
.ace-social-post-content { margin-bottom: 1rem; }
.ace-campaign-type { font-size: 0.85em; color: #666; margin: 0 0 0.5rem; }
.ace-view-sample-link {
	margin-left: 8px;
	font-size: 0.9em;
	font-weight: normal;
	float: right;
}
.ace-campaigns-left-block { display: block; }
.ace-campaigns-left-block .ace-campaigns-left-info,
.ace-campaigns-left-block .ace-campaign-limit-msg-inline { display: block; margin: 4px 0 0; }
.ace-campaigns-left-info { margin-top: 4px; font-size: 0.95em; color: #555; }
.ace-create-btn-disabled { opacity: 0.6; cursor: not-allowed !important; }
.ace-campaign-limit-reached { padding: 1.5rem; }
.ace-campaign-limit-msg.ace-campaign-limit-warning { color: #8a1f11; font-size: 1rem; }
.ace-campaign-limit-note { margin-top: 0.5rem; color: #666; font-size: 0.9em; }
.ace-campaigns-left-info.ace-campaign-limit-warning { color: #8a1f11; font-weight: 600; }
.ace-campaign-limit-msg-inline { margin-top: 4px; color: #8a1f11; font-size: 0.9em; }
.ace-campaign-title { font-size: 1.1rem; margin: 0 0 0.5rem; font-weight: 600; }
.ace-campaign-title-wrap {
    position: relative;
    padding-right: 28px;
    margin: 0 0 0.5rem;
}
.ace-campaign-title-wrap .ace-campaign-title {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}
.ace-campaign-title-wrap.expanded .ace-campaign-title {
    display: block;
}
.ace-campaign-title-toggle {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}
.ace-campaign-title-toggle:hover { color: #2271b1; }
.ace-campaign-title-toggle .dashicons { font-size: 16px; width: 16px; height: 16px; transition: transform 0.2s ease; }
.ace-campaign-title-wrap.expanded .ace-campaign-title-toggle .dashicons { transform: rotate(180deg); }
.ace-campaign-text {
    font-size: 0.95rem;
    margin: 0.5rem 0;
    color: #444;
    line-height: 1.4;
    position: relative;
    padding-right: 28px;
    min-height: calc(1.4em * 4);
}
.ace-campaign-text .ace-campaign-text-content {
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ace-campaign-text.expanded .ace-campaign-text-content {
    display: block;
    line-clamp: unset;
    -webkit-line-clamp: unset;
}
.ace-campaign-text .ace-campaign-text-toggle {
    position: absolute;
    right: 0;
    top: 2px;
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}
.ace-campaign-text .ace-campaign-text-toggle:hover { color: #2271b1; }
.ace-campaign-text .ace-campaign-text-toggle .dashicons { font-size: 16px; width: 16px; height: 16px; }
.ace-campaign-text.expanded .ace-campaign-text-toggle .dashicons { transform: rotate(180deg); }
.ace-campaign-url { font-size: 0.9rem; margin: 0.5rem 0; word-break: break-all; }
.ace-campaign-url a { color: #667eea; }
.ace-share-code { font-size: 0.9rem; margin: 0.5rem 0; }
.ace-share-code code { background: #f5f5f5; padding: 2px 6px; border-radius: 4px; font-size: 0.95em; }
.ace-social-post-actions {
    display: flex;
    /* flex-wrap: wrap; */
    gap: 3px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
.ace-social-post-upgrade-row {
    margin-top: 8px;
}
.ace-social-post-upgrade-row .ace-upgrade-btn {
    display: block;
    width: 100%;
    text-align: center;
}
.ace-copy-btn {
	padding: 1px;
	font-size: 13px;
	background: #f0f0f0;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	color: #333;
	text-decoration: none;
	display: inline-block;
	width: 100%;
}

.ace-copy-btn:hover:not(:disabled) { background: #e0e0e0; border-color: #ccc; }
.ace-copy-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.ace-download-btn { color: #667eea; }
.ace-no-image { color: #999; cursor: default; }
.ace-campaign-completed .ace-social-post-actions { opacity: 0.8; }
.ace-campaign-completed-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #28a745;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    margin: 0;
    font-weight: 600;
}
.ace-social-posts-section-heading h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}
.ace-social-posts-section-heading p {
    margin: 0 0 10px;
    color: #666;
    font-size: 0.92rem;
}

/* Generic long-text toggle in table cells */
.ace-cell-text-wrap {
    position: relative;
    display: block;
    padding-right: 18px;
}
.ace-cell-text-content {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
}
.ace-cell-text-wrap.expanded .ace-cell-text-content {
    display: block;
    line-clamp: unset;
    -webkit-line-clamp: unset;
}
.ace-cell-text-wrap,
td.ace-cell-expanded {
    transition: width 0.2s ease, max-width 0.2s ease, min-width 0.2s ease;
}
.ace-table-cell-expanded {
    table-layout: auto !important;
}
td.ace-cell-expanded {
    min-width: 380px !important;
    width: 380px !important;
    max-width: 380px !important;
    position: relative;
    z-index: 2;
    background: #fff;
}
.ace-cell-text-toggle {
    position: absolute;
    right: 0;
    top: 0;
    border: 0;
    background: transparent;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 16px;
    height: 16px;
    text-align: center;
}
.ace-cell-text-toggle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}
.ace-cell-text-wrap.expanded .ace-cell-text-toggle .dashicons {
    transform: rotate(180deg);
}
.ace-campaign-locked {
    border-color: #e5d9f5;
    background: #faf7ff;
}
.ace-campaign-locked .ace-campaign-title,
.ace-campaign-locked .ace-campaign-text {
    color: #5b4a75;
}
.ace-campaign-locked .ace-social-post-actions {
    border-top-color: #e9def7;
}
.ace-campaign-locked .ace-copy-btn:disabled {
    background: #f0ecf8;
    border-color: #d8cbed;
    color: #907db0;
}
.ace-locked-note {
    margin: 6px 0 0;
    font-size: 0.86rem;
    color: #7b67a1;
}
.ace-limit-messages {
    margin-top: 8px;
}
.ace-limit-message {
    margin: 0 0 6px;
    padding: 7px 9px;
    border-radius: 6px;
    background: #fff4e5;
    border: 1px solid #f2d3a4;
    color: #8a4b00;
    font-size: 12px;
    line-height: 1.35;
}
.ace-daily-limit-summary {
    margin: 10px 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff4e5;
    border: 1px solid #f2d3a4;
    color: #8a4b00;
    font-size: 13px;
    line-height: 1.4;
}
.ace-daily-limit-summary-heading {
    margin: 0 0 8px;
    font-weight: 600;
}
.ace-daily-limit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}
.ace-daily-limit-card {
    background: #ffffff;
    border: 1px solid #d9e8fb;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ace-daily-limit-card-type {
    font-size: 12px;
    font-weight: 600;
    color: #1f3b5c;
}
.ace-daily-limit-card-meta {
    font-size: 12px;
    color: #365f8a;
}
.ace-daily-limit-card.is-reached {
    background: #fff5e8;
    border-color: #efc48b;
    opacity: .8;
}
.ace-daily-limit-card.is-reached .ace-daily-limit-card-type,
.ace-daily-limit-card.is-reached .ace-daily-limit-card-meta {
    color: #8a4b00;
}
.ace-daily-limit-summary.ace-daily-limit-info {
    background: #eef7ff;
    border-color: #b8d9ff;
    color: #0f4d8a;
}
.ace-daily-limit-summary.ace-daily-limit-warning {
    background: #fff4e5;
    border-color: #f2d3a4;
    color: #8a4b00;
}
.ace-daily-limit-summary-note {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.35;
    opacity: 0.95;
}
.ace-upgrade-btn {
    background: #582c81;
    color: #fff;
    border-color: #582c81;
}
.ace-upgrade-btn:hover {
    background: #47226a;
    border-color: #47226a;
    color: #fff;
}
.ace-campaign-locked-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #6f42c1;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    margin: 0;
    font-weight: 600;
}

/* Employer submissions update popup */
.ace-swal-update-form .ace-swal-field { margin-bottom: 1rem;display:flex; }
.ace-swal-update-form .ace-swal-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 0.9rem;
	min-width: 110px;
	margin-right: 20px;
}
#swal-edit-flag-form p.submit {
	width: 100%;
	display: flex;
	justify-content: center;
	gap: 2%;
}
#swal2-title {
	font-size: 24px !important;
}
.ace-swal-update-form .swal2-input,
.ace-swal-update-form .swal2-textarea,
.ace-swal-update-form .swal2-select { width: 100%; margin: 0; }
.ace-flag-modal-popup { border-radius: 12px !important; }
.ace-flag-form { text-align: left; }
.ace-flag-form .ace-flag-form-intro {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8f9ff;
    border: 1px solid #dde3ff;
    color: #495375;
    font-size: 13px;
    line-height: 1.45;
}
.ace-flag-form .ace-flag-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ace-flag-form .ace-flag-reason-row {
    display: block;
}
.ace-flag-form .ace-flag-reason-row label {
    margin: 0 0 8px;
    min-width: 0;
}
.ace-flag-form .swal2-textarea {
    min-height: 110px;
    border-radius: 8px;
}
.ace-flag-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.ace-flag-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.ace-flag-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cfd4dc;
    transition: .2s;
    border-radius: 34px;
    width:50px;
}
.ace-flag-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}
.ace-flag-toggle input:checked + .ace-flag-toggle-slider {
    background-color: #f44336;
}
.ace-flag-toggle input:checked + .ace-flag-toggle-slider:before {
    transform: translateX(22px);
}

/* Table layout - fit content, avoid horizontal scroll */
.ace-submissions-table,
#employer-manage-campaign-table,
#employer-campaign-stats-table {
    table-layout: fixed;
    width: 100%;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ace-submissions-table th,
.ace-submissions-table td,
#employer-manage-campaign-table th,
#employer-manage-campaign-table td,
#employer-campaign-stats-table th,
#employer-campaign-stats-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 180px;
}
.ace-submissions-table .ace-attachment-thumb img,
#employer-campaign-stats-table .ace-attachment-thumb img { display: block; }
.ace-submission-actions .wr-btn { margin-right: 4px; margin-bottom: 4px; }

/* Prevent long campaign/reason/flag text from breaking table layout */
td[class*="campaign-name-"],
td[class*="reason-"],
td[class*="flag-reason-"],
#employer-campaign-stats-table .flag-reason-cell {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 260px;
}

/* Keep URL and attachment columns visually separated */
#freelancer-submissions-table td:nth-child(3) a,
#employer-campaign-stats-table td:nth-child(4) a {
    display: inline-block;
    max-width: 100%;
    margin-right: 8px;
    word-break: break-all;
}
#freelancer-submissions-table td:nth-child(4),
#employer-campaign-stats-table td:nth-child(5) {
    min-width: 88px;
    vertical-align: middle;
}
/* Campaign Stats: prevent URL and Media columns from overlapping */
#employer-campaign-stats-table td:nth-child(4) {
    min-width: 120px;
    max-width: 200px;
}
#employer-campaign-stats-table td:nth-child(5) {
    min-width: 50px;
    max-width: 60px;
}
#employer-campaign-stats-table .ace-attachment-thumb {
    display: inline-block;
}

.ace-create-social-buzz-form-wrap .ace-employer-campaign-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    padding: 1.5rem 0;
}
.ace-create-social-buzz-form-wrap .wp-form-field textarea,
.ace-create-social-buzz-form-wrap .wp-form-field input[type="url"] {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}
.ace-create-social-buzz-form-wrap .wp-form-field textarea {
    min-height: 100px;
    resize: vertical;
}

.wp-form-field select,
.wp-form-field input[type="text"],
.wp-form-field input[type="number"] {
    width: 100%;
    padding: 2px 5px;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wp-form-field select:focus,
.wp-form-field input[type="text"]:focus,
.wp-form-field input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.wp-form-field select:hover,
.wp-form-field input[type="text"]:hover,
.wp-form-field input[type="number"]:hover {
    border-color: #bdc3c7;
}

.wp-form-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    /*! width: 100% !important; */
    max-width: 100% !important;
}

.wp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px !important;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    min-width: 120px;
}

.button.ace-upload-sample-image-btn, .wp-button-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	color: #ffffff !important;
	outline: none !important;
	border: none !important;
	min-height: 35px !important;
	padding: 0px 10px !important;
	width: fit-content;
}

.wp-button-close {
	background: linear-gradient(135deg, #ea8366 0%, #a24b4b 100%) !important;
	color: #ffffff !important;
	outline: none !important;
	border: none !important;
	height: 35px !important;
	padding: 0px 10px !important;
}


.wp-form-con p {
    text-align: center;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wp-form-con {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .wp-form-con h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .wp-button {
        width: 100%;
        padding: 16px 32px;
    }
}

@media (max-width: 480px) {
    .wp-form-con {
        margin: 0px !important;
        padding: 0.5rem;
    }
    .wp-create-submission-con {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .wp-form-con h2 {
        font-size: 1.25rem;
    }
    .wp-table-con .table-container {
        padding: 10px 0px 0px;
    }
    .custom-submissions-content {
        padding-left: 10px;
        padding-right: 10px;
    }
    #membership-table_info {
        font-size: 12px;
        font-weight: 500;
    }
    #membership-table_paginate {
        display: flex;
        font-size: 13px;
        justify-content: space-around;
        font-weight: 500;
    }
    #membership-table_filter {
        display: flex;
        gap: 5px;
    }
    .custom-submissions-content h2 {
        /* font-size: 15px; */
        /* font-weight: 600; */
        margin-bottom: 0px;
    }
    .campaign-manager_page_user-submissions #wpcontent , .campaign-manager_page_user-submissions .table-container {
        padding: 0px !important;
    }
    .campaign-manager_page_user-submissions .dashboard-container .table-title {
        font-size: 17px !important;
    }
    .campaign-manager_page_user-submissions #wpbody-content {
        padding-bottom: 20px !important;
    }
    #membership-table_wrapper #membership-table th {
        font-weight: 600;
        font-size: 13px;
    }
    #membership-table_wrapper #membership-table td {
        font-size: 11px !important;
    }
    .campaign-manager_page_user-submissions .wrap {
        margin: 0px !important;
        padding: 2px !important;
    }
    #membership-table_filter label {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    #membership-table_filter input {
        min-height: 20px !important;
        height: 30px !important;
        padding: 0px;
    }
    #membership-table_wrapper {
        padding-top: 10px;
    }
    #membership-table_wrapper select {
        height: 20px !important;
        padding: 0px 4px !important;
        min-height: 30px !important;
    }

}

/* Override Workreap theme: restore table headers on mobile (Workreap hides them at max-width: 991px) */
@media (max-width: 991px) {
    .ace-mobile-table-wrap .wr-table thead tr,
    .ace-mobile-table-wrap .wr-timecard-table thead tr {
        position: static !important;
        top: auto !important;
        left: auto !important;
    }
    .wr-table > tbody > tr td:first-child, .wr-timecard-table > tbody > tr td:first-child {
        background: transparent !important;
        border-radius: 0px !important;
    }
}


/* Frontend dashboard tables: keep proper horizontal scrolling on mobile */
@media (max-width: 768px) {
    .ace-mobile-table-wrap .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .ace-mobile-table-wrap table.wr-table.wp-datatable,
    .ace-mobile-table-wrap #freelancer-submissions-table,
    .ace-mobile-table-wrap #employer-manage-campaign-table,
    .ace-mobile-table-wrap #employer-campaign-stats-table {
        min-width: 900px;
        width: 900px !important;
        max-width: none !important;
        table-layout: auto !important;
        display: table !important;
    }
    .ace-mobile-table-wrap table.wr-table.wp-datatable thead,
    .ace-mobile-table-wrap table.wr-table.wp-datatable tbody {
        display: table-header-group !important;
    }
    .ace-mobile-table-wrap table.wr-table.wp-datatable tbody {
        display: table-row-group !important;
    }
    .ace-mobile-table-wrap table.wr-table.wp-datatable tr {
        display: table-row !important;
    }
    .ace-mobile-table-wrap table.wr-table.wp-datatable th,
    .ace-mobile-table-wrap table.wr-table.wp-datatable td {
        display: table-cell !important;
        float: none !important;
        width: auto !important;
        position: static !important;
        vertical-align: middle !important;
        white-space: normal;
    }
    .ace-mobile-table-wrap table.wr-table.wp-datatable td::before,
    .ace-mobile-table-wrap table.wr-table.wp-datatable th::before {
        content: none !important;
    }
    .ace-mobile-table-wrap .dataTables_wrapper,
    .ace-mobile-table-wrap .dataTables_scroll,
    .ace-mobile-table-wrap .dataTables_scrollHead,
    .ace-mobile-table-wrap .dataTables_scrollBody {
        width: 100% !important;
    }
    .ace-mobile-table-wrap .dataTables_scrollBody {
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
    }
    .ace-mobile-table-wrap .dataTables_scrollHead table,
    .ace-mobile-table-wrap .dataTables_scrollBody table {
        min-width: 900px !important;
        width: 900px !important;
    }
    .ace-mobile-table-wrap .dataTables_wrapper .dataTables_paginate,
    .ace-mobile-table-wrap .dataTables_wrapper .dataTables_info {
        white-space: normal !important;
    }
}

.wp-update {
    background: #fef3c7 !important;
    color: #d97706 !important;
}

.wp-approved {
    background: #d1fae5 !important;
    color: #059669 !important;
}

.wp-rejected {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}
.wp-submission-attachment { 
    cursor: pointer;
    width:auto;
    max-width: 70px;
    max-height:40px;
    border:1px solid #ccc;
    border-radius:4px;
}
#table-body td {
	padding: 4px 0px 4px 8px !important;
	line-height: 1.2 !important;
	font-size: 14px !important;
}
.table-container {
	padding: 5px 10px;
}







.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 24px;
}

.pending .status-icon {
    background: #f59e0b;
}

.approved .status-icon {
    background: #10b981;
}

.rejected .status-icon {
    background: #ef4444;
}
.action-buttons {
    display: flex;
    gap: 8px;
}
.status-badge, .wp-btn {
	display: inline-flex !important;
	align-items: center;
	padding: 5px 10px 6px !important;
	border-radius: 4px;
	font-size: 13px;
	text-transform: capitalize;
	flex-direction: column;
    min-width:100px;
}
.ace-flag-badge.ace-flag-request {
	min-width: 115px;
}
.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.approved {
    background: #d1fae5;
    color: #059669;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #dc2626;
}
.status-badge.disputed {
    background: #ede9fe;
    color: #6d28d9;
}
.status-badge.flagged {
    background: #fff4e5;
    color: #9a5b00;
}
.ace-flag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}
.ace-flag-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}
.ace-flag-badge.ace-flagged {
    color: #8a1f11;
    background: #fdecea;
    border: 1px solid #f3c5c0;
}
.ace-flag-badge.ace-not-flagged {
    color: #0f5f36;
    background: #e8f7ef;
    border: 1px solid #b7e3c9;
}
.ace-flag-badge.ace-flag-request {
    color: #6b4f00;
    background: #fff8db;
    border: 1px solid #efd98a;
}

/* Edit Freelancer Submission modal - fully scoped by parent id */
#ace-edit-freelancer-submission-modal .ace-swal-field {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px;
    align-items: start;
    margin-bottom: 12px;
}
#ace-edit-freelancer-submission-modal .ace-swal-field label {
    font-weight: 600;
    margin: 6px 0 0;
    color: #2f3a4f;
}
#ace-edit-freelancer-submission-modal .swal2-input,
#ace-edit-freelancer-submission-modal .swal2-textarea,
#ace-edit-freelancer-submission-modal .swal2-select {
    margin: 0 !important;
    border-radius: 8px;
    border: 1px solid #d8deea;
}
#ace-edit-freelancer-submission-modal .swal2-textarea {
    min-height: 95px;
}
#ace-edit-freelancer-submission-modal #swal-status {
    min-height: 42px;
}
.btn-approve {
    background: #10b981;
    color: white;
}

.btn-approve:hover {
    background: #059669;
}

.btn-reject {
    background: #ef4444;
    color: white;
}

.btn-reject:hover {
    background: #dc2626;
}

.btn-edit {
    background: #6366f1;
    color: white;
}

.btn-edit:hover {
    background: #4f46e5;
}

.create-submission-con{
    width: 100%;
    text-align: end;
}
.wp-form-field small {
	font-size: 13px;
	text-align: left;
	margin-bottom: 15px;
}
.form-table[data-current-context="qr_code"] [data-row="text"],
.form-table[data-current-context="qr_code"] [data-row="url"],
.form-table:not([data-current-context="qr_code"]) [data-row="qr_preview"],
.form-table:not([data-current-context="image"]) [data-row="image"],
.form-table:not([data-current-context="social_post"]) [data-row="social_post"],
.form-table[data-current-context="social_post"] [data-row="text"],
.form-table[data-current-context="social_post"] [data-row="url"] {
    display: none;
}
.wp-checkbox-con {
	display: flex;
	/* align-items: center; */
	gap: 5px;
	margin-bottom: 0px !important;
}
.wp-checkbox-con * {
	margin: 0px !important;
}
.wp-add-creative h3 {
	margin-bottom: -10px !important;
}
.wp-add-creative h3:nth-of-type(2) {
	margin-bottom: -30px !important;
}
.wp-add-creative h4 {
    margin-bottom: -10px !important;
}
.wp-add-creative h4:nth-of-type(2) {
	margin-bottom: -30px !important;
}
.wp-warning-block p {
	font-size: 14px;
}

/* Extra Settings form - semantic structure */
.ace-extra-settings-form {
	max-width: 800px;
}
.ace-extra-settings-form .ace-settings-section {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: #f8fafc;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
}
.ace-extra-settings-form .ace-settings-section-heading {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #e2e8f0;
}
.ace-extra-settings-form .ace-settings-fieldset {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.25rem;
	margin-bottom: 1.25rem;
	background: #fff;
}
.ace-extra-settings-form .ace-settings-fieldset:last-child {
	margin-bottom: 0;
}
.ace-extra-settings-form .ace-settings-fieldset legend {
	font-weight: 600;
	color: #475569;
	padding: 0 0.5rem;
	margin-bottom: 1rem;
}
.ace-extra-settings-form .ace-settings-subfields {
	margin-top: 1rem;
	margin-left: 0.5rem;
}
.ace-extra-settings-form .ace-settings-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 1rem;
}
@media (max-width: 600px) {
	.ace-extra-settings-form .ace-settings-row {
		grid-template-columns: 1fr;
	}
}
.ace-extra-settings-form .ace-form-actions {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid #e2e8f0;
}
.ace-extra-settings-form-inner {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.ace-extra-settings-form .wp-form-con form {
	gap: 0;
}

/* Hide main content until custom dashboard content is ready (prevents flash) */
body.ace-dashboard-pending .wr-main,
body.ace-dashboard-pending .wr-main-section,
body.ace-dashboard-pending main.wr-main {
	opacity: 0 !important;
	pointer-events: none !important;
}
body.ace-dashboard-ready .wr-main,
body.ace-dashboard-ready .wr-main-section,
body.ace-dashboard-ready main.wr-main {
	opacity: 1 !important;
	pointer-events: auto !important;
}


.creative-code pre.wp-creative-with {
    display: flex !important;
    justify-content: start;
}
.creative-code pre.wp-creative-with a{
    color: white !important;
    font-weight: 500 !important;
}

.wp-left{
    text-align: left !important;
    width: 100% !important;
}
.wp-creative-text {
	display: inline-block;
	font-weight: 600 !important;
	font-size: 16px !important;
	margin: 10px auto -6px !important;
	white-space: break-spaces;
}
.wp-creative-description.wp-left {
	white-space: break-spaces;
}
.wp-creative-content{
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: start;
}
.wp-creative-posts.wp-social-posts {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
    justify-content: space-between;
}
.wp-creative-posts.wp-social-posts .creative-card {
	width: 100%;
	max-width: 500px;
	height: fit-content;
	margin-top: auto;
}
.wp-creative-name {
	width: 100%;
	text-align: center;
	white-space: break-spaces;
}

.wp-creative-description, .wp-creative-url {
	padding-left: 10px;
}
.wp-creative-url span {
	color: #030363;
	white-space: break-spaces;
}
.wp-d-none {
    display: none;
}
.wp-opened {
    background: #90959fbd;
}
.wp-creative-copy-con {
	color: #e5e7eb;
	background-color: #252f3f;
	overflow-x: auto;
	width: 100%;
	font-weight: 400;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.8;
	letter-spacing: 1;
	padding: 12px 16px;
}
.wp-creative-with{
    color: #e5e7eb;
    font-size: 17px !important;
    font-weight: 400 !important;
}
.wr-table-wrap {
	background: white;
	padding: 10px;
	border-radius: 10px;
}
.wr-btn.wr-btn-small {
	padding: 0px 5px !important;
	margin: 5px auto !important;
	max-width: 70px;
	width: 100% !important;
	min-width: 90px !important;
	height: 35px;
	font-size: 14px;
}
.wr-btn.wr-btn-small.ace-flag-btn-disabled,
.wr-btn.wr-btn-small.ace-flag-btn-disabled:hover {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.2);
}
.wr-table > tbody > tr td {
	padding: 8px 8px !important;
}

/* Employer Notification Bar - between header and top bar */
.ace-employer-notification-bar {
	background: linear-gradient(135deg, #6b3a8e 0%, #582c81 100%);
	color: #fff;
	padding: 12px 0;
	box-shadow: 0 2px 8px rgba(88, 44, 129, 0.2);
}
.ace-notification-bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}
.ace-notification-bar-content {
	flex: 1;
	min-width: 200px;
}
.ace-notification-bar-title,
.ace-notification-bar-text {
	margin: 0 0 4px;
	color: #fff !important;
}
.ace-notification-bar-title {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	text-shadow: 0px 0px 5px black;
}
.ace-notification-bar-text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.45;
	opacity: 0.95;
}
.ace-notification-bar-action {
	flex-shrink: 0;
}
.ace-notification-bar-btn {
	display: inline-block;
	background: #be0707;
	color: #fff !important;
	padding: 10px 24px;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s, transform 0.2s;
}
.ace-notification-bar-btn:hover {
	background: #9d0505;
	color: #fff !important;
	transform: translateY(-1px);
}
@media (max-width: 768px) {
	.ace-notification-bar-inner { flex-direction: column; align-items: flex-start; }
}

/* WooCommerce package features display */
.ace-package-features { margin: 1rem 0; padding: 1rem; background: #f8f9fa; border-radius: 8px; }
.ace-package-features-list { margin: 0; padding-left: 1.25rem; list-style: disc; }
.ace-package-features-list li { margin: 0.25rem 0; }

/* Modern minimal loading modal */
.swal2-popup.ace-modern-loading-popup {
    border-radius: 16px !important;
    padding: 22px 24px !important;
}
.swal2-popup.ace-modern-loading-popup .swal2-title {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    margin: 0 0 8px !important;
    color: #1f2937 !important;
}
.ace-modern-loader {
    width: 36px;
    height: 36px;
    margin: 4px auto 8px;
    border: 3px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: aceModernSpin 0.8s linear infinite;
}
.ace-modern-loader__text {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}
@keyframes aceModernSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



.wr-table > tbody > tr td a {
	color: #3377FF !important;
	text-decoration: underline;
}
.ace-campaigns-left-block.ace-no-package-block {
	max-width: 550px;
}