﻿.custom-table {
    width: 100%;

    border-collapse: collapse;
    white-space: nowrap;
}

.table-container > div {
    width: 100%;
    overflow-y: visible;
    overflow-x: auto;
}

/* edit box con selezione all'interno della issel grid*/
.custom-table .linkedTextboxEditIsselGrid {    
    margin-right: 2px;
    min-width: 50px;
    border: 1px solid var(--MRO_BorderColor);
}

.custom-table .noteColumn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: all;
}


.custom-table .editableText, .custom-table .editableTextArea {
    width: 98%;
    resize: vertical;
    border: 1px solid var(--MRO_BorderColor);
    height: 25px;
    min-width:200px;
    user-select: all;
}

/* bottoni sulla riga e sulla testata della griglia*/
.btnGridInRow, .btnToolbar {
    width: var(--icons-size-medium);

    flex-shrink: 0;
}

.custom-table tr.SelectedRow {
    background-color: #e0ff95f5 !important;
}

.custom-table td.IsselGridCellSelTextAll {
    user-select: all;
}

.IsselGridHeaderToolTipDate {
    position: relative; /* making the .tooltip span a container for the tooltip text */    
}

.IsselGridHeaderToolTipDate:before {
    content: attr(abbr); /* here's the magic  */
    position: absolute;
    /* vertically center */
    top: 80%;
    transform: translateY(0%);
    /* move to right */
    left: auto;
    margin-left: 15px; /* and add a small left margin */
    /* basic styles */
    width: 100px;
    padding: 3px;
    border-radius: 0px;
    background: #fff;
    color: #000;
    text-align: center;
    border-color: #000;
    border: 1px solid;
    display: none; /* hide by default */
}

.IsselGridHeaderToolTipDate:hover:before {
    display: block;
}

.button-on_row_grid {
    height: 24px;
}

/* style colonna nel caso si abbiamo 4 colonne */
.columnFieldFour {
    width: calc(25% - 10px) !important;
    margin-right: 10px;
}

.custom-table td.IsselGridCellSelTextNone {
    user-select: none;
}

.custom-table td .hover {
    outline: 1px solid var(--color-black-900);
    /* warning: if in future the style of the td changes you might want to remove this border-radius */
    border-radius: 5px;
}

.containerTitoloGriglia {
    width: 60%;
}



/* Stile per i titoli della griglia (che sono link quando abilitato l'ordinamento)*/
.custom-table th a {
    color: var(--MRO_ForeColor);
}

/* imposto per l'header della griglia il padding per mantenere le colonne distanziate*/
.custom-table th {
    background-color: var(--MRO_gridTitleBGColor);
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 10px;
    padding-right: 10px;
}

/* imposto per le celle della griglia il padding per mantenere le colonne distanziate*/
.custom-table td {
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 10px;
    padding-right: 10px;
}


.IsselEmptyRow td {
    background-color: var(--MRO_gridTitleBGColor);
    font-weight: normal;
}

input[type=date].datepickerGrid::-webkit-inner-spin-button,
input[type=date].datepickerGrid::-webkit-clear-button {
    -webkit-appearance: none;
    display: none;
}

.custom-table .datepickerGrid {
    width: 25px;
    margin-left: 2px;
    vertical-align: middle;
    border: 1px solid var(--MRO_BorderColor);
}

/* Stili per la toolbar della griglia*/
.containerBtnToolbar {
    margin-bottom: var(--tables-toolbar-vertical-spacing);

    display: flex;
    align-items: center;

    gap: 0.5rem;
    flex-wrap: wrap;
}

.containerBtnToolbar .dropdownBtn .btn {
    background-color: transparent;
    border: none;
    outline: none;
}

.containerToolbarIsselGrid .containerBtnToolbar .dropdownBtn .btn:focus {
    box-shadow:none;
}

.btn-toolbar-configurator-panel {
    max-width: 37.5rem;

    display: flex;
    flex-direction: column;
}

.btn-toolbar-configurator-panel .col {
    min-height: auto;
}

/* Font per titolo griglia. */
.labelInToolbar {
    font-size: 0.9125rem;
    color: var(--MRO_BackGroundColorTitleBar);
}

.IsselNordGridBasechangeTable {
    width: 100%;
}

.Isselpagination {
    color: black;
}

/* Numero pagina selezionata in grassetto*/
.Isselpagination span {
    font-weight: bold;
    text-decoration: underline;
}

/* Stili per le icone della paginazione*/
.Isselpagination * input[type=image] {
    width: 16px;
    height: 16px;
}

/* Stili per i check in cella*/
IsselGridCellSelTextNone input[type=checkbox] {
    text-align: center;
    /* center checkbox horizontally */
    vertical-align: middle;
    /* center checkbox vertically */
}

.grid-row-icon-box {
    display: flex;
    gap: 10px;
}

.grid-row-icon-box .dropdown {
    display: flex;
}

.grid-row-icon-box .btn {
    background-color: transparent;
    background-image: url(/style/icons/iconMRO/GeneralIcon/threepointsv.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.grid-row-icon-box .dropdown-menu {
    min-width: max-content; /* Attenzione non retrocompatibile con browser pre Dicembre 2021 */
    box-shadow: 9px 9px 5px 0px rgba(26,16,82,0.29);
}

.grid-row-icon-box .dropdown-item {
    height: 36px;
}
