/* =========================================================
   HISARNET - MATERIAL BLUE LIGHT THEME
   Bootstrap 5.3.3 + DevExpress Bootstrap5
   HTML / ASP.NET WebForms / Bootstrap Controls
   ========================================================= */

:root {
    /* Material Blue */
    --hisar-primary: #1976d2;
    --hisar-primary-hover: #1565c0;
    --hisar-primary-active: #0d47a1;
    --hisar-primary-soft: #e3f2fd;
    /* Bootstrap mappings */
    --bs-primary: #1976d2;
    --bs-primary-rgb: 25, 118, 210;
    --bs-link-color: #1976d2;
    --bs-link-hover-color: #0d47a1;
    /* Background */
    --hisar-body-bg: #f6f8fb;
    --hisar-surface: #ffffff;
    --hisar-surface-hover: #f4f8fc;
    /* Border */
    --hisar-border: #d9e0e7;
    --hisar-border-light: #e7ebef;
    /* Text */
    --hisar-text: #263238;
    --hisar-text-muted: #607d8b;
    --hisar-text-light: #90a4ae;
    /* Status */
    --hisar-success: #2e7d32;
    --hisar-danger: #d32f2f;
    --hisar-warning: #edb100;
    /* Radius */
    --hisar-radius-sm: 4px;
    --hisar-radius: 6px;
    --hisar-radius-lg: 9px;
    /* Shadow */
    --hisar-shadow-sm: 0 2px 4px rgba(0, 0, 0, .06), 0 5px 14px rgba(0, 0, 0, .04);
    --hisar-shadow: 0 6px 18px rgba(0, 0, 0, .10);
}

/* =========================================================
   BASE
   ========================================================= */

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background-color: var(--hisar-body-bg);
    color: var(--hisar-text);
    font-family: "Segoe UI", "Open Sans", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--hisar-text);
    font-weight: 600;
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.55rem;
}

h3 {
    font-size: 1.3rem;
}

a:not(.btn) {
    color: var(--hisar-primary);
    text-decoration: none;
}

    a:not(.btn):hover,
    a:not(.btn):focus {
        color: var(--hisar-primary-active);
    }

.container,
.container-fluid {
    position: relative;
}

/* =========================================================
   BOOTSTRAP PRIMARY UTILITIES
   ========================================================= */

.text-primary,
.link-primary {
    color: var(--hisar-primary) !important;
}

    .link-primary:hover,
    .link-primary:focus,
    .link-primary-emphasis {
        color: var(--hisar-primary-active) !important;
    }

.border-primary {
    border-color: var(--hisar-primary) !important;
}

.bg-primary {
    background-color: var(--hisar-primary) !important;
}

.bg-primary-subtle {
    background-color: var(--hisar-primary-soft) !important;
}

.text-bg-primary {
    color: #fff !important;
    background-color: var(--hisar-primary) !important;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    border-radius: var(--hisar-radius);
    font-size: 14px;
    font-weight: 500;
    min-height: 36px;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.btn-primary {
    --bs-btn-bg: var(--hisar-primary);
    --bs-btn-border-color: var(--hisar-primary);
    --bs-btn-hover-bg: var(--hisar-primary-hover);
    --bs-btn-hover-border-color: var(--hisar-primary-hover);
    --bs-btn-active-bg: var(--hisar-primary-active);
    --bs-btn-active-border-color: var(--hisar-primary-active);
    --bs-btn-disabled-bg: #90caf9;
    --bs-btn-disabled-border-color: #90caf9;
}

.btn-outline-primary {
    --bs-btn-color: var(--hisar-primary);
    --bs-btn-border-color: var(--hisar-primary);
    --bs-btn-hover-bg: var(--hisar-primary);
    --bs-btn-hover-border-color: var(--hisar-primary);
    --bs-btn-active-bg: var(--hisar-primary-active);
    --bs-btn-active-border-color: var(--hisar-primary-active);
}

.btn-light {
    background: #ffffff;
    border-color: var(--hisar-border);
    color: var(--hisar-text);
}

    .btn-light:hover {
        background: #f6f8fb;
        border-color: #bcc7d2;
    }

.btn-group > .btn {
    min-height: 34px;
}

.btn-link {
    color: var(--hisar-primary) !important;
}

    .btn-link:hover,
    .btn-link:focus {
        color: var(--hisar-primary-active) !important;
    }

/* =========================================================
   FORMS
   ========================================================= */

.form-control,
.form-select,
textarea.form-control {
    min-height: 38px;
    background-color: #ffffff;
    color: var(--hisar-text);
    border: 1px solid var(--hisar-border);
    border-radius: var(--hisar-radius);
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .form-control:hover,
    .form-select:hover {
        border-color: #aeb9c4;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: var(--hisar-primary);
        box-shadow: 0 0 0 .18rem rgba(25, 118, 210, .15);
    }

    .form-control::placeholder {
        color: #9aa5af;
    }

.form-label {
    margin-bottom: 5px;
    color: var(--hisar-text-muted);
    font-size: 13px;
    font-weight: 600;
}

.form-check-input:checked {
    background-color: var(--hisar-primary);
    border-color: var(--hisar-primary);
}

.form-check-input:focus {
    border-color: var(--hisar-primary);
    box-shadow: 0 0 0 .18rem rgba(25, 118, 210, .15);
}

.input-group-text {
    background: #f8fafc;
    border-color: var(--hisar-border);
    color: var(--hisar-text-muted);
}

/* =========================================================
   CARDS
   ========================================================= */

.card {
    background: var(--hisar-surface);
    border: 1px solid var(--hisar-border-light);
    border-radius: var(--hisar-radius-lg);
    box-shadow: var(--hisar-shadow-sm);
}

.card-header {
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--hisar-border-light);
    font-weight: 600;
}

.card-body {
    padding: 16px;
}

.card-footer {
    background: #ffffff;
    border-top: 1px solid var(--hisar-border-light);
}

.card a:not(.btn) {
    color: var(--hisar-primary);
}

    .card a:not(.btn):hover,
    .card a:not(.btn):focus {
        color: var(--hisar-primary-active);
    }

/* =========================================================
   TABLES
   ========================================================= */

.table {
    margin-bottom: 0;
    --bs-table-bg: #ffffff;
    --bs-table-color: var(--hisar-text);
    --bs-table-border-color: var(--hisar-border-light);
}

    .table > thead {
        background: #f8fafc;
    }

        .table > thead > tr > th {
            padding: 10px 12px;
            color: var(--hisar-text-muted);
            font-size: 13px;
            font-weight: 600;
            border-bottom: 1px solid var(--hisar-border);
        }

    .table > tbody > tr > td {
        padding: 10px 12px;
        vertical-align: middle;
    }

.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: #eef6fd;
}

