.equal-height-row.has-siblings .single-features {
    max-height:985px;
}

.widget-control{
    position:relative;
}



.days-case-open-table .gridjs-tbody .gridjs-tr td:not(:first-child){
    text-align:right;
}
.days-case-open-table .gridjs-tbody .gridjs-tr td:first-child{
 position: sticky;
}

.days-case-open-table .gridjs-tbody .gridjs-tr:nth-child(2n+1) td
{
    background-color:#f9f9f9;
}

/* SCROLL TABLE*/
.scrollable-table{
    max-height:800px;
    overflow-x:hidden;
    overflow-y:auto;
}
.scrollable-table th{
    position: sticky;
  top: 0; /* Don't forget this, required for the stickiness */
}
.scrollable-table .end-of-data td{
    padding: 5px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

/* TELERIK TABLE*/
.k-table-row td{
    vertical-align:top !important;
}

/* RAIDAL */
.start-endpoint-values,.addtionalinfo{
    display:flex;
    width:100%;
    margin-top:-40px;
    justify-content: center;
}

.addtionalinfo{
    margin-top:0px;
}
.start-endpoint-values div,.addtionalinfo div{
    width:50%;
    max-width:212px;
}
.apexcharts-xaxis-label{
    white-space:normal;
}

.radial-widget .widget-control{
        display: flex;
    justify-content: center;
}

.addtionalinfo div:first-child{

}


/* Calendar*/
.easepick-calendar-widget .single-click-content {
    display:none!important;
}

.tooltip-calendar-date { 
    border-bottom:solid 1px white;
    padding-bottom:4px;
    margin-bottom:4px;
    font-size:15px;
}


/* PIE */
.pie-widget .widget-control{
    display:flex;
    justify-content:center;
}

.pie-widget .widget-data-overlay{
    width: 155px;
    height: 155px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% - 90px), calc(-50% + 16px));
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    text-align: center;
}

.pie-widget .widget-data-overlay *{
    width:100%;
}
.pie-widget .widget-data-overlay .data-title{
    font-weight: bold;
    font-size: 23px;
    border-bottom: solid 1px #dedede;
    margin-bottom: 5px;
    padding-bottom: 5px;
    line-height: 21px;
}
.pie-widget .widget-data-overlay .data-title span{
    font-size: 16px;
    font-weight: normal;
    display: block;
}
.pie-widget .widget-data-overlay .data-calculation{
    font-size:10px;
}

/* Grid widget */
.grid-widget{
    min-width:100%;
}

.grid-widget .grid-subtotal-row td {
    font-weight: 600;
    border-top: 1px solid #dee2e6;
    background-color: white ;
}

/* Pivot agent columns: full name without ellipsis (vertical) */
.k-grid-header th.pivot-header-vertical {
    vertical-align: bottom;
    height: 160px;
}
.k-grid-header th.pivot-header-vertical .k-column-title,
.k-grid-header th.pivot-header-vertical .k-link,
.k-grid-header th.pivot-header-vertical .k-cell-inner {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    text-overflow: clip !important;
    overflow: visible !important;
    max-width: none;
    line-height: 1.15;
}

/* Pivot agent columns: multi-line wrap (Sisense-style) */
.k-grid-header th.pivot-header-wrap {
    vertical-align: top !important;
}
.k-grid-header th.pivot-header-wrap .k-cell-inner,
.k-grid-header th.pivot-header-wrap .k-link {
    align-items: flex-start;
    white-space: normal !important;
}
.k-grid-header th.pivot-header-wrap .k-column-title {
    white-space: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
    word-break: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
    min-width: 0;
    flex-shrink: 1;
}

/* Agent rapport: Site > Category nested header pivot */
.agent-rapport-by-site-category .k-grid-header th {
    text-align: center;
    vertical-align: middle;
}
.agent-rapport-by-site-category .k-grid-header th.agent-rapport-site-header .k-column-title {
    font-weight: 600;
}
.agent-rapport-by-site-category .k-grid-header th .k-column-title {
    white-space: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
    line-height: 1.2;
}

.cases-closed-by-category .k-grid td {
    line-height: 18px;
}

/*
 * Dashboard rows: equal-height widget cards (same row) + scroll inside card when content overflows.
 * Row gets .equal-height-row from app.js RenderWidgets.
 */
.equal-height-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.equal-height-row > [class*="col-"] > .single-features {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.equal-height-row .single-features > .widget-card-head {
    flex-shrink: 0;
}

.equal-height-row .single-features > .widget-card-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.equal-height-row .single-features > .widget-card-body > [class*="col-"] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.equal-height-row .single-features .widget-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;   /* prevents width jump when scrollbar appears */
    -webkit-overflow-scrolling: touch;
}

/* Let widget root participate in flex layout inside scroll area */
.equal-height-row .widget-content > .widget {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.apexcharts-canvas > svg{
    background-color:transparent!important;
}

/* Static HTML section headers: no card chrome when there is no title/menu */
.single-features:has(.widget-card-body .html-widget) .widget-card-head.widget-card-head--empty-title:not(:has(.widget-menu)):not(:has(.debug-container)) {
    border-bottom:0px;
}

/* Dashboard widget tiles: header row (JSON title/name) + toolbar — markup from app.js */
.single-features .widget-card-head {
    margin: -28px -28px 12px -28px;
    padding: 14px 28px 12px;
    border-top: 4px solid var(--primary-color, #649a3d);
    border-bottom: 1px solid #e9ecef;
    border-radius: 20px 20px 0 0;
    background: #fff;
}

.single-features .widget-card-head-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    width: 100%;
}

.single-features .widget-card-title {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.32px;
    line-height: 1.35;
    color: #3f454f;
    text-align: left;
}

.single-features .widget-card-head--empty-title .widget-card-title {
    display: none;
}

.single-features .widget-card-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    align-self: center;
    gap: 4px;
    margin-left: auto;
}

.single-features .widget-card-menu-host,
.single-features .widget-card-debug-host {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    align-self: center;
}

.single-features .widget-card-actions .widget-menu,
.single-features .widget-card-actions .debug-container {
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
}

.single-features .widget-card-actions .widget-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.single-features .widget-card-actions .widget-menu > div {
    position: relative;
    cursor: pointer;
    margin-left: 8px;
}

.single-features .widget-card-actions .widget-menu > div:first-child {
    margin-left: 0;
}

.single-features .widget-card-actions .widget-menu .btn-details {
    color: inherit;
}

.widget-details-modal .widget-details-content {
    min-height: 120px;
}

.widget-details-modal .widget-details-content .widget {
    width: 100%;
}

.single-features .widget-card-actions .debug-container .debug {
    position: relative;
}

.single-features .widget-card-actions .debug .widget-filters {
    top: 100%;
    right: 0;
    margin-top: 4px;
}

.widget-debug-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 20px;
    background-color: #fff8e1;
    border-bottom: 1px solid #ffc107;
    color: #5c4a00;
    font-size: 13px;
    line-height: 1.4;
    z-index: 1000;
}

.widget-debug-banner-message {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 200px;
}

.widget-debug-banner-message i {
    font-size: 16px;
    flex-shrink: 0;
}

.widget-debug-banner-disable {
    flex-shrink: 0;
    white-space: nowrap;
}