﻿.content-wrapper {
    background: radial-gradient(circle at 95% 0px, rgba(24, 170, 204, 0.075), transparent 31rem), linear-gradient(135deg, rgb(255, 255, 255), rgb(246, 252, 253));
}

.skin-blue .content-header {
    background: none;
}

.content {
    background: none;
}


:root {
    --primary: #18AACC;
    --primary-dark: #128aa6;
    --primary-light: #e6f8fc;
    --primary-glow: rgba(24,170,204,0.35);
    --text-dark: #122633;
    --text-muted: #6b7c88;
    --glass-bg: rgba(255,255,255,0.55);
    --glass-border: rgba(255,255,255,0.65);
}

* {
    font-family: 'Poppins',sans-serif;
}



/* subtle floating blobs for depth */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
    animation: floatBlob 14s ease-in-out infinite;
}

.blob-1 {
    width: 320px;
    height: 320px;
    background: var(--primary-glow);
    top: -80px;
    left: -100px;
}

.blob-2 {
    width: 260px;
    height: 260px;
    background: rgba(24,170,204,0.18);
    bottom: -80px;
    right: -60px;
    animation-delay: 3s;
}

.blob-3 {
    width: 180px;
    height: 180px;
    background: rgba(24,170,204,0.15);
    top: 40%;
    right: 10%;
    animation-delay: 6s;
}

@keyframes floatBlob {
    0%,100% {
        transform: translate(0,0) scale(1);
    }

    50% {
        transform: translate(20px,-25px) scale(1.08);
    }
}

.page-wrap {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ---------- HEADER ---------- */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 38px;
    flex-wrap: wrap;
    gap: 16px;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg,var(--primary),var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 8px 24px var(--primary-glow);
}

.brand-title h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-dark);
    letter-spacing: .2px;
}

.brand-title p {
    margin: 0;
    color: var(--text-muted);
    font-size: .85rem;
    font-weight: 500;
}

.header-actions .btn {
    border-radius: 12px;
    font-weight: 600;
    font-size: .85rem;
}

/* progress pill strip */
.steps-strip {
    display: flex;
    gap: 10px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

.step-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    box-shadow: 0 4px 14px rgba(18,38,51,0.05);
}

    .step-pill .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #c9d6dc;
    }

    .step-pill.done {
        color: var(--primary-dark);
    }

        .step-pill.done .dot {
            background: var(--primary);
            box-shadow: 0 0 0 4px var(--primary-glow);
        }

/* ---------- GLASS CARDS (FULL WIDTH) ---------- */
.cards-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.master-card {
    position: relative;
    width: 100%;
    border-radius: 26px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 8px 32px rgba(18,38,51,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
    padding: 15px 15px;
    overflow: hidden;
    transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
    animation: cardRise .7s cubic-bezier(.2,.8,.2,1) both;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

    .master-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 40%);
        pointer-events: none;
    }

    .master-card::after {
        content: "";
        position: absolute;
        top: -60%;
        left: -60%;
        width: 40%;
        height: 220%;
        background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
        transform: rotate(20deg);
        transition: left 1.1s ease;
        pointer-events: none;
    }

    .master-card:hover::after {
        left: 130%;
    }

    .master-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 44px rgba(24,170,204,0.20), inset 0 1px 0 rgba(255,255,255,0.7);
    }

