form .error {
    color: red;
}

.img-1 {
    width: 80px;
    height: 80px;
}

.img-2 {
    width: 150px;
    height: 150px;
}

.img-3 {
    width: 200px;
    height: 200px;
}

table.tablejs-1 tbody td:nth-child(1), table.tablejs-1 tbody td:last-child {
    text-align: center;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before {
    position: unset !important;
    margin-top: 0 !important;
    margin-bottom: 1em;
}

/* Query builder */
.float-end {
    float: right !important;
}

.rule-container select.form-select {
    width: auto;
    height: 34px;
    padding: 6px 12px;
    border-radius: 4px;
}

.toasts-top-right.fixed{
    height: 100%;
    overflow-y: scroll;
}

#dataset-fields {
    position: fixed;
    top: 0;
    right: 0;
    background-color: white;
    z-index: 1034;
    padding: 15px 10px;
    box-shadow: 1px 1px 8px 1px #888888;
    min-height: 200px;
    max-height: 450px;
    overflow: auto;
    width: 350px;
    scrollbar-width: thin;
}

#dataset-fields #dtf-header{
    font-size: 1.1em;
    font-weight: 700;
    padding-bottom: 10px;
}

#dataset-fields #dtf-close{
    float: right;
    border: 1px solid #c6c6c6;
    padding: 0px 8px;
}

#dataset-ouput-list-viewer {
    position: fixed;
    top: 0;
    right: 0;
    background-color: white;
    z-index: 1035;
    padding: 15px 10px;
    box-shadow: 1px 1px 8px 1px #888888;
    min-height: 200px;
    max-height: 450px;
    overflow: auto;
    width: 350px;
    scrollbar-width: thin;
}

#dataset-ouput-list-viewer #dtfo-header{
    font-size: 1.1em;
    font-weight: 700;
    padding-bottom: 10px;
}

#dataset-ouput-list-viewer #dtfo-close{
    float: right;
    border: 1px solid #c6c6c6;
    padding: 0px 8px;
}
    
@media only screen and (max-width: 600px) {
    /* body {
      background-color: lightblue;
    } */
}

/* Widget icon vertical centering override */
.small-box .icon {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    padding: 15px !important;
}

.small-box .icon > i {
    position: static !important;
    font-size: 70px !important;
}

/* Fix table responsive when sidebar toggle */
.content-wrapper {
    transition: margin-left 0.3s ease-in-out;
}

.sidebar-collapse .content-wrapper {
    margin-left: 0;
}

.content-wrapper .table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* DataTables responsive fix */
table.dataTable {
    width: 100% !important;
    table-layout: auto;
    max-width: 100%;
}

table.dataTable thead th,
table.dataTable tbody td {
    word-wrap: break-word;
    word-break: break-word;
    max-width: 200px;
}

/* Fix table width calculation */
.dataTables_wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Ensure container adjusts properly */
.container-fluid {
    transition: all 0.3s ease-in-out;
}

/* Force table redraw on sidebar change */
body.sidebar-collapse table.dataTable,
body:not(.sidebar-collapse) table.dataTable {
    width: 100% !important;
}

/* Responsive table improvements */
@media (max-width: 768px) {
    table.dataTable thead th,
    table.dataTable tbody td {
        max-width: 150px;
        font-size: 0.875rem;
    }
    
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        margin-bottom: 10px;
    }
}

/* Prevent horizontal scroll on small screens */
.card-body {
    overflow-x: auto;
}

/* Table action buttons responsive */
table.dataTable .btn-group {
    white-space: nowrap;
}