.w-5 {
    width: 5%;
}
.w-10 {
    width: 10%;
}
.w-15 {
    width: 15%;
}
.w-20 {
    width: 20%;
}
.w-25 {
    width: 25%;
}
.w-30 {
    width: 30%;
}
.w-35 {
    width: 35%;
}
.w-40 {
    width: 40%;
}
.w-45 {
    width: 45%;
}
.w-50 {
    width: 50%;
}
.w-80 {
    width: 80%;
}
.w-90 {
    width: 90%;
}
.manage-task-modal .multiselect {
    border-radius: 0.375rem 0 0 0.375rem;
}
.mh-60{
    max-height: 60px;
}
.maxw-15{
    max-width: 150px;
}
.maxw-20{
    max-width: 200px;
}
.maxw-30{
    max-width: 300px;
}
.maxw-40{
    max-width: 400px;
}
.maxw-50{
    max-width: 500px;
}
.h-300{
    height: 300px;
}
.h-200{
    height: 200px;
}

.text-16 {
    font-size: 16px;
}
.text-15 {
    font-size: 15px;
}
.text-14 {
    font-size: 14px;
}
.text-13 {
    font-size: 13px !important;
}
.text-12 {
    font-size: 12px;
}
.text-11 {
    font-size: 11px;
}
.text-10 {
    font-size: 10px;
}
.table tr .hover_hide{
    transition: all ease 0.4s;
}
.table tr .hover_show{
    opacity: 0;
    transition: all ease 0.4s;
}
.table tr:hover .hover_show{
    opacity: 1;
}
.table tr:hover .hover_hide{
    opacity: 0;
}
.table tr .hover_anim_show,
.table tr .hover_anim_hide{
    left: 0;
    top: 50%;
    right: 0;
    margin-top: -11px;
    text-align: center;
    position: absolute;
    transition: all ease 0.3s;
}
.table tr .hover_anim_show,
.table tr:hover .hover_anim_hide{
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
}
.table tr .hover_anim_show{
    left: auto;
    transform: translateX(20px);
}
.table tr:hover .hover_anim_show{
    opacity: 1;
    visibility: visible;
    transform: translateX(-20px);
}

.fs-7 {
    font-size: .9rem;
}

.fs-8 {
    font-size: .6rem;
}
.text-lightgray {
    color: #a19a9a;
}
.border-text-lightgray {
    border: 1px solid #a19a9a !important;
}
.shared-files {
    background-color: rgb(5 150 105);
}
.bg-lightgray {
    background-color: lightgray;
}
.bg-lightshade {
    background-color: #e7e7e7;
}
.max-h-300 {
    max-height: 300px;
}

.display-7 {
    font-size: 1.8rem;
}

.chat-list,
.chat-input {
    padding: 15px;
}

.task-name,
.project-name {
    color: #2e2a2a;
    text-decoration: none;
    font-weight: 600;
}

.task-name:hover,
.project-name:hover {
    color: rgb(44, 151, 50);
    cursor: pointer;
}

#chatBoxContent {
    max-height: 310px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* tags */
.tag-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.tags.card-body {
    max-height: calc(100vh - 360px);
    overflow-y: auto;
}
.tag-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}
.tag-info {
    flex-grow: 1;
}
.auto-generated {
    color: gray;
}
.tag-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}
.btn-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}
.edit-tag-form {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.edit-tag-form.show {
    display: block;
    opacity: 1;
}

/* calendar */
.datepicker.datepicker-dropdown {
    z-index: 1060 !important;
}

/* Ensure datepicker calendar appears above all other elements when using body container */
.datepicker {
    z-index: 9999 !important;
}

.datepicker-dropdown {
    z-index: 9999 !important;
}

/* Specific z-index for datepicker elements */
.datepicker-picker {
    z-index: 9999 !important;
}

.datepicker-view {
    z-index: 9999 !important;
}

.datepicker-grid {
    z-index: 9999 !important;
}

/* Ensure datepicker appears above modals and other high z-index elements */
.datepicker-dropdown {
    z-index: 99999 !important;
}

.datepicker-picker {
    z-index: 99999 !important;
}

/* Additional specificity for datepicker elements */
.datepicker .datepicker-picker {
    z-index: 99999 !important;
}

.datepicker .datepicker-view {
    z-index: 99999 !important;
}

.datepicker .datepicker-grid {
    z-index: 99999 !important;
}

/* manage existing bulk assignees */
.assignee-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.assignee-name {
    flex: 1;
}
.assignee-select {
    flex: 1;
}

.upload-client-files-input  {
    top: 0;
    left: 0;
    opacity: 0;
}

#dropdownCreateFolder::after {
    display: none;
}

