/* Base elements for the remaining MVC forms, independent of the old theme. */
.cabinet-page { font-size: 14px; line-height: 1.5; }
.cabinet-page a { text-decoration: none; cursor: pointer; color: #5659fe; }
.cabinet-page button, .cabinet-page input, .cabinet-page select, .cabinet-page textarea { font: inherit; }
.cabinet-page button { cursor: pointer; }
.cabinet-page img { max-width: 100%; }
.cabinet-page [hidden] { display: none !important; }
.cabinet-page .row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.cabinet-page .row > form { width: 100%; }
.cabinet-page [class*="col-xs-"], .cabinet-page [class*="col-sm-"], .cabinet-page [class*="col-md-"], .cabinet-page [class*="col-lg-"] { float: left; width: 100%; min-width: 0; padding: 0 10px; }
.cabinet-page .col-xs-4 { width: 33.333%; }
.cabinet-page .col-xs-6 { width: 50%; }
.cabinet-page .col-xs-8 { width: 66.667%; }
@media (min-width: 768px) {
    .cabinet-page .col-sm-2 { width: 16.667%; }
    .cabinet-page .col-sm-3 { width: 25%; }
    .cabinet-page .col-sm-4 { width: 33.333%; }
    .cabinet-page .col-sm-6 { width: 50%; }
    .cabinet-page .col-sm-8 { width: 66.667%; }
    .cabinet-page .col-sm-9 { width: 75%; }
}
@media (min-width: 992px) {
    .cabinet-page .col-md-1 { width: 8.333%; }
    .cabinet-page .col-md-2 { width: 16.667%; }
    .cabinet-page .col-md-3 { width: 25%; }
    .cabinet-page .col-md-4 { width: 33.333%; }
    .cabinet-page .col-md-5 { width: 41.667%; }
    .cabinet-page .col-md-6 { width: 50%; }
    .cabinet-page .col-md-7 { width: 58.333%; }
    .cabinet-page .col-md-8 { width: 66.667%; }
    .cabinet-page .col-md-9 { width: 75%; }
    .cabinet-page .col-md-10 { width: 83.333%; }
    .cabinet-page .col-md-11 { width: 91.667%; }
}
.cabinet-page .panel, .cabinet-page .page-header { margin-bottom: 20px; padding: 20px; background: #fff; border: 1px solid #e5e9f1; border-radius: 16px; }
.cabinet-page .panel-body:after { content: ''; display: block; clear: both; }
.cabinet-page .panel-heading, .cabinet-page .panel-body { padding: 12px 0; }
.cabinet-page .page-title h4 { margin: 0 0 12px; font-size: 22px; }
.cabinet-page .heading-elements-toggle, .cabinet-page .breadcrumb-elements-toggle { display: none; }
.cabinet-page .breadcrumb, .cabinet-page .pagination, .cabinet-page .navigation { list-style: none; margin: 0; padding: 0; }
.cabinet-page .breadcrumb, .cabinet-page .pagination { display: flex; flex-wrap: wrap; gap: 8px; }
.cabinet-page .breadcrumb li + li:before { content: '/'; margin-right: 8px; color: #72788d; }
.cabinet-page .pagination a { display: block; padding: 8px 12px; border-radius: 8px; background: #fff; }
.cabinet-page .pagination .active a, .cabinet-page .navigation .active > a { background: #eeefff; color: #4548e0; }
.cabinet-page .navigation li a { display: flex; align-items: center; gap: 12px; padding: 12px; }
.cabinet-page .navigation-header { padding: 18px 12px 8px; }
.cabinet-page .form-group { margin-bottom: 18px; }
.cabinet-page .form-group label { display: block; margin-bottom: 7px; }
.cabinet-page .form-control { display: block; width: 100%; padding: 10px 12px; border: 1px solid #dfe3ec; border-radius: 8px; background: #fff; color: #25293b; }
.cabinet-page textarea.form-control, .cabinet-page textarea.cabinet-rich-text { min-height: 140px; }
.cabinet-page .form-control:focus { outline: 2px solid #5659fe; outline-offset: 1px; }
.cabinet-page .btn { display: inline-flex; justify-content: center; align-items: center; gap: 6px; width: auto; max-width: 100%; min-height: 36px; padding: 7px 12px; border: 1px solid #dfe3ec; border-radius: 8px; background: #fff; color: #34394e; font-size: 13px; font-weight: 500; line-height: 1.35; text-align: center; white-space: normal; vertical-align: middle; transition: background .15s, border-color .15s; }
.cabinet-page .btn-primary, .cabinet-page .bg-teal-400 { background: #5659fe; color: #fff; border-color: #5659fe; }
.cabinet-page .btn-block { display: inline-flex; width: auto; margin: 4px 4px 4px 0; }
.cabinet-page .btn:hover { background: #f1f3ff; border-color: #c7c9fa; }
.cabinet-page .btn-primary:hover, .cabinet-page .bg-teal-400:hover { background: #4548e0; color: #fff; }
.cabinet-page .btn-danger, .cabinet-page .bg-danger-400, .cabinet-page .btn:has(.glyphicon-remove), .cabinet-page .btn:has(.icon-x) { background: #fff5f5; border-color: #f2c9c6; color: #b42318; }
.cabinet-page .btn-danger:hover, .cabinet-page .bg-danger-400:hover, .cabinet-page .btn:has(.glyphicon-remove):hover, .cabinet-page .btn:has(.icon-x):hover { background: #fee4e2; border-color: #eaa39c; }
.cabinet-page .btn:has(.glyphicon-pencil), .cabinet-page .btn:has(.glyphicon-remove), .cabinet-page .btn:has(.icon-x) { min-width: 36px; }
@media (max-width: 600px) { .cabinet-page .btn { min-height: 40px; } }
.cabinet-page .btn:disabled { opacity: .55; cursor: default; }
.cabinet-page .text-center { text-align: center; }
.cabinet-page .text-right { text-align: right; }
.cabinet-page .text-semibold { font-weight: 600; }
.cabinet-page .text-danger { color: #b42318; }
.cabinet-page .text-muted { color: #72788d; }
.cabinet-page .position-left { margin-right: 8px; }
.cabinet-page .table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.cabinet-page .table th, .cabinet-page .table td { padding: 12px; text-align: left; border-bottom: 1px solid #e5e9f1; }
.cabinet-page .table-hover tbody tr:hover { background: #f6f7ff; }
.cabinet-page .headingImgPol { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cabinet-page .alert { padding: 14px; border-radius: 8px; margin-bottom: 16px; background: #eeefff; }
.cabinet-page .alert-danger, .cabinet-toast.bg-danger { background: #fee4e2; color: #912018; }
.cabinet-page .alert-success, .cabinet-toast.bg-success { background: #dcfae6; color: #075e37; }
.cabinet-page .alert-warning, .cabinet-toast.bg-warning { background: #fff4d6; color: #805400; }
.cabinet-page hr { border: 0; border-top: 1px solid #e5e9f1; margin: 20px 0; }
.cabinet-page #loading { display: none; position: fixed; inset: 0; z-index: 2100; background: rgba(37,41,59,.3); cursor: wait; }
.cabinet-page #loading:after { content: ''; position: absolute; top: 45%; left: calc(50% - 20px); width: 40px; height: 40px; border: 4px solid #fff; border-top-color: #5659fe; border-radius: 50%; animation: cabinet-spin .8s linear infinite; }
@keyframes cabinet-spin { to { transform: rotate(360deg); } }
.cabinet-page .modal { display: none; }
.cabinet-page .modal.cabinet-modal-open { display: block; position: fixed; inset: 0; z-index: 2000; padding: 30px 16px; overflow: auto; background: rgba(37,41,59,.45); }
.cabinet-page .modal-dialog { width: 100%; max-width: 640px; margin: 0 auto; }
.cabinet-page .modal-lg { max-width: 960px; }
.cabinet-page .modal-content { padding: 24px; border-radius: 16px; background: #fff; box-shadow: 0 16px 50px #25293b33; }
.cabinet-page .modal-header, .cabinet-page .modal-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; }
.cabinet-page .modal-title { flex: 1; margin: 0; font-size: 18px; }
.cabinet-page .modal-header .close { order: 2; margin-left: auto; padding: 4px 10px; background: transparent; border: 0; font-size: 24px; }
.cabinet-page .modal-footer { justify-content: flex-end; }
.cabinet-page.modal-open { overflow: hidden; }
#cabinet-messages { position: fixed; z-index: 2200; top: 20px; right: 20px; width: min(360px, calc(100vw - 40px)); }
.cabinet-toast { position: relative; padding: 18px 40px 18px 18px; margin-bottom: 12px; background: #fff; border: 1px solid #e5e9f1; border-radius: 12px; box-shadow: 0 8px 30px #25293b22; }
.cabinet-toast p { margin: 8px 0 0; }
.cabinet-toast button { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; font-size: 22px; }
.cabinet-tree ul { list-style: none; padding-left: 20px; }
.cabinet-tree > ul { padding-left: 0; }
.cabinet-tree-row { display: flex; align-items: center; gap: 6px; margin: 5px 0; }
.cabinet-tree button { padding: 8px 12px; border: 1px solid #e5e9f1; background: #fff; border-radius: 8px; text-align: left; overflow-wrap: anywhere; }
.cabinet-tree-name.active { background: #eeefff; color: #5659fe; }
.cabinet-tree-expand { flex: 0 0 36px; }
.cabinet-file-preview { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.cabinet-file-preview span { display: flex; flex-direction: column; max-width: 180px; overflow-wrap: anywhere; }
.cabinet-file-preview img { width: 120px; height: 100px; object-fit: contain; }
.cabinet-html-editor { border: 1px solid #dfe3ec; border-radius: 10px; overflow: hidden; }
.cabinet-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: #f1f6fc; }
.cabinet-editor-toolbar button { padding: 6px 10px; background: #fff; border: 1px solid #dfe3ec; border-radius: 6px; }
.cabinet-editor-content, .cabinet-html-editor textarea { display: block; width: 100%; min-height: 180px; padding: 14px; overflow-wrap: anywhere; }
.cabinet-editor-content:focus { outline: 2px solid #5659fe; outline-offset: -2px; }
.ui-autocomplete { z-index: 2050; max-height: 280px; overflow-y: auto; list-style: none; padding: 8px; border: 1px solid #dfe3ec; background: #fff; box-shadow: 0 8px 24px #25293b22; }
.ui-menu-item { padding: 5px 8px; cursor: pointer; }
.ui-state-active { background: #eeefff; color: #5659fe; }
.ui-helper-hidden-accessible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
