/* =========================================
   Practice Related Feedback – Entries Table
   ========================================= */

.prf-entries-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.prf-entries-table th,
.prf-entries-table td {
    border: 1px solid #1B2666;
    padding: 10px;
    vertical-align: top;
    text-align: left;
}

.prf-entries-table th {
    background: #1B2666;
    color: #fff;
    font-weight: bold;
}

.prf-entries-table td {
    background: #ffffff;
}

/* Narrow delete column */
.prf-entries-table th:last-child,
.prf-entries-table td:last-child {
    text-align: center;
    white-space: nowrap;
}

/* Delete button */
.prf-delete-btn {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

.prf-delete-btn:hover {
    background: #a93226;
}

/* =========================================
   Form table
   ========================================= */

.prf-form-table {
    width: 100%;
    border-collapse: collapse;
}

.prf-form-table th,
.prf-form-table td {
    border: 1px solid #1B2666;
    padding: 10px;
    vertical-align: top;
    text-align: left;
}

.prf-form-table input,
.prf-form-table select,
.prf-form-table textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid #1B2666;
    outline: none;
}

.prf-form-table textarea {
    resize: vertical;
    min-height: 30px;
}

/* =========================================
   PRF INFO TABLE (GUIDE BOXES)
   ========================================= */

.prf-info {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    /*! border: 1px solid #1B2666; */
}

.prf-info td {
    width: 50%;
    border: 1px solid #1B2666;
    padding: 0;
    vertical-align: top;
    color: #1B2666;
}

/* Blue header bars */
.prf-info-heading {
    background: #1B2666;
    color: #ffffff;
    font-weight: bold;
    padding: 10px;
    text-align: left;
}

/* Lists under headers */
.prf-info ul {
    margin: 0;
    padding: 10px 20px;
}

.prf-info li {
    color: #1B2666;
    text-align: left;
}

/* =========================================
   Titles & text
   ========================================= */

.prf-plugin-title {
    color: #1B2666;
    font-size: 24px;
    font-weight: bold;
    padding: 10px 0;
}

.prf-title1 {
    color: #1B2666;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 0;
}

.prf-info2 {
    color: #1B2666;
    padding: 10px 0;
    line-height: 1.5;
}
/* =========================================
   PRF INFO TABLE – MOBILE ONLY
   ========================================= */

@media (max-width: 768px) {

    .prf-info,
    .prf-info tbody,
    .prf-info tr,
    .prf-info td {
        display: block;
        width: 100%;
    }

    /* Each info box */
    .prf-info td {
        border: 1px solid #1B2666;
        margin-bottom: 12px;
        padding: 0;
        box-sizing: border-box;
        background: #ffffff;
    }

    /* Blue header stays full width */
    .prf-info-heading {
        width: 100%;
        box-sizing: border-box;
        background: #1B2666;
        color: #ffffff;
        font-weight: bold;
        padding: 10px;
        text-align: left;
    }

    /* Content list spacing */
    .prf-info ul {
        padding: 10px 20px;
        margin: 0;
    }
}
/*---------------ABOVE HERE IS OK-----------------------------*/


/* =========================================
   PRF FORM TABLE – DESKTOP COLUMN FIX
   ========================================= */

@media (min-width: 769px) {

    /* Date */
    .prf-form-table th:nth-child(1),
    .prf-form-table td:nth-child(1) {
        width: 140px;
        white-space: nowrap;
    }

    /* Source */
    .prf-form-table th:nth-child(2),
    .prf-form-table td:nth-child(2) {
        width: 220px;
        white-space: normal;
    }

    /* Type */
    .prf-form-table th:nth-child(3),
    .prf-form-table td:nth-child(3) {
        width: 180px;
        white-space: normal;
    }

    /* Content of feedback – TAKE THE SPACE */
    .prf-form-table th:nth-child(4),
    .prf-form-table td:nth-child(4) {
        width: auto;
    }

    /* Make textarea fill its column properly */
    .prf-form-table textarea {
        min-height: 30px;
    }
}

/*---------------above working ti desktop mode-----------------------------*/

/* =========================================
   PRF FORM TABLE – MOBILE / TABLET LAYOUT
   ========================================= */

@media (max-width: 768px) {

    /* Turn table into stacked cards */
    .prf-form-table,
    .prf-form-table thead,
    .prf-form-table tbody,
    .prf-form-table tr,
    .prf-form-table th,
    .prf-form-table td {
        display: block;
        width: 100%;
    }

    .prf-form-table thead {
        display: none;
    }

    /* Card wrapper */
    .prf-form-table tr {
        margin-bottom: 16px;
        border: 1px solid #1B2666;
        border-radius: 6px;
        background: #ffffff;
        overflow: visible;
    }

    /* Individual field rows */
    .prf-form-table td {
        border: none;
        border-bottom: 1px solid #1B2666;
        padding: 10px;
        text-align: left;
        overflow: visible;
    }

    .prf-form-table td:last-child {
        border-bottom: none;
    }

    /* Field labels (blue bars) */
    .prf-form-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        padding: 6px 10px;
        background: #1B2666;
        color: #ffffff;
        font-weight: bold;
        font-size: 14px;
    }

    /* Inputs must never overflow */
    .prf-form-table input,
    .prf-form-table select,
    .prf-form-table textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: block;
    }

    /* Content textarea must be readable */
    .prf-form-table textarea {
        min-height: 100px;
        resize: vertical;
    }
}


/* =========================================
   PRACTICE RELATED FEEDBACK — ENTRIES
   MOBILE / TABLET RESPONSIVE FIX
========================================= */
@media (max-width: 768px) {

    .prf-entries-table,
    .prf-entries-table thead,
    .prf-entries-table tbody,
    .prf-entries-table tr,
    .prf-entries-table th,
    .prf-entries-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    /* Hide header row */
    .prf-entries-table thead {
        display: none;
    }

    /* Each entry becomes a card */
    .prf-entries-table tr {
        margin-bottom: 16px;
        border: 1px solid #1B2666;
        background: #ffffff;
    }

    /* Each cell */
    .prf-entries-table td {
        border: none;
        border-bottom: 1px solid #1B2666;
        padding: 5px;
        text-align: left;
        word-break: break-word;
        white-space: normal;
        color: #666773;
    }

    .prf-entries-table td:last-child {
        border-bottom: none;
    }

    /* Label before each value */
    .prf-entries-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        
        color: #0e1b62;
        font-weight: bold;
        font-size: 14px;
    }

    /* Keep delete button usable but compact */
    .prf-delete-btn {
        font-size: 12px;
        padding: 4px 8px;
    }
}















