:root {
    --color-error: oklch(57.7% 0.245 27.325);
    --color-notice: oklch(61% 0.23 301);
    --color-info: oklch(42% 0.0538 225.16);
}
/* from otrs */
.Hidden {
    /*  composes: hidden from "./styles.css";*/
    display: none;
}

.Inactive {
    /* composes: btn[disabled] from './styles.csss';
    composes: btn.disabled from './styles.css'; */
    opacity: 0.5;
    pointer-events: none;
}

select.Small {
    /* composes: select-sm from "./styles.css"; */
    font-weight: 500;
    font-size: 0.75rem;
    height: 2rem;
    padding-inline-start: 0.625rem;
    padding-inline-end: 0.625rem;
    background-size: 14px 10px;
    background-position: inset-inline-end 0.55rem center;
}



/** TooltipErrorMessage display **/
body {
    position: relative;
}

div.TooltipErrorMessage {
    display: none;
}


/** extra css **/

.w-\[90px\] {
    width: 90px;
}

.size-6 {
    width: 1.5rem;
    height: 1.5rem;
}

.ARIAAlertMessage {
    position: absolute !important;
    left: -10000px;
    right: auto;
    top: -10000px;
}

div.TooltipContainer {
    position: absolute;
    z-index: 6000;
    display: none;
    /* Rimuove qualsiasi trasformazione */
    transform: none !important;
}

div.Tooltip > div.Content {
    background-color: var(--tw-danger);
    border: 1px solid var(--tw-danger-active);
    border-radius: 0.5rem;
    color: #fff;
    padding: 5px;
    padding-inline: 12px;
    position: relative;
}

div.Tooltip.TongueTop > div.Content {
    margin-bottom: 15px;
}

div.Tooltip.TongueBottom > div.Content {
    margin-top: 15px;
}

form#ArticleFilterDialogForm select {
    min-height: 26px;
    height: fit-content;
}

div.DnDUpload .UploadRunning {
    display: none;
}

div.DnDUpload.Uploading .UploadRunning {
    display: block;
}

div.MessageBox {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: small;
}
div.MessageBox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(209, 213, 219, 1); /* Tailwind: border-gray-300 */
    border-radius: 0.5rem; /* Tailwind: rounded-lg */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Tailwind: shadow-sm */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.25px;
}

div.MessageBox.Notice {
    --alert-color: var(--color-notice);
}
div.MessageBox.Error {
    --alert-color: var(--color-error);
}
div.MessageBox.Info {
    --alert-color: var(--color-info);
}
div.MessageBox {
    background-color: color-mix(in oklab, var(--alert-color) 12%, transparent);
    border-color: var(--alert-color);
}
div.MessageBox .Close {
    color: var(--alert-color);
}
div.MessageBox .fa {
    color: var(--alert-color);
    width: 1.25rem;
    text-align: center;
}

div.MessageBox .Close:hover {
    background-color: color-mix(in oklab, currentColor 18%, transparent);
}
.draft-box {
    background-color: rgb(205 228 196);
}

fieldset.grid.grid-cols-2.gap-2.TableLike.FixedLabelSmall.Narrow>* {
    font-size: 0.75rem;
    line-height: 1rem;
}

/********************
 * SVG CSS
 */


svg {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Trying to get SVG to act like a greedy block in all browsers */
    display: block;
    width: 100%;
    height: 100%;
}

/********************
    Default CSS for an svg element nvd3 used
  */
svg.nvd3-svg {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    user-select: none;
    display: block;
}

/********************
    Box shadow and border radius styling
  */
.nvtooltip.with-3d-shadow,
.with-3d-shadow .nvtooltip {
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);

    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

/********************
   * TOOLTIP CSS
   */

