/**************
*
*   Edit Panel Title
*
***************/
.edit-panel-header{
    Display: flex;
    flex-direction: column;
    min-height: 65px;
}
.edit-header-top  {
    Display: flex;
    flex-direction: row;
    z-index: 100;
    max-height: 7px;
}
.edit-header-image{
    height: 15px;
    background: #FF602C;
    width: 100%;
}
.edit-header-img   {
    max-width: 325px;
    width: 100%;
    z-index: 101;
}
.edit-header-body {
    Display: flex;
    z-index: 102;
    justify-content: space-between;
}
.edit-header-lhs {
    Display: flex;
    margin-left: 10px;
    width: 50%;
}
.edit-title-img {
    Display: flex;
    height: 25px;
    width: 25px;
    padding-top: 3px;
}

.edit-header-name {
    display: flex;
    font-family: 'Bekaert Text Medium',open-sans,sans-serif,helvetica,arial !important;
    font-size: 18px;
    padding-left: 5px;
    padding-top: 8px;
    padding-bottom: 2px;
    color: #fff
}

#site_despatch_map_edit_dialog_edit-txt, #forecast_results_edit_dialog_edit-txt {
    min-width: 176px;
}

.edit-header-rhs {
    Display: flex;
    width: 69%;
    margin-top: 15px;
    padding-left: 50px;
    color: #0A344F;
    font-weight: bold;
}

.edit-hide-icon {
    display:none;
}
/**************
*
*   Edit Panel
*
***************/
#formEdit{
    height:100%;
}

.edit-control-label {
    vertical-align: top;
    color: #0A344F;
    display: flex;
    font-family: open-sans,sans-serif,helvetica,arial; 
}

.edit-control-label-blank {
    vertical-align: top;
    color: black;
    display: flex;
    width: 50%;
}

.edit-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.edit-panel-stack {
    display: table;
}

.edit-spacer-h {
    width: 5px;
    background-color: white;
    display: table-cell;
}

.edit-spacer-v {
    height: 1px;
    display: table-cell;
}

.edit-control {
    background-color: #C1DEEE;
    border-style: solid;
    border-width: 1px;
    border-color: #69A5BD;
    resize: none;
}

.edit-control-disabled {
    background-color: #F5F4F2;
    border-style: solid;
    border-width: 1px;
    border-color: darkgray;
    resize: none;
}

.edit-panel input[type="text"], .edit-panel input[type="password"], .edit-panel input[type="number"], .edit-panel select, .edit-panel textarea {
    background-color: #C1DEEE;
    border-style: solid;
    border-width: 1px;
    border-color: #69A5BD;
    resize: none;
    width: 50%;
    font-family: open-sans,sans-serif,helvetica,arial;
}

input {
   cursor: text;
}

#CurrentItem_CustomerMaterialCode {
    width: 66.8% !important;
}

.edit-input-container .date-container{
    width: 50%;
}

.edit-panel input[type="text"]:disabled, .edit-panel input[type="password"]:disabled, .edit-panel input[type="number"]:disabled, .edit-panel select:disabled, .edit-panel textarea:disabled {
        background-color: #F5F4F2;
        border-style: solid;
        border-width: 1px;
        border-color: darkgray;
        resize: none;
        width: 50%;
    }



.field-spacer {
    min-height: 3px;
}

.edit-control-hidden {
    display: none;
}

.field-spacer-15 {
    min-height: 15px;
}

.field-spacer-textarea {
    height: 10px;
}

.edit-panel .edit-list {
    margin-top: 1px;
    display: inline-block;
    background-color: #C1DEEE;
    border-style: solid;
    border-width: 1px;
    border-color: #69A5BD;
}

.edit-panel-border {
    display: flex;
    background-color: white;
    border-top: transparent solid 2px;
    border-bottom: transparent solid 2px;
    justify-content: center;
    overflow: hidden;
    
    height: 100%;
}

.edit-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 3px;
    margin-bottom: 3px;
    outline: none;
}

.ui-dialog .ui-dialog-content{
    overflow: hidden;
}



.edit-panel-Add-Attachment-button{
    width: 25px;
    height: 25px;
    background: url(../Content/img/Add-attachment.png) no-repeat;
    cursor: pointer;
}

.edit-panel-Add-Attachment-button:hover{
    background: url(../Content/img/Add-attachment-focus.png) no-repeat;
}

  .edit-panel-Add-Attachment-button
, .edit-panel-Add-Attachment-button:hover{
    background-size: 25px 25px;
    margin-left: auto;
    margin-right: 10px;
}

.edit-panel-Add-button{
    width: 25px;
    height: 25px;
    background: url(../Content/img/Add.png) no-repeat;
    cursor: pointer;
}

