.venturo-intro, .venturo-toolbar { margin-bottom: 24px; }
.venturo-intro p, .venturo-toolbar p { margin: 0; color: #666; }
.venturo-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.venturo-toolbar-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin: 0 0 18px; }
.venturo-primary-action,
.ui.button.venturo-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 267px;
    box-sizing: border-box;
    padding: 13px 25px;
    border: 1px solid var(--main-color) !important;
    border-radius: 10px;
    background: var(--main-color) !important;
    color: #fff !important;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
}
.venturo-primary-action:hover,
.venturo-primary-action:focus,
.ui.button.venturo-primary-action:hover,
.ui.button.venturo-primary-action:focus { background: #008ac7 !important; border-color: #008ac7 !important; color: #fff !important; }
.venturo-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 267px;
    box-sizing: border-box;
    padding: 13px 25px;
    border: 1px solid #b7bdc7;
    border-radius: 10px;
    background: #b7bdc7;
    color: #fff !important;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
}
.venturo-secondary-action:hover, .venturo-secondary-action:focus { background: #9fa7b3; border-color: #9fa7b3; color: #fff !important; }
.venturo-danger-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    min-width: 267px;
    box-sizing: border-box;
    padding: 13px 25px;
    border: 1px solid #c62828;
    border-radius: 10px;
    background: #c62828;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.venturo-danger-action:hover, .venturo-danger-action:focus { border-color: #a61f1f; background: #a61f1f; color: #fff; }
.venturo-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
#upload-form .field select,
#upload-form .field input[type="file"] {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    border: 1px solid #d5dbe5 !important;
    border-radius: 10px !important;
    background-color: #fff !important;
    color: #222 !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    box-shadow: none !important;
}
#upload-form .field select {
    -webkit-appearance: none;
    appearance: none;
    padding: 12px 42px 12px 14px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 7px !important;
}
#upload-form .field input[type="file"] {
    -webkit-appearance: none;
    appearance: none;
    padding: 6px 8px !important;
}
#upload-form .field input[type="file"]::file-selector-button,
#upload-form .field input[type="file"]::-webkit-file-upload-button {
    margin: 0 10px 0 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 7px;
    background: #eef0f3;
    color: #222;
    font: inherit;
    cursor: pointer;
}
#upload-form .field select:focus,
#upload-form .field input[type="file"]:focus {
    border-color: var(--main-color) !important;
    outline: 2px solid rgba(0, 166, 224, .14);
    outline-offset: 1px;
}
.venturo-page-hero { background: linear-gradient(135deg, #fff, #f6f8fb); border: 1px solid #e5e9f0; border-radius: 18px; padding: 26px 28px; margin-bottom: 18px; box-shadow: 0 10px 28px rgba(15, 23, 42, .05); }
.venturo-page-badge { display: inline-flex; align-items: center; margin-bottom: 14px; padding: 7px 12px; background: #eee; border-radius: 8px; color: #111827; font-size: 12px; line-height: 1; font-weight: 800; }
.venturo-page-hero h1 { margin: 0 0 8px; color: #111827; font-size: 30px; line-height: 1.15; font-weight: 800; }
.venturo-page-hero p { max-width: 900px; margin: 0; color: #475569; font-size: 14px; line-height: 1.5; }
.venturo-section-title { margin: 0 0 16px; font-size: 18px; line-height: 1.35; font-weight: 700; color: #222; }
.venturo-panel { background: #fff; border: 1px solid #e5e9f0; border-radius: 18px; padding: 20px; margin: 0 0 22px; box-shadow: 0 8px 24px rgba(15, 23, 42, .04); }
.venturo-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.venturo-card { background: #fff; border: 1px solid #e5e9f0; border-radius: 18px; padding: 20px; box-shadow: 0 8px 24px rgba(15, 23, 42, .04); }
.venturo-card span { display: block; color: #777; margin-bottom: 8px; }
.venturo-card strong { font-size: 30px; }
.venturo-card strong.smaller { font-size: 17px; }
.venturo-empty { text-align: center; background: #fff; border: 1px dashed #ccc; border-radius: 12px; padding: 45px 20px; }
.venturo-empty.compact { padding: 20px; }
.venturo-empty > i { font-size: 42px; color: var(--main-color); }
.venturo-progress { height: 12px; background: #e9ecef; border-radius: 8px; overflow: hidden; min-width: 150px; }
.venturo-progress > div { height: 100%; background: var(--main-color); transition: width .25s; }
.venturo-progress.complete > div { background: #35a853; }
.upload-live { margin-top: 18px; }
#upload-progress-text { padding-top: 10px; }
.venturo-document-loading { display: flex; align-items: center; gap: 16px; min-height: 80px; padding: 18px; color: #555; background: #f8f8f8; border-radius: 8px; }
.venturo-document-loading > i { flex: 0 0 auto; color: var(--main-color); font-size: 26px; }
.venturo-document-loading p { margin: 5px 0 0; color: #777; }
.venturo-table small { color: #777; }
.venturo-table th, .venturo-table td { vertical-align: top !important; }
.venturo-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.venturo-result-grid a { display: block; padding: 12px; border: 1px solid transparent; border-radius: 8px; background: #f7f7f7; color: #222; text-decoration: none; transition: border-color .15s, background .15s; }
.venturo-result-grid a:hover { border-color: #c8d0d8; background: #f1f2f3; color: #222; }
.venturo-result-grid a.active { border-color: var(--main-color); background: #f7f7f7; color: #222; }
.venturo-result-grid b { float: right; }
.venturo-document-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.venturo-row-actions { display: flex; align-items: flex-start; gap: 16px; }
.venturo-row-actions form { margin: 0; }
.venturo-delete-button { display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; color: #000; font: inherit; font-size: 18px; cursor: pointer; }
.venturo-delete-button:hover, .venturo-delete-button:focus { color: #000; opacity: .65; }
.venturo-delete-disabled { display: inline-flex; align-items: center; color: #999; font-size: 18px; cursor: not-allowed; }

.ui.orange.button { background-color: var(--main-color) !important; }
.ui.orange.button:hover, .ui.orange.button:focus { background-color: #008ac7 !important; }

@media (max-width: 800px) {
    .venturo-kpis, .venturo-result-grid { grid-template-columns: 1fr; }
    .venturo-toolbar { align-items: flex-start; flex-direction: column; }
    .venturo-table { display: block; overflow: auto; }
    .venturo-page-hero { padding: 20px; }
    .venturo-page-hero h1 { font-size: 26px; }
    .venturo-toolbar-actions { justify-content: stretch; }
    .venturo-primary-action, .ui.button.venturo-primary-action, .venturo-secondary-action, .venturo-danger-action { width: 100%; min-width: 0; }
}

.venturo-project-description{font-size:13px;line-height:1.5;color:#7b8490;margin-top:5px;white-space:pre-line;overflow-wrap:anywhere;max-width:560px}

.venturo-project-table{width:100%;table-layout:fixed;min-width:840px}.venturo-project-table th:first-child,.venturo-project-table td:first-child{width:auto;min-width:200px}.venturo-project-table th:not(:first-child),.venturo-project-table td:not(:first-child){width:auto;white-space:nowrap;overflow-wrap:anywhere}.venturo-project-table .venturo-project-description{max-width:none}.venturo-project-actions{display:flex;align-items:center;gap:16px;white-space:nowrap}.venturo-project-actions form{margin:0}.venturo-project-table .venturo-project-upload{color:#009fe3;text-decoration:none;font-weight:400}.venturo-project-table .venturo-project-upload:hover,.venturo-project-table .venturo-project-upload:focus-visible{text-decoration:underline}

.global-processing-status{position:fixed;right:24px;bottom:24px;z-index:1000;width:360px;max-width:calc(100vw - 32px);box-sizing:border-box;padding:18px 20px 20px;background:#fff;border:1px solid #e2e6ec;border-radius:16px;box-shadow:0 12px 44px #17203324,0 2px 8px #1720330a;color:#20242b;line-height:1.5}
.global-processing-launcher{position:fixed;right:24px;bottom:24px;z-index:999;display:grid;place-items:center;width:52px;height:52px;padding:0;border:1px solid var(--main-color);border-radius:10px;background:var(--main-color);color:#fff;box-shadow:0 8px 24px #17203324;cursor:pointer}.global-processing-launcher:hover,.global-processing-launcher:focus-visible{border-color:#008ac7;background:#008ac7}.global-processing-launcher[hidden]{display:none!important}
.global-processing-status[hidden]{display:none!important}.global-processing-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;font-size:10px;font-weight:600;letter-spacing:.1em;color:#717985}.global-processing-top button{display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:7px;background:#f3f4f6;color:#454b55;font:22px/1 Arial;cursor:pointer}.global-processing-top button:hover{background:#e7e9ed}.global-processing-track{height:6px;overflow:hidden;background:#eceef1;border-radius:8px;margin-bottom:14px}.global-processing-track>span{display:block;height:100%;width:0;background:var(--main-color);border-radius:inherit;transition:width .4s ease}.global-processing-status.complete .global-processing-track>span{background:#35a853}.global-processing-status.failed .global-processing-track>span{background:#c82929}.global-processing-status #global-processing-link{display:block;color:#20242b!important;text-decoration:none;font-size:15px;overflow-wrap:anywhere}.global-processing-status #global-processing-link:hover{text-decoration:underline}.global-processing-line{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-top:6px;font-size:12px;color:#303640}#global-processing-stage{overflow-wrap:anywhere}#global-processing-percent{flex-shrink:0;font-variant-numeric:tabular-nums}.venturo-toolbar.venturo-delivery-actions{justify-content:flex-end;align-items:flex-end}.venturo-delivery-actions form{margin:0}@media(max-width:600px){.global-processing-status{right:16px;bottom:16px;width:calc(100vw - 32px)}.global-processing-launcher{right:16px;bottom:16px}}

.venturo-project-upload-row{margin-top:5px;font-size:13px;line-height:1.5}

.venturo-project-table col.venturo-project-meta-col{width:160px}.venturo-project-table td:first-child{overflow-wrap:anywhere}.venturo-project-table td:nth-child(2){white-space:normal}

#upload-form button:disabled,#upload-form input:disabled,#upload-form select:disabled,#upload-form [data-upload-cancel][aria-disabled="true"]{opacity:.5;cursor:not-allowed}#upload-form [data-upload-cancel][aria-disabled="true"]{pointer-events:none}

.venturo-document-actions{white-space:nowrap}.venturo-document-actions a+a{margin-left:14px}#delivery-documents-table td:first-child{overflow-wrap:anywhere;word-break:break-word}#delivery-documents-table_wrapper .dataTables_length,#delivery-documents-table_wrapper .dataTables_filter{margin-bottom:18px}#delivery-documents-table_wrapper .dataTables_info,#delivery-documents-table_wrapper .dataTables_paginate{margin-top:14px}#delivery-documents-table_wrapper input[type=search]{border:1px solid #d5dce5;border-radius:8px;padding:8px 12px}#delivery-documents-table_wrapper select{border:1px solid #d5dce5;border-radius:6px;padding:6px}

.global-processing-hint{margin:14px 0 0;padding-top:12px;border-top:1px solid #eceef1;color:#343a43;font-size:12px;line-height:1.5}.global-processing-top button:disabled{opacity:.35;cursor:not-allowed}

.main.venturo-delivery-page{padding-bottom:48px}
.venturo-delivery-page #document-list-panel{margin-bottom:0}

td.delivery-status,.venturo-card strong.delivery-stage-summary{white-space:pre-line;line-height:1.2}

.venturo-search-actions{display:flex;align-items:center;gap:20px;position:relative;top:20px}.venturo-search-reset{border:0;background:transparent;color:#009ee4;cursor:pointer;padding:8px;font:inherit}.venturo-search-note{color:#68717e;font-size:13px;line-height:1.5;margin:46px 0 0}.venturo-search-path{overflow-wrap:anywhere}.venturo-search-context{font-size:12px;color:#6d7684;margin-top:6px}.venturo-search-excerpt{font-size:13px;color:#444d59;margin-top:8px;padding-left:10px;border-left:2px solid #dce3eb;white-space:pre-line;overflow-wrap:anywhere}#document-search-results_wrapper .dataTables_length{margin-bottom:18px}#document-search-results_wrapper .dataTables_info,#document-search-results_wrapper .dataTables_paginate{margin-top:14px}#document-search-results_wrapper select{border:1px solid #d5dce5;border-radius:6px;padding:6px}.main.venturo-search-page{padding-bottom:48px}

/* Consistent controls across Safari and other browsers. */
select:not([multiple]){-webkit-appearance:none!important;appearance:none!important;background-color:#fff!important;color:#222;border:1px solid #d5dbe5;border-radius:8px;font-family:Arial,sans-serif;padding:10px 36px 10px 12px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:12px 7px!important;box-shadow:none!important}
select[multiple]{-webkit-appearance:none;appearance:none;border:1px solid #d5dbe5;border-radius:8px;background:#fff;color:#222}
.venturo-search-actions{justify-content:flex-end}.venturo-phase{margin:12px 0 16px}.venturo-phase-heading{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#222}.venturo-phase-track{height:6px;background:#eceef1;overflow:hidden;border-radius:8px;margin:6px 0}.venturo-phase-track>span{display:block;height:100%;background:var(--main-color);transition:width .3s}.venturo-phase-track.complete>span{background:#35a853}.venturo-phase-track.failed>span{background:#c82929}.venturo-phase small{display:block;color:#69717d;font-size:11px;line-height:1.4}.global-processing-status .venturo-phase{margin:10px 0 14px}#document-search-indexing:after{content:' '}

.venturo-delivery-progress-cell{min-width:260px}.venturo-delivery-progress-cell .venturo-phase:first-child{margin-top:0}.venturo-delivery-progress-cell .venturo-phase:last-child{margin-bottom:0}.venturo-delivery-page .venturo-phase-heading{font-size:inherit}

.venturo-phase small{margin-top:4px}.venturo-phase-track{margin:7px 0 0}

#deliveries-table_wrapper .dataTables_length,#deliveries-table_wrapper .dataTables_filter{margin-bottom:18px}#deliveries-table_wrapper .dataTables_info,#deliveries-table_wrapper .dataTables_paginate{margin-top:14px}#deliveries-table_wrapper input[type=search]{border:1px solid #d5dce5;border-radius:8px;padding:8px 12px}#deliveries-table_wrapper .dataTables_filter input{max-width:100%}

/* Every content page must leave usable space below its final panel. */
#main.main{padding-bottom:48px}.venturo-panel .dataTables_length,.venturo-panel .dataTables_filter{margin-bottom:18px}.venturo-panel .dataTables_info,.venturo-panel .dataTables_paginate{margin-top:14px}.venturo-panel .dataTables_filter input{border:1px solid #d5dce5;border-radius:8px;padding:8px 12px}

.venturo-dashboard-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}.venturo-dashboard-kpis .venturo-card{min-width:0;min-height:130px;box-sizing:border-box}.venturo-search-path mark,.venturo-search-context mark,.venturo-search-excerpt mark{background:#fff2ad;color:inherit;border-radius:3px;padding:0 1px}@media(max-width:1399px){.venturo-dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1000px){.venturo-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.venturo-dashboard-kpis{grid-template-columns:1fr}}

.global-processing-top #global-processing-link{font-size:16px;letter-spacing:0;line-height:1.35}.global-processing-top{align-items:flex-start}.global-processing-line[hidden]{display:none!important}.venturo-delivery-progress-cell [data-progress-phases]{padding-bottom:30px}
