.dashboard-title {
    width: 100%;
    text-align: center;
}

@media screen and (min-width: 2000px)
{
}

.rz-dropdown:hover {
    cursor: pointer;
}

.rz-dropdown-item:hover {
    background-color: #272727 !important;
    cursor: pointer;
}

.rz-state-highlight {
    background-color: #ee572c !important;
}

.rz-dropdown-items-wrapper {
    scrollbar-color: #ee572c !important;
}

#dashboard-cards {
    height: 50%;
    padding: 25px;
}

.dashboard-container {
}

.dashboard-container::-webkit-scrollbar {
    display: none;
}

.dashboard-title {
    width: 100%;
    height: 3%;
}

.dashboard-content {
    width: 100%;
    height: auto !important;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 5%;
    padding-bottom: 5%;
}

.dashboard-extra-content {
    width: 100% !important;
    height: 30px !important;
}

.dashboard-top-content {
    width: 70% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly !important;
    padding-right: 25px;
    margin-top: 200px !important;
}

.dashboard-top-content::-webkit-scrollbar {
    display: none;
}

.dashboard-top-content .net-chart-container {
    height: 60% !important;
    width: 100%;
    margin-bottom: 30px !important;
}

.dashboard-top-content .pie-card-container {
    width: 100% !important;
    height: 500px !important;
    display: flex;
    flex-direction: row;
}

.dashboard-top-content #line-chart-component {
    width: 100% !important;
    z-index: 9999 !important;
    height: 100%;
    margin-bottom: 0px;
}

#line-chart-component .line-chart-header {
    display: flex;
    flex-direction: row-reverse;
    height: 20%;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
}

#line-chart-component .line-chart-header .line-chart-header-options {
    width: 80%;
}

#line-chart-component .line-chart-header .line-chart-header-loader {
    width: 20%;
}

#line-chart-component .line-chart-body {
    width: 100%;
    height:  80% !important;
}

#line-chart-component .line-chart-body #lineChartCanvas {
    width: 100%;
    height: 100%;
}

.net-line-chart-loader {
    width: 200px;
    height: 200px;
    background-color: #f2f2f2;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
}

.dashboard-top-content .sales-card-container .sales-card {
    width: 100% !important;
    height: 42.5% !important;
}

.dashboard-top-content .sales-card .card {
    height: 100%;
    width: 100%;
}

.dashboard-top-content .labor-card-container {
    width: 100%;
    height: 500px !important;
    background-color: grey;
}

.dashboard-top-content .labor-card-container .labor-card {
    width: 50%;
}

.dashboard-bottom-content {
    width: 30% !important;
    height: 100% !important;
    display: flex;
    flex-direction: column !important;
    justify-content: flex-end !important;
}

.dashboard-bottom-content::-webkit-scrollbar {
    display: none;
}

.dashboard-card-container {
    height: 100%;
    width: 100%;
}

.dashboard-card-container .card-container {
    width: 100%;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 25px;
}

.dashboard-card-container .card-container .sales-card {
    width: 100%;
    max-width: 700px;
    height: 50% !important;
    min-width: 350px;
}

.card-container .sales-card .card {
}

.dashboard-top-content .pie-card-container {
    width: 100%;
    height: 40%;
    display: flex;
    justify-content: space-evenly;
}

.dashboard-card-container .card-container .sales-card-container .sales.card .card {
    border: none !important;
}

.dashboard-tiles-container .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 !important;
    height: 100%;
    width: 100%;
}

.dashboard-tiles-container .card-body table {
    width: 100% !important;
    height: 100%;
}

.dashboard-tiles-container .card-body table tbody {
    width: 100% !important;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.dashboard-tiles-container .card-body table tbody tr {
    width: 100%;
    height: auto !important;
}

.dashboard-tiles-container .card-body table tbody tr:nth-child(2n + 1) {
    background-color: #f2f2f2;
}

.dashboard-tiles-container .card-body table tbody tr th {
    width: 100% !important;
}

.dashboard-tiles-container .card-body table tbody tr td {
    width: 50% !important;
}

.pie-card {
    width: 45%;
    max-width: 700px;
    height: 100%;
    border: none !important;
}

.pie-card .card {
    height: 100%;
    width: 100%;
    min-width: 250px !important;
    min-height: 250px !important;
    border: none !important;
}



.pie-card .card .chart-options {
    width: 100%;
    display: flex;
    flex-direction: row !important;
    justify-content: space-around;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid #ee572c;
    color: black;
    font-weight: bold;
}

.sales-card .card {
    height: 100%;
    border: none !important;
}

.sales-card .card .chart-options {
    color: black;
    font-weight: bold;
    width: 100%;
    display: flex;
    flex-direction: row !important;
    justify-content: center;
}

.sales-card .card .chart-options .tooltip-container {
    display: none !important;
}

.sales-card .card .chart-options div {
    margin-right: 15px;
}

.tooltip-icon {
    left: -4% !important;
}

.dashboard-control {
    width: 50%;
    max-width: 1100px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.card-control {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.single-card {
    height: 650px;
    width: 40%;
    max-width: 550px;
    margin: 100px;
}

#line-chart-component .chart-options {
    color: black;
    font-weight: bold;
    width: 80%;
    display: flex !important;
    flex-direction: row;
    justify-content: flex-start;
}

#line-chart-component .chart-options .select-element {
    margin-right: 5px;
}

.net-chart-control {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 35px;
}

.dateRangeDropdown {
    margin-bottom: 10px;
}

/* Was an inline style on the select in DashboardOptionSelector.razor. It is a rule now so the
   mobile block can relax it. Scoped to .chart-options so the reports page select is untouched. */
.chart-options .dateRangeDropdown {
    min-width: 120px;
}

#line-chart-component .net-chart {
    display: flex;
    justify-content: flex-start;
    height: 100%;
    width: 100% !important;
    margin: 0 !important;
}

