﻿ul.table-tools {
    list-style-type: none;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

    ul.table-tools li {
        display: inline-block;
        width: 32.75px;
    }


        ul.table-tools li .btn-xs {
            display: inline-block;
            padding: 3px !important;
        }

.modal-zindex {
    z-index: 69001 !important;
}

.nested-modal-zindex {
    z-index: 99001 !important;
}


/* Override the body[ng-controller] .modal rule with more specific selectors */
body[ng-controller] .modal.modal-zindex {
    z-index: 10001 !important;
}

/* Override the body[ng-controller] .modal rule with more specific selectors */
body[ng-controller] .modal.nested-modal-zindex {
    z-index: 99001 !important;
}

div.swal-overlay {
    z-index: 100000 !important;
}

.swal-modal {
    z-index: 99999;
}

.login, .page-header.navbar.navbar-fixed-top {
    background-color: #040A48 !important;
}

.status-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    z-index: 1;
}

.status-complete {
    background-color: #28a745; /* Green */
}

.status-in-progress {
    background-color: #007bff; /* Blue */
}

.status-delayed {
    background-color: #dc3545; /* Red */
}

.status-pending {
    background-color: #ffc107; /* Yellow */
}

.status-cancelled {
    background-color: #6c757d; /* Gray */
}

.panel-heading {
    position: relative;
    overflow: hidden;
}

.panel-title {
    padding-left: 8px;
}

/* Detail Panel Styles */
.detail-panel-container {
    margin: 0;
    padding: 0;
}

.detail-panel {
    margin-bottom: 15px;
}

.detail-card {
    border: 2px solid #e3e3e3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .detail-card:hover {
        border-color: #007bff;
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.15);
        transform: translateY(-1px);
    }

/* Status Tags */
.detail-status-tag {
    position: absolute;
    top: 0;
    right: 0;
    padding: 6px 12px;
    border-radius: 0 8px 0 8px;
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.status-tag-complete {
    background-color: #28a745;
}

.status-tag-in-progress {
    background-color: #007bff;
}

.status-tag-delayed {
    background-color: #dc3545;
}

.status-tag-pending {
    background-color: #ffc107;
    color: #212529;
}

.status-tag-cancelled {
    background-color: #6c757d;
}

/* Detail Header */
.detail-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 15px;
    margin-bottom: 0;
}

.detail-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    padding-right: 80px; /* Space for status tag */
}

    .detail-title i {
        color: #007bff;
        margin-right: 8px;
    }

/* Detail Content */
.detail-content {
    padding: 15px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    min-height: 24px;
}

    .detail-row:last-child {
        margin-bottom: 0;
    }

.detail-label {
    min-width: 120px;
    flex-shrink: 0;
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
}

    .detail-label i {
        width: 16px;
        margin-right: 6px;
        color: #007bff;
    }

.detail-value {
    flex: 1;
    font-size: 13px;
    color: #212529;
    margin-left: 10px;
    word-wrap: break-word;
}

/* Worker Tags */
.worker-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.worker-tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .worker-tag i {
        font-size: 10px;
    }

/* Progress Bar */
.progress-container {
    width: 100%;
}

.progress {
    height: 18px;
    margin: 0;
    border-radius: 9px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    line-height: 18px;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    transition: width 0.6s ease;
}

