:root {
    --bs-primary: #0d6efd;
    --bs-link-color: #006bb7;
    --bs-link-hover-color: #005a9e;
    --kendo-color-primary: #1274AC;
    --kendo-color-primary-hover: #0f6190;
    --kendo-color-primary-active: #0d5278;
    --kendo-color-on-primary: #ffffff;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1861ac;
    border-color: #145a9e;
}

.tele-menu-container {
    background-color: #eae8e8;
}

h1:focus {
    outline: none;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjYuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyA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ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.k-button-solid-primary,
.k-button.k-button-solid-primary {
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.k-button-solid-primary:hover,
.k-button.k-button-solid-primary:hover {
    background-color: #1861ac;
    border-color: #145a9e;
}

.report-filter-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 1.35rem 1.45rem 1.7rem;
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.report-filter-header {
    max-width: 690px;
    margin: 0 auto 0.7rem;
}

.report-filter-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 690px;
    margin: 0 auto;
}

.report-filter-row {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    column-gap: 0.55rem;
    align-items: center;
}

.report-filter-label {
    font-weight: 600;
    color: #343a40;
    padding-top: 0;
    text-align: left;
    margin: 0;
}

.report-filter-field-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    width: 100%;
    max-width: 560px;
}

.report-filter-field {
    min-width: 0;
    flex: 1 1 0;
    max-width: 275px;
}

/* Single-control rows (Reporte / Transporte / Estatus) should span wider consistently */
.report-filter-field-group > .report-filter-field:only-child {
    flex: 1 1 100%;
    max-width: 560px;
}

.report-filter-inline-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.report-filter-sub-label {
    font-size: 0.74rem;
    color: #6c757d;
    margin: 0;
    min-width: 48px;
    white-space: nowrap;
}

.report-filter-stacked-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.report-filter-inline-field .k-input,
.report-filter-inline-field .k-picker,
.report-filter-inline-field .k-input-inner,
.report-filter-inline-field .k-dropdownlist,
.report-filter-inline-field .k-datepicker,
.report-filter-inline-field .k-textbox {
    width: 100%;
}

.report-filter-footer {
    margin-top: 0.9rem;
    padding-top: 0.35rem;
    display: flex;
    justify-content: flex-end;
    max-width: 690px;
    margin-left: auto;
    margin-right: auto;
}

.report-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-filter-actions .k-button,
.report-filter-actions .btn {
    padding: 0.38rem 0.9rem;
    min-height: 34px;
    line-height: 1.2;
    border-radius: 0.45rem;
}

.report-filter-card .k-input,
.report-filter-card .k-picker,
.report-filter-card .k-input-inner,
.report-filter-card .k-dropdownlist,
.report-filter-card .k-datepicker,
.report-filter-card .k-textbox {
    width: 100%;
    min-height: 34px;
    border-radius: 0.45rem;
}

.report-filter-card .k-input-inner {
    font-size: 0.86rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

/* Report filter MultiSelect: hide X icons and show comma-separated tags */
.report-filter-card .k-multiselect .k-chip .k-chip-actions,
.report-filter-card .k-multiselect .k-chip .k-icon.k-i-close {
    display: none;
}

/* Aggregates dashboard hard dark overrides (global, because Telerik internals ignore scoped styles) */
.aggregates-dashboard .k-card,
.aggregates-dashboard .k-card-header,
.aggregates-dashboard .k-card-body,
.aggregates-dashboard .k-card-actions {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.aggregates-dashboard .metric-telerik.k-card {
    overflow: hidden !important;
}

.aggregates-dashboard .metric-telerik .k-card-body {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 124px !important;
    padding: 0 !important;
    background-color: transparent !important;
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    position: relative !important;
    z-index: 2 !important;
}

.aggregates-dashboard .k-input-solid,
.aggregates-dashboard .k-picker-solid,
.aggregates-dashboard .k-numerictextbox .k-input-inner,
.aggregates-dashboard .k-datepicker .k-input-inner,
.aggregates-dashboard .k-input-inner,
.aggregates-dashboard .k-input-value-text {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}

.aggregates-dashboard .k-input-button,
.aggregates-dashboard .k-button-solid-base.k-input-button {
    background-color: #333333 !important;
    color: #a0a0a0 !important;
    border-color: transparent !important;
}

.aggregates-dashboard .k-progressbar {
    background-color: #333333 !important;
}

.aggregates-dashboard .k-progressbar .k-progress-status {
    filter: none !important;
}

.aggregates-dashboard .k-chart,
.aggregates-dashboard .k-chart-wrap,
.aggregates-dashboard .k-chart-surface,
.aggregates-dashboard .k-chart > div {
    background-color: #2a2a2a !important;
}

.aggregates-dashboard .k-chart-surface svg {
    background-color: #2a2a2a !important;
}

.aggregates-dashboard .k-chart-surface svg rect[fill="white"],
.aggregates-dashboard .k-chart-surface svg rect[fill="#fff"],
.aggregates-dashboard .k-chart-surface svg rect[fill="#ffffff"] {
    fill: #2a2a2a !important;
}

.aggregates-dashboard .k-chart-legend text,
.aggregates-dashboard .k-chart text,
.aggregates-dashboard .k-chart-surface text {
    fill: #ffffff !important;
}
