body {
    font-size: 13px;
    background-color: #f4f7fb;
}

.container,
.container-xxl {
    max-width: 1440px;
}

.content {
    padding-top: 18px;
}

.content .container,
.content .container-xxl {
    padding-left: 18px;
    padding-right: 18px;
}

.header {
    min-height: 58px;
}

.header .header-container {
    min-height: 58px;
}

.header .page-title {
    min-height: 58px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.header .page-title h1,
.header .page-title .fs-1 {
    font-size: 1.25rem !important;
    line-height: 1.2;
}

.header .btn.btn-icon {
    width: 36px;
    height: 36px;
}

.header .btn.btn-icon i {
    font-size: 1.35rem !important;
}

.aside-logo {
    padding-top: 20px !important;
}

.aside-logo img {
    height: 54px !important;
    max-width: 86px;
    object-fit: contain;
}

.aside-menu {
    padding-top: 10px !important;
    padding-bottom: 14px !important;
}

.aside .menu > .menu-item {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.aside .menu-link.menu-center {
    min-height: 44px;
}

.aside .menu-icon i {
    font-size: 1.45rem !important;
}

.aside-footer {
    padding-bottom: 18px !important;
}

.aside-footer .btn.btn-custom {
    width: 42px;
    height: 42px;
}

.menu-sub-dropdown {
    border-radius: 8px !important;
    box-shadow: 0 12px 34px rgba(15, 38, 64, .14) !important;
}

.menu-sub-dropdown.w-250px {
    width: 230px !important;
}

.menu .menu-link {
    min-height: 34px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.menu .menu-title {
    font-size: .86rem;
}

.menu .menu-section {
    font-size: .94rem !important;
}

.card {
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 38, 64, .06);
}

.card .card-header {
    min-height: 56px;
    padding: 14px 18px;
}

.card .card-body {
    padding: 18px;
}

.card .card-footer {
    padding: 14px 18px;
}

.btn {
    border-radius: 7px;
    padding: .55rem .95rem;
    font-size: .88rem;
}

.btn.btn-sm {
    padding: .42rem .72rem;
    font-size: .8rem;
}

.btn.btn-lg {
    padding: .7rem 1.1rem;
    font-size: .95rem;
}

.form-control,
.form-select {
    min-height: 38px;
    padding: .48rem .72rem;
    border-radius: 7px;
    font-size: .88rem;
}

.form-label {
    margin-bottom: .35rem;
    font-size: .84rem;
}

.table {
    font-size: .86rem;
}

.table > :not(caption) > * > * {
    padding: .68rem .72rem;
}

.modal-content {
    border-radius: 8px;
}

.modal-header {
    padding: 16px 20px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 14px 20px;
}

.symbol.symbol-50px,
.symbol.symbol-50px > img {
    width: 40px;
    height: 40px;
}

.badge {
    border-radius: 6px;
}

.fs-2qx {
    font-size: 1.7rem !important;
}

.fs-2x {
    font-size: 1.45rem !important;
}

.fs-3x {
    font-size: 1.8rem !important;
}

.dropzone .dropzone-item {
    padding: 14px !important;
}

.portal-page {
    padding-top: 4px;
}

.portal-action {
    width: 100%;
    min-height: 72px;
    padding: 18px 20px !important;
    border-color: #d6e2ee;
    background: #fff;
}

.portal-action:hover {
    border-color: #0f6fb8;
    background: #f4f9fd;
}

.portal-metric .card-body {
    min-height: 118px;
}

.portal-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 8px;
}

.portal-section-title {
    color: #1f2a37;
    font-size: 1rem;
    font-weight: 700;
}

.portal-action span span:last-child {
    white-space: normal;
}

.portal-search-card {
    border: 1px solid #dce6f1;
}

.portal-file-manager {
    border: 1px solid #dce6f1;
}

.portal-file-manager .card-body {
    padding: 22px;
}

.portal-file-toolbar {
    display: grid;
    grid-template-columns: minmax(160px, 210px) minmax(160px, 210px) minmax(280px, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.portal-file-search .form-control,
.portal-file-filter .form-select {
    height: 40px;
}

.portal-search-card .card-body {
    padding: 22px;
}

.portal-search-submit {
    min-height: 38px;
}

.portal-search-help {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portal-results-card .card-body {
    padding-top: 20px;
}

.portal-results-card .symbol.symbol-60px,
.portal-results-card .symbol.symbol-60px > img {
    width: 48px;
    height: 48px;
}

.portal-file-name {
    display: block;
    font-size: .92rem !important;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.portal-file-table thead th {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: .76rem;
}

.portal-file-table tbody td {
    padding-top: 12px;
    padding-bottom: 12px;
}

.portal-file-table .symbol.symbol-35px,
.portal-file-table .symbol.symbol-35px > img {
    width: 34px;
    height: 34px;
}

.portal-empty-state {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border: 1px dashed #c8d7e6;
    border-radius: 8px;
    background: #fff;
}

.portal-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 8px;
    background: #eef6ff;
}

.portal-upload-manager {
    border: 1px solid #dce6f1;
}

.portal-upload-manager .card-body {
    padding: 22px;
}

.portal-upload-rules {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.portal-upload-rule {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid #dce6f1;
    border-radius: 8px;
    background: #f8fbff;
}

.portal-upload-destination {
    padding: 16px;
    border: 1px dashed #c8d7e6;
    border-radius: 8px;
    background: #fff;
}

.portal-upload-path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.portal-upload-preview {
    padding-top: 2px;
}

.portal-settings-header,
.portal-settings-group,
.portal-settings-section {
    border: 1px solid #dce6f1;
}

.portal-settings-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 8px;
    background: #eef6ff;
}

.portal-setting-card {
    height: 100%;
    padding: 14px;
    border: 1px solid #dce6f1;
    border-radius: 8px;
    background: #fff;
}

.portal-setting-name {
    font-size: .88rem;
    overflow-wrap: anywhere;
}

.portal-setting-label {
    margin-bottom: 3px;
    font-size: .74rem;
    text-transform: uppercase;
}

.portal-settings-table {
    border: 1px solid #dce6f1;
    border-radius: 8px;
    overflow: hidden;
}

.portal-settings-table tr {
    background: #fff;
}

.portal-settings-table tr + tr {
    border-top: 1px solid #edf2f7;
}

.portal-settings-table td {
    padding: 12px 14px !important;
    vertical-align: middle;
}

.portal-setting-table-value {
    max-width: 520px;
    color: #667085;
    font-size: .82rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-setting-value {
    max-width: 100%;
    margin-top: 4px;
    font-size: .8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-upload-dropzone {
    padding: 0;
    border: 0;
    background: transparent;
}

.portal-upload-droparea {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    border: 1px dashed #a9c7e4;
    border-radius: 8px;
    background: #f8fbff;
    text-align: center;
}

.portal-upload-click-hint {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #b8dcff;
    border-radius: 8px;
    background: #eef8ff;
    color: #064b7d;
    font-size: .86rem;
    font-weight: 700;
}

.portal-upload-pointer {
    height: 38px;
    margin-bottom: 2px;
}

.portal-upload-pointer-hand {
    display: inline-block;
    font-size: 2.1rem;
    line-height: 1;
    animation: portal-upload-point 1s ease-in-out infinite;
}

@keyframes portal-upload-point {
    0%,
    100% {
        transform: translateY(-2px);
    }

    50% {
        transform: translateY(7px);
    }
}

.portal-upload-actions {
    display: none;
}

.portal-upload-progress {
    height: 8px;
    border-radius: 999px;
    background: #e8eef6;
}

.portal-upload-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px !important;
    border: 1px solid #dce6f1;
    border-radius: 8px;
    background: #fff;
}

.portal-upload-item + .portal-upload-item {
    margin-top: 10px;
}

.portal-upload-item .dropzone-filename {
    overflow-wrap: anywhere;
}

.portal-upload-item .dropzone-error {
    color: #d92d20;
    font-size: .78rem;
    font-weight: 600;
}

.portal-upload-item .ajax-response {
    margin-top: 4px;
    color: #067647;
    font-size: .8rem;
    font-weight: 600;
}

.users-summary .card-body {
    padding: 12px 14px;
}

.users-summary .symbol.symbol-45px,
.users-summary .symbol.symbol-45px .symbol-label {
    width: 36px;
    height: 36px;
}

.users-summary .fs-2 {
    font-size: 1.35rem !important;
}

.users-directory-header {
    min-height: auto !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.users-directory-header h2 {
    font-size: 1.1rem;
}

.users-table-compact {
    font-size: .8rem;
}

.users-table-compact > :not(caption) > * > * {
    padding: .42rem .55rem !important;
}

.users-table-compact thead th {
    font-size: .72rem !important;
}

.users-table-compact .symbol.symbol-40px,
.users-table-compact .symbol.symbol-40px > img,
.users-table-compact .symbol.symbol-40px .symbol-label {
    width: 32px;
    height: 32px;
}

.users-table-compact .badge {
    padding: .32rem .5rem;
    font-size: .72rem;
}

.users-table-compact .btn.btn-sm {
    padding: .32rem .55rem;
    font-size: .75rem;
}

.users-table-user-cell {
    min-height: 46px;
}

@media (max-width: 991.98px) {
    .header-mobile {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .header-mobile img {
        height: 40px !important;
    }

    .content .container,
    .content .container-xxl {
        padding-left: 14px;
        padding-right: 14px;
    }

    .card .card-body {
        padding: 16px;
    }

    .portal-file-toolbar {
        grid-template-columns: 1fr;
    }

    .portal-search-submit {
        width: 100%;
    }

    .portal-upload-rules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-setting-table-value {
        max-width: 260px;
    }
}

@media (max-width: 575.98px) {
    .portal-upload-rules {
        grid-template-columns: 1fr;
    }

    .portal-upload-item {
        align-items: flex-start;
    }
}