.edit-panel-Add-button:hover{
    background: url(../Content/img/Add-focus.png) no-repeat;
}

  .edit-panel-Add-button
, .edit-panel-Add-button:hover{
    background-size: 25px 25px;
}

/**************
*
*   Edit Panel tabs
*
***************/
.edit-panel-ropes {
    display: flex;
    flex-direction: column;
}

.edit-panel-attachments{
    display: flex;
    flex-direction: column;
}

.edit-panel-details{
    display: flex;
    flex-direction: column;
}

.edit-panel-hide-tab{
    display: none;
}

.edit-panel-tabs-container{
    display:flex;
    flex-direction: row;
    justify-content: space-around;
}

.edit-panel-tab-menu{
    display: flex;
    height: 35px;
    width: 100%;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background:#EBE9E5;
    color: #0A344F;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    border-bottom: 4px solid #fff;
}

.edit-panel-tab-menu:hover{
    cursor: pointer;
    background: #FF602C;
    color: #fff;
    text-decoration: underline;
    border-bottom: 4px solid #fff;
}

.selected-rope-title {
    color: #0A344F;
    font-weight: bold;
}

.rope-selection{
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.selected-rope-name{
    padding: 10px;
}

.comments-label {
    color: #0A344F;
    font-weight: bold;
}

/**************
*
*   Edit Panel Colour changes for different views
*
***************/

.ui-dialog .border-ADD {
    border-color: #74A900;
}

.ui-dialog .border-EDIT {
    border-color: #0A344F;
}

.ui-dialog .border-DELETE {
    border-color: #E23E2F;
}

.ui-dialog .border-VIEW {
    border-color: #01ADEF;
}

  .edit-panel-tab-ADD-selected
, .edit-panel-tab-ADD-selected:hover{
    background: #74A900;
    border-bottom: 4px solid #74A900;
    color: #fff;
    text-decoration: underline;
    cursor: default;
}
  .edit-panel-tab-EDIT-selected
, .edit-panel-tab-EDIT-selected:hover{
    background: #0A344F;
    border-bottom: 4px solid #0A344F;
    color: #fff;
    text-decoration: underline;
    cursor: default;
}
  .edit-panel-tab-DELETE-selected
, .edit-panel-tab-DELETE-selected:hover{
    background: #E23E2F;
    border-bottom: 4px solid #E23E2F;
    color: #fff;
    text-decoration: underline;
    cursor: default;
}
  .edit-panel-tab-VIEW-selected
, .edit-panel-tab-VIEW-selected:hover{
    background: #01ADEF;
    border-bottom: 4px solid #01ADEF;
    color: #fff;
    text-decoration: underline;
    cursor: default;
}

/* Issue #756 */
input[id$='_SerialNumber'] {
    width: 96% !important;
}

/**************************************
    Machine Activity Edit specific
**************************************/
.edit-row-columns {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.ActivityEdit-row-col-top-left {
    width: 45%;
}

.ActivityEdit-row-col-top-right {
    width: 55%;
}

.ActivityEdit-row-col-bottom-left {
    width: 40%;
}

.ActivityEdit-row-col-bottom-right {
    width: 60%;
}

/* Mobile */
@media only screen and (max-width: 1060px) {
    .edit-inputs-container{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
        align-items: flex-start;
    }

    .edit-input-container{
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
    }

    .edit-header-top {
        max-height:3px;
    }
 
/*    .edit-header-lhs {
        width:100%;
    }*/

    .edit-header-rhs{
        justify-content: center;
        align-self: center;
        margin-bottom: 3px;
        margin-top: 11px;
        width: 100%;
        padding-left: 0;
    }

    .edit-header-body{
        flex-direction: column;
    }

    .edit-control-label {
        width: 50%;
    }

    .edit-panel  .date-container input[type="text"]
    , .edit-panel  .date-container input[type="text"]:disabled{
        width:88%
    }

    /**************************************
    Machine Activity Edit specific
    **************************************/
    .edit-row-columns {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .ActivityEdit-row-col-top-left {
        width: 100%;
    }

    .ActivityEdit-row-col-top-right {
        width: 100%;
    }

    .ActivityEdit-row-col-bottom-left {
        width: 100%;
    }

    .ActivityEdit-row-col-bottom-right {
        width: 100%;
    }

}

    .edit-input-col-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding-left: 0px;
    }

/*Desktop*/
@media only screen and (min-width: 1060px){
    /********
    *
    * Edit Panel Inputs
    *
    *********/
    .edit-inputs-container{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .edit-input-container {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .edit-inputs-container .edit-input-container {
        margin-right: 5px;
    }

    .edit-inputs-container .edit-input-container:last-of-type {
        margin-right: 0;
    }

    .edit-inputs-container .edit-input-container {
        width: 50%
    }

    .edit-control-label {
        width: 32%;
    }

    .edit-panel input[type="text"]:disabled, .edit-panel input[type="password"]:disabled, .edit-panel input[type="number"]:disabled, .edit-panel select:disabled, .edit-panel textarea:disabled{
        display: flex;
        align-self: center;
        width: 100%;
        height: 100%;
    }

    .edit-panel input[type="text"], .edit-panel input[type="password"], .edit-panel input[type="number"], .edit-panel select, .edit-panel .date-container {
        display: flex;
        align-self: center;
        width: 68%;
        /* height: 100%; */
    }

    .edit-panel .date-container input[type="text"], .edit-panel .date-container input[type="text"]:disabled {
        display: flex;
        width: 94%
    }
    
}

.save-icon{
    background: url(../Content/img/Clear.png) no-repeat;
    background-size: 25px 25px;
    min-width: 25px;
    min-height: 25px;
}

.edit-panel::-webkit-scrollbar {
    width: 10px;
    background: transparent; 
}

.edit-panel::-webkit-scrollbar-thumb {
    background: #01ADEF;
}
    


/*************
*
* Machine inspection specific
*
**************/

.edit-panel-table-container{
    display: flex;
    flex-direction: row;
    width:100%;
}

.edit-panel-table-container .edit-control-label{
    width:50%;
}

  .edit-panel-table-container input[type="text"]
, .edit-panel-table-container  input[type="number"]
, .edit-panel-table-container  select
, .edit-panel-table-container .ui-spinner{
    width:50%;
}

#div_measurements {
    width: 100%;
}

/*********************************************
    Mach Activity & Inspection Dialog specific
*********************************************/
#CurrentItem_CropLength, 
#CurrentItem_DowntimeHours {
    width: 150px;
}

#CurrentItem_RopeRangePeriod {
    width: 300px;
    min-height: 20px;
}

#CurrentItem_ActivityDate {
    width: 249px;
    padding-left: 4px;
}