.nvtooltip {
    position: absolute;
    background-color: rgba(255, 255, 255, 1.0);
    padding: 1px;
    border: 1px solid rgba(0, 0, 0, .2);
    z-index: 10000;

    font-family: Arial;
    font-size: 13px;
    text-align: left;
    pointer-events: none;

    white-space: nowrap;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*Give tooltips that old fade in transition by
      putting a "with-transitions" class on the container div.
  */
.nvtooltip.with-transitions,
.with-transitions .nvtooltip {
    transition: opacity 50ms linear;
    -moz-transition: opacity 50ms linear;
    -webkit-transition: opacity 50ms linear;

    transition-delay: 200ms;
    -moz-transition-delay: 200ms;
    -webkit-transition-delay: 200ms;
}

.nvtooltip.x-nvtooltip,
.nvtooltip.y-nvtooltip {
    padding: 8px;
}

.nvtooltip h3 {
    margin: 0;
    padding: 4px 14px;
    line-height: 18px;
    font-weight: normal;
    background-color: rgba(247, 247, 247, 0.75);
    text-align: center;

    border-bottom: 1px solid #ebebeb;

    -webkit-border-radius: 5px 5px 0 0;
    -moz-border-radius: 5px 5px 0 0;
    border-radius: 1px 5px 0 0;
}

.nvtooltip p {
    margin: 0;
    padding: 5px 14px;
    text-align: center;
}

.nvtooltip span {
    display: inline-block;
    margin: 2px 0;
}

.nvtooltip table {
    margin: 6px;
    border-spacing: 0;
}


.nvtooltip table td {
    padding: 2px 9px 2px 0;
    vertical-align: middle;
}

.nvtooltip table td.key {
    font-weight: normal;
}

.nvtooltip table td.value {
    text-align: right;
    font-weight: bold;
}

.nvtooltip table tr.highlight td {
    padding: 1px 9px 1px 0;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-top-style: solid;
    border-top-width: 1px;
}

.nvtooltip table td.legend-color-guide div {
    width: 8px;
    height: 8px;
    vertical-align: middle;
}

.nvtooltip .footer {
    padding: 3px;
    text-align: center;
}

.nvtooltip-pending-removal {
    position: absolute;
    pointer-events: none;
}

.nvd3 text {
    font: normal 12px Arial;
}

.nvd3 .title {
    font: bold 14px Arial;
}

.nvd3 .nv-background {
    fill: white;
    fill-opacity: 0;
}

.nvd3.nv-noData {
    font-size: 18px;
    font-weight: bold;
}


/**********
  *  Brush
  */

.nv-brush .extent {
    fill-opacity: .125;
    shape-rendering: crispEdges;
}


/**********
  *  Legend
  */

.nvd3 .nv-legend .nv-series {
    cursor: pointer;
}

.nvd3 .nv-legend .nv-disabled circle {
    fill-opacity: 0;
}


/**********
  *  Axes
  */

.axis {
    opacity: 1;
}

.axis.nv-disabled {
    opacity: 0;
}

.nvd3 .nv-axis {
    pointer-events: none;
}

.nvd3 .nv-axis path {
    fill: none;
    stroke: #000;
    stroke-opacity: .75;
    shape-rendering: crispEdges;
}

.nvd3 .nv-axis path.domain {
    stroke-opacity: .75;
}

.nvd3 .nv-axis.nv-x path.domain {
    stroke-opacity: 0;
}

.nvd3 .nv-axis line {
    fill: none;
    stroke: #e5e5e5;
    shape-rendering: crispEdges;
}

.nvd3 .nv-axis .zero line,
/*this selector may not be necessary*/
.nvd3 .nv-axis line.zero {
    stroke-opacity: .75;
}

.nvd3 .nv-axis .nv-axisMaxMin text {
    font-weight: bold;
}

.nvd3 .x .nv-axis .nv-axisMaxMin text,
.nvd3 .x2 .nv-axis .nv-axisMaxMin text,
.nvd3 .x3 .nv-axis .nv-axisMaxMin text {
    text-anchor: middle
}


/**********
  *  Brush
  */

.nv-brush .resize path {
    fill: #eee;
    stroke: #666;
}


/**********
  *  Bars
  */

.nvd3 .nv-bars .negative rect {
    zfill: brown;
}

.nvd3 .nv-bars rect {
    zfill: steelblue;
    fill-opacity: .75;

    transition: fill-opacity 250ms linear;
    -moz-transition: fill-opacity 250ms linear;
    -webkit-transition: fill-opacity 250ms linear;
}

.nvd3 .nv-bars rect.hover {
    fill-opacity: 1;
}

.nvd3 .nv-bars .hover rect {
    fill: lightblue;
}

.nvd3 .nv-bars text {
    fill: rgba(0, 0, 0, 0);
}

.nvd3 .nv-bars .hover text {
    fill: rgba(0, 0, 0, 1);
}


/**********
  *  Bars
  */

.nvd3 .nv-multibar .nv-groups rect,
.nvd3 .nv-multibarHorizontal .nv-groups rect,
.nvd3 .nv-discretebar .nv-groups rect {
    stroke-opacity: 0;

    transition: fill-opacity 250ms linear;
    -moz-transition: fill-opacity 250ms linear;
    -webkit-transition: fill-opacity 250ms linear;
}

.nvd3 .nv-multibar .nv-groups rect:hover,
.nvd3 .nv-multibarHorizontal .nv-groups rect:hover,
.nvd3 .nv-discretebar .nv-groups rect:hover {
    fill-opacity: 1;
}

.nvd3 .nv-discretebar .nv-groups text,
.nvd3 .nv-multibarHorizontal .nv-groups text {
    font-weight: bold;
    fill: rgba(0, 0, 0, 1);
    stroke: rgba(0, 0, 0, 0);
}

/***********
  *  Pie Chart
  */

.nvd3.nv-pie path {
    stroke-opacity: 0;
    transition: fill-opacity 250ms linear, stroke-width 250ms linear, stroke-opacity 250ms linear;
    -moz-transition: fill-opacity 250ms linear, stroke-width 250ms linear, stroke-opacity 250ms linear;
    -webkit-transition: fill-opacity 250ms linear, stroke-width 250ms linear, stroke-opacity 250ms linear;

}

.nvd3.nv-pie .nv-pie-title {
    font-size: 24px;
    fill: rgba(19, 196, 249, 0.59);
}

.nvd3.nv-pie .nv-slice text {
    stroke: #000;
    stroke-width: 0;
}

.nvd3.nv-pie path {
    stroke: #fff;
    stroke-width: 1px;
    stroke-opacity: 1;
}

.nvd3.nv-pie .hover path {
    fill-opacity: .7;
}

.nvd3.nv-pie .nv-label {
    pointer-events: none;
}

.nvd3.nv-pie .nv-label rect {
    fill-opacity: 0;
    stroke-opacity: 0;
}

/**********
  * Lines
  */

.nvd3 .nv-groups path.nv-line {
    fill: none;
    stroke-width: 1.5px;
}

.nvd3 .nv-groups path.nv-line.nv-thin-line {
    stroke-width: 1px;
}


.nvd3 .nv-groups path.nv-area {
    stroke: none;
}

.nvd3 .nv-line.hover path {
    stroke-width: 6px;
}

.nvd3.nv-line .nvd3.nv-scatter .nv-groups .nv-point {
    fill-opacity: 0;
    stroke-opacity: 0;
}

.nvd3.nv-scatter.nv-single-point .nv-groups .nv-point {
    fill-opacity: .5 !important;
    stroke-opacity: .5 !important;
}


.with-transitions .nvd3 .nv-groups .nv-point {
    transition: stroke-width 250ms linear, stroke-opacity 250ms linear;
    -moz-transition: stroke-width 250ms linear, stroke-opacity 250ms linear;
    -webkit-transition: stroke-width 250ms linear, stroke-opacity 250ms linear;

}

.nvd3.nv-scatter .nv-groups .nv-point.hover,
.nvd3 .nv-groups .nv-point.hover {
    stroke-width: 7px;
    fill-opacity: .95 !important;
    stroke-opacity: .95 !important;
}


.nvd3 .nv-point-paths path {
    stroke: #aaa;
    stroke-opacity: 0;
    fill: #eee;
    fill-opacity: 0;
}



.nvd3 .nv-indexLine {
    cursor: ew-resize;
}


/**********
  * Distribution
  */

.nvd3 .nv-distribution {
    pointer-events: none;
}


/**********
  *  Scatter
  */

.nvd3 .nv-groups .nv-point.hover {
    stroke-width: 20px;
    stroke-opacity: .5;
}

.nvd3 .nv-scatter .nv-point.hover {
    fill-opacity: 1;
}


/**********
  *  Stacked Area
  */

.nvd3.nv-stackedarea path.nv-area {
    fill-opacity: .7;
    stroke-opacity: 0;
    transition: fill-opacity 250ms linear, stroke-opacity 250ms linear;
    -moz-transition: fill-opacity 250ms linear, stroke-opacity 250ms linear;
    -webkit-transition: fill-opacity 250ms linear, stroke-opacity 250ms linear;
}

.nvd3.nv-stackedarea path.nv-area.hover {
    fill-opacity: .9;
}


.nvd3.nv-stackedarea .nv-groups .nv-point {
    stroke-opacity: 0;
    fill-opacity: 0;
}


/**********
  *  Line Plus Bar
  */

.nvd3.nv-linePlusBar .nv-bar rect {
    fill-opacity: .75;
}

.nvd3.nv-linePlusBar .nv-bar rect:hover {
    fill-opacity: 1;
}


/**********
  *  Bullet
  */

.nvd3.nv-bullet {
    font: 10px sans-serif;
}

.nvd3.nv-bullet .nv-measure {
    fill-opacity: .8;
}

.nvd3.nv-bullet .nv-measure:hover {
    fill-opacity: 1;
}

.nvd3.nv-bullet .nv-marker {
    stroke: #000;
    stroke-width: 2px;
}

.nvd3.nv-bullet .nv-markerTriangle {
    stroke: #000;
    fill: #fff;
    stroke-width: 1.5px;
}

.nvd3.nv-bullet .nv-tick line {
    stroke: #666;
    stroke-width: .5px;
}

.nvd3.nv-bullet .nv-range.nv-s0 {
    fill: #eee;
}

.nvd3.nv-bullet .nv-range.nv-s1 {
    fill: #ddd;
}

.nvd3.nv-bullet .nv-range.nv-s2 {
    fill: #ccc;
}

.nvd3.nv-bullet .nv-title {
    font-size: 14px;
    font-weight: bold;
}

.nvd3.nv-bullet .nv-subtitle {
    fill: #999;
}


.nvd3.nv-bullet .nv-range {
    fill: #bababa;
    fill-opacity: .4;
}

.nvd3.nv-bullet .nv-range:hover {
    fill-opacity: .7;
}


/**********
  * Sparkline
  */

.nvd3.nv-sparkline path {
    fill: none;
}

.nvd3.nv-sparklineplus g.nv-hoverValue {
    pointer-events: none;
}

.nvd3.nv-sparklineplus .nv-hoverValue line {
    stroke: #333;
    stroke-width: 1.5px;
}

.nvd3.nv-sparklineplus,
.nvd3.nv-sparklineplus g {
    pointer-events: all;
}

.nvd3 .nv-hoverArea {
    fill-opacity: 0;
    stroke-opacity: 0;
}

.nvd3.nv-sparklineplus .nv-xValue,
.nvd3.nv-sparklineplus .nv-yValue {
    stroke-width: 0;
    font-size: .9em;
    font-weight: normal;
}

.nvd3.nv-sparklineplus .nv-yValue {
    stroke: #f66;
}

.nvd3.nv-sparklineplus .nv-maxValue {
    stroke: #2ca02c;
    fill: #2ca02c;
}

.nvd3.nv-sparklineplus .nv-minValue {
    stroke: #d62728;
    fill: #d62728;
}

.nvd3.nv-sparklineplus .nv-currentValue {
    font-weight: bold;
    font-size: 1.1em;
}

/**********
  * historical stock
  */

.nvd3.nv-ohlcBar .nv-ticks .nv-tick {
    stroke-width: 1px;
}

.nvd3.nv-ohlcBar .nv-ticks .nv-tick.hover {
    stroke-width: 2px;
}

.nvd3.nv-ohlcBar .nv-ticks .nv-tick.positive {
    stroke: #2ca02c;
}

.nvd3.nv-ohlcBar .nv-ticks .nv-tick.negative {
    stroke: #d62728;
}

.nvd3.nv-historicalStockChart .nv-axis .nv-axislabel {
    font-weight: bold;
}

.nvd3.nv-historicalStockChart .nv-dragTarget {
    fill-opacity: 0;
    stroke: none;
    cursor: move;
}

.nvd3 .nv-brush .extent {
    fill-opacity: 0 !important;
}

.nvd3 .nv-brushBackground rect {
    stroke: #000;
    stroke-width: .4;
    fill: #fff;
    fill-opacity: .7;
}


/**********
  * Parallel Coordinates
  */

.nvd3 .background path {
    fill: none;
    stroke: #EEE;
    stroke-opacity: .4;
    shape-rendering: crispEdges;
}

.nvd3 .foreground path {
    fill: none;
    stroke-opacity: .7;
}

.nvd3 .brush .extent {
    fill-opacity: .3;
    stroke: #fff;
    shape-rendering: crispEdges;
}

.nvd3 .axis line,
.axis path {
    fill: none;
    stroke: #000;
    shape-rendering: crispEdges;
}

.nvd3 .axis text {
    text-shadow: 0 1px 0 #fff;
}

/****
  Interactive Layer
  */
.nvd3 .nv-interactiveGuideLine {
    pointer-events: none;
}

.nvd3 line.nv-guideline {
    stroke: #ccc;
}

/**
 * @note    Use the class InvisibleText to hide text from the screen,
 *          while it is still recognized and read by screen readers.
 */
.InvisibleText {
    width: 0;
    height: 0;
    display: inline-block;
    text-indent: -9999px;
    white-space: nowrap;
    position: absolute !important;
}

.user-status-active {
    color: #0a0;
}

.user-status-offline {
    color: #131F54;
}

.user-status-unavailable {
    color: #d00;
    opacity: 1;
}

.user-status-away {
    color: #fb0;
}

.table tbody tr td.table-cell {
    padding-inline-start: 0.1rem;
    padding-inline-end:   0.1rem;
    padding-top:          0.45rem;
    padding-bottom:       0.45rem;
}

/**
 * Rexpondo scrollbar default settings
 */

::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.4rem;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background-color: #8888885d;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/**
 * Control Tab Action li
 */

.Actions li {
    display: inline-block;
}

.Actions li:not(:last-child):after {
    color: #BBBBBB;
    content: " | ";
    display: block;
    float: right;
}

.Tab.Actions li:first-child a {
    padding-left: 3px;
}

.Tab.Actions li a {
    padding: 5px 5px 8px 2px;
}

.Tab.Actions li a:hover {
    color: #777;
    background: none;
    text-decoration: underline;
    border-bottom: 0px;
}

.Tab.Actions li.Selected a {
    color: #474747;
    font-weight: bold;
}

.DashboardActions {
    margin-bottom: 10px
}

span.Pagination a.Selected {
    font-weight: bold;
    margin-bottom: 10px;
}

/**
  * ArticleMailContent - Article box in AgentTicketZoom
  */
#ArticleItems .ArticleMailContent .Actions li:not(:last-child):after {
    content: "";
}

