:root {
    --ctheme-bg: #eef4f9;
    --ctheme-surface: #ffffff;
    --ctheme-surface-soft: #f8fbfd;
    --ctheme-line: #d9e6f0;
    --ctheme-line-strong: #c7d8e4;
    --ctheme-text: #173547;
    --ctheme-muted: #697f91;
    --ctheme-brand: #0d4a63;
    --ctheme-brand-strong: #09384d;
    --ctheme-accent: #f2a132;
    --ctheme-accent-soft: #fff2df;
    --ctheme-success: #1d9c74;
    --ctheme-danger: #df6c57;
    --ctheme-shadow: 0 18px 40px rgba(18, 40, 56, 0.08);
    --ctheme-shadow-soft: 0 10px 24px rgba(18, 40, 56, 0.06);
    --ctheme-radius-lg: 26px;
    --ctheme-radius-md: 18px;
    --ctheme-radius-sm: 12px;
    --ctheme-sidebar-width: 280px;
}

html,
body {
    min-height: 100%;
}

body.ctheme-body {
    background: radial-gradient(circle at top left, rgba(242, 161, 50, 0.08), transparent 24%),
    radial-gradient(circle at right center, rgba(13, 74, 99, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fbfd 0%, var(--ctheme-bg) 100%);
    color: var(--ctheme-text);
    overflow-x: hidden;
}

.ctheme-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ctheme-header {
    position: sticky;
    top: 0;
    z-index: 1050;
}

.ctheme-navbar {
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, var(--ctheme-brand-strong) 0%, var(--ctheme-brand) 100%);
    box-shadow: 0 18px 36px rgba(13, 74, 99, 0.18);
}

.ctheme-navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 84px;
    padding: 0 20px;
}

.ctheme-navbar__start,
.ctheme-navbar__end {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctheme-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 20px;
}

.ctheme-sidebar-toggle:hover,
.ctheme-sidebar-toggle:focus {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.ctheme-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 10px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(18, 40, 56, 0.08);
}

.ctheme-brand:hover,
.ctheme-brand:focus {
    text-decoration: none;
}

.ctheme-brand__image {
    width: 230px;
    max-width: 100%;
    height: auto;
    display: block;
}

.ctheme-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.ctheme-chip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 16px;
}

.ctheme-chip__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ctheme-chip__text small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ctheme-chip__text strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.ctheme-user {
    position: relative;
}

.ctheme-user__toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.ctheme-user__toggle:hover,
.ctheme-user__toggle:focus {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.18);
}

.ctheme-user__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f4b247 0%, var(--ctheme-accent) 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.ctheme-user__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ctheme-user__text small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ctheme-user__text strong {
    color: #ffffff;
    font-size: 14px;
}

.ctheme-layout {
    display: flex;
    flex: 1 0 auto;
    min-height: 0;
}

.ctheme-sidebar {
    width: var(--ctheme-sidebar-width);
    flex: 0 0 var(--ctheme-sidebar-width);
    padding: 22px 16px;
    background: linear-gradient(180deg, rgba(251, 253, 255, 0.98) 0%, rgba(238, 244, 249, 0.98) 100%);
    border-right: 1px solid var(--ctheme-line);
    overflow-y: auto;
}

.ctheme-sidebar__intro {
    margin-bottom: 18px;
    /*padding: 20px;*/
    padding: 12px 14px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(13, 74, 99, 0.96), rgba(22, 95, 126, 0.94));
    box-shadow: var(--ctheme-shadow);
    color: #ffffff;
}

.ctheme-sidebar__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ctheme-sidebar__title {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.25;
}

.ctheme-sidebar__copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.55;
}

.ctheme-sidebar .sidebar-menu,
.ctheme-sidebar .treeview-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ctheme-sidebar .sidebar-menu > li.header {
    display: none;
}

.ctheme-sidebar .sidebar-menu > li {
    margin-bottom: 8px;
}

