.ck-editor__editable,
textarea {
    min-height: 150px;
}

.select2 {
    max-width: 100%;
    width: 100% !important;
}

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}

.btn-info,
.badge-info {
    color: white;
}

.sidebar .nav-item {
    cursor: pointer;
}

.btn-default {
    color: #23282c;
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    color: #23282c;
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}
.searchable-fields {
    padding-left:5px;
}
.searchable-link {
    padding:0 5px 0 5px;
}
.searchable-link:hover   {
    cursor: pointer;
    background: #eaeaea;
}
.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid ~ .invalid-feedback {
    display: block;
}

.c-sidebar-brand .c-sidebar-brand-full:hover {
    color: inherit;
}

.custom-select.form-control-sm {
    padding: 0.25rem 1.5rem;
}

/* Global command palette */
.command-palette {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
}

.command-palette.is-open {
    display: block;
}

.command-palette__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}

.command-palette__panel {
    position: relative;
    width: min(680px, calc(100vw - 28px));
    margin: 8vh auto 0;
    overflow: hidden;
    background: var(--inno-panel, #fff);
    border: 1px solid var(--inno-border, #d8dee6);
    border-radius: 14px;
    box-shadow: var(--inno-card-shadow, 0 22px 50px rgba(15, 23, 42, 0.24));
}

.command-palette__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--inno-border, #e5e7eb);
    background: var(--inno-panel-2, #f8fbff);
}

.command-palette__title {
    margin: 0;
    color: var(--inno-text, #0f172a);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.command-palette__close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--inno-sub, #334155);
}

.command-palette__close:hover,
.command-palette__close:focus {
    background: var(--inno-muted-surface, rgba(15, 23, 42, 0.08));
}

.command-palette__search-wrap {
    position: relative;
    border-bottom: 1px solid var(--inno-border, #e5e7eb);
}

.command-palette__search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: var(--inno-sub, #64748b);
    font-size: 13px;
}

.command-palette__input {
    width: 100%;
    padding: 12px 12px 12px 34px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--inno-text, #111827);
    font-size: 14px;
}

.command-palette__input:focus {
    box-shadow: inset 0 -2px var(--inno-accent-mid, #38bdf8);
}

.command-palette__list {
    max-height: 56vh;
    overflow-y: auto;
    padding: 6px;
}

.command-palette__item {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
}

.command-palette__item-main {
    color: var(--inno-text, #0f172a);
    font-size: 13px;
    font-weight: 600;
}

.command-palette__item-meta {
    overflow: hidden;
    color: var(--inno-sub, #64748b);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.command-palette__item:hover,
.command-palette__item.is-active {
    background: var(--inno-muted-surface, rgba(59, 130, 246, 0.12));
}

.command-palette__empty {
    padding: 12px;
    color: var(--inno-sub, #64748b);
    font-size: 13px;
}

body.command-palette-open {
    overflow: hidden;
}

.command-palette-trigger {
    align-items: center;
    margin-left: 1rem;
    border-radius: 999px;
}

.command-palette-shortcut {
    color: var(--inno-sub, #475569);
    font-size: 11px;
}

/* Reports Center */
.report-center { margin-right: -15px; margin-left: -15px; }
.reports-center-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; margin-bottom: 18px; background: #fff; border-radius: 14px; }
.reports-center-header > div { flex: 0 0 300px; }
.reports-center-header h1 { margin: 0; color: #252c3c; font-size: 30px; font-weight: 700; white-space: nowrap; }
.reports-center-header p { margin: 4px 0 0; color: #737b8c; }
.reports-search { display: flex; flex: 1 1 430px; align-items: center; gap: 10px; width: auto; max-width: 600px; min-width: 260px; padding: 10px 14px; background: #f5f6fa; border-radius: 12px; }
.reports-search > i { color: #273244; }
.reports-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; }
.reports-search button { border: 0; color: #3569d4; background: transparent; font-weight: 600; }
.reports-center-header > .btn { white-space: nowrap; }
.reports-center-header > .btn-success { padding: 10px 14px; color: #fff; background: #4f82e8; border: 1px solid #39b85b; border-radius: 5px !important; box-shadow: none; font-weight: 500; letter-spacing: normal; text-transform: none; }
.reports-center-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; padding: 0; }
.reports-center-sidebar, .reports-center-table { overflow: hidden; background: #fff; border: 1px solid #eceef3; border-radius: 14px; box-shadow: 0 4px 16px rgba(20, 35, 70, .05); }
.reports-center-sidebar { padding: 14px; }
.reports-center-sidebar nav, .reports-category-nav { display: grid; gap: 4px; }
.reports-center-sidebar a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; color: #3b4354; border-radius: 10px; text-decoration: none; }
.reports-center-sidebar a i { width: 18px; color: #929aa8; text-align: center; }
.reports-center-sidebar a span { margin-left: auto; color: #758096; font-size: 13px; }
.reports-center-sidebar a.active, .reports-center-sidebar a:hover { background: #f0f2fa; color: #283553; }
.reports-center-sidebar a.active i { color: #456ee5; }
.reports-category-nav { margin-top: 28px; }
.reports-category-nav h2 { margin: 0 16px 10px; color: #7b8495; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.reports-list-heading { display: flex; align-items: center; gap: 12px; padding: 22px 28px; }
.reports-list-heading h2 { margin: 0; color: #252c3c; font-size: 26px; font-weight: 700; }
.reports-list-heading > span { padding: 6px 12px; color: #4269d7; background: #edf2ff; border-radius: 18px; font-weight: 700; }
.reports-catalog-table { width: 100%; min-width: 760px; table-layout: fixed; }
.reports-catalog-table th:nth-child(1), .reports-catalog-table td:nth-child(1) { width: 35%; }
.reports-catalog-table th:nth-child(2), .reports-catalog-table td:nth-child(2) { width: 23%; }
.reports-catalog-table th:nth-child(3), .reports-catalog-table td:nth-child(3) { width: 22%; white-space: nowrap; }
.reports-catalog-table th:nth-child(4), .reports-catalog-table td:nth-child(4) { width: 20%; white-space: nowrap; }
.reports-catalog-table thead th { padding: 16px 20px; color: #778096; background: #f8f9fb; border-top: 1px solid #eef0f4; font-size: 13px; text-transform: uppercase; white-space: nowrap; }
.reports-catalog-table tbody td { padding: 17px 20px; vertical-align: middle; border-color: #e3e6eb; }
.reports-name-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.reports-name-cell form, .reports-saved-actions form { margin: 0; }
.reports-name-cell > a { color: #3869d7; font-weight: 600; }
.report-favorite { padding: 0; border: 0; color: #b5bbc5; background: transparent; font-size: 19px; }
.report-favorite.is-favorite { color: #e7ad2d; }
.reports-saved-name { min-width: 170px; }
.reports-saved-actions { display: flex; gap: 6px; margin-top: 8px; }
.reports-create-options h3 { margin: 14px 0 6px; color: #7b8495; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.reports-create-options h3:first-child { margin-top: 0; }
.reports-create-options a { display: flex; justify-content: space-between; padding: 8px 0; color: #3869d7; }
.reports-hr-view { display: grid; gap: 16px; }
.reports-hr-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 4px; }
.reports-hr-heading h2 { margin: 0; color: #252c3c; font-size: 24px; font-weight: 700; }
.reports-hr-heading p { margin: 4px 0 0; color: #737b8c; }
.reports-hr-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 14px; padding: 24px; background: #fff; border: 1px solid #eceef3; border-radius: 14px; box-shadow: 0 4px 16px rgba(20, 35, 70, .05); }
.reports-hr-filters .form-group { margin-bottom: 8px; }
.reports-hr-submit { display: flex; align-items: end; gap: 8px; padding-bottom: 8px; }
@media (max-width: 991.98px) {
    .reports-center-header > div { flex-basis: auto; }
    .reports-center-header { align-items: stretch; flex-direction: column; padding: 20px; }
    .reports-search { width: 100%; }
    .reports-center-layout { grid-template-columns: 1fr; gap: 16px; padding: 0; }
    .reports-center-sidebar nav, .reports-category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reports-category-nav h2 { grid-column: 1 / -1; }
    .reports-hr-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reports-hr-heading { align-items: stretch; flex-direction: column; }
}
@media (max-width: 575.98px) {
    .reports-hr-filters { grid-template-columns: 1fr; }
}