#ArticleItems .ArticleMailContent .Actions li {
    display: flex;
}


/**
 * checkbox-eye
 */

.checkbox-eye input[type="checkbox"] {
    display: none;
}

.checkbox-eye label {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;
}

.checkbox-eye label:hover {
    color: var(--tw-primary);
    font-weight: bold;
}

.checkbox-eye i {
    text-align: right;
    align-self: center;
}

.checkbox-eye input[type="checkbox"]:checked + label .fa-eye-slash {
    display: none;
}

.checkbox-eye input[type="checkbox"]:checked + label .fa-eye {
    display: inline;
}

.checkbox-eye input[type="checkbox"]:not(:checked) + label .fa-eye-slash {
    display: inline;
}

.checkbox-eye input[type="checkbox"]:not(:checked) + label .fa-eye {
    display: none;
}


/*
 * Clickable
 */

.Clickable:hover {
    transition-duration: 300ms;
    background-color: #81b4ff17;
    cursor: pointer;
}


/*
* applies the SortAscendingLarge & SortDescendingLarge
*  classes to the SortControl class element
*/

.SortAscendingLarge .SortControl,
.SortDescendingLarge .SortControl,
.SortAscending,
.SortDescending {
    color: var(--tw-primary);
    align-items: center;
}

.SortDescendingLarge .SortControl::after,
.SortDescending::after {
    content: "\25BC";
    margin-left: 0.25em;
}

