.dataTables_wrapper table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td:first-child:before {
    content: '+';
}


/*.btn-brand {
    color: #fff;
    background-color: #F47845;
    border-color: #F47845;
    color: #ffffff;
}


ED3551*/


.form-group {
    margin-bottom: 10px;
}

.kt-svg-icon g [fill] {
    fill: #293a70;
}


.btn-primary:hover {
    color: #fff;
    background-color: #1b2853;
    border-color: #1b2853;
}


.btn-primary {
    color: #fff;
    background-color: #293a70;
    border-color: #293a70;
    color: #ffffff;
}


.kt-header .kt-header-menu .kt-menu__nav>.kt-menu__item.kt-menu__item--here>.kt-menu__link .kt-menu__link-text,
.kt-header .kt-header-menu .kt-menu__nav>.kt-menu__item.kt-menu__item--active>.kt-menu__link .kt-menu__link-text,
.kt-header .kt-header-menu .kt-menu__nav>.kt-menu__item:hover>.kt-menu__link .kt-menu__link-text {
    color: #293a70;
}

.kt-menu__link:hover {
    background-color: #293a70 !important;

}

.kt-menu__link:hover span {
    color: white !important;
}

.btn-brand {
    color: #fff;
    background-color: #293a70;
    border-color: #293a70;
    color: #ffffff;
}

.btn-brand:hover {
    color: #fff;
    background-color: #1b2853;
    border-color: #1b2853;
}

.btn-brand:focus,
.btn-brand.focus {
    box-shadow: 0 0 0 0.2rem rgba(117, 140, 255, 0.5);

}

.btn-brand.disabled,
.btn-brand:disabled {
    color: #fff;
    background-color: #293a70;
    border-color: #293a70;
}

.btn-brand:not(:disabled):not(.disabled):active,
.btn-brand:not(:disabled):not(.disabled).active,
.show>.btn-brand.dropdown-toggle {
    color: #fff;
    background-color: #293a70;
    border-color: #293a70;
}

.btn-brand:not(:disabled):not(.disabled):active:focus,
.btn-brand:not(:disabled):not(.disabled).active:focus,
.show>.btn-brand.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(117, 140, 255, 0.5);
}

.btn-brand+.btn.dropdown-toggle {
    position: relative;
}

.btn-brand+.btn.dropdown-toggle:before {
    display: block;
    content: ' ';
    border-left: 1px solid #ffffff;
    position: absolute;
    top: 3px;
    left: -1px;
    bottom: 3px;
    opacity: 0.3;
}

.btn-brand+.btn.dropdown-toggle:hover:before,
.btn-brand+.btn.dropdown-toggle:focus:before,
.btn-brand+.btn.dropdown-toggle.active:before {
    display: none;
}


.kt-aside--fixed .kt-aside {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 98;
    background-color: #FFF;
}


.kt-aside__brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding: 0 25px;
    height: 65px;
    border-bottom: 1px solid #eff0f6;
}

#kt_footer>div>div.kt-footer__menu>a.kt-footer__menu-link.kt-link.simplemenulink {
    padding-top: 12px;
    margin-top: auto;
}

.narrativoMapbox {
    /*overflow: scroll;*/
    word-break: break-word;
    height: auto;
    overflow: auto;
}

fieldset {
    border: 1px solid #C0C0C0;
    border-radius: 4px;
    padding: 10pt;
    margin-bottom: 2em;
}

legend {
    margin: 0 1em 0.5em 1em;
    padding: 0 0.5em;
    width: min-content;
    white-space: nowrap;
}

.input-daterange input {
    text-align: center;
}

.header-logo-client img {
    max-height: 50px
}

@media (max-width: 767px) {
    .hidden-xs {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hidden-sm {
        display: none !important;
    }
}

/* Global background override: cambiar fondo de toda la app */
html,
body {
    background: #020618 !important;
    min-height: 100%;
    height: unset;
}

/* Custom Scrollbar for Dark Mode */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #020618;
}

