/* ==========================================================================
   Submission/Depo Stylesheet: sw_asset/css/depo_style.css
   ========================================================================== */

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Fixed toolbar */
.print-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #1e293b;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.print-toolbar .toolbar-label {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.btn-save-pdf {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-save-pdf:hover {
    background: #2563eb;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.btn-save-pdf:active {
    background: #1d4ed8;
}

/* Typography & Core Styling for Print Preview */
body.depo-print-preview-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2c3e50;
    line-height: 1.6;
}

@media screen {
    body.depo-print-preview-body {
        background-color: #f3f4f6;
        min-height: 100vh;
    }
}

/* A4 paper sheet */
.a4-paper {
    background: #ffffff;
    width: 210mm;
    min-height: 297mm;
    margin: 80px auto 40px auto;
    padding: 18mm 22mm 18mm 22mm;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: relative;
    border-radius: 8px;
}

/* Inner content tweaks */
.a4-paper table {
    width: 100%;
    border-collapse: collapse;
}

.a4-paper td {
    padding: 4px 0;
    vertical-align: top;
}

.a4-paper img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.a4-paper hr {
    border: none;
    border-top: 1px solid #aaa;
    margin: 8px 0;
}

/* Utility Classes */
.u-align-center {
    text-align: center !important;
}

/* Responsive Screen Styling */
@media screen and (max-width: 850px) {
    body.depo-print-preview-body {
        padding-top: 60px;
    }

    .print-toolbar {
        padding: 10px 16px;
    }
    
    .print-toolbar .toolbar-label {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60%;
    }
    
    .btn-save-pdf {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 4px;
    }

    .a4-paper {
        width: calc(100% - 32px);
        margin: 20px auto;
        padding: 24px 16px;
        min-height: auto;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border-radius: 6px;
    }

    .depo-divider-table {
        width: 80% !important;
    }
}

