.mb50{
    margin-bottom:50PX
}

.Dnone {
    display: none;
}
/*Start Spinner*/
.buttonSpinner {
    display: block;
}

#overlay {
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0,0,0,0.6);
}

.cv-spinner {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px #ddd solid;
    border-top: 4px #2e93e6 solid;
    border-radius: 50%;
    animation: sp-anime 0.8s infinite linear;
}

@keyframes sp-anime {
    100% {
        transform: rotate(360deg);
    }
}

.is-hide {
    display: none;
}
/*End Spinner*/

/*Start Checker*/

.wrapper-check {
    position: fixed;
    z-index: 9999999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
@keyframes show_toast {
    0% {
        transform: translateX(-100%);
    }

    40% {
        transform: translateX(10%);
    }

    80%, 100% {
        transform: translateX(20px);
    }
}
.wrapper-check.hide {
    animation: hide_toast 1s ease forwards;
}
@keyframes hide_toast {
    0% {
        transform: translateX(20px);
    }

    40% {
        transform: translateX(10%);
    }

    80%, 100% {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-100%);
    }
}
.wrapper-check .toast {
    background: #fff;
    padding: 20px 15px 20px 20px;
    border-radius: 10px;
    border-left: 5px solid #dd2827;
    border-top: 5px solid #dd2827;
    box-shadow: 1px 7px 14px -5px rgba(0,0,0,0.15);
    width: 430px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wrapper-check .toast.offline {
    border-color: #dd2827;
}
.toast .content {
    display: flex;
    align-items: center;
}
.content .details {
    margin-left: 15px;
}
.details span {
    font-size: 20px;
    font-weight: 500;
}
/*End Checker*/

.input-error {
    border-color: red;
    font-size: 50px;
}
.UrlDiv span {
    border: 1.5px solid #bbb;
    border-radius: 25px;
    overflow: hidden !important;
    padding: 6px 0px 4px 10px;
    display: block;
    position: relative
}

    .UrlDiv span i {
        background-color: #ddd;
        padding: 10px;
        border-radius: 50%;
        margin: 0px 0 0px 10px;
        position: absolute;
        top: 0;
        right: 0
    }
    .UrlDiv span a {
        margin:0px 5px
    }
    body.light .UrlDiv span a {
        color: #333
    }
body.dark .UrlDiv span a {
    color: #ccc
}
.UrlDiv span i {
    color: #333
}
#DivBarcode, #ImageBarcode {
    display: none !important
}

@media print {
    div {
        display: none !important;
    }

    html, body, #DivBarcode, #ImageBarcode {
        display: block !important;
        margin:auto !important
    }
}
#TableSearchBrand .dataTables_filter, #BrandTable_length {
    display: block !important
}


.showScreenActionsBTN  {
    width:30px !important;
    font-size:30px !important
}

.swal-wide {
    width: 850px !important;
}

.pos-mb-40{
    margin-bottom: 40px;
}

.company-logo {
    text-align: left;
    width: 260px;
    min-height: 60px;
}
.noqta-logo {
    width: 260px;
    min-height: 60px;
    margin: auto;
    text-align: left;
}
.my-form img.ui-datepicker-trigger {
    left: 8px;
    top: 9px;
}
.w-100{
    width:100%;
    min-width:100%
}
.select2.select2-container {
    width: 100%;
    min-width: 100%
}

.login-version {
    position: fixed;
    bottom: 0px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    opacity: 0.8;


    font-size: 80%;
    font-weight: 400;
    background-color: #15625b;
    padding: 5px;
    color: white;
}

/* ============================================================
   RoleGroup Permissions Tree Styles
   ============================================================ */

/* Section transitions */
#DivRoleGroupList,
#DivRoleContainer {
    display: none;
}
#DivRoleContainer .title-box {
    padding: 12px 16px;
}
#DivRoleContainer .title-box #roleContainerTitle {
    font-size: 16px;
    font-weight: 600;
}
#DivRoleContainer .title-box #btnBackToList {
    border-radius: 20px;
}

