.fw-100 {
    font-weight:100;
}
.fw-200 {
    font-weight:200;
}
.fw-300 {
    font-weight:300;
}
.fw-400 {
    font-weight:400;
}
.fw-500 {
    font-weight:500;
}
.fw-600 {
    font-weight:600;
}
.fw-700 {
    font-weight:700;
}

.apple-shadow {
                box-shadow:
                    0 1px 3px rgba(0, 0, 0, 0.12),
                    0 4px 12px rgba(0, 0, 0, 0.10),
                    0 20px 40px rgba(0, 0, 0, 0.08);
                border-radius: 16px;
                transition: box-shadow 0.3s ease, transform 0.3s ease;
                background: rgba(255, 255, 255, 0.04); /* optional for glass effect */
                backdrop-filter: blur(12px) saturate(180%);
                -webkit-backdrop-filter: blur(12px) saturate(180%);
}
.apple-shadow:hover {
    transform: translateY(-1px);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.14),
        0 8px 20px rgba(0, 0, 0, 0.12),
        0 24px 48px rgba(0, 0, 0, 0.10);
}

.framework-circle {
  width: 30px;
  height: 30px;
  background-color: #1a1f2a; /* dark grey-blue tone */
  border-radius: 50%;
  display: block;
}

.framework-modal-backdrop {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    
    /* Initial invisible state */
    opacity: 0;
    background-color: rgba(15, 15, 20, 0.25);
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
    transition:
        opacity 0.4s ease,
        backdrop-filter 1.0s ease,
        -webkit-backdrop-filter 1.0s ease;

    z-index: 1040;
}
/* Activated (fade-in + blur) */
.framework-modal-backdrop.active {
    opacity: 1;
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(5px) saturate(180%);
    background-color: rgba(15, 15, 20, 0.35);
}



.framework-modal-form-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Optional aesthetic touches (won’t affect layout sizing) */
.framework-modal-form-wrapper form {
    width: 100%;
}

.framework-modal-form-wrapper .framework-modal-header,
.framework-modal-form-wrapper .framework-modal-content,
.framework-modal-form-wrapper .framework-modal-footer {
    width: 100%;
}

.framework-modal-drawer {
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 5%;
    right: 5%;
    width: 30%;
    min-width:300px;
    height: 90%;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
}

.framework-modal-center {
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 5%;
    right: 25%;
    width: 50%;
    min-width:300px;
    height: 90%;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
}

/* Smaller, auto-height variant */
.framework-modal-center-small {
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 50%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(-50%);
    width: 90vw;
    min-width: 300px;
    max-width: 500px;
    max-height: 90vh;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-radius: 1.25rem;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
}

/* Prevent hover translate on modal shells */
.framework-modal-center-small.apple-shadow:hover {
    transform: translateY(-50%);
}
.framework-modal-center.apple-shadow:hover,
.framework-modal-drawer.apple-shadow:hover {
    transform: none;
}

/* Header */
.framework-modal-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
    background: rgba(var(--bs-body-bg-rgb), 0.9);
    color: var(--bs-body-color);
    backdrop-filter: blur(12px);
}
.framework-modal-header p {
    margin-bottom: 0;
}
/* Show draggable affordance and avoid text selection while dragging */
/* While dragging: fully transparent and no blur */
/* While actively dragging (temporary state during drag) */
.framework-modal-backdrop.drag-transparent {
  background: rgba(0,0,0,0) !important;
  backdrop-filter: none !important;
}

/* After a drag ends: keep backdrop hidden until modal closes & reopens */
.framework-modal-backdrop.backdrop-hidden {
  background: rgba(0,0,0,0) !important;
  backdrop-filter: none !important;
}

/* Cursor affordance + avoid text selection during drag */
.framework-modal-header { cursor: move; }
.framework-modal-drawer.dragging { user-select: none; }

/* Content - fills remaining height */
.framework-modal-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
    overflow-y: auto;
    padding: 1.75rem;
}

/* Editor section grows to fill remaining modal body */
.modal-editor-section {
    flex: 1 1 0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.modal-editor-section .tox-tinymce {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100% !important;
}

.modal-editor-section .tox-editor-header,
.modal-editor-section .tox-statusbar {
    flex: 0 0 auto;
}

.modal-editor-section .tox-edit-area {
    flex: 1 1 0;
}

.modal-editor-section .tox-edit-area iframe {
    height: 100% !important;
}

/* Footer */
.framework-modal-footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--bs-border-color);
    background: rgba(var(--bs-body-bg-rgb), 0.9);
    color: var(--bs-body-color);
    backdrop-filter: blur(12px);
}