@keyframes cardRise {
    from {
        opacity: 0;
        transform: translateY(28px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.master-card:nth-child(1) {
    animation-delay: .05s;
}

.master-card:nth-child(2) {
    animation-delay: .18s;
}

.master-card:nth-child(3) {
    animation-delay: .31s;
}

.card-status {
    position: absolute;
    top: 22px;
    right: 26px;
    font-size: .68rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: .4px;
    text-transform: uppercase;
    z-index: 2;
}

.status-pending {
    background: rgba(255,159,10,0.14);
    color: #b8720a;
}

.status-done {
    background: rgba(24,170,204,0.14);
    color: var(--primary-dark);
}

.card-icon-wrap {
    width: 50px;
    height: 52px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 34px;
    box-shadow: 0 10px 26px var(--primary-glow);
    position: relative;
    z-index: 1;
    flex: none;
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
}

.master-card:hover .card-icon-wrap {
    transform: scale(1.08) rotate(-4deg);
}

.card-main-info {
    flex: 1 1 65px;
    min-width: 240px;
    position: relative;
    z-index: 1;
}

.card-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.card-subheading {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 14px;
}

.mini-progress {
    height: 6px;
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    background: rgba(24,170,204,0.12);
    overflow: hidden;
}

    .mini-progress .fill {
        height: 100%;
        background: linear-gradient(90deg,var(--primary),var(--primary-dark));
        border-radius: 10px;
        transition: width .6s ease;
    }

/* ---------- LAST UPLOADED BY BLOCK ---------- */
.last-upload-block {
    flex: 1 1 280px;
    min-width: 260px;
    position: relative;
    z-index: 1;
    background: rgba(24,170,204,0.06);
    border: 1px solid rgba(24,170,204,0.16);
    border-radius: 18px;
    padding: 1px 18px;
}

.last-upload-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.last-upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.uploader-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--primary),var(--primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.uploader-details .u-name {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.uploader-details .u-role {
    font-size: .7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.last-upload-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
    font-size: .74rem;
    color: var(--text-muted);
    font-weight: 600;
}

    .last-upload-meta span i {
        color: var(--primary);
        margin-right: 4px;
    }

.no-upload-yet {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    color: var(--text-muted);
    font-weight: 600;
    font-style: italic;
}

    .no-upload-yet i {
        font-size: 20px;
        color: #c9d6dc;
    }

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
    flex: none;
    width: 170px;
}

.btn-glass-primary {
    background: linear-gradient(135deg,var(--primary),var(--primary-dark));
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: .86rem;
    padding: 11px 14px;
    border-radius: 14px;
    box-shadow: 0 8px 20px var(--primary-glow);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
    width: 100%;
}

    .btn-glass-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 26px var(--primary-glow);
        filter: brightness(1.05);
        color: #fff;
    }

    .btn-glass-primary:active {
        transform: translateY(0) scale(.97);
    }

.btn-glass-outline {
    background: rgba(255,255,255,0.5);
    border: 1.4px solid rgba(24,170,204,0.35);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: .86rem;
    padding: 11px 14px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    transition: all .25s ease;
    width: 100%;
    border-radius: 6px;
    padding: 10px 14px;
    box-shadow: 0 8px 20px #18aacc2e;
    font-size: 12px;
    font-weight: 700;
    transition: .25s;
    height: 32px;
    min-height: 32px;
}

    .btn-glass-outline:hover {
        background: rgba(24,170,204,0.12);
        border-color: var(--primary);
        color: var(--primary-dark);
        transform: translateY(-2px);
    }

    .btn-glass-outline i, .btn-glass-primary i {
        margin-right: 6px;
    }

/* ---------- OFFCANVAS ---------- */
.offcanvas {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-left: 1px solid rgba(255,255,255,0.6);
    box-shadow: -20px 0 60px rgba(18,38,51,0.18);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(24,170,204,0.15);
    padding: 22px 26px;
}

    .offcanvas-header .oc-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: linear-gradient(135deg,var(--primary),var(--primary-dark));
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 19px;
        box-shadow: 0 6px 16px var(--primary-glow);
        margin-right: 12px;
    }

.offcanvas-title {
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--text-dark);
}

    .offcanvas-title small {
        display: block;
        font-size: .75rem;
        font-weight: 500;
        color: var(--text-muted);
    }

.offcanvas-body {
    padding: 26px;
}

.upload-zone {
    border: 2px dashed rgba(24,170,204,0.4);
    border-radius: 18px;
    background: rgba(24,170,204,0.05);
    padding: 34px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .3s ease;
    position: relative;
}

    .upload-zone:hover, .upload-zone.dragover {
        background: rgba(24,170,204,0.1);
        border-color: var(--primary);
        transform: scale(1.01);
    }

    .upload-zone i {
        font-size: 40px;
        color: var(--primary);
        margin-bottom: 10px;
        display: block;
        animation: bounceIcon 2.4s ease-in-out infinite;
    }