#lineChartCanvas {
    width: 100% !important;
    max-width: 2500px;
    height: 100% !important;
    background-color: #fff;
    border-radius: 12px;
    padding: 10px;
    max-height: 650px !important;
}

select option:checked {
    background-color: var(--oc-primary);
    color: white;
}

.select-element {
    display: flex;
    flex-direction: column;
    width: auto !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-element #punchType {
    margin-bottom: 10px;
}

.chart-options {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-evenly !important;
}

/* Styling for Chart Title */
.chart-title {
    text-align: center;
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
    color: white;
}

/* Styling for Chart Legend */
.chart-legend {
    text-align: center;
    margin-bottom: 20px;
}

/* Styling for Chart Legend Items */
.chart-legend-item {
    display: inline-block;
    margin-right: 10px;
}

.chart-legend-item span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border-radius: 50%;
}

    /* Colors for Chart Legend Items */
.chart-legend-item .color1 {
    background-color: rgb(75, 192, 192);
}

/* Styling for Chart Axes */
.chart-axis {
    font-size: 12px;
}

.chart-axis-title {
    font-weight: bold;
}

/* Styling for Chart Gridlines */
.chart-gridline {
    stroke: rgba(0, 0, 0, 0.1);
    stroke-dasharray: 4;
}

/* Styling for Chart Data Line */
.chart-data-line {
    stroke-width: 2;
}

/* Styling for Chart Data Points */
.chart-data-point {
    fill: rgb(75, 192, 192);
}

/* Styling for Chart Tooltip */
.chart-tooltip {
    position: absolute;
    display: none;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    pointer-events: none;
    z-index: 1;
}

    /* Styling for Chart Tooltip Arrow */
.chart-tooltip::before {
    content: "";
    position: absolute;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.7) transparent;
}

/* Styling for Chart Tooltip Data */
.chart-tooltip-data {
    margin-bottom: 5px;
}

/* NEW DASHBOARD LAYOUT */

.dashboard-container {
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
}

.dashboard-container .dashboard-title {
    width: 100%;
    height: auto;
    padding: 20px 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.dashboard-container .dashboard-body {
    width: 100%;
    height: auto;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    padding-left: 80px;
    padding-right: 20px;
    box-sizing: border-box;
}

.dashboard-body .dashboard-first-container {
    width: 100%;
    height: auto;
    margin-bottom: 2%;
    border-radius: 12px;
    display: flex;
    justify-content: space-around;
    padding: 15px;
}

.dashboard-first-container .net-chart-container {
    width: 60%;
    height: 100%;
}

.dashboard-first-container .net-chart-container #line-chart-component {
    width: 100%;
    height: 100%;
}

.dashboard-first-container .net-chart-container #line-chart-component #lineChartCanvas {
    width: 100%;
    height: 100% !important;
}

.dashboard-first-container .pie-cards {
    height: 100% !important;
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.dashboard-first-container .pie-cards .pie-card-container {
    width: 100%;
    height: 40% !important;
    padding: 10px;
}

.dashboard-first-container .pie-cards .pie-card-container .card {
    width: 100%;
    height: 100%;
    max-height: 850px;
    border: none !important;
}

.dashboard-first-container .pie-cards .pie-card-container .card .component-title {
    width: 100%;
    text-align: center;
}

.pie-card-container .card .component-title :is(h1, h2) {
    font-size: 22px !important;
    text-decoration: underline;
}

.dashboard-first-container .pie-cards .pie-card-container .card .chart-options {
    width: 100% !important;
    display: flex;
    flex-direction: row !important;
}

.pie-card-container .card .card-body {
    height: 250px !important;
}

.dashboard-first-container .sales-card-container {
    width: 30%;
    height: 600px !important;
}

.dashboard-first-container .sales-card-container .card {
    width: 100%;
    height: 100% !important;
}

.dashboard-body .dashboard-second-container {
    width: 100%;
    height: auto;
    margin-bottom: 2%;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.dashboard-second-container .sales-card-container {
    width: 30%;
    min-width: 450px;
    max-width: 550px;
    height: 650px;
    margin-bottom: 25px;
}

.dashboard-second-container .labor-card-container {
    height: 650px;
    width: 30% !important;
    min-width: 450px;
    max-width: 550px;
    margin-bottom: 25px;
}

.dashboard-second-container .statistics-card-container {
    height: 650px;
    width: 30% !important;
    min-width: 450px;
    max-width: 550px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, .132), 0px 1px 3px rgba(0, 0, 0, .108);
}

.statistics-card-container .statistics-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
}