/* Print media */
@media print {
    *, *:before, *:after {
        box-sizing: border-box !important;
    }

    html, body {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.depo-print-preview-body {
        background: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .print-toolbar {
        display: none !important;
    }

    .a4-paper {
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
}


/* ==========================================================================
   Extracted UI Styles for sw_depos files
   ========================================================================== */

/* Tables and Dividers */
.depo-acceptance-table {
    width: 100%;
    text-align: center;
}

.depo-divider-table {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

/* Status Messages & Icons */
.depo-status-icon-success {
    color: #1a73e8;
}

.depo-status-icon-warning {
    color: #c0392b;
}

.depo-login-container {
    min-height: calc(100vh - 240px);
}

.depo-status-title {
    margin: 18px 0 10px;
    font-size: 20px;
}

.depo-status-text {
    margin-bottom: 24px;
    color: #555;
    font-size: 14px;
}

.depo-login-status-label {
    text-align: center;
    font-size: 12px;
}

.depo-login-links-container {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* Form Filter Rows & Grids */
.depo-filter-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.depo-float-right {
    float: right;
}

.depo-color-red-important {
    color: red !important;
}

.depo-link-btn {
    text-decoration: none;
    display: inline-block;
    margin-left: 8px;
}

.depo-display-none {
    display: none;
}

/* Print Mode Table */
.depo-print-body {
    background-color: white !important;
}

.depo-print-table-header {
    text-align: center;
    border: 1px solid;
}

.depo-print-table-header-cell {
    border: 1px solid;
}

.depo-print-table-cell {
    vertical-align: top;
    border: 1px solid;
}

.depo-print-table-cell-left {
    vertical-align: top;
    text-align: left;
    border: 1px solid;
}

/* Margins & Utility Classes */
.depo-margin-top-30 {
    margin-top: 30px;
}

.depo-margin-top-20 {
    margin-top: 20px;
}

.depo-margin-bottom-15 {
    margin-bottom: 15px;
}

.depo-footer-center {
    width: 100%;
    text-align: center;
}

.depo-footer-center-mt-20 {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.depo-debug-query {
    color: yellow;
}

/* Warning & Alerts */
.depo-extension-warning {
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 4px 8px;
    display: inline-block;
    margin-top: 4px;
}

.depo-rdm-cell {
    text-align: left;
    vertical-align: top;
    border-left: 2px solid lightgrey;
}

.depo-rdm-table {
    width: 350px;
    border-radius: 8px;
    overflow: hidden;
    margin-left: 0;
    margin-right: auto;
}

.depo-item-not-available-icon {
    color: #f39c12;
    font-size: 48px;
    margin-bottom: 16px;
}

/* Password Change Page */
.depo-pwd-requirements-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.depo-pwd-requirements-title {
    color: #856404;
    margin: 0 0 15px 0;
}

.depo-pwd-requirements-list {
    margin: 0;
    padding-left: 20px;
    color: #856404;
    text-align: left;
}

.depo-min-width-220 {
    min-width: 220px;
}

/* Document Upload and Registration Banners */
.depo-info-banner {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    width: 90%;
    max-width: 1100px;
}

.depo-info-banner-text {
    margin: 0;
    color: #0c5460;
    font-weight: 500;
}

.depo-max-w1100 {
    max-width: 1100px;
}

.depo-container-max-w1100 {
    max-width: 1100px;
    width: 90%;
    box-sizing: border-box;
    text-align: left;
}

.depo-container-max-w1100-centered {
    max-width: 1100px;
    width: 90%;
    box-sizing: border-box;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .depo-container-max-w1100,
    .depo-container-max-w1100-centered {
        width: 95%;
        padding: 16px 12px;
    }

    .depo-info-banner {
        width: 95%;
        padding: 12px 10px;
    }
}

.depo-form-section-header {
    background: #6c757d;
    color: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

.depo-form-section-header.is-spaced {
    margin: 30px 0 20px 0;
}

.depo-form-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.depo-text-error-small {
    color: #dc3545;
    font-size: 14px;
}

.depo-text-lightgrey {
    color: lightgrey;
}

.depo-file-status-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    font-size: 14px;
}

.depo-file-status-box-large {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    font-size: 16px;
    min-height: 80px;
    white-space: pre-wrap;
}

.depo-text-success {
    color: #28a745;
}

.depo-text-danger {
    color: #dc3545;
}

.depo-file-upload-input {
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.depo-form-textarea {
    resize: vertical;
    font-family: inherit;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.depo-flex-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.depo-checkbox-scale {
    transform: scale(1.2);
}

.depo-text-primary-medium {
    color: #1976d2;
    font-weight: 500;
}

/* Depositor Dashboard Information Panel */
.depo-info-panel-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.depo-info-panel-row.no-margin {
    margin-bottom: 0;
}

.depo-info-panel-row.mt-12 {
    margin-top: 12px;
}

.depo-icon-blue {
    color: #007bff;
}

.depo-icon-green {
    color: #28a745;
}

.depo-icon-purple {
    color: #6c5ce7;
}

.depo-icon-muted {
    color: #adb5bd;
}

.depo-text-muted {
    color: #6c757d;
}

.depo-font-13-no-decor {
    font-size: 13px;
    text-decoration: none;
}

.depo-no-decor {
    text-decoration: none;
}

.depo-width-100 {
    width: 100%;
}

/* User List/Manage CSS classes */
.depo-browser-links-wrapper {
    margin-top: 20px;
}

.depo-icon-purple-color {
    color: purple;
}

.depo-icon-grey-color {
    color: grey;
}

.depo-icon-orange-color {
    color: orange;
}

.depo-text-uppercase {
    text-transform: uppercase;
}

/* View Upload Details page specific styling */
.depo-header-container {
    text-align: center;
    margin-bottom: 20px;
}

.depo-status-pill {
    background: #6c757d;
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
}

.depo-list-top-margin {
    margin-top: 4px;
    padding-left: 20px;
}

.depo-list-padding {
    padding: 4px 0;
}

.depo-view-form-grid-header {
    background: #6c757d;
    color: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.depo-view-textarea-like {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f9fa;
    font-size: 14px;
    min-height: 42px;
}

.depo-view-textarea-large-like {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f9fa;
    font-size: 16px;
    min-height: 80px;
}

.depo-view-footer-actions {
    margin-top: 30px;
    text-align: center;
}

.depo-navbar-hamburger {
    font-size: 15px;
}

.depo-register-success-blue {
    text-align: center;
    color: blue;
}

.depo-register-error-red {
    text-align: center;
    color: red;
}

.depo-margin-top-8 {
    margin-top: 8px;
}

.depo-margin-top-6 {
    margin-top: 6px;
}

/* Styled Reset Button */
.mainneo-reset-btn {
    background-color: #dc3545;
    color: #ffffff !important;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
    border: 1px solid #dc3545;
    transition: background-color 0.2s, border-color 0.2s;
}

.mainneo-reset-btn:hover {
    background-color: #bd2130;
    border-color: #bd2130;
    color: #ffffff !important;
}

/* Quota Progress Bar Styling */
.depo-quota-container {
    margin-top: 15px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.depo-quota-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    border-color: rgba(255, 255, 255, 0.9);
}

.depo-progress-bar-wrapper {
    height: 8px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 9999px;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.depo-progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

/* Gradient themes */
.depo-progress-safe {
    background: linear-gradient(90deg, #6c5ce7, #a29bfe, #3b82f6);
}

.depo-progress-warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
}

.depo-progress-danger {
    background: linear-gradient(90deg, #ef4444, #f43f5e, #ef4444);
}

.depo-progress-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #4a5568;
    font-weight: 600;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   Admin Submissions Print Preview Report Styles
   ========================================================================== */

/* Multi-Sheet Screen Preview & Pagination */
.a4-pages-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin: 75px auto 40px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.a4-page-sheet {
    box-sizing: border-box;
    width: 297mm;
    min-height: 210mm;
    height: 210mm;
    max-height: 210mm;
    padding: 10mm;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.a4-page-sheet-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.depo-report-subsequent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #94a3b8;
    padding-bottom: 6px;
    margin-bottom: 8px;
    font-size: 11px;
    color: #475569;
}

.depo-report-subsequent-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subsequent-continuation-tag {
    font-weight: 600;
    color: #0284c7;
    margin-left: 6px;
    font-size: 10.5px;
}

.depo-footer-page-num {
    font-weight: 700;
    color: #1e293b;
    font-size: 10.5px;
}

/* Fallback single Landscape A4 Paper sheet (297mm x 210mm) */
.a4-paper.a4-landscape {
    box-sizing: border-box;
    width: 297mm;
    min-height: 210mm;
    margin: 80px auto 40px auto;
    padding: 10mm 10mm;
}

@media screen and (max-width: 1200px) {
    .a4-page-sheet,
    .a4-paper.a4-landscape {
        width: calc(100% - 32px);
        margin: 70px auto 20px auto;
        padding: 16px;
        min-height: auto;
        height: auto;
        max-height: none;
    }
}

.depo-report-header {
    text-align: center;
    margin-bottom: 10px;
}

.depo-report-title {
    font-size: 15px;
    font-weight: 700;
    margin-top: 4px;
    margin-bottom: 2px;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.depo-report-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    margin-bottom: 6px;
}

.depo-divider-table {
    margin-bottom: 6px;
}

.depo-report-meta-box {
    background: #f8fafc;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 10px;
    font-size: 11px;
    color: #334155;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.depo-report-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.depo-report-tag {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10.5px;
    border: 1px solid #bae6fd;
}

.depo-report-meta-right {
    font-size: 10.5px;
    color: #475569;
    text-align: right;
}

/* Full Grid (Inside-Out) Borders for Report Table */
.depo-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10.5px;
    line-height: 1.35;
    margin-bottom: 12px;
    border: 1.5px solid #1e293b;
    table-layout: auto;
}

.depo-report-table th,
.depo-report-table td {
    border: 1px solid #475569;
    padding: 4px 6px;
    vertical-align: middle;
}

.depo-report-table th {
    background-color: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    border: 1px solid #1e293b;
    border-bottom: 2px solid #0f172a;
}

.depo-report-table th.u-align-center,
.depo-report-table td.u-align-center {
    text-align: center;
}

.depo-report-table tr:nth-child(even) td {
    background-color: #f8fafc;
}

.depo-report-empty {
    text-align: center;
    padding: 24px;
    color: #64748b;
    font-style: italic;
    font-size: 12px;
    border: 1px dashed #94a3b8;
    border-radius: 4px;
    margin: 16px 0;
}

.depo-report-footer {
    margin-top: 12px;
    font-size: 10px;
    color: #64748b;
    border-top: 1px solid #94a3b8;
    padding-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media print {
    .a4-pages-wrapper {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .a4-page-sheet {
        width: 100% !important;
        height: auto !important;
        min-height: 190mm !important;
        max-height: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        overflow: visible !important;
        page-break-after: always !important;
        break-after: page !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .a4-page-sheet:last-child {
        page-break-after: auto !important;
        break-after: auto !important;
    }

    .a4-page-badge {
        display: none !important;
    }

    .page-count-badge {
        display: none !important;
    }

    .depo-report-header,
    .depo-report-subsequent-header,
    .depo-report-meta-box {
        break-inside: avoid;
        page-break-inside: avoid;
        page-break-after: avoid;
    }

    .depo-report-table {
        border: 1.5px solid #000 !important;
        width: 100% !important;
    }

    .depo-report-table thead {
        display: table-header-group;
    }

    .depo-report-table th,
    .depo-report-table td {
        border: 1px solid #000 !important;
        padding: 4px 5px !important;
    }

    .depo-report-table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .depo-report-meta-box {
        border-color: #000 !important;
        background: #fff !important;
    }

    .depo-report-tag {
        border: 1px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
    }

    .depo-report-table th {
        background-color: #f1f5f9 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .depo-report-footer {
        break-inside: avoid;
        page-break-inside: avoid;
        border-top-color: #000 !important;
        color: #000 !important;
    }
}