.SortAscendingLarge .SortControl::after,
.SortAscending::after {
    content: "\25B2";
    margin-left: 0.25em;
}

/*
 * Column filter class
 */

.DataTable thead th.DashboardHeader .ColumnSettingsContainer,
.DataTable thead th.OverviewHeader .ColumnSettingsContainer{
    position: relative;
    left: -20px;
}

.DataTable thead th.DashboardHeader .ColumnSettingsBox,
.DataTable thead th.OverviewHeader .ColumnSettingsBox {
    background-color: #EEEEEE;
    border: 1px solid #BBBBBB;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    box-shadow: 1px 1px 3px #CCCCCC, -1px -1px 3px #CCCCCC;
    display: none;
    padding: 4px;
    position: absolute;
    top: 100%;
    margin-top: 15px;
    min-width: 150px;
    z-index: 100;
}

.DataTable thead th.DashboardHeader .ColumnSettingsBox span.SelectedValue,
.DataTable thead th.OverviewHeader .ColumnSettingsBox span.SelectedValue {
    display: block;
    text-transform: none;
    margin-bottom: 6px;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    flex-grow: 1;
}

.DataTable thead th.DashboardHeader .ColumnSettingsBox span.SelectedValue span,
.DataTable thead th.OverviewHeader .ColumnSettingsBox span.SelectedValue span {
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.DataTable thead th.DashboardHeader .ColumnSettingsBox a.DeleteFilter{
    display: inline-block;
    padding: 4px;
    margin: 0 0 6px 4px;
}

.DataTable thead th.OverviewHeader .ColumnSettingsBox a.DeleteFilter {
    display: inline-block;
    padding: 4px;
}

.DataTable thead th.DashboardHeader .ColumnSettingsBox a.DeleteFilter.Hidden,
.DataTable thead th.OverviewHeader .ColumnSettingsBox a.DeleteFilter.Hidden {
    display: none;
}

.DataTable thead th.DashboardHeader .ColumnSettingsBox select.ColumnFilter,
.DataTable thead th.OverviewHeader .ColumnSettingsBox select.ColumnFilter {
    width: 100%;
}

/*
* Attachment input - UploadBox
*/

div.DnDUpload {
    border: 1px solid #ccc;
    border-radius: 10px;
    color: #aaa;
    min-height: 60px;
    text-align: center;
    position: relative;
    margin-bottom: 5px;
    box-sizing: border-box;
    background-color: white;
    width: 100%;
}

span.ReadyForUpload {
    padding: 30px 0 5px;
    display: block;
    margin: 10px;
}

div.DnDUpload:focus {
    border-color: var(--tw-primary);
    color: var(--tw-primary)
}

input.AjaxDnDUpload.Error+div.DnDUpload {
    color: var(--tw-danger-active);
    border-color: var(--tw-danger-active);
}

div.DnDUpload.DragOver {
    border-style: dashed;
    color: var(--tw-primary);
}

div.DnDUpload i {
    position: absolute;
    top: 15px;
    font-size: 20px;
}

div.DnDUpload i.fa-spinner {
    display: none;
}

div.DnDUpload.Uploading i.fa-download {
    display: none;
}

div.DnDUpload.Uploading i.fa-spinner {
    display: block;
}

div.DnDUpload .UploadRunning {
    display: none;
}

div.DnDUpload.Uploading .ReadyForUpload {
    display: none;
}

div.DnDUpload.Uploading .UploadRunning {
    display: block;
}

/*
* Attachment input - Table
*/

.AttachmentListContainer {
    position: relative;
    max-width: 622px;
}

.AttachmentListContainer .Busy {
    position: absolute;
    left: 0px;
    width: 100%;
    height: 100%;
    top: 0px;
    background: rgba(255, 255, 255, 0.5);
    text-align: center;
    box-sizing: border-box;
    display: none;
}

.AttachmentListContainer .Busy i {
    vertical-align: middle;
    line-height: 100%;
    position: absolute;
    top: 50%;
    font-size: 20px;
    margin-top: -10px;
}

table.AttachmentList {
    clear: none;
    margin-bottom: 10px;
    margin-top: 0px;
    table-layout: fixed;
}

table.AttachmentList tbody tr:hover {
    text-decoration: underline;
}

table.AttachmentList .Filename {
    width: 60%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

table.AttachmentList .Progress {
    display: block;
    height: 4px;
    margin: 3px 0px;
    background: var(--tw-primary-active-light);
    width: 0px;
}

table.AttachmentList .Filetype {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

table.AttachmentList .Filesize {
    width: 15%;
}

table.AttachmentList .Delete {
    width: 15px;
    text-align: center;
}

table.AttachmentList .AttachmentDelete:hover i {
    color: var(--tw-danger-active);
}

.AJAXLoader {
    display: inline-block;
    width: 14px;
    height: 14px;
    position: relative;
    vertical-align: bottom;
}

.AJAXLoader:after,
#Canvas .Activity .Loader:after,
.Loading>.Header h2:after,
.OverviewControl.Loading .ControlRow:after {
    -webkit-animation: fa-spin 2s infinite linear;
    animation: fa-spin 2s infinite linear;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    line-height: 14px;
    content: "\f110";
    font-family: FontAwesome;
    font-size: 14px;
    color: #777;
}

@media (max-width: 1101px) {
    .LayoutFixedSidebar.SidebarLast {
        flex: 1 1 100% !important; /* Sidebar prende tutta la larghezza */
        min-width: 0 !important;
        margin-top: 24px;
    }
    .ContentColumn {
        flex: 1 1 100% !important; /* Colonna principale prende tutta la larghezza */
        min-width: 0 !important;
    }
    .SidebarColumn {
        width: 100% !important;
    }
}

#ArticleTree .ActionRow tr.Active {
    background-color: #81b4ff17 !important;
}

#ArticleTree .ActionRow tr.NotVisibleForCustomer {
    background-color: #E0F7EA !important;
}

#ArticleTree .ActionRow tr.NotVisibleForCustomer.Active {
    background-color: #B8EAD8 !important;
}

