/*************************/
/* LAYOUT                */
/*************************/

.teams-bar { width: 16%; float: left; font-size: 0.9em !important; }
.projects-bar { width: 55%; float: left;}
.center-content { width: 29%; float: left; }
.teams-bar .org-logo { padding: 10% !important }
.modal-width-large { width: 98%; }
.modal-width-medium { width: 95%; }
.modal-width-small { width: 90%; }

@media (min-width: 768px) {
    .teams-bar { width: 6%; font-size: .75em !important; }
    .projects-bar { width: 25%; font-size: .85em !important; }
    .center-content { width: 69%; font-size: .85em !important; }
	.modal-width-large { width: 90%; }
	.modal-width-medium { width: 70%; }
	.modal-width-small { width: 60%; }
    .med-flex-block { display: flex; }
}
@media (min-width: 992px) {
    .teams-bar { width: 5%; font-size: .75em !important; }
    .projects-bar { width: 18%; font-size: .85em !important; }
    .center-content { width: 77%; font-size: .85em !important; }
	.modal-width-large { width: 90%; }
	.modal-width-medium { width: 80%; }
	.modal-width-small { width: 50%; }
    .col-md-3.issue-phase-list { width: 20%; }
    .col-md-9.issue-center-content { width: 80%; }
}
@media (min-width: 1200px) {
    .teams-bar { width: 5%; font-size: .75em !important;}
    .projects-bar { width: 15%; font-size: .95em !important;}
    .center-content { width: 80%; font-size: .95em !important;}
	.modal-width-large { width: 75%; max-width: 1024px; }
	.modal-width-medium { width: 60%; }
	.modal-width-small { width: 40%; }
}
@media (min-width: 1600px) {
    .teams-bar { width: 4%; }
    .projects-bar { width: 14%; }
    .center-content { width: 82%; }
	.modal-width-large { width: 70%; max-width: 1024px; }
	.modal-width-medium { width: 50%; }
	.modal-width-small { width: 30%; }
}
@media (min-width: 2500px) {
    .teams-bar { width: 3%; }
    .projects-bar { width: 11%; }
    .center-content { width: 84%; }
	.modal-width-large { width: 60%; max-width: 1024px; }
	.modal-width-medium { width: 40%; }
	.modal-width-small { width: 20%; }
}

/***********************/
/* TABLE Classes         */
/***********************/
.table>thead>tr>th {
    font-size: 14px;
    text-transform: uppercase;
}
.table {
	margin-bottom: 0px;
	background: var(--bg-secondary);
}
.not-active-row td,
.not-active-row td a {
	color: darkgrey !important;
}

/* Fixing table alignment in issue modals */
.middle-modal .table-hover>tbody>tr:hover {
    background-color: transparent;
}
.middle-modal .table>tbody>tr>td:first-child {
    white-space: nowrap;
    padding-left: 0;
    padding-right: 16px;
}
.table-bordered>tbody>tr>td, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>td, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>thead>tr>th {
    border: 0.5px solid var(--border-tertiary);
}

/***********************/
/* TITLE BAR           */
/***********************/

.title-bar-button {
	margin-top: 25px;
}

/***********************/
/* ACTION ICONS        */
/***********************/

.action-icon:hover {
	opacity: 0.7;
}
.assign-to-icon {
	width: 16px;
}

/******************************/
/* COMMENTS                   */
/******************************/

/*.comment-box .edit-comment,
.comment-box .delete-comment {
	opacity: 0.1;
}
.comment-box .new-comment {
	opacity: 1;
}
.comment-box {
	border-bottom: 1px solid #fafafa;
}
.comment-box .comment {
	padding: 10px;
	background: white;
}
.comment-box .comment:hover {
	background: #fafafa;
}
#comment-new {
	border-bottom: none;
}
#comment-new .comment {
	background: none;
}
.comment-box .note-editor {
	border: 2px solid #0d99ff;
	box-shadow: none;
	width: 125%;
    left: -61px;
    bottom: -27px;
}
.comment-box .note-editor .note-status-output{
	display:none;
}
.comment-box .note-editor .note-myCustomGroup .new-comment{
    left: 301px;
    font-size: 11px;
    border-radius: 5px;
    text-transform: none;
    max-height: 27px;
    min-width: 93px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.comment-box  #comment-form-new{
	position: fixed;
    bottom: 0;
    width: 544px;
    left: 110px;
    margin-bottom: 27px;
}*//* Phase Field Editor Tabs - Active state border */
.phase-field-editor-tabs li.active a {
    border-bottom: 2px solid #337ab7 !important;
}


/****************************************/
/* PHASEFIELD TABLE FIELD PREVIEW      */
/***************************************/

.table-field-preview thead th {
    text-transform: none !important;
}