.statistics-card-container .statistics-card .component-title {
    width: 100%;
    text-align: center;
}

.statistics-card-container .statistics-card .component-title :is(h1, h2) {
    font-size: 22px !important;
    text-decoration: underline;
}

.statistics-card .chart-options {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.statistics-card .statistics-card-body {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    overflow-y: scroll;
}

.statistics-card-body::-webkit-scrollbar {
    width: 8px;
}

.statistics-card-body::-webkit-scrollbar-thumb {
    background-color: #ee572c;
    border-radius: 12px;
}

.statistics-card-body::-webkit-scrollbar-track {
    background-color: transparent;
}

.statistics-card-body table {
    flex-direction: column !important;
    flex-wrap: wrap;
    width: 100% !important;
}

.statistics-card-body table thead {
    width: 100%;
}

.statistics-card-body table thead tr {
    width: 100%;
    height: 30px;
    display: flex;
    font-weight: bold;
}

.statistics-card-body table thead tr th {
    width: 60% !important;
}

.statistics-card-body table thead tr td {
    width: 20% !important;
}

.statistics-card-body table tbody {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

.statistics-card-body table tbody tr th {
    width: 60% !important;
}

.statistics-card-body table tbody tr td {
    width: 20%;
}

.statistics-card-body table tbody tr {
    width: 100% !important;
    height: 40px !important;
    display: flex;
}

.dashboard-second-container .pending-card-container {
    height: 650px;
    width: 30% !important;
    min-width: 450px;
    max-width: 550px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, .132), 0px 1px 3px rgba(0, 0, 0, .108);
}

.pending-card-container .PendingAndFutureSales-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
}

.pending-card-container .PendingAndFutureSales-card .component-title {
    width: 100%;
    text-align: center;
}
.pending-card-container .PendingAndFutureSales-card .component-title :is(h1, h2) {
    font-size: 22px !important;
    text-decoration: underline;
}


.PendingAndFutureSales-card .chart-options {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.PendingAndFutureSales-card .future-and-pending-card-body {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    overflow-y: scroll;
}

.future-and-pending-card-body::-webkit-scrollbar {
    width: 8px;
}

.future-and-pending-card-body::-webkit-scrollbar {
    background-color: #ee572c;
    border-radius: 12px;
}

.future-and-pending-card-body::-webkit-scrollbar {
    background-color: transparent;
}

.future-and-pending-card-body .pending-table {
    flex-direction: column !important;
    flex-wrap: wrap;
    width: 100% !important;
}

.future-and-pending-card-body .pending-table tbody tr:nth-child(2n+1) {
    background-color: #f2f2f2;
}

.dashboard-second-container .time-clock-container {
    height: 650px;
    width: 30% !important;
    min-width: 450px;
    max-width: 550px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, .132), 0px 1px 3px rgba(0, 0, 0, .108);
}


.sales-card-container {
    height: 650px;
    width: 30% !important;
    min-width: 450px;
    max-width: 550px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, .132), 0px 1px 3px rgba(0, 0, 0, .108);
}

.sales-card-container .card {
    width: 100%;
    height: 100%;
    padding: 15px;
}

.sales-card-container .card .component-title {
    width: 100%;
    text-align: center;
}

.sales-card-container .card .component-title :is(h1, h2) {
    font-size: 22px !important;
    text-decoration: underline;
}

.sales-card-container .sales-card {
    width: 100%;
    height: 100%;
    padding: 15px;
}

.sales-card-container .card .card-body {
    overflow-y: scroll;
    overflow-x: hidden;
}

.sales-card-container .card .card-body .table {
    margin-right: 5px;
    overflow-x: hidden;
}

.sales-card-container .card .card-body::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

.sales-card-container .card .card-body::-webkit-scrollbar-thumb {
    background-color: #ee572c; /* Color of the scrollbar thumb */
    border-radius: 12px; /* Border radius of the thumb */
}

