/*Write your custom css in this file.*/

.hidden {
    display: none !important;
}

r {
    color: #FF0000;
}

.text-red {
    color: #FF0000;
}
.text-note {
    color: #FF0000;
    font-style: italic;
    /*font-size: 0.8em;*/
}
.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/** -----------------------------------------------------------------------
* dipasang di modal saat menambah data lead
* -----------------------------------------------------------------------*/
#suggestion-box {
    position: absolute; /* Pindahkan ke posisi tetap */
    top: 95px; /* Atur di paling atas */
    left: 35%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ddd;
    width: 310px;
    z-index: 1000;
    display: none;
    padding: 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f0f0f0;
}

.close-btn {
    /*background: red;*/
    color: red;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 14px;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sugestion-detail {
    display: none;
    z-index: 1001;
    position: absolute;
    top: 95px;
    left: 450px;
    width: 330px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e30000;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}


.estimate-images {
    position: relative;
    display: inline-block;
}

.delete-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    display: none;
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    z-index: 10;
}

.estimate-images:hover .delete-btn {
    display: block;
}

.grayscale {
    filter: grayscale(100%);
    opacity: 0.25;
    pointer-events: none;
}

.estismate-image-box {
    position: relative;
}

.estismate-image-box .overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #ffb300;
    font-size: 16px;
    background: rgba(255,255,255,0.8);
    padding: 10px 15px;
    border-radius: 8px;
    display: none;
    z-index: 10;
    text-align: center;
}

.badge-item{
    --bs-badge-color: #006e26;
    border: 1px solid #cccccc;
}
.badge.active {
    background-color: #ff7f00;
    color: white;
}

/* ========================================================================
 * KANBAN LEADS CUSTOM STYLES
 * ======================================================================== */

/* Filter Dropdown Styling */
.kanban-filter-dropdown {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.dropdown-filter-header {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.dropdown-filter-list {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.dropdown-filter-list::-webkit-scrollbar {
    width: 6px;
}

.dropdown-filter-list::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 3px;
}

.dropdown-filter-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.dropdown-filter-list::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.client-filter-item:hover {
    background-color: #f8f9fa;
}

.client-filter-search:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Make kanban items draggable */
.kanban-item,
.lead-kanban-item {
    display: block !important;
    cursor: move !important;
    cursor: grab !important;
}

.kanban-item:active,
.lead-kanban-item:active {
    cursor: grabbing !important;
}

/* Filter hidden class - must override display block */
.lead-kanban-item.filter-hidden {
    display: none !important;
}

/* Kanban wrapper */
#kanban-wrapper {
    display: block !important;
    width: 100%;
    position: relative;
}

/* Kanban container height control */
#kanban-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    max-height: calc(100vh - 150px);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Scroll per kolom kanban */
.kanban-col {
    float: none !important;
    list-style: none !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    min-height: calc(100vh - 250px);
    height: calc(100vh - 250px);
    width: 305px !important;
    margin: 0 15px !important;
}

.kanban-item-list {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: none !important;
    min-height: 0;
    padding-bottom: 10px;
    flex: 1 1 auto;
    position: relative;
}

/* Custom scrollbar untuk kolom kanban */
.kanban-item-list::-webkit-scrollbar {
    width: 8px;
}

.kanban-item-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.kanban-item-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.kanban-item-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox scrollbar */
.kanban-item-list {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Load More button style */
.load-more-column-container {
    position: relative;
    background: white;
    padding: 8px 0;
    margin-top: 0;
    z-index: 10;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.load-more-column-btn:hover {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #495057 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.load-more-column-btn:active {
    transform: translateY(0);
}

.load-more-column-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Empty placeholder styling */
.kanban-empty-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.kanban-item-list:empty::after {
    content: '';
    display: block;
    min-height: 100px;
}

/* Small fixes to prevent layout shifts in Leads list */
.fixed-avatar {
    width: 32px !important;
    height: 32px !important;
    object-fit: cover !important;
    display: block !important;
}

.lead-labels {
    min-height: 22px;
    max-height: 48px;
    overflow: hidden;
}

.share-dropdown-min {
    gap: 6px;
    min-height: 28px;
    min-width: 120px;
}

.share-text {
    max-width: 320px;
    min-width: 120px;
    display: inline-block;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-btn {
    padding: 2px 6px;
}

.share-dropdown-kanban {
    display: inline-flex;
    align-items: center;
}

.share-dropdown-kanban .share-dropdown-min {
    margin: 0;
    min-width: auto;
    min-height: auto;
    gap: 4px;
}

.share-dropdown-kanban .share-dropdown {
    position: relative;
}

.share-dropdown-kanban.share-can-edit .share-dropdown-min {
    position: relative;
}

.share-dropdown-kanban .share-text {
    display: none !important;
}

.share-dropdown-kanban.share-can-edit .share-btn {
    padding: 0;
    border: none;
    background: transparent;
    line-height: 1.2;
    color: #6c757d;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, transform 0.15s ease;
}

.share-dropdown-kanban.share-can-edit .share-btn:focus {
    box-shadow: none;
}

.share-dropdown-kanban.share-can-edit .share-btn:hover {
    color: #0d6efd;
    transform: translateY(-1px);
}

.share-icon-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: #adb5bd;
}

/* Kanban card layout for consistent spacing */
.kanban-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kanban-card-header {
    gap: 8px;
}

.kanban-card-title {
    min-width: 0;
    flex: 1 1 auto;
}

.kanban-card-title .avatar {
    flex-shrink: 0;
}

.kanban-card-title a,
.kanban-card-title span {
    display: inline-block;
    max-width: none;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    word-break: break-word;
}

.kanban-card-toolbar > * {
    margin-left: 6px;
}

.kanban-card-meta {
    gap: 6px;
    font-size: 12px;
    color: #6c757d;
}

.kanban-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kanban-card-footer {
    gap: 6px;
    font-size: 12px;
}

/* Skeleton loading placeholders to avoid layout shift when lazy-loading columns */
.skeleton {
    position: relative;
    display: inline-block;
    background-color: #e9ecef;
    overflow: hidden;
    border-radius: 4px;
}
.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    animation: skeleton-loading 1.2s infinite;
}
.skeleton-text {
    height: 14px;
    border-radius: 3px;
    vertical-align: middle;
}
.skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
}

@keyframes skeleton-loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Small helper placeholders for specific columns */
.members-placeholder { display:inline-block; }
.labels-placeholder { display:inline-block; min-height:22px; }
.share-placeholder { display:inline-block; min-width:100px; }

.profile-image-upload.help-icon {
    display: block !important;
    margin-top: 70px;
    margin-left: -5px;
}

/* Tooltip Lebih Elegan Untuk Help Icon */
.tooltip.help-tooltip .tooltip-inner {
    max-width: 500px;
    text-align: left;
    background-color: #333;
    color: #fff;
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 6px;
    line-height: 1.4;
}

/* Warna Arrow Tooltip */
.tooltip.help-tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #333 !important;
}

.tooltip.help-tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #333 !important;
}

.tooltip.help-tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #333 !important;
}

.tooltip.help-tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #333 !important;
}

