/* Shared compact employee card; full details remain in the admin profile panel. */
body .tbs-contact-card{width:600px;max-width:100%;background:#fff!important;color:#17191d!important;border-top:5px solid #e21b23;box-sizing:border-box;padding:22px;font-family:Arial,sans-serif;box-shadow:0 6px 18px #0001;border-radius:0}body .tbs-contact-card *{color:inherit}body .tbs-contact-card .contact-brand{font-size:14px;font-weight:900;letter-spacing:.5px;display:flex;align-items:center;gap:5px;border-bottom:1px solid #ddd;padding-bottom:13px}body .tbs-contact-card .contact-brand span{color:#e21b23!important}body .tbs-contact-card .contact-brand small{margin-left:auto;font-size:8px;color:#777!important;letter-spacing:1px}body .tbs-contact-card .contact-content{display:flex;align-items:center;gap:20px;padding:18px 0}body .tbs-contact-card .contact-photo{width:106px;height:126px;flex:0 0 106px;background:#f1f3f5;display:grid;place-items:center;overflow:hidden;border-radius:8px;font-size:42px;font-weight:800}body .tbs-contact-card .contact-photo img{width:100%;height:100%;object-fit:cover}body .tbs-contact-card h2{font-size:24px!important;line-height:1.1;margin:0 0 5px!important;color:#17191d!important}body .tbs-contact-card .contact-role{font-size:11px;color:#666!important}body .tbs-contact-card .contact-person{flex:1;min-width:0}body .tbs-contact-card .contact-data{display:grid;grid-template-columns:1fr 1fr;gap:9px 16px;margin-top:13px}body .tbs-contact-card small{font-size:8px;color:#777!important;display:block}body .tbs-contact-card b{font-size:11px;display:block;margin-top:3px;overflow-wrap:anywhere}body .tbs-contact-card .contact-footer{border-top:1px solid #ddd;padding-top:11px;font-size:9px;display:flex;justify-content:space-between}.profile-save-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}#myEmployeeCard{margin-top:22px}#profileSaveStatus{font-size:13px;line-height:1.5}.tbs-progress-track{height:7px;background:#303640;border-radius:5px;overflow:hidden;margin-bottom:8px}.tbs-progress-track i{display:block;height:100%;background:#e21b23}.employee-portal-avatar{width:52px;height:52px;border-radius:50%;overflow:hidden;background:#303640;display:grid;place-items:center;margin:14px 0;font-weight:800;font-size:22px}.employee-portal-avatar img{width:100%;height:100%;object-fit:cover}.delivery-version-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.tbs-report-document{background:#fff!important;color:#17191d!important;border-top:5px solid #e21b23;padding:32px;box-sizing:border-box;font-family:Arial,sans-serif;width:100%;max-width:1120px;margin:0 auto}.tbs-report-document *{color:inherit}.tbs-report-document .doc-head{display:flex;justify-content:space-between;gap:24px;border-bottom:1px solid #ddd;padding-bottom:18px}.tbs-report-document .doc-brand{font-size:20px;font-weight:900}.tbs-report-document .doc-brand span,.tbs-report-document h2{color:#e21b23!important}.tbs-report-document .doc-contact{font-size:9px;color:#777!important;line-height:1.7;margin-top:6px}.tbs-report-document .doc-title{text-align:right}.tbs-report-document h2{font-size:24px!important;margin:0 0 7px!important}.tbs-report-document .doc-reference{font-size:11px}.tbs-report-document .doc-time{font-size:9px;margin-top:5px;color:#777!important}.tbs-report-document .doc-meta{display:flex;justify-content:space-between;gap:20px;padding:20px 0;font-size:11px;line-height:1.7}.tbs-report-document .doc-recipient{font-size:20px;font-weight:800}.tbs-report-document .doc-label{font-size:9px;letter-spacing:.6px;text-transform:uppercase;color:#777!important}.tbs-report-document .doc-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:20px}.tbs-report-document .doc-stats>div{background:#f5f6f7;padding:12px;font-size:10px}.tbs-report-document .doc-stats b{display:block;font-size:17px;margin-top:4px}.tbs-report-document table{width:100%!important;min-width:0!important;table-layout:fixed;border-collapse:collapse}.tbs-report-document th{background:#20262f!important;color:#fff!important;text-align:left!important;font-size:9px!important;padding:10px 6px!important;height:auto!important;white-space:normal!important}.tbs-report-document td{color:#17191d!important;background:#fff!important;padding:11px 6px!important;border-bottom:1px solid #dfe2e5!important;font-size:10px!important;white-space:normal!important;overflow-wrap:anywhere;text-align:left!important}.tbs-report-document td *{color:#17191d!important}.tbs-report-document .doc-note{font-size:9px;white-space:pre-wrap;line-height:1.5;color:#777!important;margin-top:4px}.tbs-report-document .doc-link{font-weight:800;color:#e21b23!important;display:inline-block;font-size:9px}.tbs-report-document .doc-copy{background:#f2f3f5;border:1px solid #ddd;color:#222!important;padding:2px 5px;border-radius:4px;margin-left:4px;cursor:pointer}.tbs-report-document .doc-total{border-top:2px solid #e21b23;margin:20px 0 0 auto;width:250px;padding-top:10px;display:flex;justify-content:space-between;font-size:16px}.tbs-report-document .doc-footer{border-top:1px solid #ddd;padding-top:12px;margin-top:22px;font-size:9px;color:#777!important;white-space:pre-wrap}.tbs-report-document input.doc-number{border:none!important;color:#111!important;background:#fff!important;padding:0!important;width:150px;font-size:11px!important;text-align:right}.report-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:15px 0}.report-export-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}#studioReportPreview{margin-top:16px}.admin-profile-details{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0}.admin-profile-details small{display:block;color:#8793a3;font-size:10px}.admin-profile-details b{display:block;overflow-wrap:anywhere;margin-top:5px;font-size:13px}@media(max-width:700px){.report-filter-grid,.admin-profile-details{grid-template-columns:1fr 1fr}.tbs-contact-card .contact-content{gap:12px}body .tbs-contact-card{padding:16px}body .tbs-contact-card .contact-photo{width:80px;height:100px;flex-basis:80px}body .tbs-contact-card h2{font-size:19px!important}.tbs-report-document{padding:20px}.tbs-report-document .doc-head,.tbs-report-document .doc-meta{flex-direction:column}.tbs-report-document .doc-title{text-align:left}}

body .tbs-report-document.invoice{width:100%;min-height:0;max-width:1120px;padding:32px;border-radius:0;margin:0 auto}body .tbs-report-document.invoice .doc-head{border-bottom:1px solid #ddd}

body.tbs-admin-ui .tbs-report-document table th{background:#20262f!important;color:#fff!important;border-bottom:0!important}body.tbs-admin-ui .tbs-report-document.invoice{min-height:0!important;border-radius:0!important}
body.tbs-admin-ui .tbs-report-document table td,body.tbs-admin-ui .tbs-report-document table tbody tr:hover td{color:#17191d!important;background:#fff!important;border-bottom:1px solid #dfe2e5!important}body.tbs-admin-ui .tbs-report-document table td *{color:#17191d!important}body.tbs-admin-ui .tbs-report-document table td .doc-note{color:#777!important}body.tbs-admin-ui .tbs-report-document table td .doc-link{color:#e21b23!important}

/* V8.4 image proportions and document header alignment. */
body .tbs-brand-logo{display:block!important;width:180px!important;height:65px!important;max-width:100%;object-fit:contain!important;flex:none!important}
body .contact-brand .tbs-brand-logo{width:150px!important;height:54px!important}
body.tbs-admin-ui .tbs-report-document table th,body .tbs-report-document table th{height:46px!important;padding:12px 6px!important;line-height:1.4!important;vertical-align:middle!important;position:static!important}
.doc-payment{display:flex;justify-content:space-between;align-items:center;gap:20px}.doc-qr{text-align:center;white-space:normal}.doc-qr img{display:block;width:112px!important;height:112px!important;object-fit:contain;background:#fff;margin-bottom:6px}.branding-controls{display:flex;flex-wrap:wrap;gap:16px;margin:14px 0}.branding-controls label{display:grid;gap:6px;font-size:12px}.branding-controls input{max-width:260px}.branding-controls img{max-width:180px;max-height:65px;object-fit:contain}

/* V8.5 distinct portal branding and left-aligned document artwork. */
body aside>.brand:before,body .tbs-global-header:before{display:none!important;content:none!important}
body .tbs-global-header{display:flex;align-items:center;min-height:65px;margin:0 0 18px;padding:0;flex:none}
body .tbs-portal-brand-link{display:block;text-decoration:none;color:inherit}
body .doc-brand,body .contact-brand{padding-left:0!important;margin-left:0!important}
body .doc-brand .tbs-brand-logo,body .contact-brand .tbs-brand-logo{object-position:left center!important;margin:0!important;padding:0!important}
body .doc-payment{margin:0 0 18px!important;padding:12px 0!important;border-bottom:1px solid #ddd;break-inside:avoid;page-break-inside:avoid}
body #portalBrandingSettings{margin-bottom:18px}body #portalBrandingSettings h3{margin-top:0}

.employee-portal-identity{display:flex;align-items:center;gap:12px;margin:14px 0 20px;min-width:0}.employee-portal-identity .employee-portal-avatar{margin:0;flex:0 0 52px}.employee-identity-details{min-width:0;line-height:1.4}.employee-identity-details b{display:block;font-size:13px;overflow-wrap:anywhere}.employee-identity-details small{display:block;font-size:11px;color:#9ba5b6;margin-top:3px;overflow-wrap:anywhere}
