.app{min-height:100vh;display:flex;flex-direction:column}.route-loading{min-height:12rem;display:grid;place-items:center;color:#4b5563;padding:2rem}header{background:linear-gradient(135deg,#20264a,#00072e);color:#fff;padding:1rem 2rem;box-shadow:0 2px 10px #00000026;display:flex;justify-content:space-between;align-items:center;gap:2rem;flex-wrap:wrap;min-height:80px}.main-header{position:relative;--role-accent: #8b95c9}.main-header:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--role-accent);box-shadow:0 1px 10px #0003}.main-header.role-theme-domare{--role-accent: #4f8cff}.main-header.role-theme-matchledare{--role-accent: #21a6a6}.main-header.role-theme-klubbadmin{--role-accent: #37b66a}.main-header.role-theme-distriktsadmin{--role-accent: #f5a623}.main-header.role-theme-admin{--role-accent: #e64b4b}.main-header.role-theme-unknown{--role-accent: #8b95c9}@media (max-width: 768px){header{padding:.75rem 1rem;gap:1rem}header nav{display:grid;grid-template-columns:repeat(3,1fr);gap:.25rem;order:3;width:100%}header nav a{padding:.5rem .25rem;white-space:normal;text-align:center}.user-menu{gap:.5rem;flex-wrap:wrap;justify-content:flex-end;max-width:100%;min-width:0}.user-role-box{width:100%;min-width:0;justify-content:flex-end}.user-role-pill{max-width:100%}}.header-left{flex:1;min-width:250px}header h1{margin:0;font-size:1.8rem}.header-subtitle{margin:.25rem 0 0;font-size:.85rem;opacity:.9}nav{display:flex;gap:1.5rem}nav a{color:#fff;text-decoration:none;font-weight:500;padding:.5rem 1rem;border-radius:4px;transition:background .3s;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;line-height:1.2}nav a:hover{background:#fff3}.user-menu{display:flex;align-items:center;gap:1rem;white-space:nowrap;flex-wrap:wrap;justify-content:flex-end}.user-role-box{position:relative}.user-role-pill{display:flex;align-items:center;gap:.45rem;padding:.4rem .75rem;border:1px solid transparent;border-radius:999px;font-weight:700;min-width:0}.user-role-pill>span:last-child{overflow:hidden;text-overflow:ellipsis;min-width:0}.user-role-pill.clickable{cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}.user-role-pill.clickable:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #0003}.user-role-pill:disabled{opacity:.7}.user-icon{font-size:1rem}.role-menu{position:absolute;right:0;top:calc(100% + .35rem);min-width:180px;display:flex;flex-direction:column;gap:.25rem;padding:.35rem;border-radius:10px;background:#0f173e;border:1px solid rgba(255,255,255,.18);box-shadow:0 10px 25px #00000059;z-index:30}.role-menu-item{width:100%;text-align:left;border:1px solid transparent;border-radius:8px;padding:.45rem .6rem;font-weight:600;cursor:pointer;transition:filter .15s ease,transform .15s ease}.role-menu-item:hover:not(:disabled){filter:brightness(1.06);transform:translateY(-1px)}.role-menu-item:disabled{opacity:.8;cursor:default}.role-menu-item.active{box-shadow:inset 0 0 0 1px #ffffff40}.role-domare,.role-referee,.role-matchledare{background:#2f7dff;color:#fff;border-color:#1f66db}.role-klubbadmin,.role-clubadmin,.role-club-admin,.role-föreningsadmin,.role-foereningsadmin{background:#21a75a;color:#fff;border-color:#158547}.role-distriktsadmin,.role-district-admin{background:#f59e0b;color:#1d1300;border-color:#d48a08}.role-admin,.role-super-admin{background:#d93030;color:#fff;border-color:#b52525}.role-unknown{background:#ffffff1f;color:#fff;border-color:#fff3}.user-menu .btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:.5rem 1rem;border-radius:4px;font-weight:500;line-height:1.2;text-decoration:none}.user-menu .btn-primary{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.4)}.user-menu .btn-primary:hover{background:#ffffff4d;color:#fff}.user-menu .btn-secondary{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.3)}.user-menu .btn-secondary:hover{background:#ffffff26;color:#fff}.user-name{font-weight:500;font-size:.95rem}.logout-btn{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.4);padding:.5rem 1rem;border-radius:4px;cursor:pointer;font-weight:500;transition:background .3s;display:inline-flex;align-items:center;justify-content:center;line-height:1.2}.logout-btn:hover{background:#ffffff4d}main{flex:1;padding:2rem;max-width:1400px;width:100%;margin:0 auto}.dashboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem;margin-top:2rem}.card{background:#fff;padding:2rem;border-radius:8px;box-shadow:0 2px 8px #0000001a}.card h3{margin-bottom:1rem;color:#20264a}.status-ok{color:green;font-size:1.2rem}.status-error{color:red;font-size:1.2rem}.table-container{background:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 2px 8px #0000001a;overflow-x:auto;margin-top:1rem}table{width:100%;border-collapse:collapse}thead{background:#20264a;color:#fff}th,td{padding:1rem;text-align:left;border-bottom:1px solid #ddd}tbody tr:hover{background:#f5f5f5}.status{padding:.25rem .75rem;border-radius:12px;font-size:.85rem;font-weight:600}.status.unassigned{background:#ffc107;color:#000}.status.confirmed{background:#28a745;color:#fff}.status.completed{background:#17a2b8;color:#fff}.status.cancelled{background:#dc3545;color:#fff}.referee-status{padding:.25rem .75rem;border-radius:12px;font-size:.85rem;font-weight:600;display:inline-block;min-width:45px;text-align:center}.referee-status.empty{background:#fff7e6;color:#ff9800;border:2px solid #ff9800}.referee-status.partial{background:#fff3cd;color:#856404;border:2px solid #ffc107}.referee-status.full{background:#d4edda;color:#155724;border:2px solid #28a745}footer{background:#20264a;color:#fff;text-align:center;padding:1.5rem;margin-top:auto}footer a{color:#f7be6a}footer a:hover{color:#fff}ul{list-style-position:inside;line-height:2}:root{--primary: #20264a;--primary-dark: #00072e;--primary-light: #3a4070;--accent: #f7be6a;--accent-dark: #e39420;--background: #f5f5f5;--surface: #ffffff;--text-primary: #212121;--text-secondary: #666666;--border: #e0e0e0;--success: #46b450;--warning: #f7be6a;--error: #dc3545;--info: #2196f3}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--background);color:var(--text-primary)}a{color:var(--primary);text-decoration:none}a:hover{color:var(--primary-dark)}button{cursor:pointer}.btn-primary{background:var(--primary);color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;font-weight:500}.btn-primary:hover{background:var(--primary-dark)}