.ctheme-sidebar .sidebar-menu > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    color: var(--ctheme-text);
    font-size: 14px;
    font-weight: 600;
    white-space: normal;
}

.ctheme-sidebar .sidebar-menu > li > a > .fa,
.ctheme-sidebar .sidebar-menu > li > a > .glyphicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 0;
    border-radius: 13px;
    background: #e7f0f7;
    color: var(--ctheme-brand);
}

.ctheme-sidebar .sidebar-menu > li > a:hover,
.ctheme-sidebar .sidebar-menu > li > a:focus,
.ctheme-sidebar .sidebar-menu > li.active > a,
.ctheme-sidebar .sidebar-menu > li.open > a,
.ctheme-sidebar .sidebar-menu > li.menu-open > a {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.98);
    color: var(--ctheme-brand);
    box-shadow: var(--ctheme-shadow-soft);
}

.ctheme-sidebar .sidebar-menu > li.active > a > .fa,
.ctheme-sidebar .sidebar-menu > li.active > a > .glyphicon,
.ctheme-sidebar .sidebar-menu > li.open > a > .fa,
.ctheme-sidebar .sidebar-menu > li.open > a > .glyphicon {
    background: rgba(242, 161, 50, 0.18);
    color: var(--ctheme-accent);
}

.ctheme-sidebar .sidebar-menu > li > a > .pull-right-container,
.ctheme-sidebar .sidebar-menu > li > a > .pull-right {
    margin-left: auto;
    position: static;
    right: auto;
}

.ctheme-sidebar .treeview-menu {
    display: none;
    margin: 8px 0 8px 18px;
    padding: 8px;
    border: 1px solid var(--ctheme-line);
    border-radius: 18px;
    background: rgba(248, 251, 254, 0.95);
}

.ctheme-sidebar .treeview.open > .treeview-menu,
.ctheme-sidebar .treeview.active > .treeview-menu,
.ctheme-sidebar .treeview.menu-open > .treeview-menu {
    display: block;
}

.ctheme-sidebar .treeview-menu > li > a {
    display: block;
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: 14px;
    color: var(--ctheme-muted);
    background: rgba(255, 255, 255, 0.92);
    font-size: 13px;
}

.ctheme-sidebar .treeview-menu > li:last-child > a {
    margin-bottom: 0;
}

.ctheme-sidebar .treeview-menu > li > a:hover,
.ctheme-sidebar .treeview-menu > li.active > a {
    text-decoration: none;
    color: var(--ctheme-brand);
    background: rgba(13, 74, 99, 0.08);
}

.ctheme-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ctheme-main__inner {
    width: 100%;
    max-width: 100%;
    padding: 22px;
}

.ctheme-breadcrumbs {
    margin-bottom: 18px;
}

.ctheme-breadcrumbs .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--ctheme-muted);
    font-size: 13px;
}

.ctheme-breadcrumbs .breadcrumb > li + li:before {
    color: #a0b3c2;
}

.ctheme-footer {
    padding: 18px 24px 22px;
    border-top: 1px solid var(--ctheme-line);
    background: rgba(248, 251, 254, 0.94);
    color: var(--ctheme-muted);
}

.ctheme-footer a {
    color: var(--ctheme-brand);
}

.box,
.panel,
.well,
.modal-content,
.ctheme-card,
.ctheme-surface {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(217, 230, 240, 0.92);
    border-radius: var(--ctheme-radius-lg);
    box-shadow: var(--ctheme-shadow);
}

.box {
    margin-bottom: 24px;
    max-width: 100%;
}

.box.box-primary {
    border-top: 3px solid var(--ctheme-brand);
}

.box-header,
.panel-heading,
.modal-header {
    padding: 8px 18px;
    border-bottom: 1px solid #e6eef5;
   /* background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);*/
    /*text-align-last: center;*/
}

.position-right {
    text-align-last: right;
    padding-bottom: 22px;
}

.position-left {
    text-align-last: left;
}

