/* projects */
/* ===================================================
PROJECT DASHBOARD
=================================================== */

.project-stat-card {

    position: relative;

    overflow: hidden;

    background: rgba(255, 255, 255, .05);

    backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, .08);

    border-radius: 24px;

    padding: 24px;

    transition: .35s ease;

    height: 100%;
}

.project-stat-card:hover {

    transform:
        translateY(-8px) scale(1.02);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .35);
}

.project-stat-card::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, .08),
            transparent);

    pointer-events: none;
}

.project-stat-card h2 {

    font-size: 18px;

    font-weight: 800;

    margin-top: 20px;

    margin-bottom: 5px;

    color: white;
}

.project-stat-card p {
    margin: 0;
    color: #ccd7dd;
}

.stat-icon {

    width: 58px;

    height: 58px;

    border-radius: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;

    color: white;
}

.stat-icon.primary {

    background:
        linear-gradient(135deg,
            #377688,
            #4FD1D0);
}

.stat-icon.success {

    background:
        linear-gradient(135deg,
            #10b981,
            #34d399);
}

.stat-icon.warning {

    background:
        linear-gradient(135deg,
            #f59e0b,
            #fcd34d);
}

.stat-icon.danger {

    background:
        linear-gradient(135deg,
            #ef4444,
            #f87171);
}

.stat-icon.info {

    background:
        linear-gradient(135deg,
            #06b6d4,
            #67e8f9);
}

.project-search {

    display: flex;

    align-items: center;

    gap: 12px;

    background:
        rgba(255, 255, 255, .04);

    border:
        1px solid rgba(255, 255, 255, .08);

    border-radius: 18px;

    padding: 14px 18px;
}

.project-search input {

    background: none;

    border: none;

    width: 100%;

    color: white;

    outline: none;
}

.project-search input::placeholder {
    color: rgba(232, 246, 248, .72);
    opacity: 1;
}

html[data-theme="light"] .project-search input::placeholder {
    color: rgba(16, 35, 43, .58);
}

.project-search i {

    color: #8ea6b1;
}

.results-pill {

    background:
        linear-gradient(135deg,
            #377688,
            #4FD1D0);

    color: white;

    padding: 10px 18px;

    border-radius: 50px;

    font-weight: 600;
}

.project-filter-panel {
    padding: 20px 22px;
}

.project-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.55fr) repeat(4, minmax(145px, 1fr)) minmax(90px, .52fr);
    gap: 12px;
    align-items: end;
}

.project-filter-field {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.project-filter-field > span {
    padding-left: 3px;
    color: #b8cbd2;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.project-filter-field .form-select,
.project-filter-field .project-search {
    width: 100%;
    min-height: 48px;
}

.project-filter-field .form-select {
    border-radius: 14px;
}

.project-filter-field .project-search {
    padding: 11px 15px;
    border-radius: 14px;
}

.project-filter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.project-filter-status {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.project-reset-button,
.project-download-button {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 13px;
}

.project-icon-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.project-download-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.project-filter-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0;
}

.project-filter-summary span {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    color: #9fb5bf;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

@media (max-width: 1399.98px) {
    .project-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .project-filter-search-field {
        grid-column: span 2;
    }
}

@media (max-width: 991.98px) {
    .project-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-filter-search-field {
        grid-column: 1 / -1;
    }

    .project-filter-footer,
    .project-filter-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-toolbar-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .project-filter-panel {
        padding: 16px;
    }

    .project-filter-grid {
        grid-template-columns: 1fr;
    }

    .project-filter-search-field {
        grid-column: auto;
    }

    .project-filter-status {
        width: 100%;
    }

    .project-filter-summary {
        width: 100%;
    }

    .project-toolbar-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.project-table-card {
    overflow: hidden;
}

.project-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.project-table th:nth-child(1) { width: 21%; }
.project-table th:nth-child(2) { width: 9%; }
.project-table th:nth-child(3) { width: 20%; }
.project-table th:nth-child(4) { width: 13%; }
.project-table th:nth-child(5) { width: 16%; }
.project-table th:nth-child(6) { width: 14%; }
.project-table th:nth-child(7) { width: 176px; }

.task-table {
    min-width: 1080px;
}

.project-table th,
.project-table td,
.task-table th,
.task-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

.task-name-cell {
    min-width: 230px;
}

.task-name-cell strong,
.task-name-cell small {
    display: block;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-name-cell small,
.task-progress-cell small {
    color: #9fb5bf;
    font-size: 12px;
}

.task-progress-cell {
    min-width: 170px;
}

.task-progress-cell progress {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.task-progress-cell progress::-webkit-progress-bar {
    background: rgba(255, 255, 255, .08);
}

.task-progress-cell progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #377688, #4fd1d0);
}

.task-progress-cell progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #377688, #4fd1d0);
}

.responsive-card-list {
    display: none;
}

.project-sort-button,
.project-name-button {
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.project-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    color: #bfeff1;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.project-sort-button i {
    color: #8ea6b1;
    font-size: 13px;
}

.project-name-cell {
    min-width: 0;
}

.project-name-button {
    display: grid;
    gap: 3px;
    width: 100%;
    min-width: 0;
    padding: 0;
}

.project-name-button strong,
.project-name-button span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-name-button strong {
    color: #fff;
}

.project-name-button span,
.project-progress-cell small,
.project-overdue-note {
    color: #9fb5bf;
    font-size: 12px;
}

.project-progress-cell {
    min-width: 0;
}

.project-name-button strong {
    max-width: 100%;
}

.project-assignment-cell,
.project-timeline-cell,
.project-commercial-cell {
    min-width: 0;
}

.project-assignment-cell strong,
.project-assignment-cell span,
.project-assignment-cell small,
.project-timeline-cell strong,
.project-timeline-cell small {
    display: block;
}

.project-assignment-cell strong,
.project-assignment-cell span,
.project-assignment-cell small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-assignment-cell span,
.project-assignment-cell small,
.project-timeline-cell small {
    margin-top: 3px;
    color: #9fb5bf;
    font-size: 12px;
}

.project-commercial-cell {
    white-space: normal;
}

.project-commercial-cell > strong {
    display: block;
    margin-bottom: 7px;
    white-space: nowrap;
}

.project-commercial-cell .badge,
.project-commercial-cell .workspace-pill {
    font-size: 10px;
    margin: 0 3px 3px 0;
}

.project-progress-cell progress {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.project-progress-cell progress::-webkit-progress-bar {
    background: rgba(255, 255, 255, .08);
}

.project-progress-cell progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #377688, #4fd1d0);
}

.project-progress-cell progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #377688, #4fd1d0);
}

.project-overdue-note {
    display: block;
    margin-top: 5px;
    color: #fca5a5;
}

.project-table-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.project-table-actions .btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.project-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #9fb5bf;
    font-size: 13px;
    font-weight: 700;
}

.project-table-footer .workspace-pagination {
    margin-top: 0;
}

.workspace-mobile-card {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
}

.project-mobile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.project-mobile-card-head .project-name-button {
    min-width: 0;
}

.project-mobile-card-head h5 {
    overflow-wrap: anywhere;
}

.project-mobile-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.project-mobile-open-row {
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    color: #eef9fb;
    text-decoration: none;
}

.project-mobile-open-row:hover,
.project-mobile-open-row:focus {
    color: #7ff4f3;
    border-color: rgba(79, 209, 208, .42);
    background: rgba(79, 209, 208, .10);
}

.project-mobile-open-copy {
    min-width: 0;
}

.project-mobile-open-copy strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-mobile-open-row i {
    color: #8ea6b1;
}

.workspace-mobile-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.workspace-mobile-fields div {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
}

.workspace-mobile-fields span,
.workspace-mobile-fields strong {
    display: block;
}

.workspace-mobile-fields span {
    color: #9fb5bf;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.workspace-mobile-fields strong {
    margin-top: 3px;
    color: #fff;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.workspace-mobile-empty {
    padding: 42px 18px;
    text-align: center;
    color: #9fb5bf;
}

@keyframes floatCard {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

.project-stat-card:nth-child(odd) {

    animation:
        floatCard 5s ease-in-out infinite;
}

.text-secondary {
    --bs-text-opacity: 1;
    color: var(--text-primary-light) !important;
}

.project-department-picker {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background: rgba(255, 255, 255, .035);
}

.project-department-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.project-department-options>button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    color: #e9f6f8;
    text-align: left;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.project-department-options>button:hover,
.project-department-options>button.selected {
    border-color: rgba(79, 209, 208, .65);
    background: rgba(79, 209, 208, .14);
}

.project-department-options>button:hover {
    transform: translateY(-1px);
}

.project-department-options>button i {
    flex: 0 0 auto;
    color: #4fd1d0;
}

.project-department-options>button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
