/* ==========================================================================
   Publisher GF Submissions — Stylesheet
   Covers: [pub_submissions] table + [pub_evaluation] form
   ========================================================================== */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.pubgfs-wrap,
.pubgfs-eval-wrap {
    font-size: 14px;
    color: #261e24;
    margin-bottom: 40px;
}
span.nationalitylbl {
    color: black !important;
}
.pubgfs-eval-wrap {
    margin-top: 20px;
}
/* ── Notices ──────────────────────────────────────────────────────────────── */
.pubgfs-notice {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}
.pubgfs-error {
    background: #fcb0cb;
    border: 2px solid #fcb0cb;
    color: #000;
}
.pubgfs-success {
    background: #fcb0cb;
    border: 2px solid #fcb0cb;
    color: #000;
}

/* ── Toolbar ──────────────────────────────────────────────────────────────── */
.pubgfs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
   
    padding: 10px 0px 20px;
   
}
.pubgfs-toolbar-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.pubgfs-form-title {
    font-size: 22px !important;
    font-weight: bold !important;
    color: #fe0002 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    font-family: 'Bw Gradual DEMO', Arial, sans-serif !important;
}
.pubgfs-total-count { font-size: 14px; color: #000;letter-spacing: 0.5px; }
.pubgfs-toolbar-right { display: flex; align-items: center; gap: 10px; }

/* ── Search ───────────────────────────────────────────────────────────────── */
.pubgfs-search-wrap { position: relative; }
.pubgfs-search {
    padding: 10px 36px 10px 12px;
    border: 1px solid #fcb0cb;
    border-radius: 5px;
    font-size: 16px;
    width: 240px;
    background: #fff;
    transition: border-color .2s;
    color: #261e24;
}
.pubgfs-search:focus { outline: none; border-color: #fe0002; box-shadow: 0 0 0 2px rgba(254,0,2,.12); }
.pubgfs-search-icon {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; fill: #888; pointer-events: none;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.pubgfs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background .2s, color .2s;
    letter-spacing: .3px;
}
.pubgfs-btn:focus { outline: 0px solid #fe0002; outline-offset: 0px; }
.pubgfs-btn svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.pubgfs-toggle-details { background: #261e24; color: #fff; }
.pubgfs-toggle-details:hover { background: #fe0002; }
.pubgfs-btn-export { background: #10b981; color: #fff; }
.pubgfs-btn-export:hover { background: #059669; color: #fff; }
.pubgfs-btn-draft   { background: #fe0002 !important; color: #fff; }
.pubgfs-btn-draft:hover   { background: #fe0002 !important; }
.pubgfs-btn-publish { background: #f5cfd9 !important; color: #000; }
.pubgfs-btn-publish:hover { background: #000 !important;color:#ffffff; }
.pubgfs-toggle-details:hover { color: #fff !important; }
/* ── Table ────────────────────────────────────────────────────────────────── */
.pubgfs-table-scroll { overflow-x: auto; }
.pubgfs-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.pubgfs-table tbody td { padding: 9px 12px; border-bottom: 1px solid #eee; vertical-align: middle; }
.pubgfs-table tbody tr:hover td { background: #f7f7f7; }
.pubgfs-col-id { width: 60px; }
.pubgfs-col-date { width: 120px; white-space: nowrap; }
.pubgfs-col-status { width: 90px; }
.pubgfs-col-actions { width: auto;}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.pubgfs-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.badge-active    { background: #fe0002; color: #fff; }
.badge-spam      { background: #fee2e2; color: #991b1b; }
.badge-trash     { background: #fef3c7; color: #92400e; }
.badge-read      { background: #e0f2fe; color: #0369a1; }
.badge-unread    { background: #ede9fe; color: #5b21b6; }
.badge-paid      { background: #dcfce7; color: #166534; }
.badge-processing{ background: #e0f2fe; color: #0c4a6e; }
.badge-failed    { background: #fee2e2; color: #7f1d1d; }
.badge-default   { background: #f3f4f6; color: #374151; }

/* ── Detail panel ─────────────────────────────────────────────────────────── */
.pubgfs-detail-cell { padding: 0 !important; background: #fafafa; width: 100%;}
.pubgfs-detail-inner { padding: 16px 20px; border-top: 2px solid #fe0002; }
.pubgfs-entry-detail { font-size: 15px; }
.pubgfs-detail-meta {
    display: flex; flex-wrap: wrap; gap: 16px;
    background: #fff; padding: 10px 14px; border-radius: 4px;
    margin-bottom: 12px; border: 1px solid #eee;
}
.pubgfs-detail-table { font-size: 13px; }
.pubgfs-col-field { width: 200px; }
.pubgfs-loading { padding: 20px; text-align: center; color: #888; }
.pubgfs-spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid #ccc; border-top-color: #fe0002;
    border-radius: 50%; animation: pubgfs-spin .7s linear infinite;
    vertical-align: middle;
}
@keyframes pubgfs-spin { to { transform: rotate(360deg); } }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pubgfs-pagination { padding: 12px 0; }
.pubgfs-pages { margin: 0; }
.pubgfs-pages ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.pubgfs-page-link {
    display: inline-block; padding: 5px 10px; border-radius: 4px;
    background: #f0f0f0; color: #333; text-decoration: none;
    font-size: 13px; border: 1px solid #ddd; transition: background .2s;
}
.pubgfs-page-link:hover { background: #fe0002; color: #fff; border-color: #fe0002; }
.pubgfs-page-active { background: #fe0002 !important; color: #fff !important; border-color: #fe0002 !important; }
.pubgfs-ellipsis { padding: 5px 8px; color: #888; }
.pubgfs-footer-summary {  font-size: 16px; color: #261e24;letter-spacing: 0.5px;}
.pubgfs-footer-summary strong{
    font-size: 16px;
    line-height: 1.25;
    font-weight: 400;
    color: #261e24;
    text-decoration: none;
}
/* ── Evaluation form ──────────────────────────────────────────────────────── */
#pubgfs-eval-form {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

/* Entry info bar */
.pubgfs-eval-entry-info {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #fe0002;
}
.pubgfs-eval-entry-info p { margin: 6px 0; font-size: 15px; }
.pubgfs-eval-badge.draft {
    display: inline-block;
    background: #FF95BB;
    color: #000;
    border: 1px solid #FF95BB;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
}
.pubgfs-eval-saved-score { font-size: 13px; color: #555; }
.pubgfs-role-tag {
    background: #261e24; color: #fff;
    padding: 2px 8px; border-radius: 4px;
    font-size: 12px; font-weight: 600;
}

/* Eval sections */
.pubgfs-eval-section {
    background: #ececec;
    padding: 16px 16px 6px;
    margin: 0;
    border-radius: 12px;
}
.pubgfs-eval-section h2 {
    font-size: 18px;
    font-family: var(--body-font-family);
    margin: .5rem 0;
}
.pubgfs-section-group-tag {
    font-size: 22px;
    font-weight: bold;
    color: #fe0002;
}
.pubgfs-section-desc { margin: .5rem 0; font-size: 14px; }
.pubgfs-eval-label { margin-bottom: .5rem; }

/* Eval tables */
.pubgfs-range-table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
}
.pubgfs-range-table th {
    background: #261e24;
    color: #fff;
    padding: 10px 12px;
}
.pubgfs-range-table td { padding: 8px 10px; }
.col-weight   { width: 90px; text-align: center; }
.col-max      { width: 80px; text-align: center; }
.col-score    { width: 200px; }
.col-weighted { width: 140px; text-align: center; }
.col-options  { min-width: 220px; }

/* Range inputs */
.pubgfs-range-cell { display: flex; align-items: center; gap: 8px; }
.pubgfs-score-range { width: 65%; }
.pubgfs-range-cell span{
    min-width: 26px;
}
.pubgfs-range-value {
    font-weight: bold; font-size: 16px; color: #fe0002;
    display: inline-block; min-width: 26px;
    transition: color .2s;
}
.pubgfs-score-range.invalid { outline: 2px solid #ef4444; }
.pubgfs-weighted-score { font-weight: bold; color: #261e24;
    display: inline-block;width: 40px;min-width: 40px;max-width: 40px; }

/* Radio options */
.pubgfs-radio-options { display: flex; flex-direction: column; gap: 8px; }
.pubgfs-radio-option {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 7px 14px;
    border: 2px solid #dfdfdf;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    margin: 0; font-size: 14px;
}
.pubgfs-radio-option:hover,
.pubgfs-radio-option.is-selected { border-color: #fe0002; background: #e3e3e3; }
.pubgfs-radio-option input { margin-top: 3px; }
.opt-label { font-weight: 600; flex: 1; }
.opt-desc  { font-size: 13px; color: #666; }

/* ── Score summary panel ──────────────────────────────────────────────────── */
#pubgfs-score-summarys {
    background: #ececec;
    padding: 16px 16px 6px;
    margin-top: 20px;
    border-radius: 12px;
}
#pubgfs-score-summarys .pubgfs-ss-heading, .pubgfs-ss-heading {
    font-size: 22px;
    font-weight: bold;
    color: #fe0002;
    margin-bottom: 10px;
}
.pubgfs-summary-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.pubgfs-summary-table th {
    background: #261e24; color: #fff; padding: 10px 12px; text-align: left;
}
.pubgfs-summary-table td { padding: 9px 12px; border-bottom: 1px solid #eee; }
.pubgfs-summary-table tfoot td {
    border-top: 2px solid #261e24;
    font-size: 15px;
}
.pubgfs-group-score { font-weight: bold; color: #fe0002; display: inline-block;
    width: 50px;min-width: 50px;max-width: 50px;}
.pubgfs-group-score.ss-active { color: #10b981; }
.pubgfs-ss-max { color: #888; font-size: 13px; }
.pubgfs-ss-saved { padding: 10px 0; font-size: 13px; color: #555; }

/* ── Comments & actions ───────────────────────────────────────────────────── */
.pubgfs-eval-comments {
    margin: 20px 0;
    background: #ececec;
    padding: 20px;
    border-radius: 6px;
}
.pubgfs-eval-actions {
    display: flex; gap: 12px; align-items: center;
    flex-wrap: wrap; margin-top: 10px;
}

/* ── Floating score box ───────────────────────────────────────────────────── */
#pubgfs-score-float {
    position: fixed;
    top: 90px; right: 20px;
    background: #111; color: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    z-index: 999;
    font-size: 14px;
    transition: opacity .3s;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (min-width: 1200px) {
    .pubgfs-eval-section table thead th {
        min-width: 200px;
    }
}
@media (max-width: 1199px) {
    th.col-score { min-width: 200px; }
}
@media (max-width: 768px) {
    .pubgfs-eval-actions { flex-direction: column; }
    .pubgfs-eval-actions button { width: 100%; text-align: center; }
    #pubgfs-score-float { display: none; }
    .pubgfs-search { width: 180px; }
}

/* ── Information Structure Fields ─────────────────────────────────────────── */
.pubgfs-info-fields-wrap {
    margin: 24px 0;
    background: #ececec;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 20px 24px;
}
.pubgfs-info-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 14px;
}
.pubgfs-info-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pubgfs-info-field--textarea {
    grid-column: 1 / -1; /* full width */
}
.pubgfs-info-label {
    font-size: .85rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: .01em;
}
.pubgfs-info-text,
.pubgfs-info-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: .9rem;
    color: #111;
    background: #fff;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color .15s;
}
.pubgfs-info-text:focus,
.pubgfs-info-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,.15);
}
.pubgfs-info-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.pubgfs-info-cb-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    color: #374151;
    cursor: pointer;
}
.pubgfs-info-cb-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #6366f1;
    cursor: pointer;
    border-radius: 4px;
}

/* ── Avg. Score column (pub_submissions_selector) ─────────────────────────── */
.pubgfs-col-avg-score {
    width: 110px;
    text-align: center;
    white-space: nowrap;
}
.pubgfs-avg-score-value {
    display: inline-block;
    font-weight: 600;
    font-size: .92rem;
    color: #fe0002;
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    padding: 2px 7px;
    line-height: 1.4;
}
.pubgfs-avg-score-meta {
    display: block;
    font-size: .75rem;
    color: #6b7280;
    margin-top: 2px;
}
.pubgfs-avg-score-none {
    color: #9ca3af;
    font-size: .88rem;
}
.pubgfs-evaluated-badge {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    padding: 3px 10px;
    line-height: 1.4;
}
.pubgfs-col-my-rating {
    min-width: 90px;
}
.pubgfs-my-rating-value {
    display: inline-block;
    font-weight: 600;
    font-size: .92rem;
    color: #000;
    background: #d5d5d5;
    border: 1px solid #ddd6fe;
    border-radius: 4px;
    padding: 2px 7px;
    line-height: 1.4;
}

/* ── Column sorting ───────────────────────────────────────────────────────── */
.pubgfs-table th {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    position: relative;
    padding-right: 22px !important;
}
 th.sortable{
    position: relative !important;
}
.pubgfs-table th::after {
/*    content: '\2195'; 
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .75rem;
    opacity: .35;
    transition: opacity .15s;*/
}
th.sortable:after {
    content: "▼";
    position: absolute;
    right: 6px;
    opacity: 0.5;
    font-size: 12px;
}
th.asc:after {
    content: "▲";
    opacity: 1;
}
.pubgfs-table th:hover::after {
    opacity: .7;
}
.pubgfs-table th.pubgfs-sort-asc::after {
    content: "▲";
    opacity: 1;
}
.pubgfs-table th.pubgfs-sort-desc::after {
    content: "▼";
    opacity: 1;
}

.pubgfs-detail-table tbody tr td:first-child,
.pubgfs-detail-table thead tr th:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    background: transparent;
    z-index: 2;
    width: 300px;
    min-width: 300px;
}
.pubgfs-eval-entry-info strong {
    font-size: 16px;
}
.pubgfs-eval-entry-info span {
    color: #fe0002;
}
.pubgfs-eval-entry-info span.pubgfs-role-tag{
    color: #fff;
}
.pubgfs-info-checkboxes label {
    font-size: 14px;
    display: block;
    width: 100%;
    display: flex;
    align-items: center;
}
.common_label_font label {
    font-size: 16px;
    color: #000;
}
.pubgfs-info-textarea, .common_fromfont_style textarea, .pubgfs-eval-comments textarea{
    background-color: #fff !important;
}

/***customcheckboxcss***/
.pubgfs-info-cb-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 12px;
    font-size: 16px;
    position: relative;
}

.pubgfs-info-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.pubgfs-info-checkbox:hover {
    border-color: #fe0002;
}

.pubgfs-info-checkbox:checked {
    /*background: #fe0002;*/
    border-color: #fe0002;
}
.pubgfs-info-checkboxes input[type="radio"]:checked::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    position: absolute;
    top: 3.2px;
    left: 2.4px;
}
.pubgfs-info-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/***endcss***/
span#pubgfs-grand-total
 {
    display: inline-block;
    width: 50px;
    min-width: 50px;
    max-width: 50px;
}
.pubgfs-detail-inner .pubgfs-entry-detail .pubgfs-detail-table th, 
.common_inner_table th, .pubgfs-table th{
    /*pointer-events: none;*/
}

/***newpathwayentrypage***/
.common_inner_table{
    padding: 15px;
    background: #fafafa;
}
.common_inner_tables .common_set_area{
    padding: 15px;
    background: #fafafa;
    border-radius: 12px;
}
.common_inner_tables .common_set_area tr{
    background: #edeae6;
    background: transparent;
}
.common_inner_table h4, .common_inner_tables h4 {
    margin: 15px 0px;
    color: #fe0002 !important;
    font-size: 20px !important;
    font-weight: 600;
    font-family: 'Bw Gradual DEMO', Arial, sans-serif !important;
    
}
.common_inner_tables .common_set_area h4{
    margin: 15px 0px;
    color: #fe0002 !important;
    font-size: 20px !important;
    font-weight: 600;
    font-family: 'Bw Gradual DEMO', Arial, sans-serif;
}
/***end***/
td.pubgfs-col-my-rating
 {
    text-align: center;
}
.pubgfs-btn.pubgfs-toggle-details {
    font-size: 14px;
    font-weight: 400;
}
.award-block-style .common_inner_tables thead,
.award-block-style .pubgfs-detail-table thead
{
    background: #fcb0cb;
    color: #000;
}
.award-block-style .pubgfs-detail-table tbody tr:nth-child(odd) {
     background: transparent !important; 
}