.position-center {
    text-align-last: center;
}

.box-title,
.panel-title,
.modal-title {
    color: var(--ctheme-text);
    font-weight: 700;
}

.box-body,
.box-footer {
    padding: 18px;
}

.box-body {
    max-width: 100%;
}

.box-footer,
.modal-footer {
    border-top: 1px solid #e6eef5;
    background: #fbfdff;
}

.form-control,
.input-group-addon,
.select2-container--krajee .select2-selection,
.kv-fileinput-caption {
    min-height: 46px;
    border-color: #d7e3ec;
    border-radius: 12px;
    box-shadow: none;
}

.input-group-addon {
    background: #f7fafd;
    color: var(--ctheme-muted);
}

.select2-container,
.select2-container--krajee {
    width: 100% !important;
}

.select2-container .select2-selection,
.select2-container--krajee .select2-selection,
.select2-container .select2-selection--single,
.select2-container--krajee .select2-selection--single,
.form-group .select2-container .select2-selection--single,
.form-group .select2-container--krajee .select2-selection--single,
.grid-view .filters .select2-container .select2-selection--single,
.grid-view .filters .select2-container--krajee .select2-selection--single,
.kv-grid-table .filters .select2-container .select2-selection--single,
.kv-grid-table .filters .select2-container--krajee .select2-selection--single {
    min-height: 46px !important;
    height: 46px !important;
    box-sizing: border-box;
    border-radius: 12px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered,
.select2-container--krajee .select2-selection--single .select2-selection__rendered {
    display: block !important;
    height: auto !important;
    line-height: 35px !important;
    padding-right: 36px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    color: var(--ctheme-muted);
}

.select2-container .select2-selection--single .select2-selection__placeholder,
.select2-container--krajee .select2-selection--single .select2-selection__placeholder {
    display: block !important;
    line-height: 35px !important;
}

.select2-container .select2-selection--single .select2-selection__arrow,
.select2-container--krajee .select2-selection--single .select2-selection__arrow,
.form-group .select2-container .select2-selection--single .select2-selection__arrow,
.form-group .select2-container--krajee .select2-selection--single .select2-selection__arrow,
.grid-view .filters .select2-container .select2-selection--single .select2-selection__arrow,
.grid-view .filters .select2-container--krajee .select2-selection--single .select2-selection__arrow,
.kv-grid-table .filters .select2-container .select2-selection--single .select2-selection__arrow,
.kv-grid-table .filters .select2-container--krajee .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    top: 1px !important;
    right: 8px !important;
}

.select2-container .select2-selection__clear,
.select2-container--krajee .select2-selection__clear {
    margin-top: 0 !important;
    line-height: 35px !important;
}

.select2-container .select2-selection--multiple,
.select2-container--krajee .select2-selection--multiple {
    min-height: 46px !important;
    height: auto !important;
}

.select2-container .select2-selection--multiple .select2-selection__rendered,
.select2-container--krajee .select2-selection--multiple .select2-selection__rendered {
    padding: 5px 12px;
}

.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field,
.select2-container--krajee .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin-top: 5px;
}

.form-control:focus,
.select2-container--krajee.select2-container--focus .select2-selection,
.has-success .select2-container--open .select2-selection,
.has-success .select2-container--krajee.select2-container--focus .select2-selection {
    border-color: rgba(13, 74, 99, 0.45);
    box-shadow: 0 0 0 4px rgba(13, 74, 99, 0.08);
}

.help-block {
    color: var(--ctheme-muted);
}

.btn {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: none;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:hover,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
    background: linear-gradient(135deg, var(--ctheme-brand-strong) 0%, var(--ctheme-brand) 100%);
    border-color: var(--ctheme-brand);
    color: #ffffff;
}

.btn-default,
.btn-default:hover,
.btn-default:focus {
    background: #ffffff;
    border-color: #d7e2eb;
    color: var(--ctheme-brand);
}

