/* Global Workflow Table Components
–––––––––––––––––––––––––––––––––––––––––––––––––– */


/* 
    Reference -- \stack\components\workflow\workflow.py 

*/



/* Procedure Button
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.workflow_button {
    background-color: #4E5D6C;
    color: white;
    font-size: 14px;
    border: none;
    padding: 5px;
    text-align: left;
    text-decoration: none;
    display: inline-block;
    align-content: center !important;
    justify-content: flex-start !important;
    width: 700px;
    border-radius: 6px;
    letter-spacing: -0.02em;

    height: 35px;
    line-height: 24px !important;

    margin-left: 5px;
    margin-right: 5px;
    margin-top: 10px;
}

.workflow_button:hover {
    background-color: #4C9BE8;
}



/* Assignee Dropdown
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.workflow_assignee {
    font-size: 14px !important;
    color: black !important;
    width: auto !important;
    /* height: auto !important; */
    /* max-height:fit-content !important; */
    height: 35px;
    text-align: center !important;
    margin: 2px !important;
}


/* KEEP! In order for dropdown component to appear above everything else */
.workflow_assignee .Select-menu-outer {
    z-index: 1000;
    position: absolute;
}




/* Status Dropdown e.g., "In Progress", "Not Started", "Completed"
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Reference --
\stack\components\workflow\_workflow_style.py */


.workflow_status {
    font-size: 14px !important;
    margin: 2px !important;
    padding-top: 3px !important;
}

/* Status Dropdown -- General Overrides
    –––––––––––––––––––––––––––––––––––––––––––––––––– */

.workflow_status Select-placeholder,
.Select--single>.Select-control .Select-value {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.workflow_status,
.Select--single>.Select-control .Select-value,
.Select-placeholder {
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: none;
}

/* user input box */
.workflow_status>.Select-control {
    border: none;
    background-color: #2C4155;
}

/* select arrow */
.workflow_status .Select-arrow {
    display: none !important;
}

/* Status Dropdown -- Dropdown Menu Overrides
    –––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Workflow Status Dropdown Menu Override */

.workflow_status .Select span {
    background-color: #2B4155;
}

.workflow_status>VirtualizedSelectFocusedOption {
    width: 100%;
}

.workflow_status .Select-menu-outer {
    background-color: #0F2537;
    border-radius: 4px;
    border: none;
    z-index: 1;
    /* z-index should be < header and calendar pop up */
}



/* Status Dropdown -- When Dropdown Selection is Not-Allowed Overrides
    –––––––––––––––––––––––––––––––––––––––––––––––––– */

.workflow_status,
.Select.is-disabled>.Select-control {
    border: none;
    background-color: #2C4155;
    appearance: none;
    cursor: not-allowed;
}

.workflow_status,
.Select.is-disabled>.Select-control>.Select-value {
    cursor: not-allowed;
}

.workflow_status,
.Select.is-disabled {
    cursor: not-allowed;
}



/* Due Date -- Text Input / Non-Editable
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.workflow_due_date_text_input {
    background-color: white;
    color: black;
    font-size: 13px;
    border-radius: 6px;
    height: 36px;
    padding: 6px;
    border: none;
    margin: 0;
    text-align: center;
}

/* Due Date -- Single Date / Editable
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.workflow_container .DateInput_input {
    padding: 0px;
    cursor: pointer;
}

.workflow_container .DateInput {
    width: 124px;
    padding-left: 10px;
}

.workflow_container .add_date_component {
    margin-bottom: 1px;
}

.workflow_container .add_date_component .DateInput_input {
    font-size: 14px;
}


/* Info Button
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.info_button {
    background-image: url("/assets/icons/info_grey.svg");
    background-size: contain;
    background-repeat: no-repeat;

    padding: 0px;
    object-fit: contain;
    height: 20px;
    width: 20px;
    appearance: none;
    background-color: #2C4155;
    margin: 3px;
    border: none;

    display: inline-block;
    justify-content: center;
    align-items: center;
}

.info_button:hover {
    background-image: url("/assets/icons/info.svg");
    background-size: contain;
    background-repeat: no-repeat;

    padding: 0px;
    object-fit: contain;
    height: 20px;
    width: 20px;
    appearance: none;
    background-color: #2C4155;
    margin: 3px;
    border: none;

    display: inline-block;
    justify-content: center;
    align-items: center;
}

/* note: uses right_pane class */