﻿/* Base override */
.jqx-widget {
    background-color: #ffffff; /* pure white base */
    color: #212529; /* dark text */
    font-family: 'Segoe UI', sans-serif;
}
/* Add padding to all cells */
.jqx-grid-cell-left-align {
    margin: 8px !important; /* adjust px as needed */
}

/* Optional: header cells too */
.jqx-grid-column-header {
    margin-left: 8px !important;
}
/* Buttons */
.jqx-button {
    background-color: #0056b3; /* stronger blue */
    color: #ffffff;
    border: 1px solid #004085;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s, border-color 0.3s;
}

    .jqx-button:hover {
        background-color: #003d7a;
        border-color: #002952;
    }

/* Inputs and Dropdowns */
.jqx-input, .jqx-dropdownlist-content, .jqx-listitem-state-normal {
    background-color: #ffffff;
    color: #212529;
    border: 2px solid #007bff; /* bright blue border */
    border-radius: 4px;
    transition: border-color 0.3s;
}

    .jqx-input:focus, .jqx-dropdownlist-state-hover {
        border-color: #0056b3;
        box-shadow: 0 0 5px #0056b3;
    }

/* Grid and list headers */
.jqx-grid-column-header, .jqx-grid-header {
    background-color: #4176A4; /* bright primary blue */
    color: #ffffff;
    border-bottom: 2px solid #0056b3;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Grid rows: default state */
.jqx-grid-cell {
    background-color: #ffffff;
    color: #212529;
    border-bottom: 1px solid #dee2e6;
}

/* Alternate row */
.jqx-grid-cell-alt {
    background-color: #f1f5fb; /* very light blue */
}

/* Selected row */
.jqx-grid-cell-selected, .jqx-fill-state-selected {
    background-color: #17a2b8; /* Bootstrap Info blue */
    color: #ffffff;
    font-weight: 600;
}

/* Hovered row */
.jqx-fill-state-hover,
.jqx-grid-row:hover,
.jqx-grid-row-hover {
    background-color: #cce5ff; /* bright sky blue highlight */
    color: #004085;
    cursor: pointer;
}

/* Group rows */
.jqx-grid-group {
    background-color: #0056b3; /* darker blue */
    color: #ffffff;
    font-weight: 700;
    border-top: 2px solid #003d7a;
    border-bottom: 2px solid #003d7a;
    padding: 6px 10px;
}

/* Scrollbars */
.jqx-scrollbar-thumb-state-normal {
    background-color: #007bff;
    border-radius: 4px;
}

.jqx-scrollbar-thumb-state-hover {
    background-color: #0056b3;
}

/* Tooltips */
.jqx-tooltip {
    background-color: #0056b3;
    color: #ffffff;
    border: 1px solid #003d7a;
    border-radius: 4px;
}

/* Checkbox and radio */
.jqx-checkbox-default, .jqx-radiobutton-default {
    background-color: #ffffff;
    border: 2px solid #007bff;
    color: #212529;
    border-radius: 4px;
}

.jqx-checkbox-checked, .jqx-radiobutton-checked {
    background-color: #17a2b8;
    border-color: #117a8b;
}

/* Group panel */
.jqx-grid-groups-header {
    background-color: #e9f2ff;
    color: #004085;
    border-bottom: 2px solid #007bff;
    font-weight: 600;
}

/* Group summary */
.jqx-grid-statusbar, .jqx-grid-group-summary {
    background-color: #d1ecf1;
    color: #0c5460;
    border-top: 2px solid #bee5eb;
    font-weight: 700;
}

/* Grouped column area */
.jqx-group {
    background-color: #f0f4ff;
    color: #004085;
    border: 1px solid #b8d1ff;
}

/* Arrow icons */
.jqx-icon-arrow-right, .jqx-icon-arrow-down {
    color: #ffffff;
}

/* Custom button style */
.grid-view-btn {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    font-weight: 600;
    transition: background-color 0.3s;
}

    .grid-view-btn:hover {
        background-color: #003d7a;
    }