/* Permissions Toolbar */
#permissionsToolbar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}
body.dark #permissionsToolbar {
    background: #2d2d2d;
    border-color: #444;
}

/* Tree Container */
#permissionsTreeContainer {
    max-height: 65vh;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fafafa;
}
body.dark #permissionsTreeContainer {
    background: #1e1e1e;
    border-color: #444;
}

/* Tree layout: independent columns (so expand/collapse won't affect sibling column) */
#permissionsTree {
    display: block;
}

#permissionsTree .rg-columns {
    display: block;
}

#permissionsTree .rg-column {
    min-width: 0;
}

#permissionsTree .rg-column .rg-module-card {
    margin-bottom: 14px !important;
}

@media (min-width: 768px) {
    #permissionsTree .rg-columns {
        display: flex;
        gap: 14px;
        align-items: flex-start;
    }

    #permissionsTree .rg-column {
        flex: 1 1 0;
    }
}

/* Main Module Card */
.rg-module-card {
    border: none;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.rg-module-header {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    transition: background 0.3s;
}
.rg-module-header:hover {
    background: linear-gradient(135deg, #1557b0 0%, #0d47a1 100%);
}
.rg-module-header .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}
.rg-module-header .badge-info {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* SubMain Card */
.rg-submain-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px !important;
    background: #fff;
}
.rg-submain-header {
    background: #f0f4ff;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0 !important;
    transition: background 0.2s;
}
.rg-submain-header:hover {
    background: #e3eafc;
}
body.dark .rg-submain-card {
    border-color: #444;
    background: #2d2d2d;
}
body.dark .rg-submain-header {
    background: #333;
    border-color: #444;
}
body.dark .rg-submain-header:hover {
    background: #3a3a3a;
}

/* Screen Item */
.rg-screen-item {
    border: 1px solid #ebebeb;
    border-radius: 6px !important;
    background: #fff;
    transition: all 0.2s;
}
.rg-screen-item:hover {
    background: #f5f7ff;
    border-color: #c5cae9;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
body.dark .rg-screen-item {
    border-color: #444;
    background: #252525;
}
body.dark .rg-screen-item:hover {
    background: #333;
    border-color: #555;
}

/* Screen Name */
.rg-screen-name {
    font-weight: 500;
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
}
.rg-screen-header {
    gap: 4px;
}
.rg-screen-title-wrap {
    min-width: 0;
    flex: 1 1 auto;
    gap: 6px;
}
.rg-screen-name-en {
    white-space: nowrap;
    line-height: 1.3;
}

/* Inline Action Checkboxes */
.rg-actions-row {
    gap: 2px 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
}
.rg-action-item {
    min-width: auto;
    flex: 0 0 auto;
    margin-left: 8px !important;
}
.rg-action-item .custom-control-label {
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}

/* Collapse Icon Transition */
.rg-icon-transition {
    transition: transform 0.3s ease;
    font-size: 12px;
}
.collapsed .rg-collapse-icon {
    transform: rotate(-90deg);
}

/* Search Highlight */
.rg-search-highlight {
    outline: 2px solid #ffc107;
    outline-offset: -2px;
    border-radius: 6px;
}

/* Custom Switch styling for module headers */
.rg-module-header .custom-switch .custom-control-label::before {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}
.rg-module-header .custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #4caf50;
    border-color: #4caf50;
}

/* Scrollbar styling for tree container */
#permissionsTreeContainer::-webkit-scrollbar {
    width: 6px;
}
#permissionsTreeContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
#permissionsTreeContainer::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}
#permissionsTreeContainer::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Indentation for tree levels */
.rg-submain-card {
    margin-right: 20px !important;
}
.rg-screen-item {
    margin-right: 20px !important;
}

/* No results message */
#noResultsMessage {
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rg-actions-row {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #eee;
    }
    .rg-action-item {
        margin-left: 6px !important;
    }
    .rg-submain-card,
    .rg-screen-item {
        margin-right: 10px !important;
    }
}

