.select2-container--krajee-bs3 .select2-selection--single {
    height: 40px !important;
    border-radius: 0.2rem !important;
}

.select2-container--krajee-bs3 .select2-selection__arrow {
    height: 40px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    margin-top: 3px !important;
}

.select2-container--krajee-bs3 .select2-selection--multiple {
    border-radius: 0.2rem !important;
}

/* Shrink sidebar */
.sidebar-mini #sidebar {
    width: 250px; /* none collapsed width */
    min-width: 250px;
    max-width: 250px;
    overflow: hidden;
}
.sidebar-mini.sidebar-collapse #sidebar {
    width: 4rem; /* collapsed width */
    min-width: 4rem;
    max-width: 4rem;
}

/* Hide sidebar text */
.sidebar-collapse #sidebar .menu span {
    display: none;
}

/* Shift content to left */
.sidebar-collapse .main-content {
    margin-left: 4rem; /* match collapsed sidebar width */
}

/* Shrink header if needed */
.sidebar-collapse header {
    padding-left: 4rem;
    transition: all 0.3s;
}
#sidebar, .main-content, header {
    transition: all 0.3s ease;
}
.logo-image {
    background-image: var(--main-logo);
    background-size: contain;
    background-repeat: no-repeat;
    width: 250px;
    max-width: 250px;
    min-width: 250px;
}
.sidebar-collapse .logo-image {
    width: 4rem;
    max-width: 4rem;
    min-width: 4rem;
}
.sidebar-mini .main-header .logo-image {
    background: var(--main-logo);
    background-size: auto 45px;
    background-repeat: no-repeat;
    background-position: center;
    border-bottom: none;
}
.sidebar-mini .sidebar-collapse .main-header .logo{
    background-image: var(--main-logo);
    background-repeat: no-repeat;
}
body.sidebar-collapse .menu-label {
    display: none;
}
#sidebar.collapsed {
    max-width: 64px !important;
    overflow: hidden;
}
.sidebar-mini.sidebar-collapse .sidebar ul ul {
    padding-left: 0;
    margin-left: 0;
}
.sidebar-mini.sidebar-collapse .main-header {
    padding-left: 0;
}
.sidebar-mini.sidebar-collapse .logo.logo-image {
    max-width: 70px;
    background-size: auto 55%;
}
.file-caption-name.form-control.kv-fileinput-caption {
    border: 1px solid #ccc;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    width: 100%;
}
.file-caption > .input-group {
    display: flex;
    gap: 0.5rem;
}
.select2-bootstrap-append, .input-group-btn, .spectrum-group{
    display: flex;
}
/* ===== Start of FileInput Styling ===== */
.krajee-default.file-preview-frame {
    width: 100%;
    max-width: 250px;
    margin: 0 0 12px 0;
    float: none !important;
}
.krajee-default.file-preview-frame .kv-file-content {
    width: 100% !important;
    max-width: 250px;
    aspect-ratio: 16 / 10;
    height: auto !important;
    position: relative;
    overflow: hidden;
}
/* make drop zone free to grow/shrink */
.kv-fileinput .file-drop-zone,
.file-drop-zone {
  height: auto !important;
  min-height: 300px;
  max-height: none !important;
  overflow: visible !important;
  display: block !important;
}
/* let preview container expand with content */
.kv-fileinput .file-preview,
.file-preview{
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  display: block !important;
  text-align: left;
}
/* each preview frame should size by its content */
.file-preview .file-preview-frame,
.file-preview-frame,
.kv-preview-thumb {
  height: auto !important;
  max-height: none !important;
  display: inline-block !important;
  position: relative !important;
  vertical-align: top !important;
}
/* if plugin uses inline style attributes (common), override them */
.kv-fileinput [style*="height"],
.kv-fileinput [style*="max-height"] {
  height: auto !important;
  max-height: none !important;
}
/* if parent layout is flex, ensure children are not stretched to fixed height */
.kv-fileinput .file-preview-thumbnails {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
}
.file-drop-zone {
  min-height: 300px;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  border: 1px dashed #aaa;
  border-radius: 4px;
  display: flex !important;
  flex-direction: column;
}
/* If the inner elements are floated, ensure clearfix */
.file-drop-zone::after {
  content: "";
  display: table;
  clear: both;
}
.kv-error-close{
    float: right;
}
#kvFileinputModal .kvFileinputDialog {
    height: auto;
    overflow: visible;
}
.kv-zoom-fullscreen .kvFileinputDialog {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}
.kv-borderless .kvFileinputDialog {
    height: 100vh !important;
    max-height: 100vh !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
.kv-fileinput-error {
    width: 100% !important;
    margin: 0px !important;
}
.kv-fileinput-error ul li{
    overflow-x: auto;
}
@media (max-width: 768px) {
  .kv-fileinput .file-preview-thumbnails {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .file-preview .file-preview-frame,
  .file-preview-frame,
  .kv-preview-thumb {
    width: 100% !important;
    max-width: 100% !important;
  }
  .krajee-default.file-preview-frame,
  .krajee-default.file-preview-frame .kv-file-content {
    max-width: 100%;
  }
  .file-drop-zone,
  .kv-fileinput .file-drop-zone {
    min-height: 180px;
    padding: 10px;
  }
}
/* ===== End of FileInput Styling ===== */
.input-group .input-group-addon {
    border: 1px solid color-mix(in oklab, var(--color-base-content) 20%, #0000);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.form-grid td, .gridview-row td {
    vertical-align: top;
}
.control-label {
    font-weight: bold;
}
.kv-grid-container{
    overflow-x: auto;
}
.select2-container--krajee-bs3 .select2-selection {
     background: var(--color-base-300) !important;
     background-color: var(--color-base-300) !important;
}
form .select2-container--krajee-bs3 .select2-selection {
     background: var(--color-base-100) !important;
     background-color: var(--color-base-100) !important;
}
.select2-selection__rendered{
    color: var(--color-base-content) !important;
}
.select2-container--krajee-bs3 .select2-results__option--highlighted[aria-selected] {
    background-color: var(--color-primary-content) !important;
    color: var(--color-base-300) !important;
}
.select2-container--krajee-bs3 .select2-results__option.select2-results__option--selected, .select2-container--krajee-bs3 .select2-results__option[aria-selected=true] {
    color: var(--color-base-100) !important;
    background-color: var(--color-base-content) !important;
}
.select2-container--krajee-bs3 .select2-results__option[aria-selected] {
    background-color: var(--color-base-100) !important;
    color: var(--color-base-content) !important;
    border-radius:0 !important;
}
.select2-container--krajee-bs3 .select2-results__option[aria-selected="true"] {
    background-color: var(--color-neutral) !important;
    color: var(--color-neutral-content) !important;
    border-radius:0 !important;
}
.select2-container--krajee-bs3 .select2-results__option:not([aria-selected="true"]):hover {
    background-color: color-mix(in oklab, var(--color-base-200), #000 7%) !important;
}

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple,
.select2-container--default .select2-results__option,
.select2-dropdown {
    font-size: 0.875rem;
}
.select2-container--krajee-bs3 .select2-selection__clear {
    color: var(--color-base-content) !important;
}
.select2-dropdown {
    background-color: var(--color-base-100) !important;
}
.s2-select-label{
    color: var(--color-base-content) !important;
}
.s2-unselect-label{
    color: var(--color-base-content) !important;
}
.help-block{
     color: #737373;
}
.help-block-error{
    color: red !important;
    margin: 2px 0px 2px 0px;
}
.select2-container--krajee-bs3 .select2-dropdown{
    border-color : var(--color-base-content) !important;
}
 .select2-container--krajee-bs3.select2-container--open .select2-selection, .select2-container--krajee-bs3 .select2-selection:focus {
    border-color : var(--color-base-content) !important;
    box-shadow : var(--color-base-content) !important;
 }
#ar-history-grid {
    margin-top: 0px;
}

.clearfix {
    clear: both;
}
.search-attribute .search-exist {
    position: absolute;
    right: -3px;
    top: -5px;
}
.search-attribute{
    position: relative !important;
}
select.dropdown-custom + span.select2-container {
    margin-top: 2px; 
    margin-bottom: 2px;
}

.kv-panel-after li {
    padding: 0;
}

.kv-panel-after li a, .kv-panel-after li span {
    padding: 11px 17px;
}
.kv-panel-before {
    padding: 0px 10px 15px 10px;
}
.panel-heading {
    padding: 10px 10px;
}
.jstree-grid-cell.jstree-grid-cell-regular:nth-child(even) {
    background-color:var(--color-base-300) !important;
}
.menu-li{
    margin: 3px 0px;
}
.menu-li > a,
.menu-li > details > summary > span {
    overflow: hidden;
    min-width: 0;
}
.menu-label {
    display: inline-block;
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.dui-content-wrapper{
    padding: 15px;
}
.display-btn-toggle{
    padding-top: 0px !important;
}
.table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th {
    background-color: #f2dede;
}
.detail-view {
    width: 100%;
    table-layout: auto;
}

.detail-view th {
    white-space: nowrap;
    width: 1%;
    max-width: 50%;
    vertical-align: top;
    word-break: break-word;
}

.detail-view td {
    word-break: break-word;
}
.detail-view ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
}
.detail-view ol {
    list-style: decimal;
    padding-left: 1.25rem;
    margin: 0;
}
.detail-view ul li,
.detail-view ol li {
    display: list-item;
    margin: 0;
}
/* CKEditor: restore list styles reset by Tailwind Preflight */
.ck-editor__editable ul,
.ck-content ul {
    list-style-type: disc !important;
    padding-left: 40px !important;
}
.ck-editor__editable ol,
.ck-content ol {
    list-style-type: decimal !important;
    padding-left: 40px !important;
}
.ck-editor__editable ul ul,
.ck-content ul ul {
    list-style-type: circle !important;
}
.ck-editor__editable ul ul ul,
.ck-content ul ul ul {
    list-style-type: square !important;
}
.ck-editor__editable ol ol,
.ck-content ol ol {
    list-style-type: lower-latin !important;
}
.ck-editor__editable ol ol ol,
.ck-content ol ol ol {
    list-style-type: lower-roman !important;
}
.hide {
    display: none !important;
}
@media screen and (max-width: 480px) {
    .table-striped > tbody > tr:nth-of-type(odd) {
        background-color: transparent !important;
    }
    .panel-default > .panel-heading {
        background-color: transparent !important;
        border-color: transparent !important;
    }
    .custom-button{
        height: unset !important;
        padding: 8px 10px !important;
        white-space: break-spaces;
        max-width: 100%;
    }
    .ui-element-table tr {
        background-color: transparent !important;
    }
}
@media (max-width: 768px) {
    .main-header span.dui\:navbar-text {
        display: none;
    }
    .main-header .dui\:indicator span {
        display: none;
    }
    .main-header {
        flex-wrap: wrap;
    }
    .sidebar-mini .main-header .logo-image, .sidebar-mini.sidebar-collapse .logo.logo-image {
        background: var(--main-logo);
        background-size: auto 42px;
        background-repeat: no-repeat;
        background-position: center;
        border-bottom: 1px solid #ddd;
        height: 60px;
        width: 100% !important;
        max-width: 100%;
    }
    .main-header .logo, .main-header .navbar {
        width: 100%;
        float: none;
    }
}
.select2-container--krajee-bs3 .select2-selection--multiple .select2-selection__choice {
    border-radius: 4px !important;
    margin: 5px 0 0 0px !important;
    padding: 5px 5px 5px 5px;
}
.img-thumbnail {
    padding: 4px;
    line-height: 1.42857143;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    display: inline-block;
    max-width: 100%;
    height: auto;
}
.search-attribute {
    margin: 5px;
    cursor: pointer;
    opacity: 1;
}
.dui\:error-summary {
    display: block;
    color: #ffffff; 
    margin-top: 12px;
}

.dui\:error-summary p {
    margin-bottom: 0.5rem;
}

.dui\:error-summary ul {
    margin-top: 0;
    padding-left: 1.25rem;
    list-style: disc;
}