/* Detail Actions */
.detail-actions {
    padding: 10px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

    .detail-actions .btn {
        margin-left: 5px;
    }

/* Empty State */
.empty-details {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-details-content i {
    color: #dee2e6;
    margin-bottom: 15px;
}

.empty-details-content h4 {
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-details-content p {
    color: #adb5bd;
    margin: 0;
    font-size: 14px;
}


/* Remove accordion body borders */
#accordion .panel-body {
    border: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

#accordion .panel-collapse .panel-body {
    border: none !important;
}

.file-upload-wrapper {
    margin-bottom: 15px;
}

.hidden-file-input {
    display: none;
}

.file-list {

    max-height: 200px;
    overflow-y: auto;
    margin-top: 2px;
}

.file-item {
    padding: 6px 2px;
    background-color: #fff;
}

    .file-item:last-child {
        border-bottom: none;
    }

    .file-item.existing-file {
        background-color: #f9f9f9;
    }

.file-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-name {
    flex-grow: 1;
    font-weight: 500;
}

.file-size, .file-date {
    font-size: 12px;
    color: #666;
}

.deletion-notice {
    margin-top: 5px;
    padding: 3px 0;
}

.upload-progress {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.selected-files-section, .existing-files-section {
    margin-top: 15px;
}

.selected-files-section h5, .existing-files-section h5 {
    margin-bottom: 10px;
    color: #333;
}

/* Modern Borderless Note Styles */
.note-item {
    border: none !important;
    border-radius: 0;
    margin-bottom: 24px;
    background: transparent;
    transition: all 0.2s ease;
    position: relative;
    padding: 0;
    box-shadow: none !important;
}

    .note-item:hover {
        border: none !important;
        box-shadow: none;
        background: transparent;
    }



    .note-item:last-child:after {
        display: none;
    }


/* Clean header design */
.note-header {
    background: transparent !important;
    padding: 0 0 12px 0;
    border: none !important;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    min-height: 32px;
}

.note-author {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .note-author i {
        color: #007bff;
        font-size: 16px;
    }

.note-date {
    font-size: 13px;
    color: #8e9ba8;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .note-date i {
        font-size: 12px;
        opacity: 0.7;
    }

.note-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.note-item:hover .note-actions {
    opacity: 1;
}

/* Modern content area */
.note-content {
    padding: 16px 20px;
    line-height: 1.7;
    color: #34495e;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f3f4;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.note-item:hover .note-content {
    border-color: #e3e7ea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* File attachments with modern styling */
.note-files {
    padding: 12px 20px 16px 20px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    border: 1px solid #f1f3f4;
    border-top: none;
    margin-top: -1px;
}


.note-files-header {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .note-files-header i {
        color: #007bff;
        font-size: 13px;
    }

.note-files-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.note-file-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.2s ease;
}

    .note-file-item:hover {
        background: #f8f9fa;
        border-color: #007bff;
        transform: translateY(-1px);
    }

    .note-file-item i {
        color: #6c757d;
        font-size: 11px;
    }

.file-link {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .file-link:hover {
        color: #007bff;
        text-decoration: none;
    }

.file-size {
    color: #8e9ba8;
    font-size: 11px;
    font-weight: 400;
}

/* Timeline container adjustments */
.panel-body {
    position: relative;
    padding: 0px 20px 0px 20px !important;
}

    /* Empty state styling */
    .panel-body:empty:before {
        content: 'No notes available';
        display: flex;
        align-items: center;
        justify-content: center;
        color: #8e9ba8;
        font-style: italic;
        min-height: 60px;
    }

/* Timeline adjustments for empty state */
.panel-body {
    position: relative;
}

    /* When there are notes, add timeline styling */
    .panel-body:has(.note-item) {
        padding-left: 30px;
    }



/* File Table Styles */
.table > thead > tr > th {
    border-bottom: 2px solid #007bff;
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.table > tbody > tr:hover {
    background-color: #f8f9fa;
}

.project-detail .panel-body {
    padding: 8px !important;
}

.note-files-section {
    margin-top: 12px;
}

.editable-container {
    padding: 5px;
}

.note-content .editable-pre-wrapped {
    white-space: inherit !important;
}

/* Responsive Design */
@media (max-width: 768px) {

    .panel-body {
        padding: 16px 16px 16px 32px !important;
    }

    .detail-row {
        flex-direction: column;
    }

    .detail-label {
        min-width: auto;
        margin-bottom: 4px;
    }

    .detail-value {
        margin-left: 0;
    }

    .detail-status-tag {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
        border-radius: 12px;
    }

    .detail-title {
        padding-right: 15px;
    }

    .detail-actions {
        text-align: center;
    }

        .detail-actions .btn {
            margin: 2px;
        }

    .note-item:before {
        left: -16px;
    }

    .note-item:after {
        left: -12px;
    }


    .note-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .note-actions {
        align-self: flex-end;
        opacity: 1; /* Always visible on mobile */
    }

    .detail-row {
        margin-bottom: 8px;
    }

    .note-content {
        padding: 14px 16px;
        font-size: 13px;
    }

    .note-files {
        padding: 10px 16px 14px 16px;
    }
}
