/* Team UI: role-aware shared-project workspace, separate from the personal report flow. */
.team-modal>.modal-header{gap:16px}
.team-modal-header-actions{display:flex;align-items:center;gap:16px;margin-left:auto;flex:0 0 auto}
.team-modal .customer-invite-entry{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 16px;border:1px solid #0f5c6c;border-radius:9px;background:#126b7d;color:#fff;font-size:13px;font-weight:600;line-height:20px;white-space:nowrap;text-decoration:none;box-shadow:0 3px 8px #126b7d20;cursor:pointer}
.team-modal .customer-invite-entry:hover{background:#0d5666;border-color:#0d5666;color:#fff;box-shadow:0 4px 10px #126b7d30}
.team-modal .customer-invite-entry:active{background:#094653}
.team-modal .customer-invite-entry:focus-visible{outline:3px solid #72bdcb;outline-offset:3px}
.team-modal .customer-invite-entry svg{width:17px;height:17px;flex:0 0 auto}
.team-modal-header-actions>.small-icon{width:40px;height:40px;flex:0 0 auto}
@media(max-width:620px){.team-modal>.modal-header{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:12px}.team-modal-header-actions{display:contents}.team-modal .customer-invite-entry{grid-column:1 / -1;grid-row:2;min-width:0;width:100%;min-height:46px}.team-modal-header-actions>.small-icon{grid-column:2;grid-row:1}.team-modal>.modal-header h2{min-width:0}}

.invite-block{margin:22px 0;padding:18px;border:1px solid #d5e5eb;border-radius:10px;background:#f7fbfc}.invite-block h3{margin:0 0 8px;display:flex;align-items:center;gap:7px;font-size:15px;color:#265364}.invite-block h3 svg{width:17px;height:17px;color:#1a7d92}.invite-block .btn{margin-top:12px}.invite-list{margin-top:14px;display:grid;gap:8px}.invite-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;background:#fff;border:1px solid #e0ecf1;border-radius:7px;font-size:12px;color:#53707e}.invite-row code{font-size:14px;letter-spacing:1.5px;color:#14657a;background:#eaf5f8;border-radius:5px;padding:4px 8px;font-weight:600}.invite-row span{flex:1;min-width:140px}.invite-row .btn{padding:5px 10px;font-size:11px;margin-top:0}.invite-join-card{display:flex;gap:16px;align-items:flex-start;padding:22px;margin-bottom:22px;border:1px solid #cfe3ea;border-radius:11px;background:#fff;color:#2a5261}.invite-join-card>svg{width:26px;height:26px;color:#17798d;flex-shrink:0}.invite-join-card h2{margin:0 0 6px;font-size:17px}.invite-join-card p{margin:0 0 14px;font-size:12px;line-height:1.9;color:#62808d}.invite-form{display:flex;gap:10px;flex-wrap:wrap}.invite-form input{flex:1;min-width:180px;max-width:280px;padding:10px 12px;border:1px solid #cbdde4;border-radius:6px;font-size:15px;letter-spacing:1.5px;text-transform:uppercase}.invite-form input:focus{outline:2px solid #9fd0da;border-color:#5aa7b8}
.global-header{gap:22px}.global-nav{gap:2px}.global-nav .nav-button{padding:10px}.global-brand small{font-size:10px;letter-spacing:1px}.header-tools{gap:10px}.header-tools .top-search input{width:130px}
.workspace-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:32px;border-radius:16px;background:linear-gradient(120deg,#12576c,#17869a);color:white}.workspace-hero h1{font-size:30px;line-height:1.4;margin:9px 0}.workspace-hero p{color:#e0f2f6;line-height:1.8;margin:0}.workspace-eyebrow{font-size:10px;letter-spacing:1.8px;color:#b9e4ec}.workspace-hero-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.workspace-hero-actions .btn{background:#ffffff16;color:#fff;border-color:#a2cbd5;white-space:nowrap}.workspace-hero-actions .primary{color:#125b6e;background:#fff;border-color:#fff}
.workspace-access-note{display:flex;align-items:center;gap:8px;padding:12px 16px;margin:16px 0;color:#805b1b;background:#fff8e8;border:1px solid #efe1bf;border-radius:8px;font-size:12px;line-height:1.8}.workspace-access-note svg{width:17px;height:17px;flex-shrink:0}.workspace-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0 30px}.workspace-kpis>div{padding:20px 24px;background:#fff;border:1px solid #dde7ed;border-radius:11px}.workspace-kpis span{font-size:12px;color:#526e7d;display:block}.workspace-kpis strong{display:block;font-size:30px;color:#193e50;margin-top:6px}.workspace-kpis small{font-weight:400;font-size:12px;margin-left:6px;color:#697e88}
.workspace-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.workspace-section-title h2{margin:0;font-size:20px;color:#244757}.workspace-section-title>span{font-size:12px;color:#627c88}.shared-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.shared-project-card{padding:22px;background:#fff;border:1px solid #dce7ed;border-radius:12px;min-width:0;box-shadow:0 3px 12px #173b4c04}.shared-project-open{display:flex;align-items:center;text-align:left;gap:14px;width:100%;padding:0;background:none;border:0}.shared-project-mark{display:grid;place-items:center;width:42px;height:42px;background:#e8f4f7;border-radius:10px;color:#167389;flex-shrink:0}.shared-project-open>span:nth-child(2){min-width:0;flex:1}.shared-project-open strong{display:block;color:#1f4455;font-size:19px;overflow-wrap:anywhere}.shared-project-open small{display:block;font-size:12px;color:#6c818b;line-height:1.8;margin-top:6px;overflow-wrap:anywhere}.shared-project-open>svg{width:19px;height:19px;color:#227c8c}.shared-project-mark svg{width:22px;height:22px}.project-people-chips{display:flex;flex-wrap:wrap;gap:6px;margin:20px 0 17px}.project-people-chips>span{padding:5px 9px;background:#eef4f7;color:#436573;border-radius:5px;font-size:11px}.shared-progress{display:flex;justify-content:space-between;font-size:12px;color:#526d79}.shared-progress b{color:#146c80}.shared-progress-track{height:5px;background:#e8f0f3;border-radius:5px;overflow:hidden;margin:8px 0 16px}.shared-progress-track i{display:block;height:100%;background:#188499}.shared-project-update{font-size:12px;line-height:1.9;color:#496776;min-height:44px;margin-bottom:16px;overflow-wrap:anywhere}.shared-project-foot{border-top:1px solid #e6edf1;padding-top:14px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.shared-project-foot>span{font-size:11px;color:#738793}.shared-project-foot .btn{font-size:11px;padding:7px 10px;white-space:nowrap}
.workspace-admin-card{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#eaf4f7;border:1px solid #cce3e9;border-radius:11px;margin-top:24px;padding:22px}.workspace-admin-card h2{display:inline;font-size:16px;margin-left:8px;color:#275567}.workspace-admin-card svg{width:19px;height:19px;vertical-align:middle;color:#20768a}.workspace-admin-card p{font-size:12px;line-height:1.8;margin:9px 0 0;color:#4a6c7c}.workspace-admin-card>.btn{white-space:nowrap}.workspace-report-note{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;border-top:1px solid #dce7ed;margin-top:30px;padding-top:24px;color:#425f6c}.workspace-report-note strong{font-size:14px}.workspace-report-note p{font-size:12px;line-height:1.9;color:#6a808c}.workspace-report-note strong>span{display:inline-block;margin-left:8px;color:#8d7237;font-size:10px;font-weight:400;background:#fff5df;border-radius:4px;padding:3px 6px}.workspace-empty{text-align:center;border:1px dashed #b6d2dc;background:#fff;padding:42px 20px;border-radius:12px;color:#3b6172}.workspace-empty h2{font-size:20px;margin-bottom:12px}.workspace-empty p{font-size:13px;line-height:1.9;max-width:600px;margin:0 auto 20px}.workspace-empty>div{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.project-collaboration{background:#ffffff;border:1px solid #d9e7ed;border-radius:10px;margin:18px 0;padding:18px;color:#2a4b5b}.project-collaboration-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}.project-collaboration-head h2{font-size:15px;margin:0;display:flex;align-items:center;gap:7px}.project-collaboration-head h2 svg{width:17px;height:17px;color:#168092}.project-collaboration-head h2 span{font-weight:400;color:#64808d;font-size:11px}.project-collaboration-head p{font-size:11px;color:#6f8591;margin:7px 0 0}.project-collaboration-head .btn{font-size:11px;white-space:nowrap}.read-only-permission{font-size:11px;color:#667e8a}.member-progress-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.member-progress-card{background:#f5f9fb;border:1px solid #e4edf1;padding:14px;border-radius:7px;min-width:0}.member-progress-card>strong{display:inline;color:#284d5e;font-size:14px}.member-progress-card>strong em{font-style:normal;font-size:10px;color:#16758b;background:#dfedf2;border-radius:4px;padding:2px 4px}.member-progress-card>span{font-size:10px;float:right;color:#708792}.member-progress-card p{font-size:11px;color:#547583;margin:9px 0}.member-progress-card small{display:block;font-size:11px;color:#778d98;line-height:1.8;overflow-wrap:anywhere}.task-owner-chip{display:flex;align-items:center;gap:5px;font-size:10px;color:#4f7080;margin-left:auto}.task-owner-chip .avatar{width:22px;height:22px;font-size:10px}.task-table .owner-cell{white-space:nowrap}.project-directory>h1{font-size:28px;color:#214858}.project-directory>p{font-size:13px;color:#69818d}.project-directory>h2{font-size:20px;margin:25px 0 10px;color:#2b5668}.permission-error{color:#aa3543;background:#fff0f1;border:1px solid #edcad0;border-radius:6px;padding:10px;line-height:1.8;font-size:12px}.team-modal .compact-body{max-height:72vh;overflow-y:auto}.team-project-focus{padding:10px 12px;background:#eaf4f7;border-radius:6px;color:#315e70;font-size:12px}.team-access-item{line-height:1.8}.team-access-item input{accent-color:#12768b}.team-access-item input:disabled{cursor:wait}.team-member-head span{white-space:nowrap}.team-modal .profile-form input[type=password]{width:100%}
@media(max-width:1250px){.global-header{gap:14px;padding:0 20px}.global-nav .nav-button{font-size:12px;padding:9px 7px;gap:4px}.header-tools .top-search input{width:95px}.global-brand>span:last-child{font-size:20px}}
@media(max-width:1000px){.global-header{height:auto;min-height:72px;flex-wrap:wrap;padding:12px 18px;gap:12px}.global-nav{order:3;width:100%;overflow-x:auto}.header-tools{margin-left:auto}.shared-project-grid{grid-template-columns:1fr}.member-progress-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-hero{padding:25px}.workspace-hero h1{font-size:26px}}
@media(max-width:620px){.workspace-hero{align-items:flex-start;flex-direction:column;padding:22px}.workspace-hero-actions{justify-content:flex-start}.workspace-kpis{gap:8px}.workspace-kpis>div{padding:15px 12px}.workspace-kpis strong{font-size:25px}.workspace-kpis span{font-size:10px}.workspace-section-title{align-items:flex-start;flex-direction:column}.shared-project-card{padding:17px}.workspace-admin-card{align-items:flex-start;flex-direction:column;padding:18px}.workspace-report-note{grid-template-columns:1fr;gap:16px}.project-collaboration{padding:14px}.project-collaboration-head{align-items:flex-start;flex-direction:column}.member-progress-grid{grid-template-columns:1fr}.header-tools .top-search{display:none}.team-workspace .btn{min-height:36px}}

.team-modal-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding:12px 14px;margin-bottom:12px;background:#f4f9fa;border:1px solid #dcecef;border-radius:8px}.team-modal-toolbar label{display:block;font-size:11px;color:#456676;margin-bottom:5px}.team-modal-toolbar select{min-width:190px;padding:8px 30px 8px 10px;border:1px solid #c5dce2;border-radius:6px;background:#fff;color:#285566}.team-modal-toolbar>span{font-size:11px;color:#6c858f;line-height:1.7}.team-member{display:flex;align-items:center;gap:14px}.team-member .team-access{flex:1;min-width:0}.team-member-actions{display:flex;gap:6px;flex-shrink:0}.team-member-actions .btn{padding:6px 9px;font-size:11px;white-space:nowrap}.team-new-member-projects{padding:8px 10px;background:#f7fbfc;border:1px solid #dcecef;border-radius:7px}.team-invite-collapsed{padding:0;overflow:hidden}.team-invite-collapsed details{border:0}.invite-summary{display:flex;align-items:center;gap:8px;padding:13px 15px;cursor:pointer;list-style:none;color:#265364;font-size:13px}.invite-summary::-webkit-details-marker{display:none}.invite-summary svg{width:16px;height:16px;color:#1a7d92}.invite-summary span{margin-left:auto;color:#78909a;font-size:11px}.invite-content{padding:0 18px 17px;border-top:1px solid #dcecef}.invite-content .team-access{margin-top:12px}.invite-content .btn{margin-top:12px}
@media(max-width:620px){.team-modal-toolbar{align-items:stretch;flex-direction:column;gap:8px}.team-modal-toolbar select{width:100%}.team-member{align-items:flex-start;flex-direction:column;gap:9px}.team-member .team-access{width:100%}.team-member-actions{width:100%}.team-member-actions .btn{flex:1}.invite-summary{align-items:flex-start}.invite-summary span{line-height:1.6;text-align:right}}
.member-create{margin:16px 0 4px;border:1px solid #d5e5eb;border-radius:10px;background:#fff;overflow:hidden}.member-create-summary{display:flex;align-items:center;gap:8px;padding:14px 16px;cursor:pointer;list-style:none;color:#265364;font-size:13px}.member-create-summary::-webkit-details-marker{display:none}.member-create-summary svg{width:16px;height:16px;color:#1a7d92}.member-create-summary span{margin-left:auto;color:#6a838d;font-size:11px}.member-create-content{padding:18px;border-top:1px solid #dcecef}.member-create-content .profile-form{margin:0;padding:0;border:0}.member-create-content .modal-note{margin:12px 0 0}.invite-row code{user-select:all}