#clientfiles .go-back {
    left: 12px;
    color: rgb(5 150 105);
}

.client-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-image-container img {
    max-width: 100%;
    height: auto;
}

.file-print {
    color: inherit;
    text-decoration: none;
}

.file-print:hover {
    color: inherit;
}


.password-icn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.count-pill {
    left: 15px;
    top: -10px;
    width: 20px;
    height: 20px;
    padding: 1px;
    font-size: 10px;
    line-height: 18px;
}

.nav-link .count-pill {
    top: 2px;
    left: 28px;
}

.add-attachment {
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
}

.add-attachment input {
    position: absolute;
    left: 0;
    opacity: 0;
}

.floating.ph-spinner-gap {
    position: absolute;
    right: 4%;
    top: 24%;
}

.ph-spinner-gap {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.avatar-group {
    position: relative;
}

.avatar {
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.avatar:not(:last-child) {
    margin-right: -14px;
}

.date:hover {
    color: #05875f;
}
.media-chat.vstack .comment-items .action-buttons{
    opacity: 0;
    visibility: hidden;
    transition: all ease 0.6s;
    transform: translateY(-15px);
}
.media-chat.vstack .comment-items:hover .action-buttons{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.media-chat.vstack .updateCommentForm{
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 5%;
    height: 100%;
    background: #fff;
    position: absolute;
}
.media-chat.vstack .updateCommentForm .holder{
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
}
.media-chat.vstack .updateCommentForm .frame{
    width: 100%;
}

.media-chat.vstack .ql-toolbar.ql-snow + .ql-container.ql-snow{
    border-radius: 0;
}
.transactionTable th.trasDate{
    width: 150px;
}
.transactionTable th:not(:first-child),
.transactionTable td:not(:first-child) {
    padding-left: 0;
}

.upload-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 40px;
    height: 40px;
    background-color: lightgray;
    border-radius: 100%;
    margin-bottom: 5px;
}

.upload-icon i {
    font-size: 24px;
}

.drag-folder-container input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
}

.loader-icon {
    position: absolute;
    z-index: 9999;
    width: 100%;
    background-color: lightgrey;
    height: 100%;
    opacity: .5;
}

.client-contact-list {
    border: 1px solid lightgray;
    border-radius: 5px;
}

.client-contact-list-item {
    display: flex;
    gap: 20px;
    padding: 10px;
    border-bottom: 1px solid lightgray;
}

.client-contact-list-item:last-child {
    border-bottom: none;
}

.minw-30 {
    min-width: 300px;
}

#project-status-update table tr:last-child {
    border-bottom: 1px solid lightgray;
}

.download-action {
    list-style-type: none;
}

.responsive-card .table-responsive-sm{
    min-width: 250px;
    overflow-x: auto;
}

.client-request-item {
    background-color: #d7edfc;
}

.import-csv-projects {
    position: relative;
}

.import-csv-projects input {
    position: absolute;
    z-index: 9999;
    opacity: 0;
}

.import-csv-projects button {
    position: relative;
    top: -10px;
}

.tb-row-hover:hover {
    background-color: #ecf0f1;
}

.cursor-not-allowed {
    cursor: not-allowed;
    pointer-events: none;
}

.sub-tasks-list-container li {
    list-style-type: none;
    border-top: 1px solid lightgray;
    border-left: 1px solid lightgray;
    border-right: 1px solid lightgray;
    border-radius: 5px;
}