/* New RoleGroup module cards layout */
#permissionsTreeContainer {
    max-height: none;
    overflow: visible;
    padding: 0;
    border: none;
    background: transparent;
}

#permissionsTree {
    display: block;
}

.min-w-0 {
    min-width: 0;
}

.rg-toolbar-note {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eef4ff;
    color: #2559b5;
    font-size: 13px;
    font-weight: 500;
}

.rg-module-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.rg-module-summary-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 255px;
    padding: 22px 22px 18px;
    border: 1px solid #dce3ee;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 8px 24px rgba(24, 56, 109, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rg-module-summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(24, 56, 109, 0.12);
    border-color: #9db7e9;
}

.rg-module-summary-card-partial {
    border-color: #f4c15d;
    box-shadow: 0 10px 28px rgba(244, 193, 93, 0.18);
}

.rg-module-summary-top {
    text-align: center;
}

.rg-module-count-row {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.rg-module-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: #e8f0ff;
    color: #2c67c6;
    font-size: 14px;
    font-weight: 700;
}

.rg-module-card-switch {
    margin-bottom: 0;
}

.rg-module-summary-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    margin-bottom: 14px;
}

.rg-module-summary-icon {
    font-size: 52px;
    color: #2c67c6;
}

.rg-module-summary-title {
    margin-bottom: 6px;
    color: #1a1f36;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.rg-module-summary-subtitle {
    min-height: 22px;
    color: #7b8798;
    font-size: 13px;
    line-height: 1.4;
}

.rg-module-summary-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.rg-module-summary-bottom-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rg-module-state-text {
    color: #5c6b80;
    font-size: 13px;
    font-weight: 600;
}

.rg-module-detail-link {
    color: #2c67c6;
    font-size: 13px;
    font-weight: 700;
}

#roleModuleDetailsModal .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(24, 56, 109, 0.18);
}

#roleModuleDetailsModal .modal-header {
    border-bottom: 1px solid #e8eef7;
    background: #f8fbff;
}

#roleModuleDetailsModal .modal-header .d-flex.align-items-center {
    gap: 8px;
}

#roleModuleDetailsModal .modal-header .d-flex.align-items-center .btn,
#roleModuleDetailsModal .modal-header .d-flex.align-items-center .close {
    margin-left: 0 !important;
}

#roleModuleDetailsModal .modal-title {
    font-weight: 700;
}

#roleModuleDetailsModal .modal-body {
    max-height: 72vh;
    overflow-y: auto;
    padding: 18px;
    background: #f3f7fc;
}

.rg-module-detail-shell .rg-module-detail-body {
    background: #f3f7fc;
}

.rg-submain-card {
    margin-right: 0 !important;
}

.rg-screen-item {
    margin-right: 0 !important;
}

.rg-screen-header {
    gap: 0;
}

.rg-screen-icon {
    margin-top: 3px;
}

.rg-screen-title-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.rg-screen-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
}

.rg-screen-name-en {
    margin-top: 2px;
    color: #6c757d;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.rg-actions-row {
    gap: 8px 12px;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
}

.rg-action-item {
    margin-left: 0 !important;
}

.rg-switch {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 0;
    padding: 0;
}

.rg-switch .custom-control-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rg-switch .custom-control-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    margin-bottom: 0;
    padding: 0;
    cursor: pointer;
    min-width: 48px;
    line-height: 1;
}

.rg-switch .custom-control-label::before,
.rg-switch .custom-control-label::after {
    display: none !important;
}

.rg-switch .rg-switch-track {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 48px;
    height: 24px;
    border-radius: 999px;
    background: #c3cfdd;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.rg-switch .rg-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(26, 31, 54, 0.18);
    transition: transform 0.2s ease;
}

.rg-switch .rg-switch-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    line-height: 1.4;
    white-space: nowrap;
}