.framework-modal-title {
    padding-top:10px;
    padding-left:7px;
}

.framework-modal-close-btn {
  position: absolute;         /* Usually placed top-right of modal */
  top: 20px;
  right: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 45px;
  height: 45px;
  border-radius: 50%;

  cursor: pointer;
  background: transparent;
  border: 1px solid var(--bs-border-color-translucent);

  color: rgba(var(--bs-body-color-rgb), 0.4);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease;
}

/* Centered Font Awesome icon styling */
.framework-modal-close-btn i {
  font-size: 16px;
  transition: transform 0.25s ease;
}

/* Hover / active states */
.framework-modal-close-btn:hover {
  background-color: rgba(var(--bs-body-bg-rgb), 0.9);
  border-color: var(--bs-border-color);
  color: rgba(255, 0, 0, 0.75);
}

.framework-modal-close-btn:hover i {
  transform: scale(1);
}

/* Optional: Glass-style blur if you want Apple consistency */
.framework-modal-close-btn {
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
}

.app-sidebar-with-quicklinks {
    --app-quicklinks-width: 72px;
    --app-sidebar-main-width: 265px;
    --bs-app-sidebar-width: calc(var(--app-sidebar-main-width) + var(--app-quicklinks-width));
    --bs-app-sidebar-width-actual: calc(var(--app-sidebar-main-width) + var(--app-quicklinks-width));
    display: flex;
    width: calc(var(--app-sidebar-main-width) + var(--app-quicklinks-width));
}

.app-sidebar-with-quicklinks .app-sidebar-quicklinks {
    flex: 0 0 var(--app-quicklinks-width);
    padding: 1.5rem 0.75rem;
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    background-color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-height: 100%;
}

.app-sidebar-with-quicklinks .app-sidebar-main {
    flex: 0 0 var(--app-sidebar-main-width);
    max-width: var(--app-sidebar-main-width);
}

.app-sidebar-with-quicklinks .app-sidebar-logo,
.app-sidebar-with-quicklinks .app-sidebar-footer,
.app-sidebar-with-quicklinks .app-sidebar-menu,
.app-sidebar-with-quicklinks .app-sidebar-wrapper {
    padding-left: clamp(1.5rem, 1.5rem + 0.2vw, 1.75rem);
}

[data-kt-app-sidebar-minimize=on] .app-sidebar-with-quicklinks {
    --app-sidebar-main-width: 75px;
}

@media (max-width: 991.98px) {
    .app-sidebar-with-quicklinks {
        width: var(--app-sidebar-main-width);
        --bs-app-sidebar-width: var(--app-sidebar-main-width);
        --bs-app-sidebar-width-actual: var(--app-sidebar-main-width);
    }

    .app-sidebar-with-quicklinks .app-sidebar-quicklinks {
        display: none !important;
    }

    .app-sidebar-with-quicklinks .app-sidebar-main {
        flex: 1 1 auto;
    }

    .app-sidebar-with-quicklinks .app-sidebar-logo,
    .app-sidebar-with-quicklinks .app-sidebar-footer,
    .app-sidebar-with-quicklinks .app-sidebar-menu,
    .app-sidebar-with-quicklinks .app-sidebar-wrapper {
        padding-left: initial;
    }
}



.framework-select2 {
    border-radius: 0.475rem;
}

.form-floating-select2 .select2-container--bootstrap5 {
    width: 100% !important;
}

.form-floating-select2 .select2-container--bootstrap5 .select2-selection--single {
    height: calc(3.75rem + 2px);
    min-height: calc(3.75rem + 2px);
    padding-top: 1.85rem;
    padding-bottom: 1.299rem;
    padding-left: 1rem;
}

.form-floating-select2 .select2-container--bootstrap5 .select2-selection--single .select2-selection__rendered {
    line-height: 1.25;
}

.form-floating-select2 .select2-container--bootstrap5 ~ label {
    transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}