.btn-success,
.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, #1a9c73 0%, #1fb587 100%);
    border-color: #1a9c73;
}

.btn-info,
.btn-info:hover,
.btn-info:focus {
    background: linear-gradient(135deg, #39bad0 0%, #4ccbe0 100%);
    border-color: #39bad0;
}

.btn-danger,
.btn-danger:hover,
.btn-danger:focus {
    background: linear-gradient(135deg, #dc6c57 0%, #ea7e6a 100%);
    border-color: #dc6c57;
}

.alert {
    border-radius: 16px;
    box-shadow: var(--ctheme-shadow-soft);
}

.table-responsive,
.kv-grid-container,
.grid-view {
    max-width: 100%;
    overflow-x: visible;
}

.table > thead > tr > th {
    background: #f5f8fb;
    border-bottom: 1px solid #deebf3;
    color: var(--ctheme-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th {
    border-top-color: #e7eef5;
    vertical-align: middle;
}

.table-hover > tbody > tr:hover {
    background: rgba(13, 74, 99, 0.03);
}

.grid-view .filters > td,
.grid-view .filters > th,
.kv-grid-table .filters > td,
.kv-grid-table .filters > th {
    padding: 10px 8px;
    background: #fbfdff;
    vertical-align: top;
}

.grid-view .filters .form-control,
.grid-view .filters select,
.grid-view .filters .select2-container,
.kv-grid-table .filters .form-control,
.kv-grid-table .filters select,
.kv-grid-table .filters .select2-container {
    width: 100% !important;
    min-width: 0;
}

.pagination > li > a,
.pagination > li > span {
    margin: 0 3px;
    border-radius: 12px;
    border-color: #d8e3ec;
    color: var(--ctheme-brand);
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    background: var(--ctheme-brand);
    border-color: var(--ctheme-brand);
    color: #ffffff;
}

ul.pagination {
    display: table;
    margin: 20px auto;
}

.nav-tabs {
    border-bottom-color: #dce7ef;
}

.nav-tabs > li > a {
    border-radius: 14px 14px 0 0;
    color: var(--ctheme-muted);
    font-weight: 600;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: var(--ctheme-brand);
    border-color: #dce7ef #dce7ef transparent;
    background: #ffffff;
}

.dropdown-menu {
    border-radius: 16px;
    border-color: #d9e4ec;
    box-shadow: var(--ctheme-shadow-soft);
}

.dropdown-menu > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    background: var(--ctheme-brand);
}

.ctheme-auth {
    padding: 42px 15px;
}

.ctheme-auth__grid {
    display: flex;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
}

.ctheme-auth__showcase,
.ctheme-auth__form {
    flex: 1 1 380px;
}

.ctheme-auth__showcase {
    padding: 16px 8px 16px 0;
}

.ctheme-auth__eyebrow,
.ctheme-home__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--ctheme-accent-soft);
    color: #b46d15;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ctheme-auth__title,
.ctheme-home__title {
    margin: 0 0 14px;
    color: var(--ctheme-brand);
    font-size: 38px;
    line-height: 1.1;
}

.ctheme-auth__lead,
.ctheme-home__lead {
    margin: 0;
    color: var(--ctheme-muted);
    font-size: 16px;
    line-height: 1.7;
}

.ctheme-auth__feature-list {
    margin-top: 24px;
}

.ctheme-auth__feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.94);
    box-shadow: var(--ctheme-shadow-soft);
}

.ctheme-auth__feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ctheme-brand-strong) 0%, var(--ctheme-brand) 100%);
    color: #ffffff;
    font-size: 18px;
}

.ctheme-auth__feature strong {
    display: block;
    margin-bottom: 4px;
}

.ctheme-auth__panel,
.ctheme-home__hero,
.ctheme-home__module {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(217, 230, 240, 0.92);
    border-radius: var(--ctheme-radius-lg);
    box-shadow: var(--ctheme-shadow);
}