@keyframes bounceIcon {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.upload-zone h6 {
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.upload-zone p {
    font-size: .78rem;
    color: var(--text-muted);
    margin: 0;
}

.file-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(24,170,204,0.08);
    border: 1px solid rgba(24,170,204,0.2);
    border-radius: 14px;
    padding: 12px 14px;
    margin-top: 16px;
    animation: cardRise .4s ease both;
}

    .file-chip .f-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: #1d8a3f;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        flex: none;
    }

    .file-chip .f-name {
        font-size: .82rem;
        font-weight: 600;
        color: var(--text-dark);
    }

    .file-chip .f-size {
        font-size: .72rem;
        color: var(--text-muted);
    }

    .file-chip .f-remove {
        margin-left: auto;
        color: #c0392b;
        background: none;
        border: none;
        font-size: 16px;
        cursor: pointer;
    }

.oc-section-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--primary-dark);
    margin: 26px 0 12px;
}

.template-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .83rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(24,170,204,0.07);
    transition: all .25s ease;
}

    .template-link:hover {
        background: rgba(24,170,204,0.15);
        color: var(--primary-dark);
    }

.validation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .validation-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: .8rem;
        color: var(--text-muted);
        padding: 7px 0;
    }

        .validation-list li i {
            color: var(--primary);
            margin-top: 2px;
        }



.upload-progress-wrap {
    display: none;
    margin-top: 18px;
}

    .upload-progress-wrap .progress {
        height: 8px;
        border-radius: 10px;
        background: rgba(24,170,204,0.12);
    }

    .upload-progress-wrap .progress-bar {
        background: linear-gradient(90deg,var(--primary),var(--primary-dark));
    }

    .upload-progress-wrap .pct-text {
        font-size: .75rem;
        color: var(--text-muted);
        margin-top: 6px;
        font-weight: 600;
    }

/* toast */
.toast-container {
    z-index: 2000;
}

.app-toast {
    border-radius: 16px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 14px 34px rgba(18,38,51,0.16);
}

    .app-toast .toast-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: linear-gradient(135deg,var(--primary),var(--primary-dark));
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
    }

footer.page-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: .8rem;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

    footer.page-footer b {
        color: var(--primary-dark);
    }

@media (max-width:900px) {
    .master-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-actions {
        flex-direction: row;
        width: 100%;
    }

    .last-upload-block {
        width: 100%;
    }
}

@media (max-width:576px) {
    .offcanvas {
        width: 100% !important;
    }

    .card-actions {
        flex-direction: column;
    }
}

.spin {
    animation: spinIcon 0.8s linear infinite;
    display: inline-block;
}

@keyframes spinIcon {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.btn-info {
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    color: #fff;
    background: linear-gradient(135deg, #1bc4e8, #078faf) !important;
    box-shadow: 0 8px 20px #18aacc2e;
    font-size: 12px;
    font-weight: 700;
    transition: .25s;
    height: 32px;
    min-height: 32px;
    text-shadow: none !important;
}

    .btn-info:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px #18aacc42;
    }


:root {
    --soft-border: rgba(15, 23, 42, .10);
    --muted: #64748b;
    --ink: #0f172a;
}

.offcanvas.offcanvas-end {
    width: min(100%, 88vw);
    background: #fff;
}

.offcanvas-header {
    border-bottom: 1px solid var(--soft-border);
    padding-block: 1rem;
}

.offcanvas-title {
    letter-spacing: .2px;
    font-size: 16px;
}

.topbar {
    background: linear-gradient(180deg, rgba(2, 132, 199, .06), rgba(2, 132, 199, 0));
    border: 1px solid var(--soft-border);
    border-radius: 14px;
    padding: 14px;
}

.section-card {
    border: 1px solid var(--soft-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(2, 8, 23, .06);
    overflow: hidden;
}

    .section-card .section-head {
        padding: 5px 16px;
        border-bottom: 1px solid var(--soft-border);
        background: #fbfdff;
    }

    .section-card .section-body {
        padding: 7px;
    }

.hint {
    color: var(--muted);
    font-size: 12px;
}


.table thead th {
    background: #f8fafc;
    border-bottom: 1px solid var(--soft-border) !important;
    white-space: nowrap;
}

.table td, .table th {
    vertical-align: middle;
}

.status-badge {
    font-weight: 600;
    letter-spacing: .1px;
}

.offcanvas-footer {
    border-top: 1px solid var(--soft-border);
    background: #fff;
    padding: 12px 16px;
    position: sticky;
    bottom: 0;
    z-index: 10;
}


.offcanvas {
    transition: transform .28s cubic-bezier(.2,.9,.2,1);
}


.dropzone {
    border: 1px dashed rgba(2, 132, 199, .35);
    background: rgba(2, 132, 199, .05);
    border-radius: 12px;
    padding: 5px;
}

.btn-soft {
    background: rgba(2, 132, 199, .10);
    border-color: rgba(2, 132, 199, .20);
    color: #075985;
}

    .btn-soft:hover {
        background: rgba(2, 132, 199, .16);
        border-color: rgba(2, 132, 199, .26);
        color: #075985;
    }


.table-responsive {
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

#ImportExportDrawercanvas label {
    color: #444;
}

.mt7 {
    margin-top: 7px;
}

#ImportExportDrawercanvas input[type=checkbox], #ImportExportDrawercanvas .form-check .form-check-input {
    border-color: #919191;
}

#tbleImporttable tbody td {
    white-space: nowrap;
    font-size: 12px;
    padding: 5px 7px;
}


