/* Custom Confirmation Status Dropdown Styling */

/* Main dropdown container */
.confirmation-status-dropdown-list {
    display: none;
    position: absolute;
    z-index: 9999;
    border: 2px solid #118dcf;
    background: white;
    font-size: 13px;
    font-family: inherit;
    min-width: 200px;
    max-width: 250px;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(17, 141, 207, 0.2);
    overflow: visible;
    direction: rtl;
    text-align: right;
    transition: all 0.15s ease-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Arrow pointing to the cell */
.dropdown-arrow-right {
    position: absolute;
    top: 10px;
    right: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid #118dcf;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    z-index: 10000;
}

/* Dropdown option styling */
.confirmation-status-option {
    padding: 5px 10px;
    font-size: 13px;
    direction: rtl;
    text-align: right;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    color: #333;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.confirmation-status-option:last-child {
    border-bottom: none;
}

.confirmation-status-option:hover {
    background-color: #f0f8ff !important;
    color: #118dcf !important;
}

.confirmation-status-option:active {
    background-color: #e3f2fd !important;
    color: #0d7ab8 !important;
}

/* Selected option styling */
.confirmation-status-option.selected {
    background-color: #e3f2fd;
    color: #118dcf;
    font-weight: bold;
}

/* Clickable status icon styling */
.confirmation-status-icon {
    transition: all 0.2s ease-in-out !important;
    border-radius: 4px !important;
}

.confirmation-status-icon:hover {
    background-color: rgba(17, 141, 207, 0.1) !important;
    transform: scale(1.15) !important;
    box-shadow: 0 2px 8px rgba(17, 141, 207, 0.2) !important;
}

.confirmation-status-icon:active {
    transform: scale(1.05) !important;
    box-shadow: 0 1px 4px rgba(17, 141, 207, 0.3) !important;
}

/* Status dot styling */
.confirmation-status-dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

/* Status dot colors */
.confirmation-status-dot.bg-grey {
    background-color: #808080;
}

.confirmation-status-dot.bg-blue {
    background-color: #118dcf;
}

.confirmation-status-dot.bg-orange {
    background-color: #ff8c00;
}

.confirmation-status-dot.bg-yellow {
    background-color: #ffd700;
}

.confirmation-status-dot.bg-green {
    background-color: #28a745;
}

/* Dropdown display states */
.confirmation-status-dropdown-list.show {
    display: block;
}

.confirmation-status-dropdown-list.fade-in {
    opacity: 0;
    transform: translateY(-5px) scale(0.95);
}

.confirmation-status-dropdown-list.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Comment Icon Button Styling */
.comment-icon-button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    padding: 2px 5px;
    margin-right: -3px;
    transition: all 0.2s ease-in-out;
    border-radius: 4px;
}

.comment-icon-button:hover {
    background-color: rgba(17, 141, 207, 0.1);
    color: #118dcf;
    transform: scale(1.15);
}

.comment-icon-button:active {
    transform: scale(1.05);
}

.comment-icon-button.has-comment {
    color: #118dcf;
}

.comment-icon-button.has-comment:hover {
    color: #0d7ab8;
}

/* Task Management Status Multi-select Filter */
.task-status-filter {
    position: relative;
}

.task-status-filter-btn {
    display: block;
    width: 100%;
    min-width: 175px;
    height: 31px;
    font-size: .9em;
    color: black;
    line-height: 20px;
    padding: 5px 4px 4px 20px;
    text-align: right;
    cursor: default;
    font-family: inherit;
    background-color: white;
    border: 1px solid black;
    border-radius: 0;
    outline: none;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-status-filter-btn:focus {
    outline: none;
}

.task-status-filter-arrow {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: #888;
    pointer-events: none;
}

.task-status-dropdown-menu {
    min-width: 210px;
    padding: 0 0;
    direction: rtl;
    text-align: right;
    border: 1px solid #000000;
    border-radius: 0px;
    box-shadow: 0 6px 20px rgba(17, 141, 207, 0.2);
    top: 78%;
}

.task-status-dropdown-menu > li > a.task-status-option-link {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    color: #333;
    cursor: pointer;
    gap: 7px;
}

.task-status-dropdown-menu > li > a.task-status-option-link:hover {
    background-color: #1967D2;
    color: white;
    text-decoration: none;
}

/* Full-mode status field (used in task edit modal) */
.confirmation-status-picker-full {
    position: relative;
}

.confirmation-status-full-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    min-height: 28px;
    padding: 4px 0;
    width: 100%;
    white-space: nowrap;
    border-bottom: 1px solid #dbdbdb;
}

.confirmation-status-full-btn:hover {
    border-bottom-color: #118dcf;
}

.task-status-checkbox {
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #118dcf;
}

/* ===== Orka multi-select filter (styled like product-classification-select) ===== */

.orka-multi-select {
    position: relative;
    width: 100%;
}

.orka-multi-select-btn {
    display: block;
    width: 100%;
    height: 31px;
    font-size: .9em;
    color: #000;
    line-height: 20px;
    padding: 5px 8px 4px 28px;
    text-align: right;
    direction: rtl;
    cursor: default;
    font-family: inherit;
    background-color: #fff;
    background-image: none;
    border: 1px solid #000;
    border-radius: 0;
    outline: none;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dropdown arrow on far left, matching product-classification-select */
.orka-multi-select-btn::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid #555;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    pointer-events: none;
}

.orka-multi-select-btn:focus {
    outline: none;
}

.orka-multi-select-btn:disabled {
    border-color: #ddd;
    color: #999;
}

.orka-multi-select-menu {
    min-width: 100%;
    padding: 0;
    direction: rtl;
    text-align: right;
    border: 1px solid #333;
    border-radius: 0;
    box-shadow: none;
    top: 78%;
}

.orka-multi-select-menu > li > a.orka-multi-select-option {
    display: flex;
    align-items: center;
    padding: 5px 36px 5px 8px;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    position: relative;
    min-height: 28px;
}

.orka-multi-select-menu > li > a.orka-multi-select-option:hover {
    background-color: #1967D2;
    color: #fff;
    text-decoration: none;
}

/* Custom checkbox box — unchecked */
.orka-multi-select-menu > li > a.orka-multi-select-option::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 1.5px solid #aaa;
    background: #fff;
    border-radius: 2px;
    box-sizing: border-box;
}

/* Custom checkbox box — checked (filled blue) */
.orka-multi-select-menu > li > a.orka-multi-select-option.selected::after {
    background: #1967D2;
    border-color: #1967D2;
}

/* Checkmark inside checked box */
.orka-multi-select-menu > li > a.orka-multi-select-option.selected::before {
    content: '✓';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    z-index: 1;
}

/* Hover on unchecked: white border for contrast */
.orka-multi-select-menu > li > a.orka-multi-select-option:hover::after {
    border-color: rgba(255, 255, 255, 0.7);
}

/* Hover on checked: invert to white box with blue checkmark */
.orka-multi-select-menu > li > a.orka-multi-select-option.selected:hover::after {
    background: rgba(255, 255, 255, 0.9);
    border-color: transparent;
}

.orka-multi-select-menu > li > a.orka-multi-select-option.selected:hover::before {
    color: #1967D2;
}