.navbar-brand-box .logo-lg strong,
.navbar-brand-box .logo-sm img {
    vertical-align: middle;
}

.mini-stats-wid .mini-stat-icon i {
    line-height: 1;
}

.table td,
.table th {
    vertical-align: middle;
}

.page-content {
    min-height: calc(100vh - 130px);
}

/* PENA ERP sidebar polish */
#sidebar-menu .menu-title {
    letter-spacing: .08em;
    font-size: 11px;
    opacity: .72;
}

#sidebar-menu ul li a {
    line-height: 1.25;
}

#sidebar-menu ul li ul.sub-menu li a {
    padding-top: .45rem;
    padding-bottom: .45rem;
    font-size: 13px;
}

#sidebar-menu ul li ul.sub-menu li ul.sub-menu li a {
    padding-left: 4.25rem;
    font-size: 12.5px;
    opacity: .9;
}

#sidebar-menu .pena-menu-section > a {
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7f8aa3 !important;
    cursor: default;
    pointer-events: none;
    padding-top: .85rem !important;
    padding-bottom: .25rem !important;
}

#sidebar-menu .pena-menu-section > a::before,
#sidebar-menu .pena-menu-section > a::after,
#sidebar-menu .pena-menu-section > a i {
    display: none !important;
}

#sidebar-menu .pena-menu-section ul.sub-menu {
    display: block !important;
    height: auto !important;
    padding-left: 0;
}

#sidebar-menu .pena-menu-section ul.sub-menu li a {
    padding-left: 3.35rem;
}

/* Highlight only the exact active menu link.
   Do not color every mm-active parent/section, otherwise siblings under Work Order look active too. */
body[data-sidebar="dark"] #sidebar-menu ul li a.active {
    color: #ffffff !important;
    font-weight: 600;
}

body[data-sidebar="dark"] #sidebar-menu ul li.mm-active > a:not(.active) {
    color: #7f8aa3 !important;
    font-weight: 400;
}

body[data-sidebar="dark"] #sidebar-menu ul li.mm-active > a.has-arrow {
    color: #ffffff !important;
    font-weight: 500;
}

/* Searchable selects */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #ced4da;
    border-radius: .25rem;
    height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #495057;
    line-height: 36px;
    padding-left: .75rem;
    padding-right: 2rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: .35rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #74788d;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #556ee6;
    box-shadow: 0 0 0 .15rem rgba(85, 110, 230, .15);
}

.select2-dropdown {
    border-color: #ced4da;
    z-index: 1080;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da;
    border-radius: .25rem;
    outline: none;
}

.form-select-sm + .select2-container .select2-selection--single {
    height: 31px;
}

.form-select-sm + .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 29px;
    font-size: .8125rem;
}

.form-select-sm + .select2-container .select2-selection--single .select2-selection__arrow {
    height: 29px;
}

#tenantSwitchForm .select2-container {
    min-width: 82px;
    width: auto !important;
}

/* Dashboard metric cards */
.dashboard-metric-row {
    row-gap: .75rem;
}

.dashboard-metric-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.dashboard-metric-card-link:hover .dashboard-metric-card {
    transform: translateY(-1px);
    box-shadow: 0 .35rem 1rem rgba(18, 38, 63, .08);
}

.dashboard-metric-card {
    height: 100%;
    transition: box-shadow .15s ease, transform .15s ease;
}

.dashboard-metric-card .card-body {
    padding: 1.15rem 1.2rem;
}

.dashboard-metric-content {
    min-width: 0;
}

.dashboard-metric-label {
    line-height: 1.25;
    min-height: 32px;
}

.dashboard-metric-value {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.dashboard-metric-link {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: .25rem .55rem;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 999px;
}

.dashboard-metric-icon {
    margin-left: .25rem;
}

@media (max-width: 1399.98px) {
    .dashboard-metric-card .card-body {
        padding: 1rem 1.1rem;
    }

    .dashboard-metric-value {
        font-size: 1.15rem;
    }
}

@media (max-width: 575.98px) {
    .dashboard-metric-value {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* Transaction line item table */
.po-lines-scroll {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: .35rem;
}

#poLinesTable {
    min-width: 1240px;
    table-layout: fixed;
}

#poLinesTable th,
#poLinesTable td {
    vertical-align: middle;
}

#poLinesTable th:nth-child(1),
#poLinesTable td:nth-child(1) { width: 76px; min-width: 76px; }
#poLinesTable th:nth-child(2),
#poLinesTable td:nth-child(2) { width: 260px; min-width: 260px; }
#poLinesTable th:nth-child(3),
#poLinesTable td:nth-child(3) { width: 220px; min-width: 220px; }
#poLinesTable th:nth-child(4),
#poLinesTable td:nth-child(4) { width: 280px; min-width: 280px; }
#poLinesTable th:nth-child(5),
#poLinesTable td:nth-child(5) { width: 120px; min-width: 120px; }
#poLinesTable th:nth-child(6),
#poLinesTable td:nth-child(6) { width: 100px; min-width: 100px; }