#ArticleTree .ActionRow tr.system {
    background: #F2F5F3 !important;
}

#ArticleTree .ActionRow tr.system.Active {
    background-color: #D8DFDB !important;
}

#ArticleTree .ActionRow tr {
    transition: color .3s ease-in-out, background-color .3s ease-in-out;
    line-height: 10px;
    padding-inline-start: none;
    padding-inline-end: none;
    padding-top: none;
    padding-bottom: none;
}

#ArticleTree .ActionRow tr td {
    padding-inline-start: 0.5rem;
    padding-inline-end: 0.5rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

#ArticleTree .ActionRow tbody tr:hover > td {
    background-color: rgba(129, 180, 255, 0.3) !important;
}

.Warning {
    color: #f5af36;
}

/* Autocomplete styles */
.ui-autocomplete.ui-menu {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 4px !important;
    width: auto;
    box-sizing: border-box;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    margin-top: 2px;
    position: absolute !important;
    z-index: 7000 !important;
}

.ui-autocomplete.ui-menu .ui-menu-item {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    display: block;
    font-weight: 400;
    color: #374151;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 4px;
    margin: 2px;
    cursor: pointer;
    position: static !important;
    transform: none !important;
}

.ui-autocomplete.ui-menu .ui-menu-item .ui-menu-item-wrapper {
    display: block;
    padding: 12px 16px !important;
    border: none !important;
    background: transparent !important;
    color: inherit !important;
    font-weight: 400 !important;
    font-style: normal !important;
    border-radius: 4px;
    position: static !important;
    transform: none !important;
}

