/* RemontCheck — Moja ekipa. Scoped to the team screens. */
.crew-root { --crew-ink:#292e2c; --crew-muted:#727774; --crew-line:#e6e5e0; --crew-orange:#d85419; --crew-pale:#fff3e8; color:var(--crew-ink); font-family:Manrope,system-ui,sans-serif; min-width:0 }
.crew-root *, .crew-dialog * { box-sizing:border-box }
#team.crew-root [hidden] { display:none!important }
#team.crew-root .crew-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 28px }
#team.crew-root .crew-heading h2 { font:750 clamp(25px,3vw,36px)/1.2 Manrope,system-ui,sans-serif; letter-spacing:-1.15px; margin:6px 0 8px; color:var(--crew-ink) }
#team.crew-root .crew-heading p { margin:0; color:var(--crew-muted); font-size:14px }
.crew-root .crew-eyebrow { color:#858a86; font-size:10px; font-weight:800; letter-spacing:1.1px; line-height:1.5 }
.crew-heading-actions,.crew-card-actions,.crew-invitation-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap }
#team.crew-root .crew-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; font:650 13px/1.35 Manrope,system-ui,sans-serif; padding:12px 16px; min-height:44px; margin:0; border:1px solid #d9dcd8; background:#fff; color:#333c38; border-radius:9px; text-decoration:none; cursor:pointer; white-space:normal; text-align:center }
#team.crew-root .crew-button:hover { border-color:#b7bfba; background:#f8f8f5 }
#team.crew-root .crew-primary { background:var(--crew-orange); border-color:var(--crew-orange); color:#fff; box-shadow:0 2px 3px #9941160d }
#team.crew-root .crew-primary:hover { background:#b94310; border-color:#b94310 }
#team.crew-root button:disabled { opacity:.6; cursor:wait }
#team.crew-root :is(button,input,select,textarea,summary,a):focus-visible { outline:3px solid #bc501d; outline-offset:3px }
#team.crew-root .crew-button .rc-panel-icon { width:18px; height:18px; flex-shrink:0 }
#team.crew-root .crew-badge { display:inline-flex; align-items:center; width:max-content; max-width:100%; padding:5px 10px; border-radius:30px; background:#f0eee9; color:#726c61; font-size:11px; font-weight:750; line-height:1.3; white-space:normal }
#team.crew-root .crew-active { background:#e6efe4; color:#326438 }
#team.crew-root .crew-invitation { display:flex; align-items:center; gap:20px; padding:22px; margin:0 0 18px; border:1px solid #f3d9c6; border-radius:14px; background:linear-gradient(120deg,#fff6eb,#fffaf4) }
#team.crew-root .crew-invitation h3 { margin:5px 0; font-size:17px; font-weight:750; color:var(--crew-ink) }
#team.crew-root .crew-invitation p { color:#69726b; font-size:13px; margin:5px 0; line-height:1.5 }
.crew-invitation-content { flex:1; min-width:0 }
.crew-invitation-actions { flex-shrink:0 }
.crew-inviter { display:flex; align-items:center; gap:12px; margin-top:14px; font-size:13px; color:#536259 }
#team.crew-root .crew-avatar { width:54px; height:54px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; background:#e7ebe8; color:#51645b; font-weight:650; font-size:19px }
#team.crew-root .crew-brand-avatar { border-radius:13px; color:#fff; background:#2c3330; font-size:21px; box-shadow:0 3px 8px #26312618 }
.crew-inviter .crew-avatar { width:38px!important; height:38px!important; font-size:13px!important }
#team.crew-root .crew-tabs { display:flex; gap:18px; flex-wrap:wrap; border-bottom:1px solid var(--crew-line); padding:0; margin:26px 0 22px }
#team.crew-root .crew-tabs .crew-button { min-height:48px; padding:12px 2px; border:0; border-radius:0; background:transparent; border-bottom:2px solid transparent; font-size:13px; color:#7d837e; box-shadow:none }
#team.crew-root .crew-tabs .crew-button[aria-pressed=true] { color:#26322b; border-bottom-color:var(--crew-orange) }
.crew-tabs .crew-button span { display:inline-grid; place-items:center; border-radius:14px; padding:1px 7px; background:#eeefec; font-size:11px }
.crew-tabs .crew-button[aria-pressed=true] span { background:#d85419; color:#fff }
.crew-member-grid,.crew-project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px }
#team.crew-root .crew-member-card,#team.crew-root .crew-project-card { border:1px solid #e7e9e4; border-radius:14px; background:#fff; padding:23px; box-shadow:0 3px 12px #293b3204; min-width:0 }
.crew-member-top { display:flex; gap:14px; align-items:center; position:relative; flex-wrap:wrap }
.crew-person-name { flex:1; min-width:90px }
#team.crew-root .crew-person-name h3 { margin:0; font-size:17px; line-height:1.4; font-weight:750; overflow-wrap:anywhere }
#team.crew-root .crew-person-name p { font-size:12px; margin:5px 0 0; color:#7a817a; overflow-wrap:anywhere }
.crew-member-top>.crew-badge { margin-right:14px }
.crew-menu { position:absolute; top:-8px; right:-14px; z-index:2 }
#team.crew-root .crew-menu summary { display:grid; place-items:center; width:30px; height:36px; border:0; font-size:25px; color:#747f78; font-weight:400; cursor:pointer; list-style:none }
.crew-menu summary::-webkit-details-marker { display:none }
.crew-menu>div { position:absolute; top:36px; right:0; width:205px; padding:8px; background:#fff; border:1px solid var(--crew-line); border-radius:12px; box-shadow:0 12px 30px #222d2524 }
#team.crew-root .crew-menu .crew-button { width:100%; border:0; justify-content:flex-start; text-align:left; font-size:12px; padding:10px }
#team.crew-root .crew-scope { display:flex; align-items:center; gap:10px; font-size:13px; margin:23px 0 18px; padding-top:20px; border-top:1px solid #ebede8; color:#737a74; overflow-wrap:anywhere }
.crew-scope svg { flex-shrink:0 }
#team.crew-root .crew-assigned,#team.crew-root .crew-pending-note { color:#747e75; font-size:12px; line-height:1.6; margin:0 0 18px; overflow-wrap:anywhere }
.crew-card-actions { align-items:stretch; gap:9px }
.crew-card-actions .crew-button { flex:1; padding:11px 10px!important; font-size:12px!important }
#team.crew-root .crew-privacy { display:flex; gap:10px; align-items:center; color:#657467; font-size:13px; margin:30px 0 8px }
#team.crew-root .crew-caption { font-size:11px; line-height:1.6; color:#7b827b; margin:7px 0 0 }
#team.crew-root .crew-project-card h3 { margin:18px 0 6px; font-size:19px; font-weight:750 }
#team.crew-root .crew-project-card p { font-size:13px; color:#757d77; margin:6px 0 17px; overflow-wrap:anywhere }
.crew-project-card>.crew-button { width:100%; margin-top:6px!important; color:#b74613!important; border-color:#ebccb7!important }
.crew-project-card>.crew-caption { display:block }
#team.crew-root .crew-project-select { max-width:440px; margin:0 0 20px; font-size:12px; color:#6d756f }
#team.crew-root .crew-empty { display:flex; align-items:center; justify-content:center; flex-direction:column; padding:42px 22px; border:1px dashed #d8dfd7; border-radius:14px; background:#ffffff80; text-align:center }
#team.crew-root .crew-empty svg { width:32px; height:32px; color:#849b83 }
#team.crew-root .crew-empty p { color:#748172; font-size:14px; line-height:1.7; max-width:390px; margin:15px 0 0 }
#team.crew-root .crew-notice { display:flex; align-items:center; gap:20px; justify-content:space-between; padding:14px 18px; border:1px solid #dce6d8; background:#f3f7ef; border-radius:10px; margin-bottom:16px; font-size:13px }
#team.crew-root .crew-notice p { font-size:12px; margin:5px 0 0; color:#61735b }
#team.crew-root .crew-status,#team.crew-root .crew-error { padding:14px; border-radius:10px; color:#675b35; background:#faf5df; line-height:1.6; font-size:13px }
#team.crew-root .crew-error { background:#fff0eb; color:#943a21 }
#team.crew-root .crew-dialog { border:1px solid #e5e6df; border-radius:19px; padding:26px; width:min(560px,calc(100vw - 24px)); max-width:none; max-height:88dvh; overflow-y:auto; color:var(--crew-ink); background:#fffefa; box-shadow:0 20px 80px #222a2840 }
.crew-dialog::backdrop { background:#28322a66; backdrop-filter:blur(3px) }
.crew-dialog form { margin:0 }
.crew-dialog header { display:flex; gap:16px; justify-content:space-between; align-items:flex-start; margin-bottom:24px }
#team.crew-root .crew-dialog h2 { font:750 23px/1.3 Manrope,system-ui,sans-serif; margin:7px 0 0; color:#303a32 }
#team.crew-root .crew-close { margin:0; padding:0; display:grid; place-items:center; font-size:26px; width:36px; height:36px; color:#687467; background:#f1f2ed; border:0; border-radius:50%; flex-shrink:0 }
#team.crew-root .crew-dialog label { display:block; font-size:12px; font-weight:600; margin:16px 0; color:#5b665c }
#team.crew-root .crew-dialog input:not([type=checkbox]),#team.crew-root .crew-dialog select { display:block; font:500 14px/1.5 Manrope,system-ui,sans-serif; width:100%; min-height:46px; margin-top:7px; padding:10px 12px; border:1px solid #dce0d7; border-radius:8px; background:#fff; color:#303b32 }
#team.crew-root .crew-dialog .crew-check { display:flex; align-items:flex-start; gap:10px; font-size:13px; font-weight:500; line-height:1.5 }
.crew-check input { accent-color:#d85419; margin-top:3px; width:17px; height:17px; flex-shrink:0 }
#team.crew-root .crew-dialog fieldset { padding:10px 14px; margin-top:20px; border:1px solid #e3e6dd; border-radius:10px }
.crew-dialog legend { padding:0 6px; font-size:12px; font-weight:700 }
.crew-dialog footer { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:24px; padding-top:19px; border-top:1px solid #e8e9e1 }
#team.crew-root .crew-access-note { display:flex; gap:10px; align-items:flex-start; padding:13px; font-size:12px; line-height:1.6; color:#747664; background:#f4f4eb; border-radius:10px; margin:20px 0 0 }
.crew-access-note svg { flex-shrink:0 }
#team.crew-root .crew-search-result { display:flex; align-items:center; gap:12px; width:100%; background:#fff; border:1px solid #e4e6dc; border-radius:9px; color:#333f32; text-align:left; padding:12px; margin:7px 0; font:500 12px/1.5 Manrope,system-ui,sans-serif }
.crew-search-result>span:nth-child(2) { flex:1; min-width:0; overflow-wrap:anywhere }
.crew-search-result strong,.crew-search-result small { display:block }
.crew-search-result small { color:#7b8276 }
.crew-search-result .crew-avatar { width:36px!important; height:36px!important; font-size:13px!important }
.crew-selected-person { display:flex; gap:12px; align-items:center; padding:14px; border:1px solid #dce7d5; border-radius:10px; background:#f7f9f2; font-size:13px }
.crew-selected-person>div { flex:1; min-width:0 }
#team.crew-root .crew-selected-person p { font-size:12px; color:#76816f; margin:3px 0 0 }
.crew-workspace-tabs { display:flex; gap:8px; flex-wrap:wrap; padding-bottom:20px }
#team.crew-root .crew-workspace-tabs .crew-button[aria-pressed=true] { border-color:#efb997; color:#b34716; background:#fff1e6 }
#team.crew-root .crew-legacy>.team-page-heading,#team.crew-root .crew-legacy>.team-toolbar,#team.crew-root .crew-legacy .team-view-heading { display:none!important }
#team.crew-root .crew-filter-note { margin:0 0 20px; padding:12px; border-radius:10px; background:#f0f4ea; font-size:13px }
.crew-filter-note .crew-button { margin-left:10px!important }
.rc-workspace-layout[data-view=team] .rc-workspace-main>.invest-heading { display:none }
.rc-team-page .team-shell { max-width:1240px; padding:28px }
@media(max-width:1200px){.crew-member-grid{grid-template-columns:1fr}.crew-member-top>.crew-badge{margin-left:auto}.crew-invitation{flex-wrap:wrap}.crew-invitation-actions{margin-left:auto}}
@media(max-width:760px){#team.crew-root .crew-heading{align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:22px}.crew-heading-actions{width:100%}.crew-heading-actions>.crew-button:first-child{flex:1}.crew-project-grid{grid-template-columns:1fr}.crew-invitation-actions{width:100%;margin:8px 0 0}.crew-invitation-actions>.crew-primary{flex:1}#team.crew-root .crew-invitation{padding:18px;gap:12px}.crew-member-grid,.crew-project-grid{gap:14px}#team.crew-root .crew-member-card,#team.crew-root .crew-project-card{padding:19px}.crew-invitation>.crew-avatar{width:44px!important;height:44px!important;font-size:15px!important}.crew-notice{flex-wrap:wrap}.crew-workspace-tabs{gap:6px}.crew-workspace-tabs .crew-button{font-size:12px!important;padding:9px 12px!important}.rc-team-page .team-shell{padding:18px 14px;margin:0}.crew-member-top>.crew-badge{margin-left:0}.crew-person-name{min-width:80px}#team.crew-root .crew-person-name h3{font-size:16px}.crew-dialog footer .crew-button{flex:1}#team.crew-root .crew-dialog{padding:20px}#team.crew-root .crew-tabs{gap:16px}#team.crew-root .crew-tabs .crew-button{font-size:12px}}
@media(prefers-reduced-motion:reduce){.crew-root *{scroll-behavior:auto!important}}
.crew-mobile-menu,.crew-mobile-bar{display:none}
@media(max-width:680px){
 .rc-contractor-page .header-user>button.crew-mobile-menu{display:grid;place-items:center;width:38px;height:38px;border:1px solid #e2e5df;border-radius:10px;background:#fff;color:#516155;font-size:20px;padding:0;flex-shrink:0}
 .rc-contractor-page .rc-workspace-sidebar{display:none}
 .rc-contractor-page.crew-mobile-menu-open .rc-workspace-sidebar{display:block}
 .rc-contractor-page .rc-workspace-main{padding-top:24px;padding-bottom:96px}
 .rc-contractor-page .crew-mobile-bar{position:fixed;bottom:0;inset-inline:0;z-index:30;display:flex;justify-content:space-around;gap:6px;background:#fffefb;border-top:1px solid #e8e9e1;padding:5px 12px max(7px,env(safe-area-inset-bottom));box-shadow:0 -4px 20px #30383005}
 .crew-mobile-bar button{display:flex;align-items:center;justify-content:center;flex-direction:column;flex:1;gap:6px;min-height:60px;border:0;border-top:3px solid transparent;margin:0;background:transparent;color:#6f7770;font:600 11px/1.4 Manrope,system-ui,sans-serif;padding:8px 3px}
 .crew-mobile-bar button[aria-pressed=true]{color:#d85419;border-top-color:#d85419}
 .crew-mobile-bar svg{width:21px;height:21px}
}
