.btn-refresh,
.btn-switch {
    border-radius: 20px;
    justify-content: space-between;
    align-items: center;
}

.text-deposit {
    color: #b7d030 !important;
}

.text-sale {
    color: #ff007f !important;
}

.past-event-card {
    border-radius: 20px;
    width: 280px;
    padding: 1px;
}

.procurement-nav-tree .nav-link {
    align-items: flex-start;
    display: flex;
}

.procurement-nav-tree .nav-link .nav-icon {
    flex: 0 0 auto;
}

.procurement-nav-tree .nav-link p {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
}

/* Tooltip */
.tooltip-custom {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-custom .tooltip-text {
    visibility: hidden;
    width: 140px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-custom .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.tooltip-custom:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text {
    font-size: 12px;
}

.filepond--root:not([data-disabled]) .filepond--drop-label,
.filepond--root:not([data-disabled]) .filepond--drop-label label {
    cursor: pointer !important;
}

/* sidebar */
.sidebar {
    overflow-y: auto !important;
    padding-right: 0.25em;
}

.erp-react-nav-group + .erp-react-nav-group {
    margin-top: 0.65rem;
}

[class*="sidebar-"] .nav-sidebar > .nav-item.erp-react-nav-group:hover > .nav-link.erp-react-nav-parent,
[class*="sidebar-"] .nav-sidebar > .nav-item.erp-react-nav-group.menu-open > .nav-link.erp-react-nav-parent,
[class*="sidebar-"] .nav-sidebar > .nav-item > .nav-link.erp-react-nav-parent.bg-main {
    background-color: transparent !important;
    box-shadow: none;
    color: #4b5563 !important;
}

.erp-react-nav-parent {
    align-items: center;
    display: flex;
    gap: 0.15rem;
}

.erp-react-nav-label,
.main-sidebar .garage-react-nav-label {
    color: #6f746f;
    flex: 1 1 auto;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    min-width: 0;
    text-transform: uppercase;
    white-space: normal;
}

.erp-react-nav-parent.bg-main .erp-react-nav-label,
.erp-react-nav-parent.bg-main .garage-react-nav-label,
.nav-item.menu-open > .erp-react-nav-parent .erp-react-nav-label,
.nav-item.menu-open > .erp-react-nav-parent .garage-react-nav-label {
    color: #343a40;
}

.main-sidebar .nav-sidebar .nav-treeview > .nav-item > .nav-link {
    align-items: flex-start;
    display: flex;
}

.main-sidebar .nav-sidebar .nav-treeview > .nav-item > .nav-link > .nav-icon {
    flex: 0 0 auto;
    margin-top: 0.15rem;
}

.main-sidebar .nav-sidebar .nav-treeview > .nav-item > .nav-link > p,
.main-sidebar .nav-sidebar .nav-treeview > .nav-item > .nav-link > .d-flex {
    flex: 1 1 auto;
    min-width: 0;
}

.main-sidebar .nav-sidebar .nav-treeview > .nav-item > .nav-link > p {
    white-space: normal;
}

table.dataTable thead th {
    position: relative;
}

table.dataTable thead th.sorting::before,
table.dataTable thead th.sorting_asc::before,
table.dataTable thead th.sorting_desc::before {
    display: none;
}

table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::after {
    position: static;
    display: inline-block;
    margin-left: 5px;
    font-size: 12px;
    font-family: inherit;
    font-weight: normal;
    content: '▼';
}

table.dataTable thead th.sorting_asc::after {
    content: '▲';
    opacity: 1;
}

table.dataTable thead th.sorting_desc::after {
    content: '▼';
}

input[readonly].white-bg {
    background: #fff;
}

/* dashboard */
body.dashboard--page {
    overflow-x: hidden;
}

body.dashboard--page .content-wrapper,
body.dashboard--page .content,
body.dashboard--page .container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

.dashboard-shell {
    min-width: 0;
    max-width: 100%;
    padding-bottom: 1rem;
}

.dashboard-shell .row {
    margin-right: -10px;
    margin-left: -10px;
}

.dashboard-shell [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    padding: 1.15rem 1.35rem;
    border-radius: 26px;
    background: linear-gradient(135deg, #16324f 0%, #1f5f89 52%, #2c8c8b 100%);
    color: #fff;
    box-shadow: 0 1.25rem 2.75rem rgba(22, 50, 79, 0.22);
}

.dashboard-hero::before,
.dashboard-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.dashboard-hero::before {
    top: -80px;
    right: -60px;
    width: 220px;
    height: 220px;
}

.dashboard-hero::after {
    bottom: -110px;
    left: -30px;
    width: 180px;
    height: 180px;
}

.dashboard-hero__title {
    margin: 0 0 0.45rem;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.1;
}

.dashboard-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.4rem;
}

.dashboard-hero__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
}

.dashboard-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.dashboard-overview-card {
    min-height: 92px;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.dashboard-overview-card__label {
    display: block;
    margin-bottom: 0.45rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-overview-card__value {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border: 0;
    border-radius: 24px;
    color: #fff;
    box-shadow: 0 1rem 2.4rem rgba(20, 39, 63, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.35rem 2.6rem rgba(20, 39, 63, 0.2);
}

.dashboard-stat-card::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -20px;
    width: 130px;
    height: 130px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(24deg);
}

.dashboard-stat-card .card-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.35rem;
}

.dashboard-stat-card__top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.dashboard-stat-card__value {
    margin: 0 0 0.55rem;
    color: #fff;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-stat-card__title {
    margin-bottom: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    min-height: 5.8rem;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.dashboard-stat-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.dashboard-stat-card__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
}

.dashboard-stat-card__action:hover {
    color: #fff;
    text-decoration: none;
}

.dashboard-stat-card--navy {
    background: linear-gradient(135deg, #0f4c81 0%, #1673b6 100%);
}

.dashboard-stat-card--cyan {
    background: linear-gradient(135deg, #0d8aa3 0%, #1fb7a6 100%);
}

.dashboard-stat-card--green {
    background: linear-gradient(135deg, #1a7f54 0%, #35ad63 100%);
}

.dashboard-stat-card--amber {
    background: linear-gradient(135deg, #b6690a 0%, #e59c19 100%);
}

.dashboard-stat-card--violet {
    background: linear-gradient(135deg, #5c4bb8 0%, #8470f5 100%);
}

.dashboard-stat-card--berry {
    background: linear-gradient(135deg, #b0385e 0%, #e25f7e 100%);
}

.dashboard-stat-card--slate {
    background: linear-gradient(135deg, #4f5d75 0%, #6e7c91 100%);
}

.dashboard-stat-card--teal {
    background: linear-gradient(135deg, #136f78 0%, #2397a3 100%);
}

.dashboard-stat-card--indigo {
    background: linear-gradient(135deg, #2f4f88 0%, #5f86e6 100%);
}

.dashboard-stat-card--rose {
    background: linear-gradient(135deg, #9f3150 0%, #d55472 100%);
}

.dashboard-panel {
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dbe6ef;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 0.9rem 2.2rem rgba(20, 39, 63, 0.08);
}

.dashboard-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding: 1.25rem 1.35rem 0;
}

.dashboard-panel__title {
    margin: 0;
    color: #17324f;
    font-size: 1.05rem;
    font-weight: 700;
}

.dashboard-panel__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #edf5ff;
    color: #1c69d4;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-panel__body {
    min-width: 0;
    padding: 1.25rem 1.35rem 1.35rem;
}

.dashboard-panel__body--compact {
    padding-top: 0.85rem;
}

.dashboard-chart-wrap {
    position: relative;
    min-height: 340px;
}

.dashboard-chart-wrap--wide {
    min-height: 430px;
}

.dashboard-chart-wrap--small {
    min-height: 280px;
}

.dashboard-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.dashboard-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.dashboard-mini-grid--receiving {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.dashboard-mini-grid--purchase-invoice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0;
}

.dashboard-receiving-overview {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: stretch;
}

.dashboard-receiving-overview__summary {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 132px;
    padding: 0.75rem 0.95rem;
    border: 1px solid #e6eef5;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.dashboard-receiving-overview__eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.dashboard-receiving-overview__headline {
    margin-top: 0.35rem;
    color: #17324f;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
}

.dashboard-receiving-overview__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
    margin-top: 0.55rem;
    color: #526579;
    font-size: 0.8rem;
}

.dashboard-mini-stat--receiving {
    min-height: 82px;
    padding: 0.45rem 0.8rem;
    border-radius: 16px;
}

.dashboard-mini-stat--receiving .dashboard-mini-stat__label {
    margin-bottom: 0.25rem;
    font-size: 0.68rem;
}

.dashboard-mini-stat--receiving .dashboard-mini-stat__value {
    font-size: 1.15rem;
}

.dashboard-receiving-grid {
    display: grid;
    gap: 0.9rem;
}

.dashboard-receiving-sections {
    display: grid;
    gap: 1rem;
}

.dashboard-receiving-section {
    padding: 1rem;
    border: 1px solid #e6eef5;
    border-radius: 20px;
    background: #f8fbff;
}

.dashboard-receiving-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.dashboard-receiving-section__tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-receiving-section__title {
    color: #17324f;
    font-size: 0.95rem;
    font-weight: 700;
}

.dashboard-receiving-section__button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #1d6ad3;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.dashboard-receiving-section__button:hover {
    color: #1654a6;
    text-decoration: underline;
}

.dashboard-receiving-section__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #e8f1ff;
    color: #1c69d4;
    font-size: 0.76rem;
    font-weight: 700;
}

.dashboard-receiving-section--overdue .dashboard-receiving-section__count {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.dashboard-receiving-section--today .dashboard-receiving-section__count {
    background: rgba(217, 119, 6, 0.14);
    color: #b45309;
}

.dashboard-receiving-section--upcoming .dashboard-receiving-section__count {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.dashboard-receiving-empty {
    padding: 0.85rem 0.95rem;
    border: 1px dashed #d8e4f0;
    border-radius: 16px;
    background: #fff;
    color: #6c7e91;
    font-size: 0.86rem;
}

.dashboard-receiving-cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #d7e6fb;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.dashboard-receiving-cta--overdue {
    border-color: #f3d6d6;
    background: linear-gradient(135deg, #fff8f8 0%, #fff0f0 100%);
}

.dashboard-receiving-cta--today {
    border-color: #f6e0b9;
    background: linear-gradient(135deg, #fffaf2 0%, #fff4e6 100%);
}

.dashboard-receiving-cta--upcoming {
    border-color: #d7e6fb;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.dashboard-receiving-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 16px;
    background: #ffffff;
    color: #1d6ad3;
    font-size: 1.1rem;
    box-shadow: inset 0 0 0 1px #dbe6ef;
}

.dashboard-receiving-cta--overdue .dashboard-receiving-cta__icon {
    color: #c2410c;
}

.dashboard-receiving-cta--today .dashboard-receiving-cta__icon {
    color: #b45309;
}

.dashboard-receiving-cta--upcoming .dashboard-receiving-cta__icon {
    color: #1d6ad3;
}

.dashboard-receiving-cta__content {
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-receiving-cta__eyebrow {
    display: inline-block;
    margin-bottom: 0.2rem;
    color: #6b7f95;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-receiving-cta--overdue .dashboard-receiving-cta__eyebrow {
    color: #b45309;
}

.dashboard-receiving-cta--today .dashboard-receiving-cta__eyebrow {
    color: #b45309;
}

.dashboard-receiving-cta--upcoming .dashboard-receiving-cta__eyebrow {
    color: #6b7f95;
}

.dashboard-receiving-cta__title {
    color: #17324f;
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-receiving-cta__text {
    margin-top: 0.3rem;
    color: #5b7087;
    font-size: 0.86rem;
    line-height: 1.45;
}

.dashboard-receiving-cta__button {
    flex-shrink: 0;
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 999px;
    background: #1d6ad3;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 0.75rem 1.5rem rgba(29, 106, 211, 0.18);
    cursor: pointer;
}

.dashboard-receiving-cta--overdue .dashboard-receiving-cta__button {
    background: #dc2626;
    box-shadow: 0 0.75rem 1.5rem rgba(220, 38, 38, 0.18);
}

.dashboard-receiving-cta--today .dashboard-receiving-cta__button {
    background: #d97706;
    box-shadow: 0 0.75rem 1.5rem rgba(217, 119, 6, 0.18);
}

.dashboard-receiving-cta--upcoming .dashboard-receiving-cta__button {
    background: #1d6ad3;
    box-shadow: 0 0.75rem 1.5rem rgba(29, 106, 211, 0.18);
}

.dashboard-receiving-cta__button:hover {
    background: #1654a6;
}

.dashboard-receiving-cta--overdue .dashboard-receiving-cta__button:hover {
    background: #b91c1c;
}

.dashboard-receiving-cta--today .dashboard-receiving-cta__button:hover {
    background: #b45309;
}

.dashboard-receiving-modal .modal-dialog {
    max-width: 1080px;
}

.dashboard-receiving-modal .modal-content {
    border: 1px solid #dbe6ef;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.12);
}

.dashboard-receiving-modal .modal-header {
    border-bottom: 1px solid #e7eef4;
}

.dashboard-receiving-modal .modal-body {
    padding: 1rem 1.1rem 1.2rem;
    background: #f8fbff;
}

.dashboard-receiving-modal-list {
    display: grid;
    gap: 0.9rem;
}

.dashboard-receiving-modal__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #edf5ff;
    color: #1c69d4;
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-receiving-modal__badge--overdue {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.dashboard-receiving-modal__badge--today {
    background: rgba(217, 119, 6, 0.14);
    color: #b45309;
}

.dashboard-receiving-modal__badge--upcoming {
    background: #edf5ff;
    color: #1c69d4;
}

.dashboard-receiving-card {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-receiving-card:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.dashboard-receiving-card__top,
.dashboard-receiving-card__footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.dashboard-receiving-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #eef4fb;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5d7692;
}

.dashboard-receiving-card__title {
    margin-top: 0.55rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-receiving-card__status {
    flex-shrink: 0;
}

.dashboard-receiving-card__status > * {
    margin-bottom: 0;
}

.dashboard-receiving-card__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.7rem;
    margin: 0.95rem 0 0.85rem;
}

.dashboard-receiving-card__detail {
    min-width: 0;
    padding: 0.7rem 0.8rem;
    border: 1px solid #e8eef5;
    border-radius: 14px;
    background: #f8fbff;
}

.dashboard-receiving-card__detail-label {
    display: block;
    margin-bottom: 0.28rem;
    color: #71849a;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-receiving-card__detail-value {
    display: block;
    color: #17324f;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.dashboard-receiving-card__focus-box {
    margin: 0 0 0.85rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #fde7a8;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffaf0, #fffef8);
}

.dashboard-receiving-card__focus-label {
    display: block;
    margin-bottom: 0.3rem;
    color: #a16207;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-receiving-card__focus-value {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.45;
}

.dashboard-receiving-card__focus-more {
    color: #64748b;
    font-weight: 600;
}

.dashboard-receiving-card__hint {
    color: #64748b;
    font-size: 0.82rem;
}

.dashboard-receiving-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: #1d4ed8;
}

.dashboard-receiving-card__footer {
    width: 100%;
    margin-top: auto;
    justify-content: flex-end;
    align-items: flex-end;
}

.dashboard-mini-stat {
    padding: 0.95rem 1rem;
    border: 1px solid #e2ebf2;
    border-radius: 18px;
    background: #f7fafc;
}

.dashboard-mini-stat__label {
    display: block;
    margin-bottom: 0.45rem;
    color: #71849a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-mini-stat__value {
    color: #17324f;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-soft-table {
    padding: 0.85rem;
    border: 1px solid #e6eef5;
    border-radius: 20px;
    background: #f7fafc;
}

.dashboard-soft-table table {
    margin-bottom: 0;
}

.dashboard-soft-table th,
.dashboard-soft-table td {
    padding: 0.7rem 0.75rem;
    border-top: 0 !important;
}

.dashboard-soft-table th {
    color: #6c7e91;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-soft-table td {
    color: #17324f;
    font-size: 0.93rem;
    font-weight: 600;
}

.dashboard-soft-table th:last-child,
.dashboard-soft-table td:last-child {
    text-align: right;
}

.dashboard-panel--ticket-overview .dashboard-panel__body {
    padding: 1rem 1.15rem 1.1rem;
}

.dashboard-panel--ticket-overview .dashboard-chart-wrap--small {
    min-height: 220px;
    max-width: 260px;
    margin: 0 auto;
}

.dashboard-panel--ticket-overview .dashboard-mini-grid {
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.dashboard-panel--ticket-overview .dashboard-mini-stat {
    padding: 0.8rem 0.85rem;
    border-radius: 16px;
}

.dashboard-panel--ticket-overview .dashboard-mini-stat__label {
    margin-bottom: 0.35rem;
    font-size: 0.74rem;
}

.dashboard-panel--ticket-overview .dashboard-mini-stat__value {
    font-size: 1.3rem;
}

.dashboard-panel--ticket-overview .dashboard-soft-table {
    padding: 0.65rem;
    border-radius: 16px;
}

.dashboard-panel--ticket-overview .dashboard-soft-table th,
.dashboard-panel--ticket-overview .dashboard-soft-table td {
    padding: 0.55rem 0.65rem;
}

.dashboard-panel--ticket-overview .dashboard-soft-table th {
    font-size: 0.74rem;
}

.dashboard-panel--ticket-overview .dashboard-soft-table td {
    font-size: 0.88rem;
}

.dashboard-panel--purchase-invoices .dashboard-panel__body {
    padding: 1rem 1.15rem 1.1rem;
}

.dashboard-purchase-invoice-overview {
    margin-bottom: 0;
}

.dashboard-panel--purchase-invoices .dashboard-mini-stat {
    padding: 0.8rem 0.85rem;
    border-radius: 16px;
}

.dashboard-panel--purchase-invoices .dashboard-mini-stat__label {
    margin-bottom: 0.35rem;
    font-size: 0.74rem;
}

.dashboard-panel--purchase-invoices .dashboard-mini-stat__value {
    font-size: 1.3rem;
}

.dashboard-purchase-invoice-unpaid-button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1d6ad3;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.dashboard-purchase-invoice-unpaid-button:hover {
    color: #1654a6;
    text-decoration: underline;
}

.dashboard-purchase-invoice-unpaid-button--alert {
    color: #b91c1c;
}

.dashboard-purchase-invoice-unpaid-button--alert:hover {
    color: #991b1b;
}

.dashboard-chart-wrap--purchase-invoice {
    min-height: 260px;
    max-width: 290px;
    margin: 0 auto;
}

.dashboard-purchase-invoice-ring__center {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.dashboard-purchase-invoice-ring__label {
    color: #7b8da1;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-purchase-invoice-ring__value {
    margin-top: 0.2rem;
    color: #17324f;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-panel--customer-job-chart .dashboard-panel__body {
    padding: 1rem 1.15rem 1.1rem;
}

.dashboard-panel--customer-job-chart .dashboard-chart-wrap--wide {
    min-height: 320px;
}

.dashboard-panel--customer-ticket-chart .dashboard-panel__body,
.dashboard-panel--job-type-chart .dashboard-panel__body {
    padding: 1rem 1.15rem 1.1rem;
}

.dashboard-panel--customer-ticket-chart .dashboard-chart-wrap,
.dashboard-panel--job-type-chart .dashboard-chart-wrap {
    min-height: 260px;
}

.dashboard-panel--compact-chart .dashboard-panel__header {
    padding: 1rem 1.15rem 0;
}

.dashboard-panel--compact-chart .dashboard-panel__body {
    padding: 0.95rem 1.15rem 1rem;
}

.dashboard-panel--compact-chart .dashboard-chart-wrap,
.dashboard-panel--compact-chart .dashboard-chart-wrap--wide {
    min-height: 235px;
}

.dashboard-panel__action {
    color: #1d6ad3;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-panel__action:hover {
    color: #1654a6;
    text-decoration: none;
}

.dashboard-panel__header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.95rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.dashboard-filter {
    min-width: 280px;
    max-width: 340px;
    margin-left: auto;
}

.dashboard-filter--inline {
    flex: 0 0 300px;
    min-width: 300px;
    max-width: 300px;
    margin-left: 0;
    margin-right: 0.55rem;
}

.dashboard-filter--inline .select2-container--bootstrap .select2-selection,
.dashboard-filter--inline .select2-container .select2-selection,
.dashboard-filter--inline select.form-control {
    min-height: 36px;
    border: 1px solid #d8e4ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 0.35rem 0.9rem rgba(23, 50, 79, 0.06);
    display: flex;
    align-items: center;
}

.dashboard-filter--inline .select2-container .select2-selection__rendered,
.dashboard-filter--inline select.form-control {
    font-size: 0.92rem;
    font-weight: 600;
    color: #274866;
    text-align: left;
    text-align-last: left;
}

.dashboard-filter--inline .select2-container .select2-selection__rendered {
    display: flex;
    align-items: center;
    min-height: 36px;
    line-height: 1.2 !important;
    padding-left: 1rem !important;
    padding-right: 2.8rem !important;
}

.dashboard-filter--inline .select2-container .select2-selection__arrow {
    height: 36px !important;
    top: 0 !important;
    right: 0.9rem !important;
    display: flex;
    align-items: center;
}

.dashboard-filter--inline .select2-container .select2-selection__arrow b {
    margin-top: 0 !important;
}

.dashboard-filter--inline .select2-container .select2-selection__placeholder {
    color: #7890a9;
    font-weight: 500;
}

.dashboard-filter .form-group {
    margin-bottom: 0;
}

.dashboard-filter .select2-container,
.dashboard-filter .select2-selection,
.dashboard-filter select.form-control {
    width: 100% !important;
}

.dashboard-filter .select2-container--bootstrap .select2-selection,
.dashboard-filter .select2-container .select2-selection,
.dashboard-filter select.form-control {
    min-height: 46px;
    border: 1px solid #d5e0ea;
    border-radius: 14px;
    background: #f9fbfd;
}

.dashboard-filter:not(.dashboard-filter--inline) select.form-control {
    text-align: center;
    text-align-last: center;
}

.dashboard-filter:not(.dashboard-filter--inline) .select2-container .select2-selection__rendered {
    display: block;
    width: 100%;
    padding-right: 2.25rem !important;
    text-align: center;
}

.dashboard-invoice-summary {
    display: grid;
    grid-template-columns: minmax(130px, 0.8fr) minmax(220px, 2fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.dashboard-invoice-summary__card {
    min-width: 0;
    min-height: 94px;
    padding: 0.85rem 1rem;
    border: 1px solid #e4edf5;
    border-radius: 18px;
    background: #f8fbff;
}

.dashboard-invoice-summary__card--amount {
    background: #f7fbf9;
    border-color: #d7eadf;
}

.dashboard-invoice-summary__label {
    display: block;
    margin-bottom: 0.35rem;
    color: #63758a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-invoice-summary__value {
    display: block;
    color: #17324f;
    font-size: 1.55rem;
    line-height: 1;
}

.dashboard-invoice-summary__amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dashboard-invoice-summary__amounts span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #eaf7ef;
    color: #166534;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-table-wrap {
    max-width: 100%;
    overflow-y: hidden;
    overflow-x: auto;
}

.dashboard-table {
    margin-bottom: 0;
}

.dashboard-table thead th {
    border-top: 0;
    border-bottom: 1px solid #e7eef4;
    background: #f4f8fb;
    color: #3d5874;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-table tbody td {
    padding: 0.9rem 0.75rem;
    color: #223a52;
    border-color: #edf3f8;
    vertical-align: middle;
}

.dashboard-table tbody tr:hover {
    background: #fafcfe;
}

.dashboard-table-link {
    color: #1c69d4;
    font-weight: 700;
}

.dashboard-table-link:hover {
    color: #1654a6;
}

.dashboard-invoice-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-invoice-status--overdue {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.dashboard-invoice-status--unpaid {
    background: rgba(217, 119, 6, 0.14);
    color: #b45309;
}

.dashboard-empty {
    padding: 1.25rem;
    border: 1px dashed #c9d7e5;
    border-radius: 18px;
    background: #f8fbfd;
    color: #70849b;
    text-align: center;
}

.dashboard-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.dashboard-stack > *,
.dashboard-panel__header > div,
.dashboard-panel__header-tools {
    min-width: 0;
}

@media (max-width: 1199.98px) {
    .dashboard-hero__title {
        font-size: 1.4rem;
    }

    .dashboard-receiving-overview {
        grid-template-columns: 1fr;
    }

    .dashboard-mini-grid--purchase-invoice {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dashboard-hero {
        padding: 1rem 1.1rem;
    }

    .dashboard-overview-grid,
    .dashboard-mini-grid,
    .dashboard-invoice-summary {
        grid-template-columns: 1fr;
    }

    .dashboard-mini-grid--receiving {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-mini-grid--purchase-invoice {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-chart-wrap {
        min-height: 300px;
    }

    .dashboard-chart-wrap--wide {
        min-height: 360px;
    }

    .dashboard-panel--customer-ticket-chart .dashboard-chart-wrap,
    .dashboard-panel--job-type-chart .dashboard-chart-wrap {
        min-height: 220px;
    }

    .dashboard-panel--customer-job-chart .dashboard-chart-wrap--wide {
        min-height: 280px;
    }

    .dashboard-panel--compact-chart .dashboard-chart-wrap,
    .dashboard-panel--compact-chart .dashboard-chart-wrap--wide {
        min-height: 220px;
    }
}

@media (max-width: 767.98px) {
    .dashboard-hero__title {
        font-size: 1.28rem;
    }

    .dashboard-stat-card {
        min-height: 205px;
    }

    .dashboard-stat-card__title {
        min-height: 4.4rem;
        -webkit-line-clamp: 3;
    }

    .dashboard-mini-grid--receiving {
        grid-template-columns: 1fr;
    }

    .dashboard-mini-grid--purchase-invoice {
        grid-template-columns: 1fr;
    }

    .dashboard-chart-wrap--purchase-invoice {
        min-height: 240px;
    }

    .dashboard-panel__header {
        flex-direction: column;
    }

    .dashboard-panel__header-tools {
        width: 100%;
        justify-content: stretch;
    }

    .dashboard-filter {
        min-width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .dashboard-filter--inline {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
        margin-right: 0;
    }

    .dashboard-receiving-card__footer {
        flex-direction: row;
        align-items: flex-end;
    }

    .dashboard-receiving-card__status {
        align-self: flex-start;
    }
}
