/* Tidy up Table Styling */

/* Page width expansion and left alignment */
.metrouicss .page {
    width: 98% !important;
    max-width: none !important;
    margin-left: 20px !important;
    margin-right: auto !important;
}

#myTable {
    width: 100% !important;
    margin-top: 10px;
}

/* Specific Column Widths */
#myTable thead th:nth-child(2),
/* Cust ID */
#myTable tbody td:nth-child(2) {
    width: 110px !important;
    min-width: 110px;
}

#myTable thead th:nth-child(3),
/* Cust Name */
#myTable tbody td:nth-child(3) {
    width: 250px !important;
    min-width: 250px;
}

#myTable thead th:nth-child(4),
/* Site Name */
#myTable tbody td:nth-child(4) {
    width: 250px !important;
    min-width: 250px;
}

#myTable thead th:nth-child(5),
/* Device No */
#myTable tbody td:nth-child(5) {
    width: 150px !important;
    min-width: 150px;
}

#myTable thead th:nth-child(6),
/* Monthly Report */
#myTable tbody td:nth-child(6) {
    width: 220px !important;
    min-width: 220px;
}

#myTable thead th {
    text-align: center;
    vertical-align: middle !important;
    padding: 10px !important;
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border-bottom: 2px solid #ddd !important;
}

#myTable tbody td {
    vertical-align: middle !important;
    padding: 8px !important;
}

/* Center controls in columns */
.report-ctrl-tidy {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.report-ctrl-tidy select,
.report-ctrl-tidy button {
    height: 30px !important;
    padding: 2px 6px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    font-size: 12px !important;
    line-height: normal !important;
}

.report-ctrl-tidy select {
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
}

.report-ctrl-tidy button {
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* Eye-catching Add button for MRTG (Icon only, no background card) */
.btn-mrtg-add {
    color: #008287 !important;
    /* Metro Teal */
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, color 0.2s;
    font-family: inherit;
}

.btn-mrtg-add:hover {
    color: #006b6f !important;
    transform: scale(1.2);
}

.btn-mrtg-add::before {
    content: '+';
    font-size: 26px;
    /* Larger and bold to be eye-catching */
    font-weight: bold;
    line-height: 1;
}


/* Tidy up Action icons if they are used, but user wants original look */
.action-tidy-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* Tidy up DataTables controls */
.dt-length select,
.dataTables_length select {
    margin-right: 8px !important;
    margin-left: 8px !important;
    padding: 2px 5px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
}

.dt-search input,
.dataTables_filter input {
    margin-left: 8px !important;
    padding: 4px 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
}