/* =========================================================
   DEVEXPRESS BOOTSTRAP GRID
   ========================================================= */

.dxbs-grid {
    background: #ffffff;
    border: 1px solid var(--hisar-border-light);
    border-radius: var(--hisar-radius-lg);
    overflow: hidden;
}

    .dxbs-grid .table {
        margin-bottom: 0;
    }

    .dxbs-grid tbody tr {
        transition: background-color .12s ease;
    }

        .dxbs-grid tbody tr:hover {
            background-color: #eef6fd;
        }

    .dxbs-grid .table-active,
    .dxbs-grid .dxbs-selected {
        background-color: var(--hisar-primary-soft) !important;
    }

    .dxbs-grid a:not(.btn),
    .dxbs-grid .btn-link {
        color: var(--hisar-primary) !important;
    }

        .dxbs-grid a:not(.btn):hover,
        .dxbs-grid a:not(.btn):focus,
        .dxbs-grid .btn-link:hover,
        .dxbs-grid .btn-link:focus {
            color: var(--hisar-primary-active) !important;
        }

/* =========================================================
   DEVEXPRESS BOOTSTRAP EDITORS
   ========================================================= */

.dxbs-edit,
.dxbs-combobox {
    border-radius: var(--hisar-radius);
}

    .dxbs-edit input,
    .dxbs-combobox input {
        font-size: 14px;
    }

/* =========================================================
   DROPDOWN
   ========================================================= */

.dropdown-menu {
    padding: 5px;
    background: #ffffff;
    border: 1px solid var(--hisar-border-light);
    border-radius: 8px;
    box-shadow: var(--hisar-shadow);
}

.dropdown-item {
    padding: 7px 10px;
    border-radius: 5px;
    color: var(--hisar-text);
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: var(--hisar-primary-soft);
        color: var(--hisar-primary);
    }

    .dropdown-item.active,
    .dropdown-item:active {
        background: var(--hisar-primary);
        color: #ffffff;
    }

/* =========================================================
   NAVBAR
   ========================================================= */

.hisar-navbar,
.navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--hisar-border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.navbar-brand {
    color: var(--hisar-text);
    font-weight: 600;
}

.hisar-navbar .nav-link,
.navbar .nav-link {
    color: var(--hisar-text-muted) !important;
    font-weight: 500;
    border-radius: 6px;
    padding: .55rem .65rem !important;
}

    .hisar-navbar .nav-link:hover,
    .hisar-navbar .nav-link:focus,
    .hisar-navbar .nav-link.show,
    .navbar .nav-link:hover {
        color: var(--hisar-primary) !important;
        background-color: var(--hisar-primary-soft);
    }

/* =========================================================
   BRAND LOGO
   ========================================================= */

.hisar-brand {
    display: inline-flex;
    align-items: center;
    padding: 5px 0;
    margin-right: 24px;
    text-decoration: none;
}

.hisar-brand-logo {
    display: block;
    width: auto;
    height: 32px;
    object-fit: contain;
    transition: opacity .15s ease;
}

