/*
 * ASPC Warehouse Enterprise UI
 * A non-destructive design layer for the legacy Bootstrap application.
 */

@font-face {
    font-family: "ASPC IranSans";
    src: url("../fonts/IRANSansWeb-Light.woff2") format("woff2");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "ASPC IranSans";
    src: url("../fonts/IRANSansWeb-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ASPC IranSans";
    src: url("../fonts/IRANSansWeb-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "ASPC IranSans";
    src: url("../fonts/IRANSansWeb-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --aspc-navy-950: #0a252c;
    --aspc-navy-900: #10343c;
    --aspc-navy-800: #174751;
    --aspc-navy-700: #235d68;
    --aspc-teal-700: #328f8a;
    --aspc-teal-600: #4fb9b1;
    --aspc-teal-500: #6dcbc2;
    --aspc-teal-300: #aaffff;
    --aspc-blue-600: #3274c8;
    --aspc-violet-600: #7259c9;
    --aspc-green-600: #238b68;
    --aspc-amber-600: #c77a12;
    --aspc-red-600: #c94343;
    --aspc-ink: #173b43;
    --aspc-muted: #668087;
    --aspc-line: #dce8ea;
    --aspc-line-strong: #c8dadd;
    --aspc-surface: #ffffff;
    --aspc-surface-soft: #f5f9fa;
    --aspc-canvas: #eef4f5;
    --aspc-radius-sm: 10px;
    --aspc-radius: 16px;
    --aspc-radius-lg: 24px;
    --aspc-shadow-sm: 0 5px 18px rgba(12, 58, 67, 0.07);
    --aspc-shadow: 0 14px 38px rgba(12, 58, 67, 0.1);
    --aspc-shadow-lg: 0 24px 70px rgba(6, 39, 47, 0.18);
    --aspc-sidebar: 278px;
    --aspc-header: 82px;
    --aspc-motion: 180ms ease;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    background: var(--aspc-canvas);
    color: var(--aspc-ink);
    font-family: IranSans, Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.aspc-nav-open {
    overflow: hidden;
}

::selection {
    color: #fff;
    background: var(--aspc-teal-700);
}

a,
button,
input,
select,
textarea {
    transition: color var(--aspc-motion), background-color var(--aspc-motion),
        border-color var(--aspc-motion), box-shadow var(--aspc-motion), transform var(--aspc-motion);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(79, 185, 177, 0.36);
    outline-offset: 2px;
}

.aspc-skip-link {
    position: fixed;
    top: -100px;
    right: 16px;
    z-index: 1000000;
    padding: 10px 16px;
    color: #fff;
    background: var(--aspc-navy-950);
    border-radius: 0 0 var(--aspc-radius-sm) var(--aspc-radius-sm);
    font-weight: 700;
}

.aspc-skip-link:focus {
    top: 0;
    color: #fff;
}

.text-muted {
    color: var(--aspc-muted) !important;
}

.ltr,
input[type="email"],
input[type="tel"],
input[type="url"],
input[name*="code" i],
input[name*="phone" i],
input[name*="mobile" i] {
    direction: ltr;
    text-align: left;
}

/* Application shell */

.ecaps-sidemenu-area {
    width: var(--aspc-sidebar);
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 8%, rgba(109, 203, 194, 0.22), transparent 28%),
        linear-gradient(165deg, var(--aspc-navy-800) 0%, var(--aspc-navy-950) 100%);
    border-left: 1px solid rgba(170, 255, 255, 0.1);
    box-shadow: -10px 0 35px rgba(5, 35, 42, 0.12);
}

.ecaps-logo a {
    width: var(--aspc-sidebar);
    height: var(--aspc-header);
    padding: 13px 18px;
    background: rgba(7, 36, 43, 0.6);
    border-left: 0;
    border-bottom: 1px solid rgba(170, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.ecaps-logo a img.desktop-logo {
    width: 215px;
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
}

.ecaps-logo a img.small-logo {
    max-height: 39px;
}

.ecaps-page-wrapper .ecaps-sidemenu-area .slimScrollDiv {
    top: var(--aspc-header);
    padding-bottom: var(--aspc-header) !important;
    background: transparent;
    box-shadow: none;
}

.ecaps-sidenav {
    scrollbar-color: rgba(170, 255, 255, 0.3) transparent;
    scrollbar-width: thin;
}

.ecaps-sidenav::-webkit-scrollbar {
    width: 5px;
}

.ecaps-sidenav::-webkit-scrollbar-thumb {
    background: rgba(170, 255, 255, 0.28);
    border-radius: 20px;
}

.sidebar-menu {
    padding: 13px 0 100px;
}

.sidebar-menu > li {
    margin: 3px 10px;
}

.sidebar-menu li a {
    min-height: 48px;
    height: auto;
    padding: 10px 13px;
    color: rgba(255, 255, 255, 0.78);
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.45;
}

.sidebar-menu li a i {
    flex: 0 0 30px;
    width: 30px;
    max-width: 30px;
    color: rgba(170, 255, 255, 0.8);
    font-size: 18px;
    text-align: center;
}

.sidebar-menu li a span {
    flex-basis: calc(100% - 34px);
    width: calc(100% - 34px);
    max-width: calc(100% - 34px);
}

.sidebar-menu li a:hover,
.sidebar-menu li a:focus {
    color: #fff;
    background: rgba(170, 255, 255, 0.08);
}

.sidebar-menu > li.active > a,
.sidebar-menu > li.menu-open > a {
    color: var(--aspc-navy-950);
    background: linear-gradient(135deg, var(--aspc-teal-300), var(--aspc-teal-500));
    box-shadow: 0 8px 22px rgba(79, 185, 177, 0.21);
    font-weight: 700;
}

.sidebar-menu > li.active > a i,
.sidebar-menu > li.menu-open > a i {
    color: var(--aspc-navy-900);
}

.sidebar-menu li .treeview-menu {
    margin: 7px 28px 8px 8px;
    padding: 4px 8px 4px 0;
    border-right: 1px solid rgba(170, 255, 255, 0.18);
}

.sidebar-menu li .treeview-menu li a {
    min-height: 38px;
    height: auto;
    padding: 8px 13px;
    color: rgba(255, 255, 255, 0.68);
    border-radius: 9px;
    font-size: 12.5px;
}

.sidebar-menu li .treeview-menu li a::before {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 9px;
    content: "";
    background: rgba(170, 255, 255, 0.55);
    border-radius: 50%;
}

.sidebar-menu .treeview-menu > li.active > a {
    color: var(--aspc-teal-300);
    background: rgba(170, 255, 255, 0.07);
    font-weight: 700;
}

.sidebar-menu a .fa-angle-left,
.sidebar-menu a .fa-angle-right {
    position: absolute;
    left: 17px;
    width: auto;
    color: inherit;
    font-size: 14px;
    transition: transform var(--aspc-motion);
}

.sidebar-menu .menu-open > a > .fa-angle-left,
.sidebar-menu .menu-open > a > .fa-angle-right {
    transform: rotate(-90deg);
}

.ecaps-page-content {
    margin-right: var(--aspc-sidebar);
    padding-top: var(--aspc-header);
}

.top-header-area {
    right: var(--aspc-sidebar);
    width: calc(100% - var(--aspc-sidebar));
    height: var(--aspc-header);
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(200, 218, 221, 0.75);
    box-shadow: 0 5px 22px rgba(12, 58, 67, 0.07);
    backdrop-filter: blur(16px);
}

.top-header-area .left-side-content-area {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
}

.top-header-area .right-side-navbar {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

.ecaps-triggers {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.menu-collasped,
.mobile-menu-open,
.right-side-trigger {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    background: var(--aspc-surface-soft);
    border: 1px solid var(--aspc-line);
    border-radius: 12px;
}

.menu-collasped > i,
.mobile-menu-open > i {
    position: static;
    color: var(--aspc-navy-700);
    font-size: 22px;
    transform: none;
}

.menu-collasped:hover,
.mobile-menu-open:hover,
.right-side-trigger:hover {
    background: #e8f5f4;
    border-color: rgba(79, 185, 177, 0.45);
}

.aspc-field-hint {
    display: block;
    margin-top: 8px;
    color: var(--aspc-muted);
    font-size: 11px;
    line-height: 1.8;
}

.aspc-inline-action {
    display: inline-flex;
    margin-top: 4px;
    align-items: center;
    color: var(--aspc-teal-700);
    font-size: 11px;
    font-weight: 700;
}

.aspc-inline-action:hover {
    color: var(--aspc-navy-700);
}

.aspc-scope-summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(79, 185, 177, 0.28);
    border-right: 4px solid var(--aspc-teal-500);
    border-radius: 10px;
    background: rgba(79, 185, 177, 0.08);
    color: var(--aspc-navy-700);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.9;
}

@media (max-width: 575.98px) {
    .aspc-scope-summary {
        padding: 9px 11px;
        font-size: 11px;
    }
}

@media (min-width: 992px) {
    .mobile-menu-open {
        display: none !important;
    }
}

.aspc-header-context {
    display: flex;
    min-width: 0;
    margin-right: 13px;
    flex-direction: column;
    line-height: 1.45;
}

.aspc-header-context strong {
    overflow: hidden;
    color: var(--aspc-navy-900);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aspc-header-context span {
    overflow: hidden;
    color: var(--aspc-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-clock {
    margin-right: 18px;
    padding-right: 18px;
    color: var(--aspc-navy-700);
    border-right: 1px solid var(--aspc-line);
    font-size: 12px;
    line-height: 1.25;
}

.dashboard-clock ul {
    color: var(--aspc-blue-600);
    font-size: 14px;
    font-weight: 700;
}

.top-header-area .right-side-content {
    gap: 4px;
}

.top-header-area .nav-item.dropdown > .btn {
    display: grid;
    width: 43px;
    height: 43px;
    min-height: 43px;
    padding: 0;
    place-items: center;
    color: var(--aspc-navy-700);
    background: var(--aspc-surface-soft);
    border: 1px solid var(--aspc-line);
    border-radius: 12px;
}

.top-header-area .nav-item.dropdown > .btn:hover,
.top-header-area .nav-item.dropdown > .btn:focus {
    color: var(--aspc-teal-700);
    background: #eaf7f6;
}

.top-header-area .nav-item.dropdown > .btn img {
    width: 31px;
    height: 31px;
    object-fit: cover;
    border-radius: 10px;
}

.top-header-area .nav-item.dropdown .badge {
    position: absolute;
    top: -5px;
    left: -6px !important;
    min-width: 19px;
    height: 19px;
    padding: 3px 5px !important;
    color: #fff;
    border: 2px solid #fff;
    font-size: 9px !important;
    line-height: 9px;
}

.top-header-area .nav-item.dropdown .dropdown-menu {
    min-width: 310px;
    max-width: min(390px, calc(100vw - 24px));
    margin-top: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--aspc-line);
    border-radius: var(--aspc-radius);
    box-shadow: var(--aspc-shadow-lg);
}

.top-header-area .nav-item.dropdown .dropdown-menu.dropdown-menu-right {
    right: auto;
    left: 0;
}

.notifications-heading,
.user-profile-heading {
    padding: 17px 18px;
    background: var(--aspc-surface-soft);
    border-bottom: 1px solid var(--aspc-line);
}

.notifications-heading h6,
.user-profile-heading h6 {
    color: var(--aspc-navy-900);
    font-weight: 800;
}

.notifications-box {
    max-height: min(410px, 60vh);
    overflow-y: auto;
}

.notifications-box .dropdown-item,
.user-profile-area > .dropdown-item,
.user-profile-area form .dropdown-item {
    height: auto;
    min-height: 54px;
    padding: 12px 16px;
    color: var(--aspc-ink);
    white-space: normal;
    border-bottom: 1px solid #edf3f4;
}

.notifications-box .dropdown-item:hover,
.user-profile-area .dropdown-item:hover {
    background: #f0f9f8;
}

.aspc-stock-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.aspc-stock-alert form {
    flex: 0 0 auto;
}

.aspc-dismiss-alert {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    color: var(--aspc-red-600);
    background: #fff0f0;
    border: 1px solid #f4cccc;
    border-radius: 9px;
    cursor: pointer;
}

.aspc-dismiss-alert:hover {
    color: #fff;
    background: var(--aspc-red-600);
    border-color: var(--aspc-red-600);
}

.aspc-stock-alert__content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    color: var(--aspc-muted);
    font-size: 11px;
    line-height: 1.75;
}

.aspc-stock-alert__content strong {
    overflow: hidden;
    color: var(--aspc-navy-800);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aspc-stock-alert__content small {
    margin-top: 4px;
    color: var(--aspc-red-600);
    font-weight: 700;
}

.aspc-notification-empty {
    display: flex;
    min-height: 120px;
    padding: 22px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    color: var(--aspc-muted);
    font-size: 11px;
    text-align: center;
}

.aspc-notification-empty i {
    color: var(--aspc-green-600);
    font-size: 28px;
}

.aspc-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 102;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    pointer-events: none;
    visibility: hidden;
    background: rgba(5, 30, 36, 0.56);
    border: 0;
    opacity: 0;
    backdrop-filter: blur(2px);
}

.menu-collasped-active.ecaps-page-wrapper .ecaps-sidemenu-area {
    right: calc((var(--aspc-sidebar) - 55px) * -1);
}

.menu-collasped-active.ecaps-page-wrapper .ecaps-page-content {
    margin-right: 55px;
}

.menu-collasped-active.ecaps-page-wrapper .ecaps-logo a {
    width: 55px;
    padding: 12px 8px;
}

.menu-collasped-active.ecaps-page-wrapper .top-header-area {
    right: 55px;
    width: calc(100% - 55px);
}

/* Content, cards and navigation */

.main-content {
    min-height: calc(100vh - var(--aspc-header));
    padding: 24px 10px 36px;
}

.container-fluid {
    width: 100%;
    max-width: 1640px;
    margin-inline: auto;
    padding-right: 18px;
    padding-left: 18px;
}

.breadcrumb {
    margin: 0 0 15px;
    padding: 8px 4px;
    background: transparent;
    border-radius: 0;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: var(--aspc-muted);
    font-size: 12.5px;
}

.breadcrumb-item a:hover {
    color: var(--aspc-teal-700);
}

.breadcrumb-item.active {
    color: var(--aspc-ink);
    font-weight: 700;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #9ab0b5;
}

.aspc-page-guidance {
    display: flex;
    min-height: 64px;
    margin: -4px 0 18px;
    padding: 12px 15px;
    align-items: flex-start;
    gap: 11px;
    color: #365c65;
    background: linear-gradient(135deg, #f7fbfb, #eef8f7);
    border: 1px solid #d3e7e7;
    border-right: 4px solid var(--aspc-teal-600);
    border-radius: 12px;
}

.aspc-page-guidance > i {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    color: var(--aspc-teal-700);
    background: #fff;
    border: 1px solid #d6e8e8;
    border-radius: 10px;
    font-size: 18px;
}

.aspc-page-guidance p {
    display: flex;
    margin: 0;
    flex-direction: column;
    color: #526f76;
    font-size: 12.75px;
    line-height: 1.8;
}

.aspc-page-guidance strong {
    margin-bottom: 1px;
    color: #184852;
    font-size: 13.5px;
}

.box-margin {
    margin-bottom: 22px;
}

.card {
    overflow: visible;
    background: var(--aspc-surface);
    border: 1px solid rgba(200, 218, 221, 0.82);
    border-radius: var(--aspc-radius);
    box-shadow: var(--aspc-shadow-sm);
}

.card:hover {
    box-shadow: var(--aspc-shadow);
}

.card-body {
    padding: 24px;
}

.card-title {
    margin-bottom: 18px !important;
    color: var(--aspc-navy-900);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.65;
}

.card-title + hr,
.card h4 + hr,
.card h5 + hr {
    margin: 0 0 22px;
    border-top: 1px solid var(--aspc-line);
}

.data-table-area > .container-fluid > .row,
.dashboard-area > .container-fluid > .row {
    margin-right: -10px;
    margin-left: -10px;
}

.data-table-area > .container-fluid > .row > [class*="col-"],
.dashboard-area > .container-fluid > .row > [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

/* Forms */

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

.form-group label,
label {
    margin-bottom: 8px;
    color: var(--aspc-navy-800);
    font-size: 13px;
    font-weight: 700;
}

label.aspc-required::after {
    margin-right: 4px;
    color: var(--aspc-red-600);
    content: "*";
}

.form-control {
    min-height: 47px;
    padding: 10px 13px;
    color: var(--aspc-ink);
    background-color: #fff;
    border: 1px solid var(--aspc-line-strong);
    border-radius: var(--aspc-radius-sm);
    font-family: inherit;
    font-size: 14px;
}

textarea.form-control {
    min-height: 112px;
    resize: vertical;
}

.form-control:hover {
    border-color: #a9c4c8;
}

.form-control:focus {
    color: var(--aspc-ink);
    background: #fff;
    border-color: var(--aspc-teal-600);
    box-shadow: 0 0 0 4px rgba(79, 185, 177, 0.15);
}

.form-control::placeholder {
    color: #9aadb1;
    opacity: 1;
}

.form-control:disabled,
.form-control[readonly] {
    color: #6d8085;
    background: #eef3f4;
}

select.form-control:not([multiple]) {
    padding-left: 34px;
}

input[type="file"].form-control {
    height: auto;
    min-height: 50px;
    padding: 8px 10px;
    line-height: 30px;
}

input[type="file"]::file-selector-button {
    margin-left: 12px;
    padding: 7px 14px;
    color: var(--aspc-navy-800);
    background: #e8f5f4;
    border: 0;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.select2-container {
    width: 100% !important;
    max-width: 100%;
}

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    min-height: 47px;
    color: var(--aspc-ink);
    background: #fff;
    border: 1px solid var(--aspc-line-strong);
    border-radius: var(--aspc-radius-sm);
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 9px 13px 8px 38px;
    color: var(--aspc-ink);
    line-height: 28px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    right: auto;
    left: 10px;
    height: 45px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--aspc-teal-600);
    box-shadow: 0 0 0 4px rgba(79, 185, 177, 0.15);
}

.select2-dropdown {
    overflow: hidden;
    border: 1px solid var(--aspc-line-strong);
    border-radius: var(--aspc-radius-sm);
    box-shadow: var(--aspc-shadow);
}

.select2-search--dropdown {
    padding: 9px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    min-height: 39px;
    padding: 6px 10px;
    border: 1px solid var(--aspc-line-strong);
    border-radius: 8px;
}

.select2-results__option {
    padding: 9px 12px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    color: var(--aspc-navy-950);
    background: var(--aspc-teal-300);
}

.invalid-feedback,
.text-danger {
    color: var(--aspc-red-600) !important;
}

.alert {
    padding: 14px 16px;
    border: 0;
    border-radius: var(--aspc-radius-sm);
}

.alert-danger {
    color: #842f2f;
    background: #fff0f0;
    border-right: 4px solid var(--aspc-red-600);
}

.alert-success {
    color: #17644a;
    background: #eaf8f2;
    border-right: 4px solid var(--aspc-green-600);
}

/* Buttons and badges */

.btn {
    min-height: 42px;
    padding: 9px 17px;
    border-width: 1px;
    border-radius: var(--aspc-radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.65;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary,
.btn-outline-primary:hover {
    color: #fff;
    background: var(--aspc-teal-700);
    border-color: var(--aspc-teal-700);
    box-shadow: 0 6px 15px rgba(50, 143, 138, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background: #287b77;
    border-color: #287b77;
}

.btn-success,
.btn-outline-success:hover {
    color: #fff;
    background: var(--aspc-green-600);
    border-color: var(--aspc-green-600);
}

.btn-danger,
.btn-outline-danger:hover {
    color: #fff;
    background: var(--aspc-red-600);
    border-color: var(--aspc-red-600);
}

.btn-warning,
.btn-outline-warning:hover {
    color: #fff;
    background: var(--aspc-amber-600);
    border-color: var(--aspc-amber-600);
}

.btn-info,
.btn-outline-info:hover {
    color: #fff;
    background: var(--aspc-blue-600);
    border-color: var(--aspc-blue-600);
}

.btn-outline-primary {
    color: var(--aspc-teal-700);
    border-color: var(--aspc-teal-600);
}

.btn-outline-success {
    color: var(--aspc-green-600);
    border-color: rgba(35, 139, 104, 0.55);
}

.btn-outline-danger {
    color: var(--aspc-red-600);
    border-color: rgba(201, 67, 67, 0.55);
}

.btn-sm {
    min-height: 35px;
    padding: 6px 12px;
    font-size: 12px;
}

.badge {
    padding: 6px 9px;
    border-radius: 999px;
    font-weight: 700;
}

.badge-success {
    color: #176447;
    background: #daf3e8;
}

.badge-primary,
.badge-info {
    color: #225b86;
    background: #dfedf9;
}

.badge-warning {
    color: #84520e;
    background: #fff0d5;
}

.badge-danger,
.badge-dangar {
    color: #8f3030;
    background: #ffe3e3;
}

.badge-secondary {
    color: #53696e;
    background: #e7eef0;
}

/* Tables and DataTables */

.aspc-table-scroll,
.table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 12px;
    scrollbar-color: #adcacc #edf4f5;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.aspc-table-scroll::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.aspc-table-scroll::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
    background: #adcacc;
    border-radius: 20px;
}

.table {
    width: 100%;
    margin-bottom: 0;
    color: var(--aspc-ink);
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    padding: 13px 12px;
    color: var(--aspc-navy-700);
    background: #edf6f6;
    border-top: 1px solid var(--aspc-line);
    border-bottom: 1px solid var(--aspc-line-strong);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.65;
    vertical-align: middle;
    white-space: nowrap;
}

.table thead th:first-child {
    border-radius: 0 10px 0 0;
}

.table thead th:last-child {
    border-radius: 10px 0 0 0;
}

.table tbody td {
    padding: 13px 12px;
    border-top: 0;
    border-bottom: 1px solid #eaf0f1;
    line-height: 1.75;
    vertical-align: middle;
    white-space: nowrap;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: #fbfdfd;
}

.table-hover tbody tr:hover,
.table tbody tr:hover {
    background: #f0f8f8;
}

.table-bordered,
.table-bordered td,
.table-bordered th {
    border-color: var(--aspc-line);
}

.table tbody td form {
    display: inline-block;
    margin: 0;
}

.table tbody td > .aspc-icon-action,
.table tbody td > form > .aspc-icon-action {
    margin: 2px !important;
}

.table tbody td > .aspc-icon-action:not(.btn),
.table tbody td > form > .aspc-icon-action:not(.btn) {
    display: inline-grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    background: var(--aspc-surface-soft) !important;
    border: 1px solid var(--aspc-line) !important;
    border-radius: 9px;
    float: none !important;
    font-size: 16px !important;
}

.table tbody td > .aspc-icon-action:not(.btn):hover,
.table tbody td > form > .aspc-icon-action:not(.btn):hover {
    background: #e5f4f3 !important;
    border-color: #b6d8d5 !important;
}

.dataTables_wrapper {
    width: 100%;
}

.dataTables_wrapper > .row {
    margin-right: -6px;
    margin-left: -6px;
}

.dataTables_wrapper > .row > [class*="col-"] {
    padding-right: 6px;
    padding-left: 6px;
}

.dataTables_wrapper > .row:nth-of-type(2) > [class*="col-"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_filter {
    text-align: left;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 39px;
    margin-right: 7px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid var(--aspc-line-strong);
    border-radius: 9px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin-top: 14px;
    color: var(--aspc-muted);
    font-size: 12px;
}

.page-item .page-link {
    min-width: 35px;
    min-height: 35px;
    margin: 0 2px;
    color: var(--aspc-navy-700);
    border: 1px solid var(--aspc-line);
    border-radius: 9px !important;
}

.page-item.active .page-link {
    color: #fff;
    background: var(--aspc-teal-700);
    border-color: var(--aspc-teal-700);
}

.modal-content {
    overflow: hidden;
    border: 1px solid var(--aspc-line);
    border-radius: var(--aspc-radius);
    box-shadow: var(--aspc-shadow-lg);
}

.modal-header,
.modal-footer {
    padding: 16px 20px;
    border-color: var(--aspc-line);
}

.modal-header {
    align-items: center;
    background: var(--aspc-surface-soft);
}

.modal-title {
    color: var(--aspc-navy-900);
    font-weight: 800;
}

.modal-header .close {
    margin: -1rem auto -1rem -1rem;
    padding: 1rem;
    color: var(--aspc-muted);
}

.modal-body {
    padding: 20px;
}

.datepicker-plot-area,
.datepicker-container,
.ui-datepicker {
    z-index: 10050 !important;
    max-width: calc(100vw - 24px);
    border: 1px solid var(--aspc-line) !important;
    border-radius: 12px !important;
    box-shadow: var(--aspc-shadow) !important;
    font-family: IranSans, Tahoma, sans-serif !important;
}

.swal2-popup,
.sweet-alert {
    border-radius: var(--aspc-radius) !important;
    font-family: IranSans, Tahoma, sans-serif !important;
}

.bootstrap-growl {
    border: 0;
    border-radius: 12px;
    box-shadow: var(--aspc-shadow);
}

/* Dashboard */

.aspc-dashboard {
    padding-top: 20px;
}

.aspc-dashboard-hero {
    position: relative;
    display: flex;
    min-height: 220px;
    margin-bottom: 20px;
    padding: 34px 38px;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background:
        radial-gradient(circle at 12% 18%, rgba(170, 255, 255, 0.2), transparent 26%),
        linear-gradient(120deg, var(--aspc-navy-950), var(--aspc-navy-700));
    border: 1px solid rgba(170, 255, 255, 0.16);
    border-radius: var(--aspc-radius-lg);
    box-shadow: var(--aspc-shadow);
}

.aspc-dashboard-hero::after {
    position: absolute;
    left: -70px;
    bottom: -100px;
    width: 300px;
    height: 300px;
    content: "";
    border: 46px solid rgba(170, 255, 255, 0.055);
    border-radius: 50%;
}

.aspc-dashboard-hero__content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.aspc-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--aspc-teal-300);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.aspc-dashboard-hero h1 {
    margin-bottom: 10px;
    color: #fff;
    font-size: clamp(24px, 2.3vw, 34px);
    font-weight: 900;
}

.aspc-dashboard-hero p {
    max-width: 700px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.aspc-dashboard-hero p strong {
    color: #fff;
}

.aspc-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.aspc-hero-meta span {
    display: inline-flex;
    min-height: 34px;
    padding: 7px 11px;
    align-items: center;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(170, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 11px;
}

.aspc-hero-meta i {
    margin-left: 7px;
    color: var(--aspc-teal-300);
    font-size: 15px;
}

.aspc-dashboard-hero__mark {
    position: relative;
    z-index: 1;
    display: grid;
    width: 150px;
    height: 150px;
    flex: 0 0 150px;
    margin-right: 35px;
    place-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(170, 255, 255, 0.16);
    border-radius: 36px;
    transform: rotate(-5deg);
}

.aspc-dashboard-hero__mark img {
    max-height: 103px;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
    transform: rotate(5deg);
}

.aspc-attention-bar,
.aspc-status-bar {
    display: flex;
    min-height: 68px;
    margin-bottom: 20px;
    padding: 13px 16px;
    align-items: center;
    gap: 13px;
    background: #fff8ea;
    border: 1px solid #f1d7aa;
    border-radius: var(--aspc-radius);
}

.aspc-status-bar {
    color: #1f6e55;
    background: #edf9f4;
    border-color: #c7eadb;
}

.aspc-attention-bar__icon,
.aspc-status-bar > i {
    display: grid;
    width: 41px;
    height: 41px;
    flex: 0 0 41px;
    place-items: center;
    color: #a7650c;
    background: #ffe9c2;
    border-radius: 12px;
    font-size: 20px;
}

.aspc-status-bar > i {
    color: #1e7a5d;
    background: #d5f2e6;
}

.aspc-attention-bar strong {
    color: #734909;
}

.aspc-attention-bar p {
    margin: 2px 0 0;
    color: #8a631f;
    font-size: 12px;
}

.aspc-attention-bar .btn {
    margin-right: auto;
    color: #83530e;
    border: 1px solid #efd39f;
}

.aspc-kpi-grid {
    display: grid;
    margin-bottom: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.aspc-kpi-card {
    position: relative;
    display: flex;
    min-height: 142px;
    padding: 22px;
    overflow: hidden;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    border: 1px solid var(--aspc-line);
    border-radius: var(--aspc-radius);
    box-shadow: var(--aspc-shadow-sm);
}

.aspc-kpi-card::after {
    position: absolute;
    left: -35px;
    bottom: -45px;
    width: 105px;
    height: 105px;
    content: "";
    background: currentColor;
    border-radius: 50%;
    opacity: 0.04;
}

.aspc-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--aspc-shadow);
}

.aspc-kpi-card__icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    color: var(--aspc-teal-700);
    background: #e4f5f3;
    border-radius: 14px;
    font-size: 21px;
}

.aspc-kpi-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.aspc-kpi-card__body > span {
    color: var(--aspc-muted);
    font-size: 11.5px;
    font-weight: 700;
}

.aspc-kpi-card__body > strong {
    margin: 4px 0;
    color: var(--aspc-navy-900);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.25;
}

.aspc-kpi-card__body > small {
    overflow: hidden;
    color: #82979c;
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aspc-kpi-card--blue .aspc-kpi-card__icon {
    color: var(--aspc-blue-600);
    background: #e7f0fb;
}

.aspc-kpi-card--warning .aspc-kpi-card__icon {
    color: var(--aspc-amber-600);
    background: #fff0d6;
}

.aspc-kpi-card--success .aspc-kpi-card__icon {
    color: var(--aspc-green-600);
    background: #e1f4ed;
}

.aspc-kpi-card--violet .aspc-kpi-card__icon {
    color: var(--aspc-violet-600);
    background: #eeeafa;
}

.aspc-dashboard-row {
    margin-right: -8px;
    margin-left: -8px;
}

.aspc-dashboard-row > [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
}

.aspc-panel {
    overflow: hidden;
}

.aspc-panel .card-body {
    padding: 24px;
}

.aspc-panel-heading {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.aspc-panel-heading h2 {
    margin: 2px 0 0;
    color: var(--aspc-navy-900);
    font-size: 17px;
    font-weight: 900;
}

.aspc-panel-heading > i {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--aspc-teal-700);
    background: #e7f5f4;
    border-radius: 12px;
    font-size: 19px;
}

.aspc-panel-kicker {
    color: var(--aspc-muted);
    font-size: 10.5px;
    font-weight: 700;
}

.aspc-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.aspc-quick-action {
    display: flex;
    min-height: 74px;
    padding: 13px;
    align-items: center;
    gap: 11px;
    color: var(--aspc-ink);
    background: var(--aspc-surface-soft);
    border: 1px solid var(--aspc-line);
    border-radius: 13px;
}

.aspc-quick-action:hover {
    color: var(--aspc-navy-900);
    background: #edf8f7;
    border-color: #b9dcd9;
    transform: translateY(-2px);
}

.aspc-quick-action > i:first-child {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    place-items: center;
    color: var(--aspc-teal-700);
    background: #fff;
    border: 1px solid var(--aspc-line);
    border-radius: 11px;
    font-size: 17px;
}

.aspc-quick-action > span {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.aspc-quick-action strong {
    color: var(--aspc-navy-800);
    font-size: 12.5px;
}

.aspc-quick-action small {
    overflow: hidden;
    margin-top: 2px;
    color: var(--aspc-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aspc-quick-action > i:last-child {
    color: #8aa0a5;
}

.aspc-overview-list {
    display: grid;
    gap: 9px;
}

.aspc-overview-list > div {
    display: flex;
    min-height: 51px;
    padding: 10px 13px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: var(--aspc-surface-soft);
    border: 1px solid #e7eff0;
    border-radius: 12px;
}

.aspc-overview-list span {
    display: flex;
    align-items: center;
    color: var(--aspc-muted);
    font-size: 11.5px;
}

.aspc-overview-list span i {
    width: 26px;
    color: var(--aspc-teal-700);
    font-size: 17px;
}

.aspc-overview-list strong {
    color: var(--aspc-navy-900);
    font-size: 17px;
}

.aspc-activity-panel {
    margin-bottom: 22px;
}

.aspc-activity-table .aspc-description-cell {
    min-width: 260px;
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aspc-user-cell {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
}

.aspc-user-cell i {
    color: var(--aspc-teal-700);
    font-size: 20px;
}

.aspc-empty-state {
    display: flex;
    min-height: 210px;
    padding: 30px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--aspc-muted);
    background: var(--aspc-surface-soft);
    border: 1px dashed var(--aspc-line-strong);
    border-radius: 14px;
    text-align: center;
}

.aspc-empty-state i {
    margin-bottom: 10px;
    color: #92b0b5;
    font-size: 38px;
}

.aspc-empty-state strong {
    color: var(--aspc-navy-800);
}

.aspc-empty-state span {
    margin-top: 5px;
    font-size: 11px;
}

/* Login */

.aspc-login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 8%, rgba(109, 203, 194, 0.18), transparent 27%),
        radial-gradient(circle at 92% 95%, rgba(50, 116, 200, 0.1), transparent 30%),
        #edf4f5;
}

.aspc-login-shell {
    display: grid;
    min-height: 100vh;
    padding: 28px;
    place-items: center;
}

.aspc-login-card {
    display: grid;
    width: min(1120px, 100%);
    min-height: 660px;
    overflow: hidden;
    grid-template-columns: 1.12fr 0.88fr;
    background: #fff;
    border: 1px solid rgba(200, 218, 221, 0.85);
    border-radius: 28px;
    box-shadow: var(--aspc-shadow-lg);
}

.aspc-login-brand {
    position: relative;
    display: flex;
    min-height: 660px;
    padding: 42px;
    overflow: hidden;
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(170, 255, 255, 0.2), transparent 28%),
        linear-gradient(145deg, var(--aspc-navy-950), var(--aspc-navy-700));
}

.aspc-login-brand::after {
    position: absolute;
    right: -110px;
    bottom: -180px;
    width: 410px;
    height: 410px;
    content: "";
    border: 65px solid rgba(170, 255, 255, 0.045);
    border-radius: 50%;
}

.aspc-login-logo {
    position: relative;
    z-index: 2;
    width: 310px;
    max-height: 94px;
    object-fit: contain;
    object-position: right center;
}

.aspc-login-visual {
    position: absolute;
    z-index: 1;
    right: 20px;
    bottom: 55px;
    width: 82%;
    opacity: 0.92;
}

.aspc-login-visual img {
    width: 100%;
    filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.2));
}

.aspc-login-message {
    position: relative;
    z-index: 3;
    max-width: 470px;
    margin-top: 38px;
}

.aspc-login-message h1 {
    margin-bottom: 9px;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
}

.aspc-login-message p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.aspc-login-form-panel {
    display: flex;
    padding: 60px 48px;
    justify-content: center;
    flex-direction: column;
}

.aspc-login-form-heading {
    margin-bottom: 30px;
}

.aspc-login-security {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 10px;
    align-items: center;
    color: var(--aspc-teal-700);
    background: #e9f6f5;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
}

.aspc-login-security i {
    margin-left: 6px;
    font-size: 15px;
}

.aspc-login-form-heading h2 {
    margin-bottom: 7px;
    color: var(--aspc-navy-900);
    font-size: 27px;
    font-weight: 900;
}

.aspc-login-form-heading p {
    margin: 0;
    color: var(--aspc-muted);
    font-size: 12.5px;
}

.aspc-input-icon {
    position: relative;
}

.aspc-input-icon > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 14px;
    color: #829da2;
    font-size: 18px;
    transform: translateY(-50%);
}

.aspc-input-icon .form-control {
    min-height: 52px;
    padding-right: 44px;
}

.aspc-input-icon input[type="email"] {
    padding-right: 44px;
    text-align: left;
}

.aspc-password-field .form-control {
    padding-left: 48px;
}

.aspc-password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 8px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    color: #7a9297;
    background: transparent;
    border: 0;
    border-radius: 9px;
    transform: translateY(-50%);
}

.aspc-password-toggle:hover {
    color: var(--aspc-teal-700);
    background: #edf7f6;
}

.aspc-login-submit {
    display: flex;
    min-height: 51px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.aspc-login-submit i {
    font-size: 18px;
}

.aspc-login-help {
    display: flex;
    margin: 24px 0 0;
    align-items: center;
    justify-content: center;
    color: var(--aspc-muted);
    font-size: 10.5px;
    text-align: center;
}

.aspc-login-help i {
    margin-left: 6px;
    color: var(--aspc-teal-700);
    font-size: 15px;
}

/* Loading feedback */

form.aspc-is-submitting .btn[type="submit"] {
    cursor: wait;
    opacity: 0.78;
}

form.aspc-is-submitting .btn[type="submit"] i {
    animation: aspc-soft-pulse 900ms ease-in-out infinite alternate;
}

@keyframes aspc-soft-pulse {
    to {
        opacity: 0.35;
        transform: translateX(-3px);
    }
}

/* Responsive */

@media (max-width: 1199px) {
    .aspc-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aspc-login-card {
        min-height: 620px;
        grid-template-columns: 1fr 0.92fr;
    }

    .aspc-login-brand {
        min-height: 620px;
        padding: 34px;
    }

    .aspc-login-form-panel {
        padding: 46px 36px;
    }
}

@media (max-width: 991px) {
    :root {
        --aspc-header: 70px;
    }

    .ecaps-page-wrapper .ecaps-sidemenu-area {
        right: -330px;
        width: min(310px, 86vw);
        z-index: 103;
    }

    .menu-collasped {
        display: none !important;
    }

    .mobile-menu-open {
        display: grid !important;
    }

    .ecaps-page-wrapper .ecaps-logo a {
        right: -330px;
        width: min(310px, 86vw);
    }

    .mobile-menu-active.ecaps-page-wrapper .ecaps-sidemenu-area,
    .mobile-menu-active.ecaps-page-wrapper .ecaps-logo a {
        right: 0;
    }

    .mobile-menu-active.ecaps-page-wrapper .aspc-nav-backdrop {
        pointer-events: auto;
        visibility: visible;
        opacity: 1;
    }

    .ecaps-page-content,
    .menu-collasped-active.ecaps-page-wrapper .ecaps-page-content {
        margin-right: 0;
    }

    .top-header-area,
    .menu-collasped-active.ecaps-page-wrapper .top-header-area {
        right: 0;
        width: 100%;
        height: var(--aspc-header);
        padding: 0 14px;
    }

    .aspc-header-context {
        margin-right: 9px;
    }

    .dashboard-clock {
        margin-right: 10px;
        padding-right: 10px;
    }

    .main-content {
        padding-top: 17px;
    }

    .aspc-dashboard-hero {
        padding: 28px;
    }

    .aspc-dashboard-hero__mark {
        width: 118px;
        height: 118px;
        flex-basis: 118px;
        margin-right: 18px;
        border-radius: 28px;
    }

    .aspc-dashboard-hero__mark img {
        max-height: 78px;
    }

    .aspc-login-card {
        grid-template-columns: 1fr;
    }

    .aspc-login-brand {
        min-height: 285px;
        padding: 28px 34px;
    }

    .aspc-login-logo {
        width: 260px;
    }

    .aspc-login-message {
        margin-top: 24px;
    }

    .aspc-login-message h1 {
        font-size: 23px;
    }

    .aspc-login-visual {
        right: auto;
        left: 18px;
        bottom: -33px;
        width: 310px;
        opacity: 0.55;
    }

    .aspc-login-form-panel {
        padding: 42px;
    }
}

@media (max-width: 767px) {
    .top-header-area .left-side-content-area {
        flex: 1 1 auto;
        width: auto;
        max-width: calc(100% - 50px);
    }

    .top-header-area .right-side-navbar {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }

    .top-header-area .right-side-navbar .right-side-trigger {
        display: grid;
        margin: 0;
    }

    .top-header-area .right-side-navbar .right-side-trigger i {
        line-height: 1;
    }

    .top-header-area .right-side-navbar .right-side-content {
        top: var(--aspc-header);
        left: -110%;
        height: 68px;
        padding: 10px 14px;
        gap: 7px;
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid var(--aspc-line);
        border-bottom: 1px solid var(--aspc-line);
        box-shadow: var(--aspc-shadow-sm);
        backdrop-filter: blur(12px);
    }

    .top-header-area .right-side-navbar .right-side-content.active {
        left: 0;
    }

    .top-header-area .nav-item.dropdown .dropdown-menu.dropdown-menu-right {
        position: fixed !important;
        top: calc(var(--aspc-header) + 66px) !important;
        right: 12px !important;
        left: 12px !important;
        width: auto;
        max-width: none;
        transform: none !important;
    }

    .dashboard-clock {
        display: none;
    }

    .aspc-header-context span {
        display: none;
    }

    .container-fluid {
        padding-right: 12px;
        padding-left: 12px;
    }

    .card-body {
        padding: 18px;
    }

    .aspc-dashboard-hero {
        min-height: 210px;
        padding: 25px 22px;
    }

    .aspc-dashboard-hero__mark {
        position: absolute;
        left: -25px;
        bottom: -27px;
        width: 120px;
        height: 120px;
        opacity: 0.35;
    }

    .aspc-dashboard-hero__content {
        max-width: calc(100% - 10px);
    }

    .aspc-dashboard-hero p {
        max-width: 90%;
    }

    .aspc-attention-bar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .aspc-attention-bar .btn {
        width: 100%;
        margin-right: 54px;
    }

    .aspc-quick-actions {
        grid-template-columns: 1fr;
    }

    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        text-align: right;
    }

    .dataTables_wrapper .dataTables_filter label,
    .dataTables_wrapper .dataTables_length label {
        display: flex;
        width: 100%;
        align-items: center;
        gap: 7px;
    }

    .dataTables_wrapper .dataTables_filter input {
        min-width: 0;
        margin: 0;
        flex: 1 1 auto;
    }

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: center;
    }
}

@media (max-width: 575px) {
    body {
        font-size: 13px;
    }

    input,
    select,
    textarea,
    .form-control,
    .select2-search__field {
        font-size: 16px !important;
    }

    .main-content {
        padding: 13px 0 26px;
    }

    .breadcrumb {
        margin-bottom: 9px;
        padding: 5px 2px;
    }

    .aspc-header-context {
        display: none;
    }

    .mobile-logo {
        margin-right: 0 !important;
        margin-left: 8px;
    }

    .mobile-logo a img {
        max-height: 32px;
    }

    .aspc-kpi-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .aspc-kpi-card {
        min-height: 114px;
        padding: 17px;
    }

    .aspc-kpi-card__body > strong {
        font-size: 25px;
    }

    .aspc-dashboard-hero {
        margin-bottom: 13px;
        border-radius: 18px;
    }

    .aspc-dashboard-hero h1 {
        font-size: 23px;
    }

    .aspc-dashboard-hero p {
        max-width: 100%;
        font-size: 12.5px;
    }

    .aspc-hero-meta {
        display: grid;
        width: fit-content;
    }

    .aspc-attention-bar,
    .aspc-status-bar {
        margin-bottom: 13px;
        border-radius: 13px;
    }

    .aspc-status-bar {
        align-items: flex-start;
    }

    .aspc-panel .card-body {
        padding: 17px;
    }

    .aspc-panel-heading {
        margin-bottom: 15px;
    }

    .aspc-panel-heading h2 {
        font-size: 15px;
    }

    .aspc-activity-panel .card-body {
        padding: 15px 12px;
    }

    .card {
        border-radius: 14px;
    }

    .card-title {
        font-size: 16px;
    }

    .btn {
        min-height: 44px;
    }

    .table thead th,
    .table tbody td {
        padding: 11px 10px;
    }

    .aspc-login-shell {
        padding: 12px;
    }

    .aspc-login-card {
        border-radius: 20px;
    }

    .aspc-login-brand {
        min-height: 225px;
        padding: 24px;
    }

    .aspc-login-logo {
        width: 235px;
        max-height: 72px;
    }

    .aspc-login-message {
        margin-top: 14px;
    }

    .aspc-login-message h1 {
        font-size: 20px;
    }

    .aspc-login-message p {
        max-width: 80%;
        font-size: 11px;
    }

    .aspc-login-visual {
        left: -30px;
        bottom: -33px;
        width: 245px;
    }

    .aspc-login-form-panel {
        padding: 30px 22px;
    }

    .aspc-login-form-heading {
        margin-bottom: 24px;
    }

    .aspc-login-form-heading h2 {
        font-size: 24px;
    }
}

/* V3 readability, hierarchy and operational usability */

body,
button,
input,
select,
textarea,
.btn,
.form-control,
.select2-container,
.datepicker-plot-area,
.datepicker-container,
.ui-datepicker,
.swal2-popup,
.sweet-alert {
    font-family: "ASPC IranSans", IranSans, Tahoma, Arial, sans-serif !important;
}

body span,
body p,
body label,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body table {
    font-family: "ASPC IranSans", IranSans, Tahoma, Arial, sans-serif !important;
}

body {
    color: #1a3941;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.85;
}

p {
    color: #435f66;
    font-size: 14.5px;
    line-height: 1.95;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.65;
    font-weight: 700;
}

.sidebar-menu {
    padding-top: 11px;
}

.sidebar-menu > li {
    margin: 4px 11px;
}

.sidebar-menu li a {
    min-height: 52px;
    padding: 11px 14px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.65;
}

.sidebar-menu li a i {
    flex-basis: 32px;
    width: 32px;
    max-width: 32px;
    font-size: 19px;
}

.sidebar-menu li a span {
    flex-basis: calc(100% - 38px);
    width: calc(100% - 38px);
    max-width: calc(100% - 38px);
}

.sidebar-menu li .treeview-menu {
    margin-top: 8px;
    margin-right: 31px;
    padding: 5px 9px 5px 0;
}

.sidebar-menu li .treeview-menu li a {
    min-height: 42px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13.75px;
    font-weight: 400;
    line-height: 1.7;
}

.sidebar-menu .treeview-menu > li.active > a {
    color: #d9fffb;
    background: rgba(170, 255, 255, 0.1);
    font-weight: 700;
}

.sidebar-menu > .aspc-menu-section {
    margin: 20px 18px 7px;
    padding: 0 7px;
    color: rgba(192, 229, 228, 0.58);
    font-size: 10.75px;
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1.5;
}

.sidebar-menu > .aspc-menu-section:first-child {
    margin-top: 8px;
}

.sidebar-menu > .aspc-menu-section span {
    width: auto;
    max-width: none;
}

.menu-collasped-active .aspc-menu-section {
    display: none;
}

.aspc-header-context strong {
    font-size: 15.5px;
    font-weight: 700;
}

.aspc-header-context span {
    margin-top: 1px;
    font-size: 12px;
}

.dashboard-clock {
    font-size: 12.75px;
}

.main-content {
    padding-top: 28px;
}

.breadcrumb {
    margin-bottom: 18px;
}

.breadcrumb-item,
.breadcrumb-item a {
    font-size: 13.25px;
    line-height: 1.7;
}

.card-title {
    color: #12353e;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.75;
}

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

.form-group label,
label {
    margin-bottom: 9px;
    color: #1b4650;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.75;
}

.form-control {
    min-height: 50px;
    padding: 10px 14px;
    font-size: 14.5px;
    line-height: 1.8;
}

textarea.form-control {
    min-height: 124px;
}

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    min-height: 50px;
    font-size: 14.5px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-top: 10px;
    padding-bottom: 9px;
    line-height: 29px;
}

.select2-results__option {
    padding: 10px 13px;
    font-size: 14px;
    line-height: 1.7;
}

.btn {
    min-height: 44px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 700;
}

.btn-sm {
    min-height: 38px;
    font-size: 13px;
}

.alert {
    font-size: 14px;
    line-height: 1.85;
}

.form-control.aspc-invalid-control,
.form-control[aria-invalid="true"],
.select2-container.aspc-invalid-control .select2-selection {
    border-color: var(--aspc-red-600) !important;
    box-shadow: 0 0 0 4px rgba(201, 67, 67, 0.12) !important;
}

.aspc-form-card .card-body,
.aspc-table-card .card-body {
    position: relative;
}

.aspc-form-card .card-title::before,
.aspc-table-card .card-title::before {
    display: inline-block;
    width: 4px;
    height: 22px;
    margin-left: 10px;
    content: "";
    vertical-align: -5px;
    background: linear-gradient(180deg, var(--aspc-teal-500), var(--aspc-teal-700));
    border-radius: 99px;
}

.form-text,
small.text-muted {
    color: #6c848a !important;
    font-size: 12px;
    line-height: 1.8;
}

.table thead th {
    padding: 14px 13px;
    color: #1e505a;
    font-size: 13.25px;
    font-weight: 700;
    line-height: 1.8;
}

.table tbody td {
    padding: 14px 13px;
    color: #29474e;
    font-size: 14px;
    line-height: 1.85;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    font-size: 13.25px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 42px;
    font-size: 14px;
}

.aspc-eyebrow,
.aspc-panel-kicker {
    font-size: 12px;
    font-weight: 700;
}

.aspc-dashboard-hero p {
    font-size: 14.5px;
    line-height: 1.95;
}

.aspc-hero-meta span {
    font-size: 12.25px;
}

.aspc-kpi-card__body > span {
    font-size: 13px;
}

.aspc-kpi-card__body > small {
    font-size: 11.75px;
}

.aspc-panel-heading h2 {
    font-size: 18px;
}

.aspc-quick-action strong {
    font-size: 14px;
}

.aspc-quick-action small {
    font-size: 11.75px;
}

.aspc-overview-list span {
    font-size: 13px;
}

.aspc-empty-state span,
.aspc-notification-empty,
.aspc-stock-alert__content {
    font-size: 12.5px;
}

.aspc-stock-alert__content strong {
    font-size: 13.5px;
}

/* Login composition: the copy and illustration never overlap. */

.aspc-login-page {
    background:
        radial-gradient(circle at 9% 9%, rgba(86, 194, 187, 0.2), transparent 28%),
        radial-gradient(circle at 92% 92%, rgba(40, 104, 173, 0.12), transparent 31%),
        #edf4f5;
}

.aspc-login-shell {
    padding: 32px;
}

.aspc-login-card {
    width: min(1180px, 100%);
    min-height: 700px;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
    border-radius: 30px;
}

.aspc-login-brand {
    display: grid;
    min-height: 700px;
    padding: 34px 42px 30px;
    grid-template-rows: auto 1fr auto;
    background:
        radial-gradient(circle at 85% 12%, rgba(170, 255, 255, 0.2), transparent 29%),
        linear-gradient(145deg, #082a32 0%, #164d57 62%, #1f626a 100%);
}

.aspc-login-brand::after {
    right: auto;
    left: -155px;
    bottom: -215px;
    width: 460px;
    height: 460px;
}

.aspc-login-brand__header {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.aspc-login-logo {
    width: 286px;
    max-height: 82px;
}

.aspc-login-edition {
    display: inline-flex;
    min-height: 34px;
    padding: 6px 12px;
    align-items: center;
    color: #d7fffb;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(170, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.aspc-login-message {
    position: relative;
    z-index: 3;
    max-width: 590px;
    margin: 48px 0 28px;
    align-self: center;
}

.aspc-login-message .aspc-eyebrow {
    margin-bottom: 14px;
    color: #aafff7;
    font-size: 12.5px;
}

.aspc-login-message h1 {
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(29px, 2.35vw, 36px);
    font-weight: 700;
    line-height: 1.6;
}

.aspc-login-message h1 span {
    color: #bffbf5;
}

.aspc-login-message p {
    max-width: 570px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14.5px;
    line-height: 2;
}

.aspc-login-benefits {
    display: grid;
    margin: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.aspc-login-benefits li {
    display: flex;
    min-height: 46px;
    padding: 9px 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(170, 255, 255, 0.14);
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.65;
}

.aspc-login-benefits i {
    margin-left: 7px;
    color: #aafff7;
    font-size: 17px;
}

.aspc-login-brand__footer {
    position: relative;
    z-index: 3;
    display: flex;
    min-height: 190px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
}

.aspc-login-visual {
    position: static;
    width: min(330px, 58%);
    opacity: 1;
}

.aspc-login-visual img {
    display: block;
    width: 100%;
    max-height: 225px;
    object-fit: contain;
    object-position: right bottom;
}

.aspc-login-trust {
    display: flex;
    max-width: 235px;
    margin-bottom: 7px;
    padding: 13px;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(4, 30, 36, 0.28);
    border: 1px solid rgba(170, 255, 255, 0.13);
    border-radius: 14px;
    font-size: 10.75px;
    line-height: 1.85;
}

.aspc-login-trust > i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #aafff7;
    font-size: 21px;
}

.aspc-login-trust span {
    display: flex;
    flex-direction: column;
}

.aspc-login-trust strong {
    margin-bottom: 2px;
    color: #fff;
    font-size: 12px;
}

.aspc-login-form-panel {
    padding: 64px 52px;
}

.aspc-login-form-panel > * {
    width: 100%;
    max-width: 430px;
    margin-right: auto;
    margin-left: auto;
}

.aspc-login-form-heading {
    margin-bottom: 34px;
}

.aspc-login-security {
    margin-bottom: 18px;
    padding: 7px 12px;
    font-size: 12px;
}

.aspc-login-security i {
    font-size: 17px;
}

.aspc-login-form-heading h2 {
    margin-bottom: 8px;
    font-size: 31px;
    font-weight: 700;
}

.aspc-login-form-heading p {
    color: #607b82;
    font-size: 14px;
    line-height: 1.9;
}

.aspc-input-icon .form-control {
    min-height: 54px;
    font-size: 15px;
}

.aspc-login-submit {
    min-height: 54px;
    font-size: 15px;
}

.aspc-login-help {
    margin-top: 25px;
    color: #647e84;
    font-size: 12.25px;
    line-height: 1.8;
}

@media (max-width: 1199px) {
    :root {
        --aspc-sidebar: 268px;
    }

    .aspc-login-card {
        grid-template-columns: minmax(0, 1fr) minmax(370px, 0.92fr);
    }

    .aspc-login-brand {
        padding-right: 34px;
        padding-left: 34px;
    }

    .aspc-login-benefits {
        grid-template-columns: 1fr;
    }

    .aspc-login-benefits li {
        min-height: 39px;
    }
}

@media (max-width: 991px) {
    :root {
        --aspc-sidebar: 310px;
    }

    .aspc-login-card {
        width: min(720px, 100%);
        grid-template-columns: 1fr;
    }

    .aspc-login-brand {
        min-height: 500px;
        padding: 30px 36px 26px;
    }

    .aspc-login-message {
        max-width: 610px;
        margin: 38px 0 24px;
    }

    .aspc-login-message h1 {
        font-size: 31px;
    }

    .aspc-login-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .aspc-login-brand__footer {
        min-height: 160px;
    }

    .aspc-login-visual {
        width: 270px;
    }

    .aspc-login-form-panel {
        padding: 52px 48px;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 14.5px;
    }

    .aspc-form-card form .row > [class*="col-"] {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .aspc-form-card .form-group {
        margin-bottom: 18px;
    }

    .sidebar-menu li a {
        font-size: 15px;
    }

    .sidebar-menu li .treeview-menu li a {
        font-size: 14px;
    }

    .card-title {
        font-size: 18px;
    }

    .aspc-login-shell {
        padding: 18px;
    }

    .aspc-login-brand {
        min-height: 0;
        padding: 26px 28px 28px;
    }

    .aspc-login-logo {
        width: 250px;
    }

    .aspc-login-message {
        margin: 32px 0 10px;
    }

    .aspc-login-message h1 {
        font-size: 27px;
    }

    .aspc-login-message p {
        font-size: 14px;
    }

    .aspc-login-benefits {
        grid-template-columns: 1fr;
    }

    .aspc-login-brand__footer {
        min-height: auto;
        margin-top: 22px;
    }

    .aspc-login-visual {
        display: none;
    }

    .aspc-login-trust {
        max-width: none;
        margin: 0;
    }
}

@media (max-width: 575px) {
    body {
        font-size: 14.5px;
    }

    .main-content {
        padding-top: 16px;
    }

    .aspc-page-guidance {
        margin-bottom: 13px;
        padding: 11px 12px;
    }

    .aspc-page-guidance p {
        font-size: 12.25px;
    }

    .aspc-page-guidance strong {
        font-size: 13px;
    }

    .card-title,
    .aspc-panel-heading h2 {
        font-size: 17px;
    }

    .form-group label,
    label {
        font-size: 14px;
    }

    .table thead th {
        font-size: 13px;
    }

    .table tbody td {
        font-size: 13.5px;
    }

    .aspc-login-shell {
        padding: 10px;
    }

    .aspc-login-card {
        border-radius: 20px;
    }

    .aspc-login-brand {
        padding: 22px 22px 24px;
    }

    .aspc-login-logo {
        width: 215px;
        max-height: 68px;
    }

    .aspc-login-edition {
        display: none;
    }

    .aspc-login-message {
        margin-top: 25px;
    }

    .aspc-login-message .aspc-eyebrow {
        font-size: 11.75px;
    }

    .aspc-login-message h1 {
        font-size: 24px;
        line-height: 1.65;
    }

    .aspc-login-message p {
        max-width: 100%;
        margin-bottom: 18px;
        font-size: 13.5px;
        line-height: 1.95;
    }

    .aspc-login-benefits li {
        min-height: 41px;
        font-size: 12px;
    }

    .aspc-login-trust {
        font-size: 10.75px;
    }

    .aspc-login-form-panel {
        padding: 34px 22px 30px;
    }

    .aspc-login-form-heading {
        margin-bottom: 27px;
    }

    .aspc-login-form-heading h2 {
        font-size: 27px;
    }

    .aspc-login-form-heading p {
        font-size: 13.5px;
    }

    .aspc-login-help {
        font-size: 11.75px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .ecaps-sidemenu-area,
    .top-header-area,
    .aspc-nav-backdrop,
    .breadcrumb,
    .btn,
    .dataTables_filter,
    .dataTables_length,
    .dataTables_paginate {
        display: none !important;
    }

    .ecaps-page-content {
        margin: 0;
        padding: 0;
    }

    .main-content {
        padding: 0;
    }

    .card,
    .aspc-dashboard-hero {
        color: #000;
        background: #fff;
        border: 1px solid #bbb;
        box-shadow: none;
    }

    .table {
        font-size: 10px;
    }
}