::-webkit-scrollbar-thumb {
    background: #172443;
    border-radius: 10px;
    border: 3px solid #020618;
}

::-webkit-scrollbar-thumb:hover {
    background: #253966;
}

/* Firefox Support */
* {
    scrollbar-width: thin;
    scrollbar-color: #172443 #020618;
}


/* Portlet body background: aplicar fondo oscuro */
.kt-portlet .kt-portlet__body {
    background: #0b1129 !important;
}

/* Grid backgrounds for specific responsive grids */
.kt-grid.kt-grid--hor:not(.kt-grid--desktop):not(.kt-grid--desktop-and-tablet):not(.kt-grid--tablet):not(.kt-grid--tablet-and-mobile):not(.kt-grid--mobile)>.kt-grid__item.kt-grid__item--fluid,
.kt-grid.kt-grid--hor:not(.kt-grid--desktop):not(.kt-grid--desktop-and-tablet):not(.kt-grid--tablet):not(.kt-grid--tablet-and-mobile):not(.kt-grid--mobile)>.kt-grid__item.kt-grid__item--fluid {
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
    background: #020618 !important;
}

.kt-grid.kt-grid--hor:not(.kt-grid--desktop):not(.kt-grid--desktop-and-tablet):not(.kt-grid--tablet):not(.kt-grid--tablet-and-mobile):not(.kt-grid--mobile)>.kt-grid__item {
    -ms-flex: none;
    flex: none;
    background: #020618 !important;
}


/* Dashboard card styles - modern dark theme (4-column grid)
   Rows will naturally be 4, 4, and 2 depending on how many cards are present.
*/
.dashboard-grid {
    display: grid;
    /* enforce 3 equal columns on desktop */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0;
    align-items: stretch;
    grid-auto-flow: row dense;
    /* fixed row height so cards are identical and aligned */
    grid-auto-rows: 180px;
    padding: 2rem 3rem;
    justify-items: stretch;
}

/* Each card occupies one column (25%) by default */
.dashboard-grid .col-lg-4,
.dashboard-grid .card-feature,
.dashboard-grid .card-unavailable {
    margin-bottom: 0;
    /* remove extra inner padding so column width is controlled by grid gap */
    padding: 0 !important;
    box-sizing: border-box;
    grid-column: auto / span 1;
    display: flex !important;
    align-items: stretch;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

/* Ensure direct children are flex containers so cards can stretch */
.dashboard-grid>.col-lg-4,
.dashboard-grid>.card-feature {
    display: flex !important;
    align-items: stretch !important;
}

/* make anchors and portlets fill their grid cell to avoid uneven sizing */
.dashboard-grid a {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 auto;
}

.dashboard-grid .kt-portlet {
    /* ensure portlet is a column flex so body can stretch */
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
    flex: 1 1 auto;
}

.dashboard-grid .kt-portlet .kt-portlet__body {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1rem;
    flex: 1 1 auto;
}

/* Keep icon and text aligned and prevent description from expanding height */
.kt-iconbox__body {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
    text-align: left;
}

.kt-iconbox__desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    flex: 1;
}

.kt-iconbox__content {
    overflow: hidden;
    max-height: 4.8rem;
}

/* Truncate long titles if needed */
.kt-iconbox__title .kt-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Ensure the portlet itself stretches to the full height of the grid cell */
.dashboard-grid>.col-lg-4>.kt-portlet,
.dashboard-grid>.col-lg-4>a>.kt-portlet,
.dashboard-grid>.card-feature>.kt-portlet,
.dashboard-grid>.card-feature>a>.kt-portlet {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    border: 1px solid #eff0f64a !important;
}

/* Card container styling */
.kt-portlet.kt-iconbox {
    border: none !important;
    background: #172443 !important;
}