.sub-tasks-list-container li:last-child {
    border-bottom: 1px solid lightgray;
    border-radius: 0 0 5px 5px;
}

.sub-tasks-list-container li:hover {
    background-color: lightgray;
}

.rotate-90 {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.projects .dropdown-toggle:empty::after {
    display: none;
}

.projects .list-styled {
    list-style: circle;
    list-style-position: inside;
    padding-left: 5px;
}

.projects .list-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.projects .list-item::before {
    content: "●";
    font-size: 8px;
    color: black;
}

.sub-project-row > td {
    padding-top: 2px;
    padding-bottom: 2px;
}

.addhock-task-menu .dropdown-toggle::after {
    display: none;
}

#createAdhocTaskModal .alert,
#createRequestModal .alert {
    width: calc(100% - 20px);
    margin: auto;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#accounting-period-filter {
    position: relative;
    cursor: pointer;
}

#accounting-period-filter li {
    padding: 3px 5px;
    border-radius: 5px;
}

#accounting-period-filter li.active {
    font-weight: 700;
    color:#05875f;
}

#accounting-period-filter li:hover {
    background-color: lightgray;
}

#accounting-period-filter ul {
    list-style-type: none;
    padding: 0;
}

#accounting-filter-dropdown{
    position: absolute;
    z-index: 99999;
    background-color: #fff;
    width: 600px;
}

.flatpickr-calendar.rangeMode {
    margin: auto;
    margin-bottom: 15px;
}

#accounting-period-date-picker {
    display: none;
}

#folders-list > li {
    list-style-type: none;
}

#files-list .file-list-item:hover,
#files-list .file-list-item.active,
#folders-list li:hover {
    background-color: #e1e2e4;
    border-radius: 4px;
}

#folders-list li.active,
#all-documents.active {
    background-color: #e1e2e4;
    font-weight: bold;
    border-radius: 4px;
}

#folders-list li {
    padding: 4px 0;
}

#file-actions .underline {
    text-decoration: underline;
}

@media screen and (max-width: 1400px) {
    .client-dashboard-tabs .col-lg-9 {
        width: 65%;
    }
    .client-dashboard-tabs .col-lg-3 {
        width: 35%;
    }
}

@media screen and (max-width: 1100px) {
    .client-dashboard-tabs .col-lg-9 {
        width: 100%;
    }
    .client-dashboard-tabs .col-lg-3 {
        width: 100%;
    }
}
.paperClipEditor {
    position: relative;
}
.paperClipEditor .uploadEditor {
    position: absolute;
    left: 615px;
    top: 16px;
    z-index: 1;
}
/* Attachment styles */
.attachment-preview {
    background-color: #f8f9fa;
    border-radius: 4px;
}
.attachment-preview {
    padding: 6px 10px;
    margin-bottom: 8px;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    max-width: 100%;
    background-color: #f8f9fa;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-size: 0.875rem; /* smaller font */;
    height: 50px;
}

.attachment-preview i {
    font-size: 1.25rem;
    margin-right: 8px;
    color: #0d6efd;
}

.attachment-preview .text-truncate {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.attachment-preview small {
    color: #6c757d;
    font-size: 0.75rem;
}

.attachment-preview .btn-close {
    margin-left: auto;
    font-size: 0.6rem;
    padding: 0.25rem;
    opacity: 0.7;
}

.attachment-preview .btn-close:hover {
    opacity: 1;
}

.fc-view-harness {
    cursor: pointer;
}

.finalLineItemsTable th,
.finalLineItemsTable td,
#lineItemsModal th,
#lineItemsModal td
{
    padding: 5px;
}

/* Disabled overlay for invalid token */
.disabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 999;
    cursor: not-allowed;
}

.disabled-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(2px);
}

textarea {
    resize: none;
}

.custom-question-editor{
    padding: 1.25rem 0 !important;
}
.ql-editor.ql-blank.custom-question-editor:before{
    left: 10px !important;
    right: 0 !important;
}
