@charset "UTF-8";

/* ------------------ PRIMARY COLOR (matches logo) ------------------ */
:root {
    --primary-color: #3A8FBF;
    --primary-hover: #2E7AA6;
    --primary-light: #e5f0f7;
}

.btn-primary,
.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus:active,
.btn-primary.active,
.btn-primary:first-child:active,
.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}

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

/* Power icon hover - button and aura */
.nav-icon-hover:hover {
    background-color: transparent !important;
}

.nav-icon-hover:hover::before {
    background-color: var(--primary-light) !important;
}

.nav-icon-hover:hover i {
    color: var(--primary-color) !important;
}

/* Sidebar hover state */
.sidebar-item > .sidebar-link:hover {
    background-color: #f0f5f8 !important;
    color: var(--primary-color) !important;
}

.sidebar-item > .sidebar-link:hover i {
    color: var(--primary-color) !important;
}

/* Sidebar active/selected state */
.sidebar-item.selected > .sidebar-link,
.sidebar-item.selected > .sidebar-link:hover {
    background-color: #c8e1ed !important;
    color: var(--primary-color) !important;
}

.sidebar-item.selected > .sidebar-link i {
    color: var(--primary-color) !important;
}

/* ------------------ GENERAL BODY ------------------ */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f4f6f8;
    margin: 0;
    padding-bottom: 40px;
    color: #333;
}

/* ------------------ NAVBAR & SIDEBAR ------------------ */
.sidebar-nav {
    padding: 10px 0;
}

@media (max-width: 980px) { 
    .navbar-text.pull-right {
        float: none;
        padding: 0 5px;
    }
}

/* ------------------ WINDOWS / CONTAINER ------------------ */
.window {
    min-height: 700px;
    padding: 20px;
}

/* ------------------ TABLE STYLING ------------------ */
.table caption {
    font-size: 1.4em;
    padding-bottom: 10px;
}

.table td input[type="text"],
.table select,
.table textarea {
    margin-bottom: 0;
}

.table th,
.table td {
    vertical-align: middle;
}

.table label {
    margin-bottom: 0;
}

.table label.required,
.table tr.required label {
    font-weight: bold;
}

.table .input-append, 
.table .input-prepend {
    margin-bottom: 0;
}

/* ------------------ RADIO BUTTONS ------------------ */
.radiolist {
    display: flex;
    align-items: center;
    gap: 5px;
}

.radiolist input {
    margin-right: 5px;
}

/* ------------------ FORM LAYOUT ------------------ */
.standart_width {
    width: 650px;
    max-width: 100%;
}

.form-col {
    flex: 1;
    min-width: 200px;
    margin: 0 5px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

/* ------------------ HEADERS & LABELS ------------------ */
.header-text {
    font-size: 20px;
    font-weight: bold;
}

/* ------------------ BUTTON LIST & MODULES ------------------ */
.button_list .module_list,
.button_list .module_list li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.button_list li {
    display: inline-block;
    margin: 5px;
}

.module_list li {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    background: var(--primary-color);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.module_list li:hover {
    background: var(--primary-hover);
}

/* ------------------ MODULE FORM ------------------ */
.module_form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.module_form div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.module_form div label {
    margin-left: 0;
}

/* ------------------ HIDDEN ELEMENTS ------------------ */
.d-none {
    display: none;
}

/* ------------------ RESPONSIVE ------------------ */
@media (max-width: 700px) {
    .form-row {
        flex-direction: column;
    }
    .module_form {
        justify-content: flex-start;
    }
}

/* Page centering */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login card */
.login-card {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 420px;
}

.login-title {
    text-align: center;
    margin-bottom: 25px;
}

.login-title h1 {
    margin: 0;
    font-size: 22px;
}

.login-title p {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.login-card label {
    font-weight: bold;
}

.login-card input {
    padding: 8px;
    box-sizing: border-box;
}

.login-card button {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
}

.build-info {
    margin-top: 25px;
    text-align: center;
    font-size: 12px;
    color: #777;
}

.login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.login-brand-logo {
    max-width: 400px;  /* adjust size here */
    width: 100%;
    height: auto;
}

td.actions,
td.nowrap {
  white-space: nowrap;
}

/* DataTable action buttons hover */
td.actions .btn-outline-link:hover {
    color: var(--primary-color) !important;
}

td.actions .btn-outline-link:hover i {
    color: var(--primary-color) !important;
}

/* DataTable header */
table.dataTable thead th {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* DataTable sorting icons - make them white */
table.dataTable thead th.sorting::before,
table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::before,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::before,
table.dataTable thead th.sorting_desc::after {
    opacity: 0.7 !important;
    filter: brightness(0) invert(1) !important;
}

table.dataTable thead th.sorting_asc::before,
table.dataTable thead th.sorting_desc::after {
    opacity: 1 !important;
}

/* DataTable controls spacing */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
}

/* Fix header alignment with scrollX */
.dataTables_scrollHead,
.dataTables_scrollHeadInner,
.dataTables_scrollHeadInner table {
    width: 100% !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
}

.dataTables_scrollBody {
    overflow-x: auto !important;
}

/* DataTable row colors */
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #ffffff !important;
    --bs-table-accent-bg: #ffffff !important;
}

.table-striped > tbody > tr:nth-of-type(even) > * {
    background-color: var(--primary-light) !important;
    --bs-table-accent-bg: var(--primary-light) !important;
}

table.dataTable tbody tr:hover > * {
    background-color: #c8e1ed !important;
    --bs-table-accent-bg: #c8e1ed !important;
}

/* DataTable pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    font-weight: 600 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:focus {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    background-image: none !important;
}

[class*="paginate_button"][class*="current"] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    -moz-text-fill-color: #ffffff !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:not(.disabled):hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:not(.disabled):active {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #ffffff !important;
}

.form-control[readonly] {
  background-color: #f8f9fa;
  opacity: 1;
  cursor: default;
}

/* Required field asterisk */
.required-asterisk {
    color: red;
    margin-left: 3px;
}

/* Invalid form field */
.is-invalid {
    border: 2px solid red !important;
}
input[type="checkbox"][disabled] {
  cursor: not-allowed;
}