.sales-card-container .card .category-card-body::-webkit-scrollbar-thumb {
    background-color: #ee572c; /* Color of the scrollbar thumb */
    border-radius: 12px; /* Border radius of the thumb */
}

.sales-card-container .card .card-body::-webkit-scrollbar-track {
    background-color: transparent; /* Color of the scrollbar track */
}

.category-card-body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: scroll;
}

.category-card-body .table {
    width: 100%;
    height: auto;
}

.category-card-body .table thead tr {
    height: 38px;
}

.category-card-body .table tbody tr {
    height: 38px !important;
}

.category-card-body .table tr:nth-child(2n+2) {
    background-color: #f2f2f2;
}

.sales-card-container .card .chart-options {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.sales-card-container .card .card-body .table {
    flex-direction: column !important;
    flex-wrap: wrap;
    width: 100%;
}

.sales-card-container .card .card-body .table tbody tr {
    width: 100% !important;
}


.dashboard-body .dashboard-third-container {
    width: 100%;
    height: 500px;
    margin-bottom: 2%;
    border-radius: 12px;
    padding: 15px;
}

.dashboard-third-container .labor-card-container {
    height: 100%;
    width: 50%;
    display: flex;
    justify-content: flex-start;
    border-radius: 12px;
}

.labor-card-container .labor-card {
    width: 40%;
    height: 100%;
}

.labor-card-container .labor-card .labor-card-body {
    overflow-y: scroll !important;
}

.labor-card-body::-webkit-scrollbar {
    width: 8px;
}

.time-table tbody td {
    font-size: 13px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.labor-card-body::-webkit-scrollbar-thumb {
    background-color: #ee572c;
    border-radius: 12px;
}

.labor-card-body::-webkit-scrollbar-track {
    background-color: transparent;
}

.labor-card-container .card::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

.labor-card-container .card::-webkit-scrollbar-thumb {
    background-color: #ee572c; /* Color of the scrollbar thumb */
    border-radius: 12px; /* Border radius of the thumb */
}

.labor-card-container .card::-webkit-scrollbar-track {
    background-color: transparent; /* Color of the scrollbar track */
}

.dashboard-container .dashbaord-extra-content {
    width: 100%;
    height: 200px !important;
    border-radius: 12px;
}

.sortable-column {
    cursor: pointer;
}

/* ====== TILE CUSTOMIZATION ====== */

.edit-toggle-btn {
    position: absolute;
    right: 30px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.2s, color 0.2s;
}

.edit-toggle-btn:hover {
    border-color: #ee572c;
    color: #ee572c;
    background: #fff;
}

.reset-btn {
    position: absolute;
    right: 110px;
    background: transparent;
    border: 1px solid #999;
    border-radius: 12px;
    padding: 8px 14px;
    cursor: pointer;
    color: #777;
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
}

.reset-btn:hover {
    border-color: #c0392b;
    color: #c0392b;
}

.dashboard-tiles-container {
    width: 100%;
    max-width: 1550px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 15px 0;
    box-sizing: border-box;
}

.dashboard-tile {
    border-radius: 12px;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0 !important;
}

.dashboard-tile--wide {
    width: 100% !important;
    min-width: 500px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, .132), 0px 1px 3px rgba(0, 0, 0, .108);
}

.dashboard-tile--standard {
    flex: 1 1 0;
    min-width: 380px;
    max-width: 500px;
    height: 650px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, .132), 0px 1px 3px rgba(0, 0, 0, .108);
}

.dashboard-tile.pie-card-container > .card,
.dashboard-tile.net-chart-container > #line-chart-component {
    padding: 15px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    border: none !important;
}

.dashboard-tile .chart-options {
    justify-content: center !important;
    gap: 15px;
}

.dashboard-tile .component-title {
    text-align: center;
    margin-bottom: 5px;
}

.dashboard-tile .component-title :is(h1, h2) {
    font-size: 20px !important;
    text-decoration: underline;
    margin: 0 0 5px;
}

.dashboard-tile-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background-color: #fff;
    border: 2px dashed #ccc;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.2s, opacity 0.2s;
}

.dashboard-tile-placeholder:hover {
    border-color: #ee572c;
}

.dashboard-tile-placeholder--hidden {
    opacity: 0.4;
    border-color: #e0e0e0;
    background-color: #f9f9f9;
}

.dashboard-tile-placeholder-label {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.edit-mode-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
}

.edit-control-btn {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: border-color 0.15s, color 0.15s;
}

.edit-control-btn:hover {
    border-color: #ee572c;
    color: #ee572c;
}

.edit-control-btn--inactive {
    color: #ccc;
}

.scope-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.scope-modal {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    min-width: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.scope-modal h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
}

.scope-modal-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.scope-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
}

.scope-modal-actions {
    display: flex;
    justify-content: flex-end;
}