.table-field-preview-add-column {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.table-field-preview-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

/*******************************************/
/*   CARD EDIT CSS                         */
/*******************************************/
.table-field-container .jexcel {
    font-family: inherit;
    padding-left: 0 !important;
    padding-bottom: 0 !important;
    width: 100% !important;
}


.table-field-container .jexcel .jexcel_row,
.table-field-container .jexcel thead td {
    background-color: #f9faff !important;
    color: var(--color-secondary) !important;
    padding: 10px 8px !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}
.table-field-container .jexcel tbody td {
    font-size: 1.2em !important;
    color: var(--color-secondary);
    padding: 8px !important;
    font-family: 'Proxima', sans-serif;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.table-field-container.has-row-headers .jexcel tbody tr td:first-child {
    background-color: #f9faff !important;
    font-weight: 500 !important;
    font-size: 0.75em !important;
}


.table-field-container  .jexcel_content {
    padding-bottom: 0 !important;
    padding-right: 0 !important;
}

.card-edit-table-container .jexcel td.editor,
.card-edit-table-container .jexcel td.jexcel_dropdown {
    overflow: visible !important;
}

.card-edit-table-container .jexcel tbody td.jexcel_dropdown {
    background-color: #fff !important;
    background-position: top 50% right 8px !important;
    color: var(--color-secondary) !important;
    cursor: pointer;
    font-size: 1em !important;
    height: 34px;
    padding: 8px 30px 8px 10px !important;
}

.card-edit-table-container .jexcel tbody td.jexcel_dropdown:hover {
    background-color: #fff !important;
}

/* No ::before content needed for placeholders as it's handled by JS */
.card-edit-table-container .jexcel tbody td.editor {
    background-color: #fff !important;
    box-shadow: none;
    padding: 0 !important;
}

.card-edit-table-container .jexcel .jdropdown {
    font-family: inherit;
}

.card-edit-table-container .jexcel .jdropdown-header {
    background-color: #fff;
    color: var(--color-secondary);
    font-size: 1em;
    line-height: 34px;
    padding: 0 28px 0 10px !important;
}

.card-edit-table-container .jexcel .jdropdown-container,
.card-edit-table-dropdown-portal {
    background-color: #fff;
    border: 1px solid lightgrey;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    margin-top: 1px;
    position: fixed !important;
    z-index: 99999 !important;
}

.table-field-container .jexcel tbody tr:hover,
.table-field-container .jexcel tbody tr.jexcel_active {
    z-index: 100 !important;
}

.card-edit-table-container .jexcel .jdropdown-content,
.card-edit-table-dropdown-portal .jdropdown-content {
    background-color: #fff;
    border: 0;
    max-height: 130px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.card-edit-table-container .jexcel .jdropdown-content::-webkit-scrollbar,
.card-edit-table-dropdown-portal .jdropdown-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.card-edit-table-container .jexcel .jdropdown-item,
.card-edit-table-dropdown-portal .jdropdown-item {
    color: var(--color-secondary);
    font-size: 1em;
    min-height: 34px;
    padding: 8px 10px;
}

.card-edit-table-container .jexcel .jdropdown-item:hover,
.card-edit-table-container .jexcel .jdropdown-cursor,
.card-edit-table-container .jexcel .jdropdown-selected,
.card-edit-table-dropdown-portal .jdropdown-item:hover,
.card-edit-table-dropdown-portal .jdropdown-cursor,
.card-edit-table-dropdown-portal .jdropdown-selected {
    background-color: #f5f5f5;
    background-image: none;
    color: var(--color-secondary);
}

.card-edit-table-container .jexcel .jdropdown-item:first-child,
.card-edit-table-dropdown-portal .jdropdown-item:first-child {
    color: #8a8a8a;
    font-style: normal;
}

.phase-field-record .table-col-type-select-wrap {
    width: 118px;
}

.phase-field-record .table-col-type-select-wrap .select2-container {
    width: 118px !important;
}

.phase-field-record .table-col-type-select-wrap .select2-container--default .select2-selection--single {
    background: #fff;
    border: 1px solid lightgrey;
    border-radius: 4px;
    height: 35px;
}

.phase-field-record .table-col-type-select-wrap .select2-selection__rendered {
    color: var(--color-secondary) !important;
    font-size: .88em;
    line-height: 33px !important;
    padding-left: 10px !important;
    padding-right: 24px !important;
}

.phase-field-record .table-col-type-select-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 33px;
}

.phase-field-record .table-col-type-select-wrap .select2-dropdown {
    border-color: lightgrey;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
}

.phase-field-record .table-col-type-select-wrap .select2-results__option {
    color: var(--color-secondary);
    font-size: .88em;
    padding: 7px 10px;
}

.table-field-container .jexcel_content::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.table-field-container .jexcel_content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

#table-col-headers-list .select2-selection--single {
    padding-top: 0 !important;
}

#table-col-headers-list .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #f5f5f5;
}


/* Row header cells */
.table-field-container .jexcel td.jexcel_row {
    width: 150px !important;
    min-width: 150px !important;
}

/* Column group (important for layout stability) */
.table-field-container .jexcel col:first-child {
    width: 150px !important;
}

.table-field-container .jexcel td.jexcel_dropdown {
    font-size: 16px !important;
}

.card-edit-table-container .jexcel_content {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.card-edit-table-container .jexcel_content::-webkit-scrollbar {
    display: none !important;
}

.hide-scrollbar {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
    -moz-scrollbar-width: none !important;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
}

/* Hide radio/checkbox icons specifically for the --select-- placeholder option */
.jdropdown-container .jdropdown-item[data-text="--select--"]::before,
.jdropdown-container .jdropdown-item[data-text="--select--"]::after {
    display: none !important;
}

/* Custom injected radio button styling for single-choice dropdown columns */
.table-field-radio-dropdown .jdropdown-item {
    position: relative;
    padding-left: 36px !important;
}

.table-field-radio-dropdown .jdropdown-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--color-tertiary);
    background-color: #fff;
    box-sizing: border-box;
}

.table-field-radio-dropdown .jdropdown-item.jdropdown-selected::before {
    border: 4px solid var(--color-primary);
}

/* Custom injected checkbox styling for multi-choice dropdown columns */
.table-field-checkbox-dropdown .jdropdown-item {
    position: relative;
    padding-left: 36px !important;
}

.table-field-checkbox-dropdown .jdropdown-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 2px;
    border: 1px solid var(--color-tertiary);
    background-color: #fff;
    box-sizing: border-box;
}

.table-field-checkbox-dropdown .jdropdown-item.jdropdown-selected::before {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.table-field-checkbox-dropdown .jdropdown-item.jdropdown-selected::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
}