.rg-switch .custom-control-input:focus + .custom-control-label .rg-switch-track {
    box-shadow: 0 0 0 0.18rem rgba(44, 103, 198, 0.14);
}

.rg-switch .custom-control-input:checked + .custom-control-label .rg-switch-track {
    background: #2ecc71;
}

.rg-switch .custom-control-input:checked + .custom-control-label .rg-switch-track::after {
    transform: translateX(-24px);
}

.rg-switch.rg-switch-sm {
    min-height: 22px;
}

.rg-switch.rg-switch-sm .custom-control-label {
    gap: 6px;
    min-height: 22px;
    min-width: 42px;
}

.rg-switch.rg-switch-sm .rg-switch-track {
    width: 42px;
    height: 22px;
}

.rg-switch.rg-switch-sm .rg-switch-track::after {
    top: 3px;
    right: 3px;
    width: 16px;
    height: 16px;
}

.rg-switch.rg-switch-sm .custom-control-input:checked + .custom-control-label .rg-switch-track::after {
    transform: translateX(-20px);
}

.rg-action-item .custom-control-label {
    font-size: 12px;
    line-height: 1.4;
}

.rg-action-item .rg-switch-text {
    color: #5c6778;
}

.rg-module-card-switch.rg-switch {
    justify-content: center;
}

.rg-module-card-switch.rg-switch .custom-control-label {
    min-width: 48px;
    justify-content: center;
}

.rg-no-actions {
    font-size: 12px;
}

@media (max-width: 991.98px) {
    .rg-module-summary-title {
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .rg-module-summary-grid {
        grid-template-columns: 1fr;
    }

    .rg-module-summary-card {
        min-height: 220px;
        padding: 18px;
    }

    .rg-module-summary-icon {
        font-size: 42px;
    }

    .rg-module-summary-bottom {
        align-items: center;
    }
}

/* ============================================================
   App Launcher - System Switcher
   ============================================================ */

/* Trigger Button (top-right inside site-logo) */
.app-launcher-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 15;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.app-launcher-btn:hover {
    background: rgba(255,255,255,0.28);
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.app-launcher-btn:active {
    transform: scale(0.95);
}
body.dark .app-launcher-btn {
    background: rgba(255,255,255,0.08);
}
body.dark .app-launcher-btn:hover {
    background: rgba(255,255,255,0.16);
}

/* ---- Overlay ---- */
.app-launcher-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-launcher-overlay.show {
    visibility: visible;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ---- Panel (slides from right) ---- */
.app-launcher-panel {
    width: 380px;
    max-width: 92vw;
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.app-launcher-overlay.show .app-launcher-panel {
    transform: translateX(0);
}
body.dark .app-launcher-panel {
    background: #1a1d2e;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
}

/* ---- Panel Header ---- */
.app-launcher-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #eef1f6;
    flex-shrink: 0;
}
body.dark .app-launcher-panel__header {
    border-color: #2a2d40;
}

.app-launcher-panel__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a2744;
    display: flex;
    align-items: center;
    gap: 10px;
}
.app-launcher-panel__title i {
    font-size: 20px;
    color: #1a73e8;
}
body.dark .app-launcher-panel__title {
    color: #d0d8f0;
}
body.dark .app-launcher-panel__title i {
    color: #648cf0;
}

.app-launcher-panel__close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f0f2f5;
    color: #555;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.app-launcher-panel__close:hover {
    background: #e0e3e8;
    color: #e53935;
    transform: rotate(90deg);
}
body.dark .app-launcher-panel__close {
    background: #2a2d40;
    color: #8890a8;
}
body.dark .app-launcher-panel__close:hover {
    background: #353850;
    color: #e53935;
}

/* ---- Panel Body ---- */
.app-launcher-panel__body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

/* ---- Grid ---- */
.app-launcher-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ---- App Card ---- */
.app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 14px 20px;
    border-radius: 16px;
    background: #f8f9fc;
    border: 2px solid transparent;
    text-decoration: none !important;
    color: #333 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}
.app-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    border-color: #d0d8f0;
}
.app-card:hover::before {
    opacity: 1;
}
.app-card:active {
    transform: translateY(-1px);
}