.kt-portlet.kt-iconbox .kt-portlet__body {
    background: #172443 !important;
    border-radius: 16px;
    padding: 1.5rem !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 88px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

/* Luminous border effect */
/* Border effect removed */

/* Premium icon container with glow */
.kt-iconbox__icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    margin-left: 0;
    margin-bottom: 0;
    padding-right: 0 !important;

    /* Glassmorphic icon background */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);

    /* Inner glow effect */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.2);

    color: #6fb3ff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on icon background */
.kt-iconbox__icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

/* Larger svg/icon size and apply currentColor to paths where possible */
.kt-iconbox__icon svg,
.kt-iconbox__icon img {
    width: 34px;
    height: 34px;
}

.kt-iconbox__icon svg path,
.kt-iconbox__icon svg g [fill] {
    fill: currentColor !important;
}

/* Title and content styling */
.kt-iconbox__title .kt-link {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.08rem;
    display: block;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.kt-iconbox__content {
    color: #a0aec0;
    font-size: 0.875rem;
    margin-top: 0;
    line-height: 1.5;
}

/* Premium hover effect */
.kt-portlet.kt-iconbox:hover .kt-portlet__body {
    transform: translateY(-4px) scale(1.01);

    /* Enhanced glow on hover */
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.3);

    background: linear-gradient(135deg,
            rgba(50, 62, 92, 0.65) 0%,
            rgba(35, 45, 68, 0.55) 100%) !important;
}

/* Shimmer animation on hover */
.kt-portlet.kt-iconbox:hover .kt-iconbox__icon::before {
    transform: translateX(100%);
}

/* Disabled / unavailable card look */
.kt-portlet.kt-iconbox[aria-disabled="true"],
.kt-portlet.kt-iconbox[style*="opacity: 0.6"],
.kt-portlet.kt-iconbox[disabled] {
    opacity: .6 !important;
    filter: grayscale(.15);
}

/* Make header spacing tighter */
.dashboard-header {
    margin-bottom: 1rem;
}

.dashboard-header h1 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0 0 .15rem 0;
}

.dashboard-header p {
    color: #9ea9b6;
    margin: 0 0 0 0;
}

.dashboard-meta {
    float: right;
    color: #9ea9b6;
    text-align: right;
}

.dashboard-meta .date {
    display: block;
    font-size: 0.95rem;
}

.dashboard-meta .role {
    color: #8f9aa8;
    font-size: 0.85rem;
}

/* Responsive adjustments: 3 cols desktop, 2 cols tablet, 1 col mobile */
@media (min-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) and (max-width:1199px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
        padding: 1.5rem;
    }

    .dashboard-grid .col-lg-4 {
        padding: 0;
    }
}

@media (max-width: 575px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1rem;
    }
}