.scope-modal-confirm {
    background-color: #ee572c;
    border: 1px solid #ee572c;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.scope-modal-confirm:hover {
    background-color: #d44a24;
    border-color: #d44a24;
}

/* ====== DASHBOARD TOOLBAR ====== */

.dashboard-toolbar {
    width: 100%;
    max-width: 1550px;
    margin: 0 auto 10px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background-color: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-sizing: border-box;
}

.dashboard-toolbar .toolbar-label {
    font-weight: 600;
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}

.dashboard-toolbar .select-element {
    flex-direction: row;
    height: auto;
}

.dashboard-toolbar select {
    min-width: 180px;
}

/* ====== SALES GRAPH WIDGET ====== */

.sales-graph-container {
    height: auto;
    min-height: 200px;
    width: 30% !important;
    min-width: 380px;
    max-width: 500px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, .132), 0px 1px 3px rgba(0, 0, 0, .108);
}

.sales-graph-widget {
    width: 100%;
    height: 100%;
    padding: 15px;
    border: none !important;
    /* The global .card rule (app.css) paints a box-shadow + radius on every .card.
       This widget is a .card nested inside the .dashboard-tile, which already supplies
       that chrome — so suppress the inner card's own shadow/radius and let it fill the
       tile. Otherwise the inner card renders a second, shorter rounded outline (it sizes
       to content while the tile is a fixed height), showing as a double card border. */
    box-shadow: none !important;
    border-radius: 0;
    box-sizing: border-box;
}

.sales-graph-widget .card-body {
    height: 350px;
}