.ctheme-auth__panel {
    max-width: 460px;
    margin-left: auto;
    overflow: hidden;
}

.ctheme-auth__panel-body {
    padding: 28px 28px 24px;
}

.ctheme-auth__brand {
    margin-bottom: 18px;
    text-align: center;
}

.ctheme-auth__brand-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
}

.ctheme-auth__card-title {
    margin: 0 0 18px;
    text-align: center;
    color: var(--ctheme-text);
    font-size: 18px;
    font-weight: 700;
}

.ctheme-auth__footer {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e6eef5;
    color: var(--ctheme-muted);
    text-align: center;
    font-size: 13px;
}

.ctheme-home {
    display: grid;
    gap: 24px;
}

.ctheme-home__hero {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(280px, 420px);
    gap: 28px;
    align-items: center;
    padding: 30px;
}

.ctheme-home__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.ctheme-home__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.ctheme-home__stat {
    padding: 16px;
    border-radius: 18px;
    background: rgba(13, 74, 99, 0.05);
    border: 1px solid rgba(13, 74, 99, 0.06);
}

.ctheme-home__stat strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ctheme-brand);
}

.ctheme-home__stat span {
    color: var(--ctheme-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ctheme-home__visual {
    position: relative;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f9fbfd 0%, #eff5f9 100%);
}

.ctheme-home__image {
    width: 100%;
    height: auto;
}

.ctheme-home__badge {
    position: absolute;
    z-index: 2;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--ctheme-shadow-soft);
    color: var(--ctheme-text);
    font-size: 13px;
    font-weight: 700;
}

.ctheme-home__badge--top {
    top: 16px;
    right: 16px;
}

.ctheme-home__badge--bottom {
    left: 18px;
    bottom: 16px;
}

.ctheme-home__modules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ctheme-home__module {
    padding: 24px 22px;
}

.ctheme-home__module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(13, 74, 99, 0.12) 0%, rgba(242, 161, 50, 0.18) 100%);
    color: var(--ctheme-brand);
    font-size: 22px;
}

.ctheme-home__module h2 {
    margin: 0 0 8px;
    color: var(--ctheme-text);
    font-size: 20px;
}

.ctheme-home__module p {
    margin: 0;
    color: var(--ctheme-muted);
    line-height: 1.6;
}

.ctheme-module-navbar.navbar {
    margin-bottom: 26px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, var(--ctheme-brand-strong) 0%, var(--ctheme-brand) 100%);
    box-shadow: 0 16px 32px rgba(13, 74, 99, 0.16);
}

.ctheme-module-navbar .navbar-brand,
.ctheme-module-navbar .navbar-nav > li > a {
    color: #ffffff !important;
}

.ctheme-module-navbar .navbar-nav > li > a:hover,
.ctheme-module-navbar .navbar-nav > li > a:focus,
.ctheme-module-navbar .navbar-nav > .active > a,
.ctheme-module-navbar .navbar-nav > .active > a:hover,
.ctheme-module-navbar .navbar-nav > .active > a:focus {
    background: rgba(255, 255, 255, 0.12) !important;
}

#manager-menu.list-group {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--ctheme-shadow-soft);
}

#manager-menu.list-group .list-group-item {
    border-color: #e6eef5;
    color: var(--ctheme-text);
    font-weight: 600;
}

#manager-menu.list-group .list-group-item.active,
#manager-menu.list-group .list-group-item.active:hover,
#manager-menu.list-group .list-group-item.active:focus {
    background: linear-gradient(135deg, var(--ctheme-brand-strong) 0%, var(--ctheme-brand) 100%);
    border-color: var(--ctheme-brand);
}

.ctheme-backdrop {
    display: none;
}