/* Override legacy .col-lg-4 constraints (remove restrictive max-width so grid cells can grow) */
@media (min-width: 1024px) {
    .dashboard-grid .col-lg-4 {
        flex: 0 1 auto !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* Premium color utility classes with gradients and glow */
.icon-blue {
    color: #60a5fa !important;
    background: linear-gradient(135deg,
            rgba(96, 165, 250, 0.25),
            rgba(59, 130, 246, 0.18)) !important;
    box-shadow:
        inset 0 1px 0 rgba(96, 165, 250, 0.3),
        0 4px 16px rgba(59, 130, 246, 0.25),
        0 0 32px rgba(59, 130, 246, 0.15);
}

.icon-green {
    color: #34d399 !important;
    background: linear-gradient(135deg,
            rgba(52, 211, 153, 0.25),
            rgba(16, 185, 129, 0.18)) !important;
    box-shadow:
        inset 0 1px 0 rgba(52, 211, 153, 0.3),
        0 4px 16px rgba(16, 185, 129, 0.25),
        0 0 32px rgba(16, 185, 129, 0.15);
}

.icon-purple {
    color: #a78bfa !important;
    background: linear-gradient(135deg,
            rgba(167, 139, 250, 0.25),
            rgba(139, 92, 246, 0.18)) !important;
    box-shadow:
        inset 0 1px 0 rgba(167, 139, 250, 0.3),
        0 4px 16px rgba(139, 92, 246, 0.25),
        0 0 32px rgba(139, 92, 246, 0.15);
}

.icon-amber {
    color: #fbbf24 !important;
    background: linear-gradient(135deg,
            rgba(251, 191, 36, 0.25),
            rgba(245, 158, 11, 0.18)) !important;
    box-shadow:
        inset 0 1px 0 rgba(251, 191, 36, 0.3),
        0 4px 16px rgba(245, 158, 11, 0.25),
        0 0 32px rgba(245, 158, 11, 0.15);
}

.icon-red {
    color: #f87171 !important;
    background: linear-gradient(135deg,
            rgba(248, 113, 113, 0.25),
            rgba(239, 68, 68, 0.18)) !important;
    box-shadow:
        inset 0 1px 0 rgba(248, 113, 113, 0.3),
        0 4px 16px rgba(239, 68, 68, 0.25),
        0 0 32px rgba(239, 68, 68, 0.15);
}

.icon-gray {
    color: #94a3b8 !important;
    background: linear-gradient(135deg,
            rgba(148, 163, 184, 0.25),
            rgba(100, 116, 139, 0.18)) !important;
    box-shadow:
        inset 0 1px 0 rgba(148, 163, 184, 0.3),
        0 4px 16px rgba(100, 116, 139, 0.25);
}

.icon-cyan {
    color: #22d3ee !important;
    background: linear-gradient(135deg,
            rgba(34, 211, 238, 0.25),
            rgba(6, 182, 212, 0.18)) !important;
    box-shadow:
        inset 0 1px 0 rgba(34, 211, 238, 0.3),
        0 4px 16px rgba(6, 182, 212, 0.25),
        0 0 32px rgba(6, 182, 212, 0.15);
}

.icon-orange {
    color: #fb923c !important;
    background: linear-gradient(135deg,
            rgba(251, 146, 60, 0.25),
            rgba(249, 115, 22, 0.18)) !important;
    box-shadow:
        inset 0 1px 0 rgba(251, 146, 60, 0.3),
        0 4px 16px rgba(249, 115, 22, 0.25),
        0 0 32px rgba(249, 115, 22, 0.15);
}

/* Feature card variant: larger and more prominent (span 2 of 4 = 50%) */
.dashboard-grid .card-feature {
    /* keep feature visual but not change span to avoid layout gaps */
    grid-column: auto / span 1;
    order: 1;
    /* Available cards come first */
}

/* Make kt-portlet fill its column and keep consistent height */
.dashboard-grid .col-lg-4,
.dashboard-grid .card-feature {
    display: flex;
}

.kt-portlet.kt-iconbox {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.kt-portlet.kt-iconbox .kt-portlet__body {
    flex: 1 1 auto;
}

/* Ensure unavailable cards are visually de-prioritized and placed after available cards */
.card-unavailable {
    opacity: .65;
    order: 999 !important;
    /* Move to end of grid */
}

.dashboard-grid .card-unavailable .kt-portlet__body {
    filter: grayscale(.12);
}


/* Badge for unavailable modules */
.badge-unavailable {
    display: inline-block;
    background: rgba(248, 113, 113, 0.15);
    color: #fca5a5;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
    margin-top: 8px;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

/* Disabled cursor on unavailable links */
a.unavailable {
    cursor: not-allowed;
}

/* Icon microinteraction */
.kt-portlet.kt-iconbox:hover .kt-iconbox__icon {
    transform: scale(1.08);
    filter: brightness(1.15);
}

/* Enhanced hover effects with intensified glow */
.kt-portlet.kt-iconbox:hover .icon-blue {
    background: linear-gradient(135deg,
            rgba(96, 165, 250, 0.35),
            rgba(59, 130, 246, 0.25)) !important;
    box-shadow:
        inset 0 1px 0 rgba(96, 165, 250, 0.4),
        0 6px 20px rgba(59, 130, 246, 0.4),
        0 0 40px rgba(59, 130, 246, 0.25);
    transform: scale(1.05);
}

.kt-portlet.kt-iconbox:hover .icon-green {
    background: linear-gradient(135deg,
            rgba(52, 211, 153, 0.35),
            rgba(16, 185, 129, 0.25)) !important;
    box-shadow:
        inset 0 1px 0 rgba(52, 211, 153, 0.4),
        0 6px 20px rgba(16, 185, 129, 0.4),
        0 0 40px rgba(16, 185, 129, 0.25);
    transform: scale(1.05);
}

.kt-portlet.kt-iconbox:hover .icon-amber {
    background: linear-gradient(135deg,
            rgba(251, 191, 36, 0.35),
            rgba(245, 158, 11, 0.25)) !important;
    box-shadow:
        inset 0 1px 0 rgba(251, 191, 36, 0.4),
        0 6px 20px rgba(245, 158, 11, 0.4),
        0 0 40px rgba(245, 158, 11, 0.25);
    transform: scale(1.05);
}

.kt-portlet.kt-iconbox:hover .icon-red {
    background: linear-gradient(135deg,
            rgba(248, 113, 113, 0.35),
            rgba(239, 68, 68, 0.25)) !important;
    box-shadow:
        inset 0 1px 0 rgba(248, 113, 113, 0.4),
        0 6px 20px rgba(239, 68, 68, 0.4),
        0 0 40px rgba(239, 68, 68, 0.25);
    transform: scale(1.05);
}

.kt-portlet.kt-iconbox:hover .icon-purple {
    background: linear-gradient(135deg,
            rgba(167, 139, 250, 0.35),
            rgba(139, 92, 246, 0.25)) !important;
    box-shadow:
        inset 0 1px 0 rgba(167, 139, 250, 0.4),
        0 6px 20px rgba(139, 92, 246, 0.4),
        0 0 40px rgba(139, 92, 246, 0.25);
    transform: scale(1.05);
}

.kt-portlet.kt-iconbox:hover .icon-cyan {
    background: linear-gradient(135deg,
            rgba(34, 211, 238, 0.35),
            rgba(6, 182, 212, 0.25)) !important;
    box-shadow:
        inset 0 1px 0 rgba(34, 211, 238, 0.4),
        0 6px 20px rgba(6, 182, 212, 0.4),
        0 0 40px rgba(6, 182, 212, 0.25);
    transform: scale(1.05);
}

.kt-portlet.kt-iconbox:hover .icon-orange {
    background: linear-gradient(135deg,
            rgba(251, 146, 60, 0.35),
            rgba(249, 115, 22, 0.25)) !important;
    box-shadow:
        inset 0 1px 0 rgba(251, 146, 60, 0.4),
        0 6px 20px rgba(249, 115, 22, 0.4),
        0 0 40px rgba(249, 115, 22, 0.25);
    transform: scale(1.05);
}

/* Card visual polish: subtle border, consistent padding, bigger icon block */
.kt-portlet.kt-iconbox {
    background: #172443 !important;
    border-radius: 10px;
    border: 1px solid #eff0f64a !important;
}

.kt-portlet.kt-iconbox .kt-portlet__body {
    padding: 1rem !important;
    /* Let the body fill the portlet height so all cards match */
    min-height: unset;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

/* Icon block - larger, rounder, subtle inner gradient */
.kt-iconbox__icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    margin-left: 0;
    margin-bottom: 0;
    padding-right: 0 !important;
    background: rgba(255, 255, 255, 0.03);
    color: #6fb3ff;
    /* default icon color */
}

.kt-iconbox__icon svg,
.kt-iconbox__icon img {
    width: 36px;
    height: 36px;
}

/* Title & content sizes for professional look */
.kt-iconbox__title .kt-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 0.35rem;
}

.kt-iconbox__content {
    font-size: 0.88rem;
    color: #a8b3c5;
    line-height: 1.4;
}

/* Ensure card fills cell height and content is vertically distributed */
.kt-iconbox__body {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.kt-iconbox__desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    flex: 1;
}

.kt-iconbox__content {
    margin-top: 0.35rem;
}

/* Force consistent inner layout so titles and descriptions don't push heights */
.kt-iconbox__title {
    margin: 0 0 0.35rem 0;
}

.kt-iconbox__title .kt-link {
    display: block;
}

/* Slightly reduce gap on small screens to avoid large whitespace */
@media (max-width: 991px) {
    .dashboard-grid {
        padding: 0.75rem 0.5rem;
        gap: 1rem;
    }

    .kt-portlet.kt-iconbox .kt-portlet__body {
        min-height: 140px;
        padding: 1rem !important;
    }
}

/* De-prioritize unavailable cards visually
   Note: for deterministic ordering across browsers we also add the class to the markup.
*/
.card-unavailable {
    opacity: .65;
}

.card-unavailable .kt-portlet__body {
    filter: grayscale(.12);
}

/* Subtle highlight on hover of the title and description */
.kt-portlet.kt-iconbox:hover .kt-iconbox__title .kt-link,
.kt-portlet.kt-iconbox:hover .kt-iconbox__content {
    color: #ffffff !important;
}

/* Improve description legibility */
.kt-iconbox__content {
    line-height: 1.45;
    color: #9fb0c6;
}



/* Dark mode for User Edit page */
.card-small-settings {
    background: transparent;
    padding: 0.75rem 0;
}

.card-small-settings .container {
    background: linear-gradient(180deg, #22242d 0%, #1f2330 100%);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(3, 8, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: #e6eef8;
}

.card-small-settings h1.link-text,
.card-small-settings h4,
.card-small-settings h2,
.card-small-settings h5 {
    color: #e6eef8;
}

.card-small-settings label,
.card-small-settings .form-check-label,
.card-small-settings .float-left,
.card-small-settings .form-group>label {
    color: #bfc7d6;
}

.card-small-settings .form-control,
.card-small-settings select.form-control,
.card-small-settings textarea.form-control {
    background-color: #172443 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e6eef8 !important;
    box-shadow: none !important;
    border-radius: 8px;
}

.card-small-settings input.form-control[readonly],
.card-small-settings input.form-control.readonly {
    background-color: #23262f !important;
    color: #cfd6e2 !important;
    opacity: 1 !important;
}

.card-small-settings .input-group-text {
    background: #172443 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #9fb0d3 !important;
}

.card-small-settings .form-check-input {
    background: #172443 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.card-small-settings .ms-container,
.card-small-settings .ms-list {
    background: #172443 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e6eef8 !important;
}

.card-small-settings select[multiple],
.card-small-settings select[multiple] option {
    background: #172443 !important;
    color: #e6eef8 !important;
}

.card-small-settings .btn.btn-primary {
    background-color: #3699ff !important;
    border-color: #3699ff !important;
    color: #ffffff !important;
}

.card-small-settings .btn.btn-secondary {
    background-color: #172443 !important;
    border-color: #3b3f4f !important;
    color: #c7d0df !important;
}

.card-small-settings .btn.btn-primary:hover {
    background-color: #1e76d1 !important;
    border-color: #1e76d1 !important;
}

/* Make the large permission lists readable */
.card-small-settings .col-6 select[multiple] {
    height: 360px !important;
}

/* Ensure modal / validation messages are visible */
.card-small-settings .text-danger {
    color: #ff7b7b !important;
}

/* Responsive tweaks to avoid overflow */
@media (max-width: 991px) {
    .card-small-settings .container {
        padding: 1rem;
    }

    .card-small-settings .col-lg-3,
    .card-small-settings .col-lg-6,
    .card-small-settings .col-lg-9 {
        width: 100%;
        max-width: 100%;
    }
}