.menu-item .menu-link {
    border:1px solid transparent !important;
    border-radius:0.5rem;
}
.menu-item .menu-link:hover {
    border:1px solid rgba(224, 224, 224, 0.5) !important;
    border-radius:0.5rem;
}
.menu-sub-indention .menu-item .menu-item .menu-link.active {
    margin-right: 0px;
}

.tox-promotion, 
.tox-promotion-link, 
.tox-statusbar__branding {
    display: none !important;
}

.page-loader {
    position: fixed;
    inset: 0;
  
    /* translucent fill */
    background: rgba(255, 255, 255, 0.10);

    /* blur what's behind */
    -webkit-backdrop-filter: blur(5px) saturate(160%);
    backdrop-filter: blur(5px) saturate(160%);

    /* subtle border + depth */
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Search shortcut hint */
#kt_header_search .framework-search,
#kt_header_search_inline .framework-search {
    padding-right: 6rem;
}

#kt_header_search .framework-search-shortcut,
#kt_header_search_inline .framework-search-shortcut {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #a1a5b7;
    pointer-events: none;
    user-select: none;
    transition: opacity 200ms ease;
    z-index: 2;
}

#kt_header_search .framework-search:focus + .framework-search-shortcut,
#kt_header_search .framework-search:not(:placeholder-shown) + .framework-search-shortcut,
#kt_header_search_inline .framework-search:focus + .framework-search-shortcut,
#kt_header_search_inline .framework-search:not(:placeholder-shown) + .framework-search-shortcut {
    opacity: 0;
}

/* === Apple-style glass success toast === */
#toastr-container .toastr.toastr-success {
    background-color: rgba(40, 200, 120, 0.72) !important;
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    transition: background-color 240ms ease, box-shadow 240ms ease;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);

    color: #ffffff;
    opacity: 1;
}

#toastr-container > .toastr.toastr-success:hover,
#toastr-container > .toastr.toastr-success:focus {
    background-color: rgba(40, 200, 120, 0.82) !important;
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    opacity: 1;
}

/* === Apple-style glass error toast === */
#toastr-container .toastr.toastr-error,
#toastr-container .toastr.toastr-danger {
    background-color: rgba(220, 80, 70, 0.72) !important;
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    transition: background-color 240ms ease, box-shadow 240ms ease;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);

    color: #ffffff;
    opacity: 1;
}

#toastr-container > .toastr.toastr-error:hover,
#toastr-container > .toastr.toastr-error:focus,
#toastr-container > .toastr.toastr-danger:hover,
#toastr-container > .toastr.toastr-danger:focus {
    background-color: rgba(220, 80, 70, 0.82) !important;
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    opacity: 1;
}

.framework-toolbar-tabs { 
    border-radius: 5px;
}
/* Framework toolbar tabs: nav link radius */
.framework-toolbar-tabs .nav-link {
    border-radius: var(--bs-btn-border-radius);
}

.table:not(.table-bordered) td:first-child, .table:not(.table-bordered) th:first-child, .table:not(.table-bordered) tr:first-child {
    padding-left: 20px;
}
.table:not(.table-bordered) td:last-child, .table:not(.table-bordered) th:last-child {
    padding-right: 20px;
}

/* Datatable footer spacing when card body padding is removed */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_paginate,
.dt-container .dt-length,
.dt-container .dt-paging, 
.dt-toolbar, .dt-length {
    padding-left: 40px;
    padding-right: 25px;
    padding-bottom:25px;
}

/* Prevent Select2 multi-select from flashing native options before init */
select.form-select[multiple][data-kt-select2="true"]:not(.select2-hidden-accessible),
select.form-select[multiple][data-control="select2"]:not(.select2-hidden-accessible) {
    height: calc(1.5em + 1.55rem + 2px);
    min-height: calc(1.5em + 1.55rem + 2px);
    opacity: 0;
    pointer-events: none;
}

.framework-toolbar-tabs-container {
    background-color:#f9f9f9;
    border-radius: 10px;
}

.framework-toolbar-tabs-container .btn {
    font-weight: 700;
    font-size: 1.0rem !important;
    padding-left:2.0rem !important;
    padding-right:2.0rem !important;
}

.framework-toolbar-tabs-container .btn.btn-active-primary.active, 
.framework-toolbar-tabs-container .btn.btn-active-primary:hover {
    color: var(--bs-primary);
    border-color: var(--bs-primary-inverse);
    background-color: var(--bs-primary-inverse) !important;
}
.framework-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgb(156 163 175);
}