/* Modern Blue Table Styles (#ff7f7f color scheme) */

/* Table Styles */
table th{
    text-align: left;;
}

.info {
    width: 100%;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.info th {
    padding: 12px 15px;
    color: #2A6FC9;
    /* border-bottom: 1px solid #E1EDFF; */
    width: auto;
    white-space: nowrap;
    font-weight: 600;
    font-size: 12px;
    /* background-color: #F5F9FF; */
    background-color: #FFF;
}

.info td {
    padding: 12px 15px;
    /* border-bottom: 1px solid #E1EDFF; */
    font-size: 12px;
    color: #333;
    line-height: 20px;
    background-color: #FFF;
}

.table {
    clear: both;
    width: 100%;
    margin: 0;
    border-spacing: 0;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    border-collapse: separate;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(79, 148, 232, 0.1);
}

.table caption {
    padding: 0 0 15px 0;
    width: 100%;
    font: italic 13px 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-align: right;
    color: #ff7f7f;
}

/* Moved th styles under .table */
.table th {
    text-align: left;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    position: relative;
    padding-right: 30px !important;
    font: 600 12px 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: white;
    border-right: 1px solid #FFC4C4;
    border-bottom: none;
    border-top: none;
    padding: 10px;
    background: #049c63;
    white-space: nowrap;
}

/* Moved sorting styles under .table */
.table th.sorting:after {
    content: "↕";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

.table th.sorting_asc:after {
    content: "↑";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.table th.sorting_desc:after {
    content: "↓";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.table th.first {
    border-left: none;
    width: 5%;
}

.table td {
    border-right: 1px solid #E1EDFF;
    border-bottom: 1px solid #E1EDFF;
    padding: 12px 15px;
    color: #333;
    font-size: 12px;
    vertical-align: middle;
    background-color: #FFF;
}

table td .first{
    width: 5%;
}

.table tbody tr:hover td {
    background-color: #ebeff5 !important;
    transition: background-color 0.2s ease;
}

/* Remove old image-based sort icons */
.table th.sorting_asc,
.table th.sorting_desc,
.table th.sorting,
.tableReportNew th.sorting_asc,
.tableReportNew th.sorting_desc {
    background-image: none !important;
}

/* Solid Table Style */
.table_solid {
    border: 1px solid #ff7f7f;
    border-radius: 8px;
    overflow: hidden;
}

.table_solid th {
    background: #ff7f7f;
    color: white;
    border-color: #FFC4C4;
}

.table_solid td {
    border-color: #E1EDFF;
}

/* Print Table Style */
.table_print th {
    background: #F5F9FF;
    color: #2A6FC9;
    border-color: #ff7f7f;
}

/* Report Table Style */
.tableReportNew th {
    background: #ff7f7f;
    color: white;
    border-bottom: 2px solid #FFC4C4;
}

/* Button Styles */
.button-blue {
    background-color: #ff7f7f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button-blue:hover {
    background-color: #FFC4C4;
}


table.tableReportNew {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tableReportNew th, .tableReportNew td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    white-space: nowrap;
}

.tableReportNew td .dataTables_empty{
    text-align: center;
}

.tableReportNew th {
    background-color: #061964;
    color: white;
}
.tableReportNew tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tableReportNew tr:hover {
    background-color: #e7e7e7;;
}

/* Alternative Font Awesome Sort Icons (uncomment if using FA) */
/*
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
.table th.sorting:after {
    content: "\f0dc";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}
.table th.sorting_asc:after {
    content: "\f0de";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}
.table th.sorting_desc:after {
    content: "\f0dd";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}
*/

/* Responsive Adjustments */
@media (max-width: 768px) {
    .table, .info {
        display: block;
        overflow-x: auto;
    }
}