.ui-autocomplete.ui-menu .ui-menu-item.ui-state-active .ui-menu-item-wrapper,
.ui-autocomplete.ui-menu .ui-menu-item.ui-state-focus .ui-menu-item-wrapper,
.ui-autocomplete.ui-menu .ui-menu-item:hover .ui-menu-item-wrapper,
.ui-autocomplete.ui-menu .ui-menu-item-wrapper.ui-state-active,
.ui-autocomplete.ui-menu .ui-menu-item-wrapper.ui-state-focus,
.ui-autocomplete.ui-menu .ui-menu-item-wrapper:hover {
    background: #81b4ff17 !important;
    color: #111827 !important;
    font-style: normal !important;
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

.ui-autocomplete.ui-menu .ui-menu-item.ui-state-active .ui-menu-item-wrapper *,
.ui-autocomplete.ui-menu .ui-menu-item.ui-state-focus .ui-menu-item-wrapper *,
.ui-autocomplete.ui-menu .ui-menu-item:hover .ui-menu-item-wrapper *,
.ui-autocomplete.ui-menu .ui-menu-item-wrapper.ui-state-active *,
.ui-autocomplete.ui-menu .ui-menu-item-wrapper.ui-state-focus *,
.ui-autocomplete.ui-menu .ui-menu-item-wrapper:hover * {
    color: #111827 !important;
    font-style: normal !important;
    background: transparent !important;
}

.ui-menu-item-wrapper {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.ui-autocomplete.ui-menu .ui-menu-item.ui-state-disabled:not(.ui-state-focus):not(.ui-state-active):not(:hover) .ui-menu-item-wrapper,
.ui-autocomplete.ui-menu .ui-menu-item.AlreadySelectedCustomerUser:not(.ui-state-focus):not(.ui-state-active):not(:hover) .ui-menu-item-wrapper {
    background-color: #f9fafb !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
    font-style: italic !important;
    font-weight: 400 !important;
    opacity: 0.7;
}
/* End of Autocomplete styles */

.WidgetSimple .WidgetMessage {
    background: #eee;
    margin: 10px 16px !important;
    padding: 5px 20px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    border-radius: 5px;    
}

.WidgetSimple .WidgetMessage.Error {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(231, 0, 11, 0.8);
    color: #fff;
    border: 1px solid rgba(200, 0, 0, 0.9);
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.WidgetSimple .WidgetMessage.Error::before {
    content: "\26A0"; /* ⚠ */
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    font-size: 1.1rem;
}

.WidgetSimple .WidgetMessage.Warning {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(157, 83, 244, 0.7);
    border: 1px solid rgba(120, 60, 200, 0.9);
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.WidgetSimple .WidgetMessage.Warning::before {
    content: "\2139"; /* ℹ */
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    font-size: 1.1rem;
}

#ArticleFilterDialogForm .InputField_Search {
    width: 300px;
}


input[type=email] {
    display: block;
    width: 620px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
    outline: none;
    font-weight: 500;
    font-size: 0.8125rem;
    line-height: 1;
    background-color: var(--tw-light-active);
    border-radius: 4px;
    padding-inline-start: 10px;
    padding-inline-end: 10px;
    border: 1px solid var(--tw-gray-300);
    color: var(--tw-gray-700);
    height: 2rem;
}

/* AllocationList: list ul-li to drag&drop between AvailableFields and AssignedFields*/

ul.AllocationList.AvailableFields,
ul.AllocationList.AssignedFields {
    height: 100%;
}

ul.AllocationList.AvailableFields li,
ul.AllocationList.AssignedFields li {
    cursor: move;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.5rem 1rem;
    border-top: var(--tw-table-border);
    border-bottom: var(--tw-table-border);
}

ul.AllocationList.AvailableFields li:hover,
ul.AllocationList.AssignedFields li:hover {
    color: var(--tw-primary);
    border: 1px solid var(--tw-primary);
}

#AgentLinkObjectHeader .Header .Active {
    background-color: var(--tw-gray-200);
}

.Dialog .Content iframe.CustomerUserAddressBook {
    width: 100%;
    height: 37.5em;
}

.Dialog.Modal .Footer {
    padding-inline-start: 1.25rem;
    padding-inline-end: 1.25rem;
    padding-block-start: 0.625rem;
    padding-block-end: 0.625rem;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

th.OverviewHeader.FilterActive .ColumnSettingsTrigger > i.fa-filter,
th.OverviewHeader.FilterActive .ColumnSettingsTrigger > i.ki-filter,
th.DashboardHeader.FilterActive .ColumnSettingsTrigger > i.fa-filter,
th.DashboardHeader.FilterActive .ColumnSettingsTrigger > i.ki-filter {
    color: var(--tw-primary);
    display: inline-flex;
    font-weight: bold;
}

th.OverviewHeader.FilterActive .SortControl,
th.DashboardHeader.FilterActive .SortControl {
    color: var(--tw-primary);
    display: inline-flex;
}

.Error {
    border-color: var(--tw-danger);
}

.Error:hover {
    border-color: var(--tw-danger-active);
}

.Error:focus {
    border-color: var(--tw-danger-active);
}

.LabelError {
    color: var(--tw-danger);
}

.LabelError:hover {
    color: var(--tw-danger-active);
}

#ArticleTable thead th.Sortable {
    position: relative;
    cursor: pointer;
}

#ArticleTable thead th.Sortable > a {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: inherit;
    margin: 0;
    box-sizing: border-box;
}

#ArticleTable thead th:hover > a {
    background-color: rgba(129, 180, 255, 0.3) !important;
}

#ArticleTable thead th:hover {
    background-color: rgba(129, 180, 255, 0.3) !important;
}

/* Manages the widget drop placeholder in the dashboard */
.DropPlaceholder {
    border: 2px dashed var(--tw-primary);
    border-radius: 0.75rem;
    height: 4rem;

    background-color: #e5edf5;
    background-image: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.4) 0%,   
        rgba(255, 255, 255, 0.2) 30%,
        rgba(255, 255, 255, 0) 100%
    );
    background-blend-mode: overlay;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.show-kebab-on-scroll .Kebab {
    opacity: 1 !important;
}

.Kebab {
    transition: opacity 0.2s ease;
}

.modal iframe {
    width: 100%;
    min-height: 25rem;
}

/* Hide TicketOptions in AgentTicketPhone/AgentTicketEmail default and show only if Field has actual content */
#TicketOptions {
    display: none;
}

#TicketOptions:has(.Field > *) {
    display: flex;
}