.ordnt-reports-view {
    width: 100%;
    min-width: 0;
    color: #10234a;
    background:
        radial-gradient(circle at 50% 0, rgba(37, 111, 255, .055), transparent 34%),
        #f5f8fd;
}

#settingsAppMain.ordnt-reports-active .dashboard-content {
    display: none !important;
}

.ordnt-reports-page {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 11px 24px 34px 22px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 50% 0, rgba(37, 111, 255, .055), transparent 34%),
        #f5f8fd;
}

.ordnt-reports-heading {
    display: block;
    margin-bottom: 8px;
}

.ordnt-reports-heading h1 {
    margin: 0;
    color: #10234a;
    font-size: clamp(23px, 1.8vw, 28px);
    line-height: 1.12;
    letter-spacing: -.025em;
}

.ordnt-reports-heading p {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.ordnt-report-controls,
.ordnt-report-kpi,
.ordnt-report-panel {
    border: 1px solid #dbe5f3;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 28px rgba(30, 67, 119, .045);
}

.ordnt-report-controls {
    display: grid;
    grid-template-columns: minmax(330px, 1.25fr) minmax(240px, .9fr) minmax(180px, .7fr) auto;
    gap: 12px;
    align-items: end;
    padding: 10px 12px;
    border-radius: 15px;
    margin-bottom: 14px;
}

.ordnt-report-control-group {
    display: flex;
    min-width: 0;
    min-height: 57px;
    margin: 0;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
}

.ordnt-report-controls
label.ordnt-report-control-group {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.ordnt-report-control-label {
    color: #20375d;
    font-size: 11px;
    font-weight: 750;
}

.ordnt-report-segments {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid #d8e3f2;
    border-radius: 9px;
    overflow: hidden;
    background: #fbfdff;
}

.ordnt-report-segments button {
    min-height: 38px;
    padding: 7px 11px;
    border: 0;
    border-right: 1px solid #e1e9f4;
    border-radius: 0;
    background: transparent;
    color: #334c72;
    font-size: 12px;
    font-weight: 650;
}

.ordnt-report-segments button:last-child { border-right: 0; }
.ordnt-report-segments button.active {
    background: #1769f7;
    color: #fff;
    box-shadow: 0 3px 9px rgba(23,105,247,.24);
}

.ordnt-report-period-display,
.ordnt-report-control-group select,
.ordnt-report-date-control {
    min-height: 38px;
    border: 1px solid #d8e3f2;
    border-radius: 9px;
    background: #fff;
    color: #21395f;
    font-size: 12px;
}

.ordnt-report-period-display {
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-weight: 650;
}

.ordnt-report-period-picker {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
}

.ordnt-report-period-picker > button {
    min-height: 38px;
    padding: 0;
    border: 1px solid #d8e3f2;
    border-radius: 9px;
    background: #fff;
    color: #31527f;
    font-size: 20px;
    line-height: 1;
}

.ordnt-report-period-picker > button:disabled {
    cursor: default;
    opacity: .35;
}

.ordnt-report-control-group select {
    margin: 0;
    padding: 0 34px 0 11px;
}

.ordnt-report-custom-period {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
}

.ordnt-report-custom-dates {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
}

.ordnt-report-period-apply {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #1769f7;
    border-radius: 9px;
    background: #1769f7;
    color: #ffffff;
    font: inherit;
    font-size: 10px;
    font-weight: 740;
    white-space: nowrap;
    cursor: pointer;
}

.ordnt-report-date-control {
    position: relative;
    min-width: 0;
    padding: 0 10px 0 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    overflow: hidden;
    cursor: pointer;
}

.ordnt-report-date-display {
    min-width: 0;
    overflow: hidden;
    color: #172b4d;
    font-size: 12px;
    font-weight: 560;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ordnt-report-date-icon {
    position: relative;
    width: 15px;
    height: 14px;
    flex: 0 0 15px;
    border: 1.5px solid #64748b;
    border-radius: 3px;
}

.ordnt-report-date-icon::before {
    position: absolute;
    top: 3px;
    right: -1.5px;
    left: -1.5px;
    border-top: 1.5px solid #64748b;
    content: "";
}

.ordnt-report-date-control input[type="date"] {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.ordnt-report-actions {
    min-height: 57px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    justify-content: flex-end;
}

.ordnt-report-actions button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 740;
    line-height: 1;
    letter-spacing: 0;
    word-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
}

.ordnt-report-actions .secondary {
    border: 1px solid #d5e0ef;
    background: #fff;
    color: #18345f;
}

.ordnt-report-actions .primary {
    border: 1px solid #1769f7;
    background: #1769f7;
    color: #fff;
}

.ordnt-report-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.ordnt-report-kpi {
    position: relative;
    min-width: 0;
    padding: 16px 17px 14px;
    border-radius: 15px;
}

.ordnt-report-kpi-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #18345f;
    font-size: 12px;
}

.ordnt-report-help-trigger {
    width: 22px;
    height: 22px;
    margin-left: auto;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid #d6e1ef;
    border-radius: 50%;
    background: #f7faff;
    color: #637897;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.ordnt-report-kpi-help {
    position: absolute;
    z-index: 20;
    top: 48px;
    right: 14px;
    width: min(245px, calc(100% - 28px));
    padding: 10px 11px;
    display: none;
    border: 1px solid #d9e3f0;
    border-radius: 10px;
    background: #ffffff;
    color: #405677;
    box-shadow: 0 12px 30px rgba(20, 50, 95, .14);
    font-size: 10px;
    line-height: 1.45;
}

.ordnt-report-help-trigger:hover
+ .ordnt-report-kpi-help,
.ordnt-report-help-trigger:focus-visible
+ .ordnt-report-kpi-help,
.ordnt-report-help-trigger[aria-expanded="true"]
+ .ordnt-report-kpi-help {
    display: block;
}

.ordnt-report-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    border-radius: 9px;
    background: #eaf2ff;
    color: #1769f7;
}

.ordnt-report-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ordnt-report-kpi.income .ordnt-report-icon { background: #e9f9f2; color: #0a9c70; }
.ordnt-report-kpi.expense .ordnt-report-icon { background: #fff0f0; color: #ef4545; }

.ordnt-report-kpi-value {
    margin: 10px 0 7px 40px;
    color: #071d49;
    font-size: clamp(21px, 2vw, 29px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.025em;
}

.ordnt-report-kpi-trend {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: 40px;
    color: #7183a0;
    font-size: 10px;
}

.ordnt-report-change {
    padding: 4px 7px;
    border-radius: 999px;
    font-weight: 800;
}

.ordnt-report-kpi-trend.positive .ordnt-report-change { color: #07845e; background: #e6f8f0; }
.ordnt-report-kpi-trend.negative .ordnt-report-change { color: #d73b45; background: #fff0f0; }

.ordnt-report-kpi-trend.neutral .ordnt-report-change {
    background: #f1f4f8;
    color: #63758f;
}


.ordnt-report-kpi > small {
    display: block;
    margin: 7px 0 0 40px;
    color: #6c7f9e;
    font-size: 10px;
}

.ordnt-report-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: 14px;
    margin-bottom: 14px;
}

.ordnt-report-grid.bottom {
    grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr);
}

.ordnt-report-panel {
    min-width: 0;
    padding: 17px;
    border-radius: 15px;
}

.ordnt-report-panel-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.ordnt-report-panel-heading.comparison-heading {
    align-items: center;
    flex-wrap: wrap;
}

.ordnt-report-panel-heading.comparison-heading
> div:nth-child(2) {
    min-width: 190px;
    flex: 1 1 220px;
}

.ordnt-report-comparison-controls {
    margin-left: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.ordnt-report-comparison-controls label {
    margin: 0;
    display: grid;
    gap: 4px;
}

.ordnt-report-comparison-controls label > span {
    color: #6d7f99;
    font-size: 8.5px;
    font-weight: 700;
}

.ordnt-report-comparison-controls select {
    min-height: 34px;
    margin: 0;
    padding: 0 30px 0 9px;
    border: 1px solid #d7e1ee;
    border-radius: 9px;
    background: #fff;
    color: #284467;
    font: inherit;
    font-size: 9.5px;
}

.ordnt-report-comparison-label {
    min-height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0e7f0;
    border-radius: 9px;
    background: #f8fafd;
    color: #60738f;
    font-size: 9px;
    font-weight: 650;
}

.ordnt-report-comparison-dates {
    display: grid;
    grid-template-columns:
        minmax(118px, 1fr)
        auto
        minmax(118px, 1fr)
        auto;
    align-items: center;
    gap: 6px;
}

.ordnt-report-comparison-apply {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #1769f7;
    border-radius: 9px;
    background: #1769f7;
    color: #ffffff;
    font: inherit;
    font-size: 9px;
    font-weight: 740;
    cursor: pointer;
}

.ordnt-report-comparison-dates
.ordnt-report-date-control {
    min-height: 34px;
}

.ordnt-report-panel-heading h2 {
    margin: 2px 0 2px;
    color: #102b56;
    font-size: 14px;
}

.ordnt-report-panel-heading p {
    margin: 0;
    color: #7385a2;
    font-size: 10px;
}

.ordnt-report-bar-chart {
    position: relative;
    min-height: 178px;
    padding: 12px 50px 0 12px;
    overflow: hidden;
}

.ordnt-report-bar-guides {
    position: absolute;
    inset: 12px 8px 28px 12px;
    pointer-events: none;
}

.ordnt-report-bar-guides > span {
    position: absolute;
    right: 0;
    left: 0;
    height: 1px;
}

.ordnt-report-bar-guides i {
    position: absolute;
    right: 38px;
    left: 0;
    border-top: 1px dashed #e1e9f4;
}

.ordnt-report-bar-guides b {
    position: absolute;
    right: 0;
    top: -7px;
    color: #7c8ba5;
    font-size: 8.5px;
    font-weight: 600;
}

.ordnt-report-bar-groups {
    position: relative;
    z-index: 2;
    min-height: 152px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
}

.ordnt-report-bar-group {
    width: 28%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: #385174;
    font-size: 10px;
}

.ordnt-report-bars {
    height: 126px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.ordnt-report-bar-hit {
    width: 38px;
    height: 126px;
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.ordnt-report-bar-hit:focus-visible {
    outline: 2px solid #1769f7;
    outline-offset: 2px;
    border-radius: 6px;
}

.ordnt-report-bar-hit > i {
    width: 30px;
    max-height: 120px;
    display: block;
    border-radius: 5px 5px 2px 2px;
    transition: filter .14s ease, transform .14s ease;
}

.ordnt-report-bar-hit:hover > i,
.ordnt-report-bar-hit:focus-visible > i {
    filter: saturate(1.15);
    transform: translateY(-2px);
}

.ordnt-report-bar-hit.current > i.income { background: #1769f7; }
.ordnt-report-bar-hit.previous > i.income { background: #bcd5ff; }
.ordnt-report-bar-hit.current > i.expense { background: #ef4545; }
.ordnt-report-bar-hit.previous > i.expense { background: #ffc5c5; }
.ordnt-report-bar-hit.current > i.result { background: #12a778; }
.ordnt-report-bar-hit.previous > i.result { background: #b8eadb; }

.ordnt-report-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
    color: #647896;
    font-size: 9px;
}

.ordnt-report-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ordnt-report-legend i { width: 8px; height: 8px; border-radius: 50%; background: #1769f7; }
.ordnt-report-legend i.previous { background: #bdd4f7; }
.ordnt-report-legend i.income { background: #0a9c70; }
.ordnt-report-legend i.expense { background: #ef4545; }
.ordnt-report-legend i.net { background: #1769f7; }

.ordnt-report-category-layout {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
}

.ordnt-report-donut {
    position: relative;
    width: 156px;
    aspect-ratio: 1;
    margin: auto;
}

.ordnt-report-donut svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    transform: rotate(-90deg);
}

.ordnt-report-donut-track,
.ordnt-report-donut-segment,
.ordnt-report-donut-hit {
    fill: none;
    transform-origin: 60px 60px;
}

.ordnt-report-donut-track {
    stroke: #e2ebf5;
    stroke-width: 20;
}

.ordnt-report-donut-segment {
    stroke-width: 20;
    stroke-linecap: butt;
    pointer-events: none;
}

.ordnt-report-donut-hit {
    stroke-width: 32;
    cursor: pointer;
    pointer-events: stroke;
    outline: none;
}

.ordnt-report-donut-hit:focus {
    stroke: rgba(23, 105, 247, .08);
}

.ordnt-report-donut > div {
    position: absolute;
    inset: 31px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    text-align: center;
    pointer-events: none;
}

.ordnt-report-donut strong { font-size: 14px; color: #102b56; }
.ordnt-report-donut span { margin-top: 3px; font-size: 9px; color: #7183a0; }

.ordnt-report-category-row {
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 7px 5px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    gap: 9px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid #edf2f8;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 9px;
    text-align: left;
}

.ordnt-report-category-row > span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #385174;
}

.ordnt-report-category-row i {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #2c91ef;
}

.ordnt-report-category-row i[data-category-index="1"] { background: #f49a4a; }
.ordnt-report-category-row i[data-category-index="2"] { background: #7447dc; }
.ordnt-report-category-row i[data-category-index="3"] { background: #18aa82; }
.ordnt-report-category-row i[data-category-index="4"] { background: #ef4961; }
.ordnt-report-category-row i[data-category-index="5"] { background: #a9bad1; }

.ordnt-report-category-row strong {
    color: #21395f;
}

.ordnt-report-category-row small {
    color: #7183a0;
    text-align: right;
}

.ordnt-report-evolution-controls {
    margin: 0 0 10px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.ordnt-report-evolution-controls > label {
    min-width: 150px;
    margin: 0;
    display: grid;
    gap: 4px;
}

.ordnt-report-evolution-controls > label > span {
    color: #6d7f99;
    font-size: 8.5px;
    font-weight: 700;
}

.ordnt-report-evolution-controls select {
    min-height: 34px;
    padding: 0 30px 0 9px;
    border: 1px solid #d7e1ee;
    border-radius: 9px;
    background: #ffffff;
    color: #284467;
    font: inherit;
    font-size: 9.5px;
}

.ordnt-report-evolution-series-wrap {
    display: grid;
    justify-items: end;
    gap: 4px;
}

.ordnt-report-evolution-series-label {
    color: #60738f;
    font-size: 8.8px;
    font-weight: 740;
}

.ordnt-report-evolution-series {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.ordnt-report-evolution-series button {
    min-height: 30px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: #ffffff;
    color: #657892;
    font: inherit;
    font-size: 8.8px;
    font-weight: 690;
    cursor: pointer;
}

.ordnt-report-evolution-series button.active {
    border-color: color-mix(
        in srgb,
        var(--ordnt-report-series-color) 62%,
        #dbe4f0
    );
    background: color-mix(
        in srgb,
        var(--ordnt-report-series-color) 13%,
        #ffffff
    );
    color: #183a67;
    box-shadow: inset 0 0 0 1px color-mix(
        in srgb,
        var(--ordnt-report-series-color) 20%,
        transparent
    );
}

.ordnt-report-evolution-series button > i {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--ordnt-report-series-color);
}

.ordnt-report-evolution-series button small {
    color: #8b98aa;
    font-size: 7.5px;
    font-weight: 600;
}

.ordnt-report-evolution-series button b {
    width: 14px;
    height: 14px;
    display: grid;
    place-items: center;
    border: 1px solid #d8e1ec;
    border-radius: 50%;
    background: #ffffff;
    color: transparent;
    font-size: 8px;
    line-height: 1;
}

.ordnt-report-evolution-series button.active b {
    border-color: var(--ordnt-report-series-color);
    background: var(--ordnt-report-series-color);
    color: #ffffff;
}

.ordnt-report-line-chart {
    min-width: 0;
}

.ordnt-report-line-chart svg {
    width: 100%;
    height: 240px;
    display: block;
    overflow: visible;
}

.ordnt-report-evolution-series-line {
    fill: none;
    stroke-width: 2.45;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.ordnt-report-evolution-series-line.total {
    stroke-width: 3.2;
}

.ordnt-report-evolution-series-line.branch {
    stroke-width: 2.35;
}

.ordnt-report-chart-grid {
    stroke: #dce6f3;
    stroke-width: 1;
    stroke-dasharray: 4 5;
    opacity: .75;
    vector-effect: non-scaling-stroke;
}

.ordnt-report-chart-axis,
.ordnt-report-chart-xaxis {
    fill: #74839d;
    font-size: 9px;
    font-weight: 550;
}

.ordnt-report-chart-guide {
    stroke: #adc4e5;
    stroke-width: 1.35;
    opacity: 0;
    pointer-events: none;
    vector-effect: non-scaling-stroke;
}

.ordnt-report-evolution-hit {
    cursor: crosshair;
    outline: none;
}

.ordnt-report-evolution-hit:hover
+ .ordnt-report-chart-xaxis,
.ordnt-report-evolution-hit:focus {
    outline: none;
}

.ordnt-report-evolution-hit:hover ~ .ordnt-report-chart-guide {
    opacity: 0;
}

.ordnt-report-day-insights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 13px;
}

.ordnt-report-day-insights > div {
    padding: 10px;
    border: 1px solid #e2eaf4;
    border-radius: 10px;
    background: #f9fbfe;
}

.ordnt-report-day-insights span,
.ordnt-report-day-insights small {
    display: block;
    color: #607594;
    font-size: 10px;
    line-height: 1.35;
}

.ordnt-report-day-insights strong {
    display: block;
    margin: 5px 0 2px;
    color: #19365f;
    font-size: 13px;
    line-height: 1.15;
}

.ordnt-report-panel.ai {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background:
        radial-gradient(circle at 88% 10%, rgba(44, 116, 255, .10), transparent 35%),
        linear-gradient(145deg, #f8fbff, #eef5ff);
}

.ordnt-report-ai-context {
    display: grid;
    gap: 7px;
    margin: 2px 0 9px;
}

.ordnt-report-ai-context > div {
    padding: 8px 9px;
    display: grid;
    gap: 2px;
    border: 1px solid #dce7f6;
    border-radius: 9px;
    background: rgba(255,255,255,.72);
}

.ordnt-report-ai-context span {
    color: #7688a5;
    font-size: 8px;
    font-weight: 700;
}

.ordnt-report-ai-context strong {
    color: #25456f;
    font-size: 9.5px;
    line-height: 1.35;
}

#ordntReportAnalyze {
    width: 100%;
    min-height: 40px;
    margin: 10px 0;
    border: 1px solid #1769f7;
    border-radius: 9px;
    background: #1769f7;
    color: #ffffff;
    font: inherit;
    font-size: 10px;
    font-weight: 760;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(23, 105, 247, .14);
}

#ordntReportAnalyze:hover:not(:disabled) {
    background: #115edc;
    border-color: #115edc;
}

#ordntReportAnalyze:disabled {
    cursor: wait;
    opacity: .72;
}

.ordnt-report-panel.ai > small {
    color: #7587a4;
    font-size: 9px;
    line-height: 1.5;
}

.ordnt-report-ai-thread {
    max-height: 330px;
    padding-right: 3px;
    display: grid;
    gap: 8px;
    overflow-y: auto;
}

.ordnt-report-ai-message {
    max-width: 94%;
    padding: 9px 10px;
    display: grid;
    gap: 4px;
    border: 1px solid #dce7f6;
    border-radius: 10px;
    background: rgba(255,255,255,.82);
}

.ordnt-report-ai-message.user {
    justify-self: end;
    border-color: #bcd3fb;
    background: #eaf2ff;
}

.ordnt-report-ai-message.assistant {
    justify-self: start;
}

.ordnt-report-ai-message > span {
    color: #6a7f9e;
    font-size: 8px;
    font-weight: 760;
}

.ordnt-report-ai-message p {
    margin: 0;
    color: #25456f;
    font-size: 9.5px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.ordnt-report-ai-message.loading p {
    color: #7587a4;
    font-style: italic;
}

.ordnt-report-ai-error {
    margin-top: 8px;
    padding: 8px 9px;
    border: 1px solid #f0c9c9;
    border-radius: 9px;
    background: #fff5f5;
    color: #a23b43;
    font-size: 9px;
    line-height: 1.4;
}

.ordnt-report-ai-followups {
    margin-top: 9px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ordnt-report-ai-followups button {
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid #cbdcf7;
    border-radius: 999px;
    background: #ffffff;
    color: #315a91;
    font: inherit;
    font-size: 8.7px;
    font-weight: 700;
    cursor: pointer;
}

.ordnt-report-ai-followups button:hover {
    border-color: #8fb6f4;
    background: #f5f9ff;
}

.ordnt-report-ai-form {
    margin-top: 9px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
}

.ordnt-report-ai-form input[type="text"] {
    width: 100%;
    min-width: 0;
    height: 38px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #cad9ed;
    border-radius: 9px;
    outline: 0;
    background: #ffffff;
    color: #1f3e67;
    font: inherit;
    font-size: 10px;
    line-height: normal;
}

.ordnt-report-ai-form input[type="text"]:focus {
    border-color: #7aa8f4;
    box-shadow: 0 0 0 3px rgba(23,105,247,.08);
}

.ordnt-report-ai-form button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #1769f7;
    border-radius: 9px;
    background: #1769f7;
    color: #ffffff;
    font: inherit;
    font-size: 9px;
    font-weight: 740;
    cursor: pointer;
}

.ordnt-report-panel.branches {
    margin-bottom: 14px;
}

.ordnt-report-branch-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.ordnt-report-branch-highlights > div {
    min-width: 0;
    padding: 9px 10px;
    display: grid;
    gap: 3px;
    border: 1px solid #e0e8f3;
    border-radius: 10px;
    background: #f8fbff;
}

.ordnt-report-branch-highlights span {
    color: #607594;
    font-size: 10px;
    font-weight: 720;
    line-height: 1.35;
}

.ordnt-report-branch-highlights strong {
    overflow: hidden;
    color: #203e68;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ordnt-report-branch-highlights small {
    color: #607594;
    font-size: 10px;
    line-height: 1.35;
}

.ordnt-report-branch-table {
    overflow-x: auto;
}

.ordnt-report-branch-table > div {
    min-width: 900px;
    display: grid;
    grid-template-columns:
        minmax(150px, 1fr)
        repeat(6, minmax(92px, .62fr));
    gap: 10px;
    align-items: center;
    padding: 9px 11px;
    border-top: 1px solid #e7edf5;
    color: #385174;
    font-size: 9.5px;
}

.ordnt-report-branch-table .head {
    border-top: 0;
    border-radius: 8px;
    background: #f5f8fc;
    color: #607594;
    font-size: 9.5px;
    font-weight: 720;
}

.ordnt-report-branch-table .positive {
    color: #07845e;
    font-weight: 750;
}

.ordnt-report-branch-table .negative {
    color: #d73b45;
    font-weight: 750;
}


.ordnt-report-branch-variation {
    display: grid;
    gap: 2px;
}

.ordnt-report-branch-variation strong {
    font-size: 10px;
}

.ordnt-report-branch-variation small {
    color: #657a99;
    font-size: 9px;
    font-weight: 620;
    line-height: 1.3;
}


.ordnt-report-branch-context {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 520px));
    justify-content: start;
    gap: 8px;
}

.ordnt-report-branch-context > div {
    min-height: 0;
    padding: 11px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 14px;
    border: 1px solid #dfe7f2;
    border-radius: 11px;
    background: #f8fbff;
}

.ordnt-report-branch-context span {
    color: #284467;
    font-size: 10px;
    font-weight: 760;
}

.ordnt-report-branch-context strong {
    color: #10234a;
    font-size: 13px;
    text-align: right;
}

.ordnt-report-branch-context small {
    grid-column: 1 / -1;
    color: #6f809a;
    font-size: 9.5px;
    line-height: 1.4;
}

.ordnt-report-branch-context .warning {
    border-color: #f0d9a7;
    background: #fffaf0;
}

.ordnt-report-panel.signals {
    margin-bottom: 14px;
}

.ordnt-report-signals-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.ordnt-report-signals-grid > div {
    min-width: 0;
    padding: 10px 11px;
    display: grid;
    gap: 4px;
    border: 1px solid #e0e8f3;
    border-radius: 10px;
    background: linear-gradient(145deg, #fbfdff, #f6f9fe);
}

.ordnt-report-signals-grid span {
    color: #667b99;
    font-size: 9.5px;
    font-weight: 720;
}

.ordnt-report-signals-grid strong {
    overflow: hidden;
    color: #183962;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ordnt-report-signals-grid small {
    color: #607594;
    font-size: 9.5px;
    line-height: 1.4;
}

.ordnt-report-tooltip {
    position: fixed;
    z-index: 4000;
    min-width: 155px;
    max-width: 280px;
    padding: 9px 11px;
    display: grid;
    gap: 3px;
    border: 1px solid #d5e1ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(20, 50, 95, .18);
    color: #18345f;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -100%);
    transition: opacity .1s ease;
}

.ordnt-report-tooltip.below {
    transform: translate(-50%, 0);
}

.ordnt-report-tooltip.is-visible {
    opacity: 1;
}

.ordnt-report-tooltip strong {
    font-size: 10px;
    line-height: 1.35;
}

.ordnt-report-tooltip span {
    color: #657a99;
    font-size: 9px;
    line-height: 1.45;
}

.ordnt-report-empty {
    display: grid;
    min-height: 180px;
    place-items: center;
    color: #7a8ca7;
    font-size: 11px;
    text-align: center;
}

.ordnt-report-loading,
.ordnt-report-error {
    display: flex;
    min-height: 440px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #667b9f;
}

.ordnt-report-loading span {
    width: 28px;
    height: 28px;
    border: 3px solid #dce8f8;
    border-top-color: #1769f7;
    border-radius: 50%;
    animation: ordnt-report-spin .8s linear infinite;
}

@keyframes ordnt-report-spin { to { transform: rotate(360deg); } }

.ordnt-report-error strong { color: #17335d; font-size: 17px; }
.ordnt-report-error button { background: #1769f7; color: #fff; }
.ordnt-report-warning {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #f4d9a8;
    border-radius: 9px;
    background: #fff9ed;
    color: #8b5a13;
    font-size: 11px;
}

@media (max-width: 1180px) {
    .ordnt-report-controls {
        grid-template-columns: 1.2fr .9fr .7fr;
    }
    .ordnt-report-actions { grid-column: 1 / -1; }
    .ordnt-report-kpis { grid-template-columns: repeat(2, 1fr); }
    .ordnt-report-grid,
    .ordnt-report-grid.bottom { grid-template-columns: 1fr; }
}

html[data-ordnt-device-mode="tablet"] .ordnt-reports-page {
    padding: 22px 22px 30px;
}

html[data-ordnt-device-mode="tablet"] .ordnt-report-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-ordnt-device-mode="tablet"] .ordnt-report-actions {
    grid-column: auto;
    align-self: end;
}

html[data-ordnt-device-mode="tablet"] .ordnt-report-signals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-ordnt-device-mode="tablet"] .ordnt-report-control-group select,
html[data-ordnt-device-mode="tablet"] .ordnt-report-comparison-controls select,
html[data-ordnt-device-mode="tablet"] .ordnt-report-evolution-controls select {
    min-height: 42px;
    font-size: 11px;
}

html[data-ordnt-device-mode="tablet"] .ordnt-report-branch-table {
    display: grid;
    gap: 8px;
    overflow: visible;
}

html[data-ordnt-device-mode="tablet"] .ordnt-report-branch-table .head {
    display: none;
}

html[data-ordnt-device-mode="tablet"] .ordnt-report-branch-table > div:not(.head) {
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 16px;
    padding: 14px;
    border: 1px solid #e0e8f3;
    border-radius: 12px;
    background: #f8fbff;
}

html[data-ordnt-device-mode="tablet"] .ordnt-report-branch-table > div:not(.head) > strong:first-child {
    grid-column: 1 / -1;
    padding-bottom: 9px;
    border-bottom: 1px solid #e5ebf3;
    color: #203e68;
    font-size: 13px;
}

html[data-ordnt-device-mode="tablet"] .ordnt-report-branch-table [data-report-label] {
    min-width: 0;
    display: grid;
    gap: 3px;
    align-content: start;
}

html[data-ordnt-device-mode="tablet"] .ordnt-report-branch-table [data-report-label]::before {
    display: block;
    margin: 0;
    content: attr(data-report-label);
    color: #7888a0;
    font-size: 8.5px;
    font-weight: 720;
}

html[data-ordnt-device-mode="tablet"] .ordnt-report-branch-context {
    grid-template-columns: 1fr;
}

html[data-ordnt-device-mode="tablet"] .ordnt-report-branch-context > div {
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 4px;
    padding: 13px 14px;
}

html[data-ordnt-device-mode="tablet"] .ordnt-report-branch-context strong {
    font-size: 18px;
    line-height: 1.15;
}

html[data-ordnt-device-mode="tablet"] .ordnt-report-branch-context small {
    grid-column: auto;
}

html[data-ordnt-device-mode="mobile"] #settingsAppMain.ordnt-reports-active {
    display: block;
    min-height: 0 !important;
    padding: 0;
}

html[data-ordnt-device-mode="mobile"] #settingsAppMain.ordnt-reports-active .ordnt-mobile-home {
    display: none !important;
}

html[data-ordnt-device-mode="mobile"]
#settingsAppMain.ordnt-reports-active
> .ordnt-home-footer {
    display: none !important;
}

html[data-ordnt-device-mode="mobile"] .ordnt-reports-page {
    padding: 18px 14px 18px;
}

html[data-ordnt-device-mode="mobile"] .ordnt-reports-heading {
    display: block;
    margin-bottom: 10px;
}

html[data-ordnt-device-mode="mobile"] .ordnt-reports-heading h1 { font-size: 26px; }
html[data-ordnt-device-mode="mobile"] .ordnt-reports-heading p { font-size: 12px; line-height: 1.5; }

html[data-ordnt-device-mode="mobile"] .ordnt-report-controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 13px;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-control-group select,
html[data-ordnt-device-mode="mobile"] .ordnt-report-comparison-controls select,
html[data-ordnt-device-mode="mobile"] .ordnt-report-evolution-controls select {
    min-height: 44px;
    font-size: 12px;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-segments {
    grid-template-columns: repeat(2, 1fr);
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-segments button:nth-child(2) { border-right: 0; }
html[data-ordnt-device-mode="mobile"] .ordnt-report-segments button:nth-child(-n+2) { border-bottom: 1px solid #e1e9f4; }
html[data-ordnt-device-mode="mobile"] .ordnt-report-actions { display: grid; grid-template-columns: 1fr 1fr; }
html[data-ordnt-device-mode="mobile"] .ordnt-report-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-kpi {
    padding: 12px;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-kpi-title {
    gap: 7px;
    font-size: 11px;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-kpi-value {
    margin: 9px 0 7px;
    font-size: 19px;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-kpi-trend {
    margin-left: 0;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 9px;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-kpi > small {
    margin: 7px 0 0;
    font-size: 9px;
    line-height: 1.35;
}
html[data-ordnt-device-mode="mobile"] .ordnt-report-comparison-controls {
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
}
html[data-ordnt-device-mode="mobile"] .ordnt-report-comparison-controls label,
html[data-ordnt-device-mode="mobile"] .ordnt-report-comparison-controls select,
html[data-ordnt-device-mode="mobile"] .ordnt-report-comparison-dates {
    width: 100%;
}
html[data-ordnt-device-mode="mobile"] .ordnt-report-grid,
html[data-ordnt-device-mode="mobile"] .ordnt-report-grid.bottom { grid-template-columns: 1fr; }
html[data-ordnt-device-mode="mobile"] .ordnt-report-category-layout { grid-template-columns: 1fr; }
html[data-ordnt-device-mode="mobile"] .ordnt-report-day-insights { grid-template-columns: repeat(2, 1fr); }
html[data-ordnt-device-mode="mobile"] .ordnt-report-signals-grid {
    grid-template-columns: 1fr 1fr;
}
html[data-ordnt-device-mode="mobile"] .ordnt-report-line-chart svg {
    min-width: 620px;
}
html[data-ordnt-device-mode="mobile"] .ordnt-report-line-chart {
    overflow-x: auto;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-evolution-controls {
    align-items: stretch;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-evolution-controls > label {
    width: 100%;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-evolution-series {
    width: 100%;
    justify-content: flex-start;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-branch-highlights {
    grid-template-columns: 1fr 1fr;
}
html[data-ordnt-device-mode="mobile"] .ordnt-report-branch-table {
    display: grid;
    gap: 8px;
    overflow: visible;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-branch-table .head {
    display: none;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-branch-table > div:not(.head) {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 14px;
    padding: 13px;
    border: 1px solid #e0e8f3;
    border-radius: 12px;
    background: #f8fbff;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-branch-table > div:not(.head) > strong:first-child {
    grid-column: 1 / -1;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5ebf3;
    color: #203e68;
    font-size: 12.5px;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-branch-table [data-report-label] {
    min-width: 0;
    display: grid;
    gap: 3px;
    align-content: start;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-branch-table [data-report-label]::before {
    display: block;
    margin: 0;
    content: attr(data-report-label);
    color: #7888a0;
    font-size: 8.5px;
    font-weight: 720;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-branch-context {
    grid-template-columns: 1fr;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-branch-context > div {
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 4px;
    padding: 13px 14px;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-branch-context strong {
    font-size: 18px;
    line-height: 1.15;
}

html[data-ordnt-device-mode="mobile"] .ordnt-report-branch-context small {
    grid-column: auto;
}