/* Active card (current system) */
.app-card.active {
    border-color: #1a73e8;
    background: linear-gradient(135deg, #eef3ff 0%, #e3ecfd 100%);
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.15);
}
.app-card.active:hover {
    box-shadow: 0 8px 28px rgba(26, 115, 232, 0.22);
}

/* Active badge */
.app-card__badge {
    display: none;
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #1a73e8;
    background: rgba(26, 115, 232, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    text-align: center;
}
.app-card.active .app-card__badge {
    display: block;
}

/* Icon */
.app-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}
.app-card:hover .app-card__icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.app-card__icon--erp {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
}
.app-card__icon--hospital {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
}
.app-card__icon--clinic {
    background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
    box-shadow: 0 4px 14px rgba(0, 137, 123, 0.35);
}
.app-card__icon--pharmacy {
    background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
    box-shadow: 0 4px 14px rgba(123, 31, 162, 0.35);
}
.app-card__icon--university {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    box-shadow: 0 4px 14px rgba(245, 124, 0, 0.35);
}

/* Info */
.app-card__info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.app-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #1a2744;
    line-height: 1.3;
}
body.dark .app-card__name {
    color: #d0d8f0;
}

.app-card__desc {
    font-size: 11px;
    color: #7890b0;
    line-height: 1.3;
}
body.dark .app-card__desc {
    color: #6878a0;
}

/* Dark mode cards */
body.dark .app-card {
    background: #222540;
    color: #c0c8e0 !important;
}
body.dark .app-card:hover {
    background: #282c48;
    border-color: #404868;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
body.dark .app-card.active {
    background: linear-gradient(135deg, #1e2850 0%, #1a2448 100%);
    border-color: #3060c0;
    box-shadow: 0 4px 20px rgba(48, 96, 192, 0.2);
}
body.dark .app-card__badge {
    color: #648cf0;
    background: rgba(100, 140, 240, 0.12);
}

/* Responsive */
@media (max-width: 480px) {
    .app-launcher-panel {
        width: 100vw;
        max-width: 100vw;
    }
    .app-launcher-grid {
        gap: 10px;
    }
    .app-card {
        padding: 18px 10px 16px;
    }
    .app-card__icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* ============================================================
   Multi-System Theme Variables
   ============================================================ */
.system-hospital {
    --system-primary: #e53935;
    --system-primary-dark: #c62828;
    --system-primary-light: #ffebee;
    --system-gradient: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    --system-form-bg: #c62828;
}
.system-clinic {
    --system-primary: #00897b;
    --system-primary-dark: #00695c;
    --system-primary-light: #e0f2f1;
    --system-gradient: linear-gradient(135deg, #00897b 0%, #00695c 100%);
    --system-form-bg: #00695c;
}
.system-pharmacy {
    --system-primary: #7b1fa2;
    --system-primary-dark: #6a1b9a;
    --system-primary-light: #f3e5f5;
    --system-gradient: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
    --system-form-bg: #6a1b9a;
}
.system-university {
    --system-primary: #f57c00;
    --system-primary-dark: #e65100;
    --system-primary-light: #fff3e0;
    --system-gradient: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    --system-form-bg: #e65100;
}

/* Theme overrides using CSS variables */
[class*="system-"] .top-header.bg-primary1 {
    background: var(--system-gradient) !important;
}
[class*="system-"] .my-form {
    background-color: var(--system-form-bg) !important;
}
[class*="system-"] .Top-Statistic .icon {
    background: var(--system-gradient) !important;
}
[class*="system-"] .inner-box .title-box::after {
    background: var(--system-primary) !important;
}
[class*="system-"] .app-launcher-btn {
    background: rgba(255,255,255,0.2);
}