.sales-graph-widget .card-body--no-data {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.sales-graph-widget .no-data-message {
    font-size: 16px;
    color: #333;
    text-align: center;
}

.sales-graph-widget .component-title {
    width: 100%;
    text-align: center;
}

.sales-graph-widget .component-title :is(h1, h2) {
    font-size: 22px !important;
    text-decoration: underline;
}

.sales-graph-controls {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.sales-graph-controls .select-element {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sales-graph-controls select {
    min-width: 90px;
    padding: 4px 8px;
    font-size: 13px;
}

.sales-graph-controls label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.chart-type-toggle {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 16px;
}

.chart-type-toggle .toggle-btn {
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.chart-type-toggle .toggle-btn:first-child {
    border-right: 1px solid #ccc;
}

.chart-type-toggle .toggle-btn.active {
    background-color: #ee572c;
    color: #fff;
}

.chart-type-toggle .toggle-btn:hover:not(.active) {
    background-color: #f2f2f2;
}

.chart-type-toggle .toggle-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ====== END SALES GRAPH WIDGET ====== */

/* ====== END TILE CUSTOMIZATION ====== */

@media print {
    .sidebar {
        display: none;
    }

    .sidebar-nav {
        display: none;
    }

    .nav-header {
        display: none;
    }

    .location-dropdown {
        display: none;
    }

    /* The app shell is one screen tall: #app and .page are 100vh with overflow hidden, and #content is a
       fixed-height box that scrolls. A browser prints only what such a box shows, so a long page printed one
       page and stopped. On paper all three grow with their content. */
    #app,
    .page,
    #content {
        height: auto;
        overflow: visible;
    }

    /* The top bar is fixed, so it would print over the top of every page. A printed page is narrower than
       768px, where the open sidebar's backdrop shows, and it would grey every page. With the bar gone,
       #content no longer needs the room it keeps for the bar and the sidebar. */
    #main-navbar,
    .sidebar-backdrop {
        display: none;
    }

    #content {
        margin: 0;
        width: 100%;
    }
}

/* Mobile Devices */
@media screen and (max-width: 767px)
{
    /* The white panel owns the gutter. Every child (toolbar card, intraday banner, tiles) is
       width:100%, so they all sit inset by this one value and line up with each other. Setting this
       to 0 puts every element flush against the panel border, which looks broken. */
    .dashboard-container .dashboard-body {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* 100%, not 95%. Everything in this column takes its inset from #content, so a 95% toolbar sat
       narrower than the intraday banner directly below it. */
    .dashboard-toolbar {
        width: 100% !important;
    }

    /* No horizontal padding here. #content already sets the page inset, and the toolbar row and the
       intraday banner sit flush against it. An extra 10px on this container alone made the tiles
       line up differently from everything else in the column. */
    .dashboard-tiles-container {
        padding: 0;
        gap: 15px;
    }

    .dashboard-tile--wide,
    .dashboard-tile--standard {
        /* 100%, not 95%. The container centres its children, so 95% split the leftover 5% into an
           extra gap on each side that nothing else in the column had. */
        width: 100% !important;
        min-width: unset !important;
        max-width: unset !important;
        height: auto !important;
        overflow: visible !important;
    }

    .edit-toggle-btn {
        position: static;
        margin-left: 10px;
    }
}

/* Tablet Devices */
@media screen and (max-width: 1200px) and (min-width: 768px) {

    /* Same as the phone block: the white panel owns the gutter, so every child lines up. */
    .dashboard-container .dashboard-body {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Same reason as the tablet block above: the page inset comes from #content, so this container
       must not add its own, or the tiles sit narrower than the toolbar and the intraday banner. */
    .dashboard-tiles-container {
        padding: 0;
        gap: 20px;
    }

    .dashboard-tile--wide,
    .dashboard-tile--standard {
        /* 100%, not 95%. The container centres its children, so 95% split the leftover 5% into an
           extra gap on each side that nothing else in the column had. */
        width: 100% !important;
        min-width: unset !important;
        max-width: unset !important;
        height: auto !important;
        overflow: visible !important;
    }

    .edit-toggle-btn {
        position: static;
        margin-left: 10px;
    }

}

/* ====== PHONE AND SMALL TABLET LAYOUT ======
   This block sits after the tablet block on purpose. The boundary is 768px inclusive, and at
   exactly 768px both blocks match, so these rules must come later to win. Everything above 768px
   keeps the layout it has today. */
@media screen and (max-width: 768px) {

    /* The toolbar was one row that could not wrap: two 180px selects plus their labels. It
       measured 566px against a 375px screen, so "Time Period" sat off the right edge and the
       page scrolled sideways. The row wraps now and each select uses the space that is left. */
    .dashboard-toolbar {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .dashboard-toolbar .select-element {
        flex: 1 1 220px;
        min-width: 0;
    }

    .dashboard-toolbar select {
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }

    /* The per-tile option rows had the same fault the other way round. They could not wrap, so
       the selects shrank instead. The Location select fell to 65px and showed "Mi", not the
       store name. */
    .chart-options {
        flex-wrap: wrap;
        padding: 0 8px;
        box-sizing: border-box;
    }

    .chart-options .select-element {
        flex: 1 1 200px;
        min-width: 0;
    }

    .chart-options .select-element select {
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }

    .sales-graph-controls {
        flex-wrap: wrap;
    }

    .sales-graph-controls .select-element {
        flex: 1 1 200px;
        min-width: 0;
    }

    .sales-graph-controls .select-element select {
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }

    /* Touch targets. The chart type buttons were under 30px high. */
    .sales-graph-controls .chart-type-toggle {
        margin-top: 0;
    }

    .sales-graph-controls .toggle-btn {
        min-height: 44px;
    }

    /* Both title buttons sat at an absolute right offset. The mobile block already makes the edit
       button static, so the reset button must go static too, or the two overlap. The edit button
       holds only an 18px icon, which measured 36px high. */
    .dashboard-container .dashboard-title {
        flex-wrap: wrap;
        gap: 8px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .edit-toggle-btn {
        min-height: 44px;
        min-width: 44px;
        justify-content: center;
    }

    .reset-btn {
        position: static;
        right: auto;
        min-height: 44px;
    }
}

/* Phones. A label beside a select still squeezes the select too far at this width, so every
   control takes a full-width row of its own. */
@media screen and (max-width: 480px) {

    .dashboard-toolbar .toolbar-label {
        flex: 0 0 100%;
    }

    .dashboard-toolbar .select-element,
    .chart-options .select-element,
    .sales-graph-controls .select-element {
        flex: 1 1 100%;
    }

    .sales-graph-controls .chart-type-toggle {
        width: 100%;
    }

    .sales-graph-controls .toggle-btn {
        flex: 1 1 50%;
    }
}


/* ZOOMING BREAKPOINTS */

@media screen and (min-width: 3800px) {

    .dashboard-container {
      font-size: 50px !important;
    }

    .dashboard-title {
        font-size: 50px !important;
    }

    .dashboard-content {
        flex-direction: column !important;
    }

    .component-title :is(h1, h2) {
        font-size: 50px !important;
    }
    
    #lineChartCanvas {
        all: unset !important;
        width: 100% !important;
        height: 1000px !important;
        font-size: 30px !important;
    }

    .dashboard-top-content {
        justify-content: center !important;
        height: 50% !important;
        width: 100% !important;
    }

    .dashboard-bottom-content {
        height: 50% !important;
        width: 100% !important;
    }

    .sales-card .card {
        height: 1500px !important;
        font-size: 50px;
    }

    .pie-card {
        height: 1000px !important;
        width: 40%;
        font-size: 50px !important;
    }

    .pie-card-container {
        flex-direction: row !important;
    }

}

/* SCREEN HEIGHT BREAKPOINTS */

@media screen and (max-height: 1000px) and (min-width: 1000px) {

    .dashboard-top-content {
        height: 800px !important;
    }

    .dashboard-bottom-content {
        height: 30% !important;
        margin: 0;
        padding: 0;
    }

    .dashboard-bottom-content .dashboard-card-container {
        width: 100%;
        height: 100% !important;
    }

    .dashboard-card-container .card-container {
        width: 100%;
        height: 100% !important;
    }

    .dashboard-card-container .card-container .sales-card {
        background-color: yellow !important;
        height: 100% !important;
    }

    .sales-card .card .card-body .table {
        height: 50px !important;
    }

    .sales-card .card .card-body .table tbody {
        height: 600px !important;
    }

    .sales-card .card .card-body .table tbody tr {
        font-size: 12px;
        height: auto;
        padding: 0;
        margin: 0;
    }
}

@media screen and (max-height: 930px) and (min-width: 1000px) {

    .dashboard-top-content {
        height: 700px !important;
    }

    .dashboard-bottom-content {
        height: 700px !important;
    }
}

@media screen and (max-height: 830px) and (min-width: 1000px) {

    .dashboard-top-content {
        height: 600px !important;
    }

    .dashboard-bottom-content {
        height: 200px !important;
    }

    .sales-card .card .card-body .table tbody {
        height: 500px !important;
    }

    .sales-card .card .card-body .table tbody tr {
        font-size: 10px;
        padding: 0;
        margin: 0;
    }
}

@media screen and (max-height: 730px) and (min-width: 1000px) {

    .dashboard-top-content {
        height: 450px !important;
    }

    .dashboard-bottom-content {
        height: 550px !important;
        margin: 0;
        padding: 0;
    }

    .dashboard-bottom-content .dashboard-card-container {
        width: 100%;
        height: 100% !important;
    }

    .dashboard-card-container .card-container {
        width: 100%;
        height: 100% !important;
    }

    .dashboard-card-container .card-container .sales-card {
        background-color: yellow !important;
        height: 100% !important;
    }

    .sales-card .card .card-body .table {
        height: 50px !important;
    }

    .sales-card .card .card-body .table tbody {
        height: 500px !important;
        display: flex;
        flex-wrap: wrap;
    }

    .sales-card .card .card-body .table tbody tr {
        font-size: 10px;
        width: 50% !important;
        height: auto !important;
        padding: 0;
        margin: 0;
    }

    .sales-card .card .card-body .table tbody tr:nth-child(2n+1) {
        background-color: #fff;
    }
}

@media screen and (max-height: 650px) and (min-width: 1000px) {

    .dashboard-top-content {
        height: 400px !important;
    }

    .dashboard-bottom-content {
        height: auto !important;
    }

    .sales-card .card .card-body .table tbody {
        height: 300px !important;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sales-card .card .card-body .table tbody tr {
        width: 50%;
        font-size: 12px;
        height: 30px !important;
        padding: 0;
        margin: 0;
    }

    .sales-card .card .card-body .table tbody tr:nth-child(2n+1) {
        background-color: #fff;
    }
}
@media screen and (max-height: 550px) and (min-width: 1000px) {

    .dashboard-top-content {
        height: 200px !important;
    }

    .dashboard-top-content .net-chart-container {
        display: none !important;
    }

}

/* Story 13324 - Data Health tile */
.dashboard-tile.data-health-container {
    border-radius: 12px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, .132), 0px 1px 3px rgba(0, 0, 0, .108);
    background-color: #fff;
    overflow: hidden;
}

.data-health-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 18px;
    box-sizing: border-box;
}

.data-health-header {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left !important;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #efefef;
    gap: 12px;
}

.data-health-header h1 {
    font-size: 18px !important;
    font-weight: 600;
    text-decoration: none !important;
    margin: 0 !important;
    color: #2c2c2c;
    letter-spacing: 0.2px;
}

.data-health-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #ee572c;
    border: 1px solid #ee572c;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
    line-height: 1;
}

.data-health-refresh:hover:not(:disabled) {
    background: #ee572c;
    color: #fff;
}

.data-health-refresh:disabled {
    opacity: 0.6;
    cursor: default;
}

.data-health-refresh-icon {
    display: block;
    flex-shrink: 0;
}

.data-health-refresh-icon--spinning {
    animation: data-health-spin 0.9s linear infinite;
}

@keyframes data-health-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.data-health-card-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.data-health-banner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.data-health-banner--error {
    background-color: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c2c0;
}

.data-health-banner svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.data-health-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 16px;
    gap: 6px;
}

.data-health-empty-icon {
    color: #2e9266;
    background: #e8f6ee;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.data-health-empty-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
}

.data-health-empty-subtitle {
    font-size: 12px;
    color: #777;
}

.data-health-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.data-health-chip {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.data-health-chip--gap {
    background: #fff4e0;
    color: #a85d00;
}

.data-health-chip--inflight {
    background: #e4f0fb;
    color: #1f5fa6;
}

.data-health-chip--error {
    background: #fdecea;
    color: #b3261e;
}

.data-health-table-wrap {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #ececec;
}

.data-health-table-wrap::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.data-health-table-wrap::-webkit-scrollbar-thumb {
    background-color: #ee572c;
    border-radius: 12px;
}

.data-health-table-wrap::-webkit-scrollbar-track {
    background-color: transparent;
}

.data-health-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-health-table thead {
    background-color: #fafafa;
    position: sticky;
    top: 0;
    z-index: 1;
}

.data-health-table thead th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #777;
    padding: 9px 8px;
    border-bottom: 1px solid #ececec;
    white-space: nowrap;
}

.data-health-table tbody tr {
    border-bottom: 1px solid #f3f3f3;
    transition: background-color 0.12s;
}

.data-health-table tbody tr:last-child {
    border-bottom: none;
}

.data-health-table tbody tr:hover {
    background-color: #fafafa;
}

.data-health-table tbody td {
    padding: 10px 8px;
    color: #333;
    vertical-align: top;
}

/* Wordy columns wrap vertically rather than forcing the table wider than the
   tile. Each keeps a min-width so a long value wraps at a readable width instead
   of collapsing to one character per line. Short/meaningful columns (Type, the
   Status pill, the Resync button) stay on a single line. The table only shows a
   horizontal scrollbar when even these wrapped widths can't fit. */
.data-health-cell-location {
    font-weight: 600;
    color: #2c2c2c;
    white-space: normal;
    overflow-wrap: anywhere;
    min-width: 92px;
}

.data-health-cell-detail {
    color: #555;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
    min-width: 60px;
}

/* The failure reason under the Detail text of an Error row. It is a sentence for store owners, so
   it drops the cell's monospace face for the page font. It wraps inside the Detail cell and does not
   widen the table: overflow-wrap: anywhere keeps its min-content width to one character, so the
   column floors above (and the phone floors in DataHealthTile.razor.css) still set how narrow the
   cell can go. It has no max-width on purpose: when the tile has spare width, the sentence takes it
   and needs fewer lines. */
.data-health-reason {
    margin-top: 3px;
    font-family: var(--bs-body-font-family);
    font-size: 11px;
    line-height: 1.35;
    color: #6b6b6b;
    white-space: normal;
    overflow-wrap: anywhere;
}

.data-health-cell-time {
    color: #666;
    white-space: normal;
    font-variant-numeric: tabular-nums;
    min-width: 58px;
}

.data-health-col-action {
    width: 1%;
    text-align: right;
    white-space: nowrap;
}

.data-health-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.data-health-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.data-health-status--gapdetected {
    background: #fff4e0;
    color: #a85d00;
}

.data-health-status--resyncrequested {
    background: #e4f0fb;
    color: #1f5fa6;
}

.data-health-status--complete {
    background: #e8f6ee;
    color: #2e9266;
}

.data-health-status--error {
    background: #fdecea;
    color: #b3261e;
}

.data-health-status--dismissed {
    background: #f0f0f0;
    color: #6b6b6b;
}

.data-health-resync-btn {
    background: #ee572c;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, box-shadow 0.15s, transform 0.05s;
}

.data-health-resync-btn:hover:not(:disabled) {
    background: #d84a22;
    box-shadow: 0 1px 3px rgba(238, 87, 44, 0.35);
}

.data-health-resync-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.data-health-resync-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.data-health-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.data-health-newresync {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #ee572c;
    border: 1px solid #ee572c;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.data-health-newresync:hover:not(:disabled),
.data-health-newresync--active {
    background: #ee572c;
    color: #fff;
}

.data-health-newresync:disabled {
    opacity: 0.6;
    cursor: default;
}

.data-health-lookup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 8px;
}

.data-health-lookup-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.data-health-lookup-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 180px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.data-health-lookup-field select {
    font-size: 13px;
    font-weight: 400;
    padding: 6px 8px;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    background: #fff;
}

.data-health-lookup-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-health-lookup-cancel {
    background: #fff;
    color: #666;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.data-health-lookup-cancel:hover:not(:disabled) {
    background: #f1f1f1;
}

.data-health-lookup-cancel:disabled {
    opacity: 0.6;
    cursor: default;
}

.data-health-lookup-empty {
    font-size: 13px;
    color: #777;
}


/* Data Health tile touch targets. Measured live in a 390px viewport: "Resync table" was 30px high,
   "Refresh" 26px and the per-row "Resync" 28px, all below the 44px minimum for a finger.
   These live here rather than in DataHealthTile.razor.css so they sit with the other dashboard
   mobile rules, and because a global sheet is a plain static file the dev server serves without a
   rebuild of the scoped-CSS bundle. Desktop keeps its compact sizing. */
@media screen and (max-width: 768px) {

    .data-health-newresync,
    .data-health-refresh,
    .data-health-resync-btn {
        min-height: 44px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .data-health-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
}