#tbleImporttable > tbody td.groupEnd {
    position: sticky !important;
    right: 0px !important;
    background: #fff !important;
    overflow: visible !important;
    z-index: 9;
    min-width: 156px;
    max-width: 156px;
    text-overflow: ellipsis;
    overflow: hidden !important;
}

#tbleImporttable thead tr th.groupEnd {
    position: sticky !important;
    z-index: 999 !important;
    overflow: visible !important;
    right: 0px;
    background: #18AACC;
    color: #fff;
    min-width: 156px;
    max-width: 156px;
}

#tbleImporttable > tbody td.groupSeconfEnd {
    position: sticky !important;
    right: 156px !important;
    background: #fff !important;
    overflow: visible !important;
    z-index: 9;
}

#tbleImporttable thead tr th.groupSeconfEnd {
    position: sticky !important;
    z-index: 999 !important;
    overflow: visible !important;
    right: 156px;
    background: #18AACC;
    color: #fff;
    max-width: 80px;
}

#tbleImporttable tbody td.groupSeconfEnd:after, #tbleImporttable thead th.groupSeconfEnd:after {
    position: absolute;
    top: 0;
    bottom: 1px;
    left: 0;
    width: 30px;
    transform: translateX(-100%);
    content: "";
    pointer-events: none;
    box-shadow: inset -10px 0 8px -8px #00000026;
}

#tbleImporttable tbody tr.validEntry td {
    background: #effff7;
}

#tbleImporttable > tbody tr.validEntry td.groupEnd, #tbleImporttable > tbody tr.validEntry td.groupSeconfEnd {
    background: #e6fff3 !important;
}

.tooltip-ai .tooltip-inner {
    background: #ffffff;
    color: #162433;
    border: 1px solid rgba(24,170,204,.20);
    box-shadow: 0 18px 40px rgba(18,36,51,.12);
    border-radius: 16px;
    padding: 12px 14px;
    text-align: left;
    min-width: 260px;
    max-width: 360px;
}

.tooltip-ai .tooltip-arrow::before {
    border-top-color: #ffffff !important;
    border-bottom-color: #ffffff !important;
}

.tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tooltip-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: .2px;
}

.tooltip-value {
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
    color: #304153;
    background: #f7fbfd;
    border: 1px solid rgba(24,170,204,.10);
    border-radius: 12px;
    padding: 10px 12px;
}

.btnViewDesc {
    border-bottom: dashed 1px #0f7d99;
    font-weight: bold;
    color: #0f7d99;
    font-size: 12px;
}

.vDataimp {
    display: none;
}

    .vDataimp a {
        border-bottom: dashed 1px #0f7d99;
        font-weight: bold;
        color: #0f7d99 !important;
        font-size: 12px;
    }

#btnValidateData {
}

.btnSeetingBG {
    border: 1px dashed rgba(2, 132, 199, .35);
    background: rgba(2, 132, 199, .05);
    border-radius: 12px;
    padding: 12px;
    min-height: 57px;
    text-align: center;
}

.offcanvas-header, .offcanvas-body {
    padding: 7px;
    overflow-x: hidden;
}

.mt6 {
    margin-top: 6px !important;
}

.offcanvas.offcanvas-end {
    width: min(100%, 88vw);
    background: #fff;
}
