/* =========================================================
   NEALGUIDES FC 27 TABLEPRESS
   TABLE 1 + TABLE 2
   ========================================================= */


/* =========================================================
   TABLE BASE
   ========================================================= */

.tablepress-id-1,
.tablepress-id-2 {
    border: 1px solid #e9eef5;
    border-radius: 14px;
    overflow: hidden;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    color: #0f172a;
}


/* =========================================================
   TABLE CELLS
   ========================================================= */

.tablepress-id-1 th,
.tablepress-id-1 td,
.tablepress-id-2 th,
.tablepress-id-2 td {
    padding: 16px 18px;
    vertical-align: middle;
}


/* =========================================================
   TABLE HEADER
   ========================================================= */

.tablepress-id-1 thead th,
.tablepress-id-2 thead th {
    background: #e8f2fb;
    color: #0f172a;
    font-weight: 700;
    border-bottom: 1px solid #d7e3f1;
}


/* =========================================================
   TABLE ROWS
   ========================================================= */

.tablepress-id-1 tbody tr,
.tablepress-id-2 tbody tr {
    background: #ffffff;
}

.tablepress-id-1 tbody tr:nth-child(even),
.tablepress-id-2 tbody tr:nth-child(even) {
    background: #f8fafc;
}

.tablepress-id-1 tbody tr:hover,
.tablepress-id-2 tbody tr:hover {
    background: #f1f5f9;
}


/* =========================================================
   FORMATION BADGES
   ========================================================= */

.tp-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.tp-badge.blue {
    background: #e6efff;
    color: #1d4ed8;
}

.tp-badge.red {
    background: #ffe6e6;
    color: #dc2626;
}


/* =========================================================
   OPTIONAL CHIP
   ========================================================= */

.tp-chip {
    display: inline-block;
    padding: 8px 14px;
    border: 2px solid #111827;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}


/* =========================================================
   VIEWS
   ========================================================= */

.tp-views {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #334155;
}

.tp-views::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}


/* =========================================================
   TACTIC CODE COPY BUTTON
   ========================================================= */

.tp-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 9px 15px;

    border: 2px solid #111827;
    border-radius: 999px;

    background: #ffffff;

    /* Denim blue tactic code */
    color: #1560BD;

    font: inherit;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
    user-select: none;
    white-space: nowrap;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.06s ease,
        box-shadow 0.06s ease;
}

.tp-copy:hover {
    box-shadow: 0 1px 0 0 #111827;
}

.tp-copy:active {
    transform: translateY(1px);
}


/* =========================================================
   COPY ICON
   ========================================================= */

.tp-copy .tp-icon {
    display: inline-block;
    flex: 0 0 18px;

    width: 18px;
    height: 18px;

    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;

    /* Original black icon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
}


/* =========================================================
   COPY SUCCESS STATE
   ========================================================= */

.tp-copy.is-copied {
    background: #22C25E;
    border-color: #22C25E;
    color: #ffffff;
    font-weight: 400;
    box-shadow: none;
}

.tp-copy.is-copied .tp-icon {
    display: inline-block;

    /* Keep icon black */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
}


/* =========================================================
   COPY TOAST
   ========================================================= */

.tp-toast {
    position: fixed;

    left: 50%;
    bottom: 24px;

    transform: translateX(-50%) translateY(15px);

    width: calc(100% - 32px);
    max-width: 650px;

    box-sizing: border-box;
    padding: 14px 18px;

    background: #22C25E;
    color: #ffffff;

    border-radius: 12px;

    font-weight: 700;
    text-align: center;

    box-shadow: 0 6px 18px rgba(34, 194, 94, 0.30);

    z-index: 999999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.tp-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


/* =========================================================
   MOBILE TABLE
   ========================================================= */

@media (max-width: 768px) {

    .tablepress-id-1,
    .tablepress-id-2 {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .tablepress-id-1 th,
    .tablepress-id-1 td,
    .tablepress-id-2 th,
    .tablepress-id-2 td {
        min-width: 150px;
        padding: 13px 14px;
    }

    .tp-copy {
        padding: 8px 11px;
        font-size: 13px;
    }

    .tp-badge {
        padding: 7px 10px;
        font-size: 13px;
    }

    .tp-toast {
        bottom: 15px;
        font-size: 14px;
        padding: 12px 14px;
    }


    /* =====================================================
       MOBILE: ENTRIES + SEARCH SAME ROW
       ===================================================== */

    #tablepress-1_wrapper .dt-layout-row:first-child,
    #tablepress-2_wrapper .dt-layout-row:first-child {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
    }

    #tablepress-1_wrapper .dt-layout-start,
    #tablepress-2_wrapper .dt-layout-start,
    #tablepress-1_wrapper .dt-layout-end,
    #tablepress-2_wrapper .dt-layout-end {
        width: auto !important;
        flex: 0 0 auto !important;
    }


    /* Entries per page - LEFT */

    #tablepress-1_wrapper .dt-length,
    #tablepress-2_wrapper .dt-length {
        display: flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        width: auto !important;
        margin: 0 !important;
        font-size: 13px !important;
    }

    #tablepress-1_wrapper .dt-length select,
    #tablepress-2_wrapper .dt-length select {
        width: 50px !important;
        min-width: 50px !important;
        margin-right: 4px !important;
    }


    /* Search - RIGHT */

    #tablepress-1_wrapper .dt-search,
    #tablepress-2_wrapper .dt-search {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;

        width: auto !important;
        margin: 0 !important;

        white-space: nowrap !important;
        font-size: 13px !important;
    }

    #tablepress-1_wrapper .dt-search input,
    #tablepress-2_wrapper .dt-search input {
        width: 150px !important;
        max-width: 150px !important;
        min-width: 0 !important;

        margin-left: 5px !important;
        box-sizing: border-box !important;
    }


    /* =====================================================
       OLDER DATATABLES FALLBACK
       ===================================================== */

    #tablepress-1_wrapper .dataTables_length,
    #tablepress-2_wrapper .dataTables_length {
        float: left !important;
        clear: none !important;
        width: auto !important;
        white-space: nowrap !important;
        margin: 0 !important;
        font-size: 13px !important;
    }

    #tablepress-1_wrapper .dataTables_filter,
    #tablepress-2_wrapper .dataTables_filter {
        float: right !important;
        clear: none !important;
        width: auto !important;
        white-space: nowrap !important;
        margin: 0 !important;
        font-size: 13px !important;
    }

    #tablepress-1_wrapper .dataTables_filter input,
    #tablepress-2_wrapper .dataTables_filter input {
        width: 150px !important;
        max-width: 150px !important;
        margin-left: 5px !important;
        box-sizing: border-box !important;
    }
}