﻿body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    margin: 0;
    padding: 1rem;
}


body, table, input {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bg_header {
    background-color: rgb(189 202 255) !important
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
    table-layout: fixed;
}

th,
td {
    padding: 6px;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
}

thead th {
    background-color: #198754;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

tbody tr:hover {
    background-color: #eef8f1;
}

table input {
    width: 100%;
    padding: 4px 6px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

    table input:focus {
        border-color: #198754;
        background-color: #f9fff9;
        outline: none;
    }

td:nth-child(2) input,
td:nth-child(3) input {
    border: none;
    font-weight: 600;
    cursor: default;
    width: 100%;
    font-size: 11px;
    line-height: 1.1;
}

td:nth-child(2) input {
    color: #000000;
    text-align: left;
    padding-left: 4px;
}

td:nth-child(3) input {
    color: #000000;
    text-align: center;
    padding: 4px 2px;
}

td:nth-child(1),
th:nth-child(1) {
    min-width: 40px;
    width: 40px;
    font-size: 11px;
}

td:nth-child(2),
th:nth-child(2) {
    min-width: 140px;
}

td:nth-child(3),
th:nth-child(3) {
    min-width: 100px;
}

.button_row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

    .button_row > button {
        min-width: 120px;
    }

pre {
    background: #f8f9fa;
    padding: 12px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow-x: auto;
    white-space: pre-wrap;
    margin-top: 1rem;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@media (max-width: 768px) {
    table {
        table-layout: auto;
        font-size: 11px;
        overflow: visible;
    }

    th,
    td {
        padding: 4px 4px;
        white-space: normal;
        word-break: break-word;
    }

        td:nth-child(1),
        td:nth-child(2),
        td:nth-child(3),
        td:nth-child(4),
        td:nth-child(5),
        td:nth-child(6),
        td:nth-child(7),
        td:nth-child(8),
        td:nth-child(9),
        td:nth-child(10),
        th:nth-child(1),
        th:nth-child(2),
        th:nth-child(3),
        th:nth-child(4),
        th:nth-child(5),
        th:nth-child(6),
        th:nth-child(7),
        th:nth-child(8),
        th:nth-child(9),
        th:nth-child(10) {
            font-size: 10px;
        }

            td:nth-child(2) input,
            td:nth-child(3) input {
                background-color: #f5f8fa;
                border: 1px solid #dee2e6;
                font-weight: 600;
                cursor: default;
                width: 100%;
                font-size: 11px;
                line-height: 1.3;
                color: #212529;
            }


        td:nth-child(2) {
            min-width: 122px;
        }

        td:nth-child(3) {
            min-width: 60px;
        }

    .button_row > button {
        flex: 1 1 48%;
    }

    h3 {
        font-size: 1.1rem;
    }
    #summary_info {
        font-size: 0.7rem;
    }

    #modal_fetch_data .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }

    #modal_fetch_data .modal-content {
        padding: 0.5rem;
        font-size: 13px;
    }

    #modal_fetch_data .modal-header h5 {
        font-size: 0.8rem;
        text-align: center;
        width: 100%;
    }

    #modal_fetch_data .modal-body {
        padding: 0.75rem;
    }

    #modal_fetch_data .form-group,
    #modal_fetch_data .input-group,
    #modal_fetch_data select,
    #modal_fetch_data input {
        width: 100% !important;
        font-size: 13px;
        margin-bottom: 0.5rem;
    }

        #modal_fetch_data .input-group > * {
            flex: 1 1 auto;
        }

    #modal_fetch_data .btn {
        /*width: 100%;*/
        margin-top: 0.5rem;
    }

    thead th:nth-child(1),
    tbody td:nth-child(1) {
        position: sticky;
        left: 0;
        background: #f8f9fa;
        z-index: 2;
        border-right: 1px solid #dee2e6;
    }

    tbody td:nth-child(1) {
        z-index: 1;
    }

    thead th:nth-child(1) {
        z-index: 3;
    }

    #modal_result_data .btn-group button {
        font-size: 10px;
        font-weight: 600;
    }

    .button_row {
        margin-top: 51px;
    }

    .p_description {
        font-size: 11px;
    }

    table th:nth-child(6),
    table td:nth-child(6), 
    table th:nth-child(7),
    table td:nth-child(7), 
    table th:nth-child(8),
    table td:nth-child(8) 
    {
        min-width: 80px; 
        white-space: nowrap;
    }

    input.readonly-cell {
        background-color: #f5f8fa;
        border: 1px solid #ccc;
        font-weight: 600;
        font-size: 11px;
        color: #212529;
        text-align: left;
        padding-left: 4px;
        pointer-events: none;
    }
}

tfoot tr {
    background-color: #f8f9fa;
    font-weight: bold;
}

#modal_sync_data {
    background: #0000004d;
}

#moda_reset_token {
    background: #0000004d;
}

table {
    font-family: 'Segoe UI', 'Roboto', 'Inter', 'Tahoma', sans-serif;
    font-size: 0.85rem;
}

#table_data input {
    font-family: inherit;
}

input[disabled] {
    color: #000 !important;
    opacity: 1 !important; 
    -webkit-text-fill-color: #000 !important; 
    background-color: transparent !important; 
    border: none;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}