.hisar-brand:hover .hisar-brand-logo {
    opacity: .88;
}

@media (max-width: 575.98px) {
    .hisar-brand {
        margin-right: 10px;
    }

    .hisar-brand-logo {
        height: 28px;
    }
}

/* =========================================================
   USER AREA
   ========================================================= */

.hisar-user-avatar {
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid var(--hisar-primary-soft);
    background: #fff;
}

.hisar-user-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hisar-logout:hover {
    color: var(--hisar-primary);
    border-color: var(--hisar-primary);
    background: var(--hisar-primary-soft);
}

/* =========================================================
   TABS / PILLS
   ========================================================= */

.nav-tabs .nav-link {
    color: var(--hisar-text-muted);
    border-radius: 6px 6px 0 0;
}

    .nav-tabs .nav-link:hover,
    .nav-tabs .nav-link:focus {
        color: var(--hisar-primary);
        background: var(--hisar-primary-soft);
    }

    .nav-tabs .nav-link.active {
        color: var(--hisar-primary);
        background: #ffffff;
        border-color: var(--hisar-border-light) var(--hisar-border-light) #ffffff;
        font-weight: 600;
    }

.nav-pills .nav-link.active {
    color: #ffffff;
    background: var(--hisar-primary);
}

/* =========================================================
   MODAL
   ========================================================= */

.modal-content {
    border: 1px solid var(--hisar-border-light);
    border-radius: var(--hisar-radius-lg);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .14);
}

.modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--hisar-border-light);
}

.modal-title {
    font-size: 17px;
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid var(--hisar-border-light);
}

/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    border-radius: 8px;
    border-width: 1px;
}

.alert-danger {
    background: #fff4f4;
    border-color: #efc2c2;
    color: #a4262c;
}

.alert-success {
    background: #f1faf1;
    border-color: #bee2be;
    color: #0b6a0b;
}

/* =========================================================
   BADGES
   ========================================================= */

.badge {
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
    --bs-pagination-color: var(--hisar-primary);
    --bs-pagination-hover-color: var(--hisar-primary-active);
    --bs-pagination-active-bg: var(--hisar-primary);
    --bs-pagination-active-border-color: var(--hisar-primary);
}

.page-link {
    border-color: var(--hisar-border-light);
}

    .page-link:focus {
        box-shadow: 0 0 0 .15rem rgba(25, 118, 210, .15);
    }

/* =========================================================
   ACCORDION
   ========================================================= */

.accordion-button:not(.collapsed) {
    color: var(--hisar-primary-active);
    background: var(--hisar-primary-soft);
}

.accordion-button:focus {
    border-color: var(--hisar-primary);
    box-shadow: 0 0 0 .18rem rgba(25, 118, 210, .15);
}

/* =========================================================
   LIST GROUP
   ========================================================= */

.list-group-item.active {
    background: var(--hisar-primary);
    border-color: var(--hisar-primary);
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    color: var(--hisar-primary-active);
    background-color: var(--hisar-primary-soft);
}

/* =========================================================
   PROGRESS / SPINNER
   ========================================================= */

.progress-bar {
    background-color: var(--hisar-primary);
}

.spinner-border.text-primary,
.spinner-grow.text-primary {
    color: var(--hisar-primary) !important;
}

/* =========================================================
   DATEPICKER
   ========================================================= */

.datepicker {
    padding: 8px;
    border: 1px solid var(--hisar-border-light);
    border-radius: 8px;
    box-shadow: var(--hisar-shadow);
}

    .datepicker table tr td.active,
    .datepicker table tr td.active:hover {
        background: var(--hisar-primary) !important;
    }

/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: #f5f7fa;
}

::-webkit-scrollbar-thumb {
    background: #c6d0da;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #aab7c3;
    }

/* =========================================================
   UTILITIES
   ========================================================= */

.text-muted {
    color: var(--hisar-text-muted) !important;
}

.bg-light {
    background-color: #f8fafc !important;
}

/* .border is intentionally not overridden globally. */

/* =========================================================
   FILTER PANEL
   ========================================================= */

.hisar-filter-panel {
    padding: 14px;
    margin-bottom: 15px;
    background: #ffffff;
    border: 1px solid var(--hisar-border-light);
    border-radius: var(--hisar-radius-lg);
    box-shadow: var(--hisar-shadow-sm);
}

/* =========================================================
   PAGE TITLE
   ========================================================= */

.hisar-page-title {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    color: var(--hisar-text);
}

.hisar-page-subtitle {
    margin-top: -8px;
    margin-bottom: 16px;
    color: var(--hisar-text-muted);
    font-size: 13px;
}

/* =========================================================
   SMALL META INFORMATION
   ========================================================= */

.hisar-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    color: var(--hisar-text-muted);
    font-size: 12px;
}

    .hisar-meta > span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
