﻿/* Uses the same tokens as your ribbon theme */
:root {
    --feature-accent: var(--feature-accent, #0ea5e9);
    --feature-text: var(--feature-text, #1f2937);
    --feature-muted: var(--feature-muted, #6b7280);
    --chrome-h: 170px; /* approximate header+tabs+ribbon height in SMELayout */
}

/* Full-screen center (accounts for your fixed ribbon/nav) */
.coming-screen {
    min-height: calc(100vh - var(--chrome-h));
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background: linear-gradient(#f5f5f7,#ebebee);
    border-top: 1px solid #cfcfd4; /* matches ribbon edge */
}

/* Cardless centered block like your screenshot */
.coming-card {
    text-align: center;
    max-width: 780px;
    width: 100%;
    color: var(--feature-text);
}

.coming-icon {
    font-size: 2.25rem;
    margin-bottom: 8px;
}

.coming-card h1 {
    margin: 0 0 10px 0;
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a; /* slightly darker for strong headline */
    letter-spacing: .2px;
}

.coming-sub {
    margin: 0 auto 24px auto;
    max-width: 720px;
    font-size: clamp(.95rem, 1.6vw, 1.05rem);
    color: var(--feature-muted);
}

/* Ribbon-style thin progress underline */
.coming-progress {
    height: 2px;
    width: min(560px, 92vw);
    margin: 0 auto 28px auto;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

    .coming-progress .bar {
        position: absolute;
        inset: 0 0 0 0;
        width: 0%;
        background: var(--feature-accent);
        animation: coming-line 2.2s ease-in-out infinite;
    }

@keyframes coming-line {
    0% {
        width: 0%;
        transform: translateX(0%);
    }

    50% {
        width: 55%;
        transform: translateX(20%);
    }

    100% {
        width: 100%;
        transform: translateX(0%);
    }
}

/* Button */
.btn-primary {
    appearance: none;
    border: 0;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--feature-accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(0,0,0,.10);
        background: color-mix(in srgb, var(--feature-accent) 85%, #00724f);
    }

    .btn-primary:focus-visible {
        outline: 2px solid color-mix(in srgb, var(--feature-accent) 65%, white 35%);
        outline-offset: 2px;
    }

/* If you render this page without SMELayout, uncomment:
.coming-screen{ min-height: 100vh; } */


.erp-diagram-container {
    max-width: 900px;
    margin: auto;
}

#erpDiagram text {
    font-family: Arial, sans-serif;
}

#erpDiagram circle {
    cursor: pointer;
    transition: transform 0.2s ease;
}

    #erpDiagram circle:hover {
        transform: scale(1.1);
    }




/*
    this datalist shows what we are doing*/


/* PAGE CONTAINER */
.project-setup-container {
    max-width: 1900px;
    margin: 30px auto;
    padding: 10px;
}

/* TITLE */
.page-title {
    margin-bottom: 21px;
}

/* TILE */
.accordion-tile {
    margin-bottom: 14px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* HEADER */
.accordion-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

    .accordion-header h4 {
        margin: 0;
    }

    .accordion-header small {
        color: #9aa6b2;
    }

/* CHEVRON */
.chevron {
    transition: transform 0.3s ease;
    font-size: 14px;
}

    .chevron.open {
        transform: rotate(180deg);
    }

/* BODY */
.accordion-body {
    background: #f4f7fb;
    padding: 20px;
}

/* POPUP THEME */
.popup-theme {
    background: white;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* PLACEHOLDER */
.placeholder-content {
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 15px;
}

/* ACTIONS */
.popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

/* BUTTONS */
.btn-primary {
    background: #2b6cb0;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #2b6cb0;
    color: #2b6cb0;
    padding: 10px 18px;
    border-radius: 8px;
}






/*thead datalist*/

.point-form-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.point-form-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    cursor: pointer;
}

    .point-form-card ul {
        margin: 0;
        padding-left: 18px;
    }

    .point-form-card li {
        margin-bottom: 6px;
        line-height: 1.5;
    }

        .point-form-card li strong {
            margin-right: 6px;
            color: #2d3748;
        }


     /*   test documents page*/

.document-library {
    display: flex;
    height: 100%;
    border: 1px solid #ddd;
}

/* LEFT PANEL */
.doc-sidebar {
    width: 240px;
    border-right: 1px solid #ddd;
    padding: 12px;
    background: #fafafa;
}

    .doc-sidebar h5 {
        margin-bottom: 10px;
    }

.doc-folder {
    padding: 8px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: center;
    border-radius: 4px;
}

    .doc-folder:hover {
        background: #e9f1ff;
    }

    .doc-folder.active {
        background: #dbe9ff;
        font-weight: 600;
    }

/* RIGHT PANEL */
.doc-content {
    flex: 1;
    padding: 16px;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
}

    .doc-table th {
        text-align: left;
        padding: 8px;
        border-bottom: 1px solid #ccc;
    }

    .doc-table td {
        padding: 8px;
        border-bottom: 1px solid #eee;
    }

.doc-name i {
    margin-right: 8px;
}

/* ACTION MENU */
.doc-actions {
    width: 40px;
    text-align: right;
}

.dots-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 20px;
    background: white;
    border: 1px solid #ccc;
    min-width: 120px;
    z-index: 100;
}

    .dropdown-menu a {
        display: block;
        padding: 9px;
        text-decoration: none;
        color: black;
    }

        .dropdown-menu a:hover {
            background: #f0f0f0;
        }

.dropdown:hover .dropdown-menu {
    display: block;
}
.doc-folder .badge {
    font-size: 0.75rem;
    padding: 3px 7px;
    border-radius: 10px;
    color: white;
  
}
.doc-folder-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 98%;
}

.doc-folder-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-folder-count {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
}



/*spinner construction*/
.construction-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #555;
}

/* Worker icon animation */
.construction-loader .helmet {
    font-size: 40px;
    animation: bounce 1s infinite ease-in-out;
}

/* Progress bar */
.construction-loader .bar {
    width: 220px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.construction-loader .bar-fill {
    height: 100%;
    width: 30%;
    background: repeating-linear-gradient( 45deg, #f4b400, #f4b400 10px, #000 10px, #000 20px );
    animation: build 1.2s infinite linear;
}

.construction-loader .text {
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes build {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}
.upload-progress {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
}

.progress-bar {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin: 6px 0;
}

.progress-fill {
    height: 100%;
    background: #28a745;
    transition: width 0.2s ease;
}

.progress-info {
    font-size: 0.9rem;
    font-weight: 500;
}






.mastt-table-wrapper {
    max-height: 40vh; /* ✅ 40% of viewport height */
    overflow-y: auto; /* vertical scrollbar */
    overflow-x: auto; /* horizontal scroll if needed */
    border: 1px solid #ddd;
}

/* Optional: keep header visible while scrolling */
.mastt-table thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

/* Optional: table layout stability */
.mastt-table {
    width: 100%;
    border-collapse: collapse;
}
.preview-modal {
    width: 95%;

    max-width: 1200px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.preview-body {
    flex: 1;
    overflow: auto;
    padding: 11px;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 11px;
}

.preview-title {
    flex: 1;
    text-align: center;
    font-weight: 600;
}

.nav-btn {
    background: #f1f1f1;
    border: none;
    padding: 6px 12px;
    font-size: 18px;
    cursor: pointer;
}

    .nav-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }
.preview-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 21px;
}

    .switch input {
        display: none;
    }

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .3s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        border-radius: 50%;
        transition: .3s;
    }

input:checked + .slider {
    background-color: #28a745;
}

    input:checked + .slider:before {
        transform: translateX(20px);
    }

.switch-label {
    font-size: 13px;
}
/* ===== ZIP TOP PROGRESS ===== */

.top-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    z-index: 9999;
}

.top-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #22c55e);
    transition: width 0.3s ease;
}

.top-progress-text {
    position: fixed;
    top: 7px;
    right: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    background: white;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
/* ===== ZIP MODAL PROGRESS ===== */

.zip-progress-wrapper {
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.zip-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.zip-progress-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.zip-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #22c55e);
    transition: width 0.25s ease;
}

.zip-progress-percent {
    text-align: right;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 600;
}
