@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap');
body{font-family:'DM Sans',sans-serif;font-size:14px;line-height:1.6}
button,input,select,textarea{font-family:inherit}
h1,h2,h3,h4{font-family:Manrope,sans-serif}
h1,.documents-page .documents-main h1{font-size:44px;line-height:1.17;letter-spacing:-2px;font-weight:600}
main p,main li,.documents-page .documents-main p{font-size:14px;line-height:1.6}
.document-workspace>header,body.qrio-app main>header{font-family:'DM Sans',sans-serif;font-size:12px}
.document-workspace>header>span{min-width:0;overflow-wrap:anywhere}
.document-workspace>header .header-actions{flex-shrink:0;gap:6px}
footer,.document-workspace footer{font-family:'DM Sans',sans-serif;font-size:12px}
.information-note{padding:20px;background:#f2f5f2;border:1px solid #c8d3c7;border-radius:14px;margin:24px 0}
html[data-theme=dark] :is(.note,.information-note,.promotion,#pdfPages,.management-error,#pendingCount,.listhead h2 span){background:#24382c!important;color:#e1ebe6!important;border-color:#526a55!important}
html[data-theme=dark] :is(.document-card,.linked-lease-card){background:#1a2721!important;color:#e1ebe6!important;border-color:#3a4b44!important}
html[data-theme=dark] :is(.note,.information-note,.promotion,.management-error) :is(span,b,strong,a){color:#e1ebe6!important}
html[data-theme=dark] :is(.version,.parent,.status,.chart-legend,.chart-label,.commitment-number){color:#b1c1ba!important}
html[data-theme=dark] #toast{background:#24382c;color:#e1ebe6;border:1px solid #526a55}
html[data-theme=dark] input::file-selector-button{background:#293e30!important;color:#e1ebe6!important;border-color:#586c60!important}
html[data-theme=dark] .guide-index a:hover{background:#304938!important}
html[data-theme=dark] .primary :is(span,b,strong){color:#15251a!important}
html[data-theme=dark] .qrart{background:#fff;color:#000}
@media(max-width:760px){body{font-size:16px}h1,.documents-page .documents-main h1{font-size:32px;letter-spacing:-1.3px}main p,main li,.documents-page .documents-main p{font-size:16px}.document-workspace>header,body.qrio-app main>header{height:auto;min-height:72px;padding:16px 20px;flex-wrap:wrap;font-size:14px}.document-workspace>header .header-actions{gap:4px}.document-workspace footer{font-size:14px}}

.document-workspace main>footer{grid-column:1/-1;width:100%}.document-workspace>main:not(.documents-main):not(.about-main){max-width:1120px;margin:auto}.document-workspace>main:not(.documents-main):not(.about-main)>section:only-of-type{grid-column:1/-1}

/* Dialog selectors use the same field geometry as text inputs. */
dialog select{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:44px;margin-top:8px;padding:11px 12px;border:1px solid #dce3e1;border-radius:7px;background:#fff;color:#2f4f4f;font:inherit}

/* Match the Documents library table enclosure on desktop. */
@media(min-width:761px){
 body #records:has(>table),body #invoiceList:has(>table){border:1px solid #e3e8e7;border-radius:9px;overflow-x:auto}
 body #records>table,body #invoiceList>table{margin:0;border:0;width:100%}
 body #records>table tbody tr:last-child td,body #invoiceList>table tbody tr:last-child td{border-bottom:0}
 html[data-theme=dark] #records:has(>table),html[data-theme=dark] #invoiceList:has(>table){border-color:#3a4b44}
}

/* Shared destination warning labels in customer and management tables. */
:is(#supportList,#records) .support-link-warning{display:block;width:fit-content;margin-top:10px;padding:6px 9px;border:1px solid #c87925;border-radius:6px;background:#fff2df;color:#773b08;font-size:12px;font-weight:600;line-height:1.5}
:is(#supportList,#records) .support-link-checked{font-size:11px;margin-top:5px}
html[data-theme=dark] :is(#supportList,#records) .support-link-warning{background:#382c1b;color:#ffd49b;border-color:#9a713c}

/* Separate visible filter tabs from their results table. */
.tools:not([hidden]):has(.tabs:not([hidden])) + #records{margin-top:12px}

/* Keep wrapped status text inside one continuous rounded badge. */
#records .badge{display:inline-block;max-width:100%;box-sizing:border-box;white-space:normal;line-height:1.4;vertical-align:middle}