#CurrentItem_Type_ShortCode,
#CurrentItem_Circumstance_Id,
#CurrentItem_Reason_Id,
#CurrentItem_DigCondition_Id,
#CurrentItem_DigMode_Id,
#CurrentItem_ConductedBy_Id {
    width: 255px;
}

#CurrentRopes_RangeLabel_spacer {
    height: 5px;
}

/*Hide the tabs in the Activity and Inspection edit screens */
#activity-edit-panel-tabs-container,
#inspection-edit-panel-tabs-container {
    display: none !important;
}

/******************************************
    Mach Downtime Dialog specific
*****************************************/
#machine_downtime_edit_dialog_edit-header-EDIT-rhs {
    padding-left: 110px;
}

td[aria-describedby=machine_downtime_edit_activities_grid_ActivityId] select {
    width: 152px;
}

.right-align {
    justify-content: flex-end;
    padding-right: 5px;
}

/******************************************
    Mach Configuration edit specific
*****************************************/
#CurrentItem_Material_ShortDescription {
    width:70%;
    padding-left:4px;
}

/******************************************
    Mach Configuration Group edit specific
*****************************************/
#formEditGroup {
    height: 100%;
}


/****************************************
Material Combobox - Auto complete
*****************************************/
    .material-combobox {
        position: relative;
        display: inline-block;
    }
    
    ul.ui-autocomplete {
        list-style-type: none;
        padding: 0px;
        margin: 0px;
        background-color: #C1DEEE;
        border: 2px solid black;
        background-image: none;
        border-radius: 0px;
    }

    .material-combobox-toggle {
        position: absolute;
        top: 0;
        bottom: 0;
        margin-left: -1px;
        padding: 0;
        background-color: #d4d0c8;
        width: 18px;
        border-color: #404040;
    }

    .material-combobox-input {
        margin: 0;
        border: 1px solid #69A5BD;
        background-color: #C1DEEE;
        width: 176px;
        padding: 0px;
    }

    ul.ui-autocomplete li a {
        padding-left: 2px;
    }

    span.material-combobox input:disabled {
        background-color: #F5F4F2;
        border-style: solid;
        border-width: 1px;
        border-color: darkgray;
        resize: none;
    }

    ul.ui-autocomplete li.ui-menu-item {
        border: none;
        border-width: 0px;
        border-radius: 0px;
    }

    ul.ui-autocomplete li.ui-menu-item:hover {
        background-color: #dadada;
        border: none;
        border-width: 0px;
        border-radius: 0px;
    }

    ul.ui-autocomplete:hover li:first-child,
    ul.ui-autocomplete:hover li,
    ul.ui-autocomplete:hover li a,
    ul.ui-autocomplete li.ui-menu-item:hover a {
        border: 0px;
    }