/* PHP Scripts table layout fix */

/* Make the page wider for scripts */
.scripts-page #page {
    width: 98% !important;
    max-width: none !important;
}

#scripts-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

#scripts-table th,
#scripts-table td {
    padding: 10px 12px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Column widths */
#scripts-table th:nth-child(1),
#scripts-table td:nth-child(1) {
    width: 50px;
}

#scripts-table th:nth-child(2),
#scripts-table td:nth-child(2) {
    width: 120px;
}

#scripts-table th:nth-child(3),
#scripts-table td:nth-child(3) {
    width: 80px;
}

#scripts-table th:nth-child(4),
#scripts-table td:nth-child(4) {
    /* Script Name */
    width: 25%;
    white-space: normal;
    word-break: break-word;
}

#scripts-table th:nth-child(5),
#scripts-table td:nth-child(5) {
    /* Domain/Company */
    width: 20%;
    white-space: normal;
    word-break: break-word;
}

#scripts-table th:nth-child(6),
#scripts-table td:nth-child(6) {
    /* Modified */
    width: 150px;
}

#scripts-table th:nth-child(7),
#scripts-table td:nth-child(7) {
    /* Size */
    width: 80px;
}

#scripts-table th:nth-child(8),
#scripts-table td:nth-child(8) {
    /* Link */
    width: 120px;
}

/* Responsive table wrapper */
.scripts-table-wrapper {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 20px;
}

/* Better text wrapping for long names */
#scripts-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