@media (max-width: 1199px) {

    .grid-view {
        overflow-x: auto;
    }

    .grid-view table {
        width: max-content;
        min-width: 100%;
    }

    .grid-view td,
    .grid-view th {
        white-space: nowrap;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

@media (max-width: 767px) {
    .hidden-mobile {
        display: none;
    }
}

@media (max-width: 767px) {
    .only-mobile {
        display: flex;
    }
}

/*
@media (max-width: 1199px) {
    .table-responsive,
    .kv-grid-container,
    .grid-view {
        overflow-x: auto;
    }

    .grid-view .filters .form-control,
    .grid-view .filters select,
    .grid-view .filters .select2-container,
    .kv-grid-table .filters .form-control,
    .kv-grid-table .filters select,
    .kv-grid-table .filters .select2-container {
        min-width: 120px;
    }

    .ctheme-home__hero {
        grid-template-columns: 1fr;
    }

    .ctheme-home__stats,
    .ctheme-home__modules {
        grid-template-columns: 1fr;
    }
}
*/
@media (max-width: 991px) {
    .ctheme-navbar__inner {
        flex-wrap: wrap;
        align-items: flex-start;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .ctheme-navbar__end {
        width: 100%;
        flex-wrap: wrap;
    }

    .ctheme-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1100;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: 0 20px 40px rgba(18, 40, 56, 0.16);
    }

    body.ctheme-sidebar-open .ctheme-sidebar {
        transform: translateX(0);
    }

    .ctheme-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1090;
        background: rgba(9, 27, 37, 0.32);
    }

    body.ctheme-sidebar-open .ctheme-backdrop {
        display: block;
    }

    .ctheme-main__inner,
    .ctheme-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ctheme-auth__panel {
        margin-left: 0;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .ctheme-brand {
        min-height: 48px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .ctheme-brand__image {
        width: 180px;
    }

    .ctheme-chip,
    .ctheme-user__toggle {
        /* width: 100%;*/
        justify-content: flex-start;
    }

    .ctheme-auth {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .ctheme-auth__title,
    .ctheme-home__title {
        font-size: 30px;
    }

    .ctheme-auth__panel-body {
        padding: 22px 18px 20px;
    }

    .ctheme-home__hero {
        padding: 20px 18px;
    }

    .ctheme-home__badge {
        position: static;
        display: inline-block;
        margin-top: 12px;
    }
}

@media print {
    body.ctheme-body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .ctheme-header,
    .ctheme-sidebar,
    .ctheme-footer,
    .ctheme-breadcrumbs,
    .ctheme-backdrop {
        display: none !important;
    }

    .ctheme-shell,
    .ctheme-layout,
    .ctheme-main,
    .ctheme-main__inner {
        display: block !important;
        min-height: 0 !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .box,
    .panel,
    .well,
    .modal-content,
    .ctheme-card,
    .ctheme-surface {
        box-shadow: none !important;
        background: #ffffff !important;
    }

    .table-responsive,
    .kv-grid-container,
    .grid-view,
    .kv-grid-wrapper-500,
    .kv-grid-wrapper-300,
    .kv-grid-wrapper-250,
    .kv-grid-wrapper-200,
    .kv-grid-wrapper-100 {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
}


.box, .panel, .nav-tabs-custom, .modal-content {
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.table > thead > tr > th, .kv-grid-table > thead > tr > th {
    border-bottom: 0;
    padding: 14px 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


.summary {
    padding: 12px 14px;
    text-align-last: right;
}
.dropdown-menu {
    text-align-last: left;
}


.btn-warning {
    color: #fff;
    background-color: #f0ad4e;
    border-color: #eea236;
}
.btn btn-secondary btn-block{
    background-color: #ffffff;
}

@media print {

    /* Ocultar cosas innecesarias */
    .navbar,
    .sidebar,
    .btn,
    .no-print {
        display: none !important;
    }

    /* Ajustar tablas */


    body {
        zoom: 100%;
    }



}

table {
    width: 100% !important;
    font-size: 12px;
}


.grid-view table td {
    max-width: 250px;
    white-space: normal !important;
    word-wrap: break-word;
}

.grid-view table th {
    white-space: normal !important;
}
