﻿#modalShare .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

#modalShare .modal-header {
    border-bottom: 0;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
    padding: 1rem 1.25rem;
}

#modalShare .modal-body {
    padding: 1rem 1.25rem 0.75rem;
    overflow: visible;
}

#modalShare .share-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

    #modalShare .share-mode .btn {
        border-radius: 999px;
        min-width: 165px;
        font-weight: 600;
        border: 1px solid #dbe4f0;
        color: #334155;
        background: #fff;
        transition: all .2s ease;
    }

        #modalShare .share-mode .btn:hover {
            border-color: #3b82f6;
            color: #1d4ed8;
        }

    #modalShare .share-mode .btn-check:checked + .btn {
        color: #0f172a;
        border-color: #60a5fa;
        background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
    }

#modalShare .share-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

#modalShare .share-table-wrap {
    max-height: 340px;
    overflow: auto;
}

#modalShare .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f1f5f9;
    color: #334155;
}

#modalShare .table tbody tr {
    transition: background-color .15s ease;
}

    #modalShare .table tbody tr:hover {
        background: #f8fafc;
    }

#modalShare .share-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .625rem .75rem;
    border-top: 0;
    background: #f8fafc;
    flex-wrap: wrap;
}

    #modalShare .share-pagination .btn-pagination {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1px solid #cbd5e1;
        color: #334155;
        background: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        #modalShare .share-pagination .btn-pagination:disabled {
            opacity: .45;
        }

    #modalShare .share-pagination .share-page-info {
        font-weight: 600;
        color: #334155;
    }

#modalShare .share-empty {
    text-align: center;
    padding: 1.5rem;
    color: #64748b;
}

    #modalShare .share-empty i {
        font-size: 1.5rem;
        color: #94a3b8;
    }

#modalShare .org-panel {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 1rem;
    overflow: visible;
    position: relative;
    z-index: 10;
}

#modalShare .comboTreeWrapper {
    width: 100%;
}

#modalShare .comboTreeInputBox {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

    #modalShare .comboTreeInputBox:focus,
    #modalShare .comboTreeInputBox:hover {
        border-color: #60a5fa;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
    }

#modalShare .ct-drop-down-container,
#modalShare .comboTreeDropDownContainer {
    margin-top: 4px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #dbe4f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
    max-height: 280px;
    overflow: auto;
    z-index: 2000 !important;
    animation: shareComboIn .18s ease-out;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, .45) transparent;
}

    #modalShare .ct-drop-down-container ul,
    #modalShare .comboTreeDropDownContainer ul {
        padding: 0.2rem 0;
        margin: 0;
        border-radius: 4px;
    }

#modalShare .ct-multiples-filter:focus-visible {
    outline: none;
}

#modalShare .ct-drop-down-container li,
#modalShare .comboTreeDropDownContainer li {
    list-style: none;
    border-radius: 8px;
    padding: 2px 6px;
    color: #1e293b;
    transition: background-color .16s ease, transform .14s ease, box-shadow .16s ease;
}

    #modalShare .ct-drop-down-container li:hover,
    #modalShare .comboTreeDropDownContainer li:hover {
        background: #eff6ff;
        box-shadow: inset 0 0 0 1px #dbeafe;
        transform: translateX(2px);
    }

    #modalShare .ct-drop-down-container li.comboTreeItemHover,
    #modalShare .ct-drop-down-container li.ct-item-active,
    #modalShare .comboTreeDropDownContainer li.comboTreeItemHover {
        background: #dbeafe;
        box-shadow: inset 0 0 0 1px #bfdbfe;
    }

#modalShare .ct-drop-down-container input[type="checkbox"],
#modalShare .comboTreeDropDownContainer input[type="checkbox"] {
    width: 1em;
    height: 1em;
    margin-right: 8px;
    margin-top: 0;
    top: 4px;
    vertical-align: top;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 0.25em;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    cursor: pointer;
}

    #modalShare .ct-drop-down-container input[type="checkbox"]:focus,
    #modalShare .comboTreeDropDownContainer input[type="checkbox"]:focus {
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    #modalShare .ct-drop-down-container input[type="checkbox"]:checked,
    #modalShare .comboTreeDropDownContainer input[type="checkbox"]:checked {
        background-color: #007ec7;
        border-color: #007ec7;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    }

    #modalShare .ct-drop-down-container input[type="checkbox"]:disabled,
    #modalShare .comboTreeDropDownContainer input[type="checkbox"]:disabled {
        pointer-events: none;
        filter: none;
        opacity: 0.5;
    }

#modalShare .ct-drop-down-container::-webkit-scrollbar,
#modalShare .comboTreeDropDownContainer::-webkit-scrollbar {
    width: 10px;
}

#modalShare .ct-drop-down-container::-webkit-scrollbar-track,
#modalShare .comboTreeDropDownContainer::-webkit-scrollbar-track {
    background: transparent;
}

#modalShare .ct-drop-down-container::-webkit-scrollbar-thumb,
#modalShare .comboTreeDropDownContainer::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .58);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

    #modalShare .ct-drop-down-container::-webkit-scrollbar-thumb:hover,
    #modalShare .comboTreeDropDownContainer::-webkit-scrollbar-thumb:hover {
        background: rgba(100, 116, 139, .72);
        border: 2px solid transparent;
        background-clip: content-box;
    }

@keyframes shareComboIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#modalShare .modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 8px 16px;
}
