:root{
  --accent: #b3006b; /* magenta */
  --sidebar: #6f6f6f;
  --sidebar-dark: #5f5f5f;
  --bg: #eef0f3;
}

/* VBBA 3D-Pill Button */
.btn-vbba{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;

  padding:10px 18px;
  border-radius:999px;

  background:#b1006b;            /* Magenta */
  color:#fff !important;
  font-weight:600;
  text-decoration:none;

  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 8px 0 rgba(120,0,70,.35), 0 10px 22px rgba(0,0,0,.18);
  transform:translateY(0);

  transition:transform .08s ease, box-shadow .08s ease, filter .12s ease;
}

.btn-vbba:hover{
  filter:brightness(1.05);
  transform:translateY(-1px);
  box-shadow:0 9px 0 rgba(120,0,70,.35), 0 12px 26px rgba(0,0,0,.20);
}

.btn-vbba:active{
  transform:translateY(4px); /* "reindrücken" */
  box-shadow:0 4px 0 rgba(120,0,70,.35), 0 8px 18px rgba(0,0,0,.18);
}

.btn-vbba:focus{
  outline:none;
  box-shadow:0 8px 0 rgba(120,0,70,.35), 0 10px 22px rgba(0,0,0,.18),
             0 0 0 4px rgba(177,0,107,.25);
}

/* --- 3D Magenta buttons (portal style) --- */
.btn-3d-magenta{
  background:#c3006b;
  color:#fff;
  border:1px solid #a8005c;
  border-radius:10px;
  padding:.45rem .9rem;
  font-weight:600;
  box-shadow:0 6px 0 rgba(140,0,77,.55), 0 10px 18px rgba(0,0,0,.12);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-3d-magenta:hover{
  filter:brightness(1.05);
  transform:translateY(-1px);
  box-shadow:0 7px 0 rgba(140,0,77,.55), 0 12px 20px rgba(0,0,0,.14);
}
.btn-3d-magenta:active{
  transform:translateY(2px);
  box-shadow:0 3px 0 rgba(140,0,77,.55), 0 8px 14px rgba(0,0,0,.12);
}
.btn-3d-magenta.is-active{
  outline:2px solid rgba(195,0,107,.25);
}

body{ background: var(--bg); }


.btn-check{
  display:inline-block;
  margin-right:.4rem;
  font-weight:800;
  line-height:1;
  transform:translateY(-1px);
}
.btn-3d-outline-magenta{
  background:#fff;
  color:#c3006b;
  border:2px solid #c3006b;
  border-radius:10px;
  padding:.45rem .9rem;
  font-weight:700;
  box-shadow:0 6px 0 rgba(0,0,0,.08), 0 10px 18px rgba(0,0,0,.10);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-3d-outline-magenta:hover{
  filter:brightness(1.02);
  transform:translateY(-1px);
  box-shadow:0 7px 0 rgba(0,0,0,.09), 0 12px 20px rgba(0,0,0,.12);
}
.btn-3d-outline-magenta:active{
  transform:translateY(2px);
  box-shadow:0 3px 0 rgba(0,0,0,.08), 0 8px 14px rgba(0,0,0,.10);
}
.btn-3d-outline-magenta.is-active{
  outline:2px solid rgba(195,0,107,.25);
}

.app{
  display:flex;
  min-height:100vh;
}

.sidebar{
  width:260px;
  background: var(--sidebar);
  color:#fff;
  display:flex;
  flex-direction:column;
}

.brand{
  background:#fff;
  color:var(--accent);
  padding:18px 16px;
  border-bottom:1px solid rgba(0,0,0,.1);
}
.brand-title{ font-weight:700; font-size:20px; }

.nav .nav-link{
  color:#fff;
  padding:11px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
  opacity:.95;
  display:flex;
  align-items:center;
  gap:10px;
}
.nav .nav-link i{ width:16px; text-align:center; font-size:14px; opacity:.95; }
.nav .nav-link span{ line-height:1.2; }
.nav .nav-link:hover{ background: rgba(0,0,0,.08); color:#fff; }
.nav .nav-link.active{
  background: var(--accent);
  color:#fff;
  font-weight:600;
}

.nav-section{
  width:100%;
  text-align:left;
  padding:9px 12px;
  margin-top:12px;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  /* reduce contrast vs. menu items */
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.78);
  border-top:1px solid rgba(255,255,255,.10);
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  cursor:pointer;
}
.nav-section:hover{ background: rgba(255,255,255,.09); }
.nav-section:active{ background: rgba(255,255,255,.12); }
.nav-section-left{display:flex;align-items:center;gap:8px;}
.nav-section-caret{opacity:.85;transition:transform .18s ease;}
.nav-section-toggle.is-collapsed .nav-section-caret{transform:rotate(-90deg);}
.nav-group.is-collapsed{display:none;}

.nav-section i{ font-size:11px; opacity:.95; width:12px; text-align:center; }

.content{
  flex:1;
  background: #f2f3f5;
}
.content-inner{
  padding:28px 28px 40px 28px;
}

.page-title{
  font-size:44px;
  font-weight:300;
  color:#6c757d;
  margin-bottom:18px;
}

.card{
  border:0;
  box-shadow:0 1px 8px rgba(0,0,0,.08);
  border-radius:10px;
}

.stat-card{
  padding:22px;
  text-align:center;
}
.stat-icon{
  width:56px; height:56px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: var(--accent);
  color:#fff;
  border-radius:999px;
  margin-bottom:10px;
  font-size:22px;
}
.stat-value{ font-size:36px; font-weight:700; color:#343a40; line-height:1; }
.stat-label{ color:#6c757d; }

.btn-primary{
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary:hover{
  filter: brightness(0.95);
}

.login-body{
  background: var(--accent);
  min-height:100vh;
}
.login-wrap{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.login-card{
  width:420px;
  background:#fff;
  border-radius:12px;
  padding:26px;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.login-title{
  color:var(--accent);
  font-weight:700;
  font-size:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:18px;
}

.login-logo{
  max-width:220px;
  max-height:80px;
  width:auto;
  height:auto;
  object-fit:contain;
}

/* Legal buttons under login card */
.login-legal{
  display:flex;
  gap:12px;
  justify-content:center;
  align-items:center;
  margin-top:12px;
}
.login-legal-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 16px;
  border-radius:999px;
  background:#fff;
  color:var(--accent);
  text-decoration:none;
  font-weight:600;
  border:1px solid rgba(195,0,107,.25);
  box-shadow:0 6px 0 rgba(195,0,107,.35), 0 10px 22px rgba(0,0,0,.14);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.login-legal-btn:hover{
  transform:translateY(1px);
  box-shadow:0 5px 0 rgba(195,0,107,.35), 0 9px 18px rgba(0,0,0,.14);
  filter:brightness(0.99);
}
.login-legal-btn:active{
  transform:translateY(3px);
  box-shadow:0 3px 0 rgba(195,0,107,.35), 0 6px 12px rgba(0,0,0,.14);
}
.login-legal-btn:focus-visible{
  outline: none;
  box-shadow:0 6px 0 rgba(195,0,107,.35), 0 10px 22px rgba(0,0,0,.14), 0 0 0 .2rem rgba(195,0,107,.22);
}

.table thead th{
  color:#6c757d;
  font-weight:600;
  font-size:13px;
  text-transform:none;
}


.doc-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.35rem;
  margin-right:.35rem;
  font-size:1rem;
  line-height:1;
  vertical-align:-0.1em;
}
.doc-name-wrap{
  display:inline-flex;
  align-items:center;
  min-width:0;
}
.doc-name-wrap .doc-name-text{
  min-width:0;
  word-break:break-word;
}


/* Legacy board-style views */
.board-section-card{border:1px solid #ececec;border-radius:10px;background:#fff;margin-bottom:14px;overflow:hidden;box-shadow:0 1px 6px rgba(0,0,0,.05)}
.board-section-header{padding:12px 16px;font-weight:700;color:var(--accent);background:#fafafa;border-bottom:1px solid #eee}
.board-row{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid #f0f0f0;gap:12px}
.board-row:first-child{border-top:0}
.board-role{font-weight:600;color:#374151;min-width:220px}
.board-person{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.board-avatar{width:30px;height:30px;border-radius:999px;background:#6c757d;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;flex:0 0 30px}
.board-person-text{min-width:0}
.board-person-text .name{font-weight:600;color:#212529;line-height:1.2}
.board-person-text .meta{font-size:12px;color:#6c757d;line-height:1.2}
.board-empty{color:#6c757d;font-style:italic}
.board-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}
.board-actions .link-btn{font-size:14px;text-decoration:none}
.group-card{border:1px solid #e9ecef;border-radius:10px;background:#fff;margin-bottom:14px;overflow:hidden}
.group-card-header{padding:12px 16px;font-weight:700;background:#fafafa;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:space-between;gap:10px}
.group-card-body{padding:0}
.group-card-body .board-row{padding-left:20px}
.small-muted{font-size:12px;color:#6c757d}
.user-select-list{max-height:320px;overflow:auto}
.user-select-list .list-group-item{cursor:pointer}
.user-select-list .list-group-item:hover{background:#f7f7f7}
.board-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}


/* Board pages old-portal look */
.board-intro-card{background:#fff;border:1px solid #ececec;border-radius:8px;padding:14px 16px;margin-bottom:14px;box-shadow:0 1px 5px rgba(0,0,0,.04)}
.nsb-btn{display:inline-block;border:1px solid var(--accent);background:var(--accent);color:#fff;padding:6px 14px;border-radius:6px;font-size:14px;text-decoration:none;line-height:1.2}
.nsb-btn:hover{color:#fff;filter:brightness(.96)}
.nsb-btn-outline{display:inline-block;border:1px solid #bfc5cc;background:#fff;color:#4b5563;padding:5px 12px;border-radius:6px;font-size:14px;text-decoration:none}
.nsb-btn-outline-danger{border-color:#dc3545;color:#dc3545}
.nsb-btn-outline-danger:hover{background:#fff5f5;color:#dc3545}
.board-legacy-wrap{max-width:1200px}
.board-section-title{color:var(--accent);font-weight:700;font-size:15px;padding:10px 14px;border-bottom:1px solid #eee;background:#fafafa}
.board-card{background:#fff;border:1px solid #e9ecef;border-radius:8px;margin-bottom:14px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.board-card-header{padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #eee;background:#fbfbfb}
.board-card-header .title{font-weight:700;color:#333}
.board-card-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.board-list{width:100%}
.board-item{display:grid;grid-template-columns: 260px minmax(280px,1fr) auto;gap:10px;align-items:center;padding:10px 14px;border-top:1px solid #f0f0f0}
.board-item:first-child{border-top:0}
.board-item .role{font-weight:600;color:#2f3b4a}
.board-item .person{display:flex;align-items:center;gap:10px;min-width:0}
.board-item .person .avatar{width:28px;height:28px;border-radius:50%;background:#6b7280;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}
.board-item .person .txt .name{font-weight:600;line-height:1.1}
.board-item .person .txt .mail{font-size:12px;color:#6b7280;line-height:1.1}
.board-item .person .empty{color:#6b7280;font-style:italic}
.board-item .actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;white-space:nowrap}
.board-link{color:#0d6efd;text-decoration:none}
.board-link:hover{text-decoration:underline}
.board-pill-note{font-size:12px;color:#6b7280}
.board-subtle{font-size:12px;color:#6b7280}
@media (max-width: 980px){
  .board-item{grid-template-columns:1fr;align-items:start}
  .board-item .actions{justify-content:flex-start}
}


/* --- Board views refined to match legacy portal more closely --- */
:root{--legacy-accent:#c0006f;--legacy-sidebar:#666;--legacy-border:#e8e8ea;--legacy-row:#f7f7f8;}
.board-legacy-wrap{max-width:1180px}
.board-intro-card{background:#fff;border:1px solid var(--legacy-border);border-radius:8px;padding:12px 16px;margin-bottom:12px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.board-subtle{font-size:13px;color:#6f6f6f}
.board-card{background:#fff;border:1px solid var(--legacy-border);border-radius:8px;margin-bottom:12px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.03)}
.board-card-header{padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fafafb;border-bottom:1px solid var(--legacy-border)}
.board-card-header .title{font-weight:600;color:#333;display:flex;align-items:center;gap:8px}
.board-card-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.board-group-card{border-radius:6px}
.board-group-summary{cursor:pointer;list-style:none}
.board-group-summary::-webkit-details-marker{display:none}
.board-group-summary::after{content:"▾";margin-left:auto;color:#777;font-size:12px}
.board-group-card:not([open]) .board-group-summary::after{content:"▸"}
.board-pin-icon{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--legacy-accent);position:relative;flex:0 0 10px}
.board-pin-icon::after{content:"";position:absolute;left:3px;top:8px;width:4px;height:6px;background:var(--legacy-accent);transform:rotate(35deg);border-radius:1px}
.board-section-title{color:#444;font-weight:700;font-size:14px;padding:9px 12px;border-bottom:1px solid var(--legacy-border);background:#f6f6f7;display:flex;align-items:center;gap:8px}
.board-section-dot{width:8px;height:8px;border-radius:50%;background:var(--legacy-accent);display:inline-block}
.board-list{width:100%}
.board-item{display:grid;grid-template-columns:280px minmax(280px,1fr) auto;gap:12px;align-items:center;padding:9px 12px;border-top:1px solid #efefef}
.board-item:first-child{border-top:0}
.board-item .role{font-weight:600;color:#2f2f2f}
.board-item .person{display:flex;align-items:center;gap:10px;min-width:0}
.board-item .person .avatar{width:28px;height:28px;border-radius:50%;background:#6d6d6d;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}
.board-item .person .txt .name{font-weight:600;color:#2f2f2f;line-height:1.15}
.board-item .person .txt .mail{font-size:12px;color:#757575;line-height:1.15}
.board-item .person .txt .empty,.board-item .person .empty{color:#757575;font-style:italic}
.board-item .actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;white-space:nowrap}
.board-link{color:#0d6efd;text-decoration:none;font-weight:500}
.board-link:hover{text-decoration:underline}
.board-pill-note{font-size:12px;color:#777}
.nsb-btn,.nsb-btn-outline{border-radius:4px;padding:6px 10px;font-size:14px;line-height:1.2}
.nsb-btn{background:var(--legacy-accent);border:1px solid var(--legacy-accent);color:#fff}
.nsb-btn-outline{background:#fff;border:1px solid #b8bec8;color:#4b5563}
.nsb-btn-outline-danger{border-color:#dc3545;color:#dc3545}
.btn-compact{padding:4px 8px;font-size:12px}
.board-local-wrap .board-item .role::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--legacy-accent);margin-right:8px;vertical-align:1px}
.board-state-wrap .board-item .role::before{content:"";display:inline-block;width:20px;height:20px;border-radius:50%;background:#707070;color:#fff;text-align:center;line-height:20px;font-size:11px;margin-right:8px;vertical-align:-3px}
.board-state-wrap .board-card:nth-child(1) .board-item .role::before{content:"V"}
.board-state-wrap .board-card:nth-child(2) .board-item .role::before{content:"F"}
.board-state-wrap .board-card:nth-child(3) .board-item .role::before{content:"B"}
.board-group-card:not([open]) .board-list{display:none}
.board-item-note .role::before{display:none}
@media (max-width: 900px){.board-item{grid-template-columns:1fr;gap:6px;align-items:start}.board-item .actions{justify-content:flex-start}}

/* --- Local boards group header polish (legacy-like compact header + aligned icons) --- */
.board-group-summary{padding:8px 10px; background:#f7f7f8; min-height:46px; position:relative}
.board-group-summary .board-group-left{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.board-group-summary .board-group-name{font-weight:700;color:#2f2f2f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.board-group-summary::after{content:""; display:none}
.board-caret-slot{width:14px; height:14px; position:relative; flex:0 0 14px}
.board-caret-slot::before{content:""; position:absolute; left:3px; top:3px; width:0; height:0; border-top:4px solid transparent; border-bottom:4px solid transparent; border-left:6px solid #6e6e73; transition:transform .15s ease}
.board-group-card[open] .board-caret-slot::before{transform:rotate(90deg); transform-origin:2px 4px}
.board-pin-icon{width:12px;height:12px;flex:0 0 12px}
.board-pin-icon::after{left:4px; top:9px; width:4px; height:6px}
.board-card-actions{margin-left:auto; display:flex; align-items:center; gap:6px}
.board-card-actions form{margin:0}
.nsb-icon-btn{width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border:1px solid #b8bec8; background:#fff; color:#55606f; border-radius:4px; padding:0; vertical-align:middle}
.nsb-icon-btn:hover{background:#f8f9fb}
.nsb-icon-btn.danger{border-color:#dc3545; color:#dc3545}
.nsb-icon-btn.danger:hover{background:#fff5f5}
.nsb-icon-btn .icon-pencil,.nsb-icon-btn .icon-trash{display:inline-block; width:14px; height:14px; position:relative}
.nsb-icon-btn .icon-pencil::before{content:"✎"; font-size:14px; line-height:14px; display:block; text-align:center; margin-top:-1px}
.nsb-icon-btn .icon-trash::before{content:"🗑"; font-size:13px; line-height:14px; display:block; text-align:center; margin-top:-1px}
/* align symbols in role rows and action area */
.board-local-wrap .board-item .role{display:flex; align-items:center; min-height:24px}
.board-local-wrap .board-item .role::before{margin-right:8px; flex:0 0 8px}
.board-item .actions{min-width:150px}
.board-item .actions .board-link{display:inline-flex; align-items:center; gap:4px}
@media (max-width:900px){
  .board-group-summary{padding:8px}
  .board-card-actions{gap:4px}
  .nsb-icon-btn{width:32px;height:32px}
}

/* --- State board align with local board header/row style --- */
.board-state-header{padding:8px 10px; background:#f7f7f8; min-height:46px; border-bottom:1px solid var(--legacy-border)}
.board-state-header .board-group-left{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.board-state-header .board-group-name{font-weight:700;color:#2f2f2f}
.board-caret-slot.static::before{border-left-color:#9a9aa0; opacity:.55}
.board-caret-slot.static{pointer-events:none}
.board-state-wrap .board-card{border-radius:6px}
.board-state-wrap .board-item{padding:9px 12px}
.board-state-wrap .board-item .role{display:flex;align-items:center;min-height:24px}
.board-state-wrap .board-item .role::before{margin-right:8px;flex:0 0 20px}
.board-state-wrap .board-item .actions{min-width:170px}
.board-state-wrap .board-item .actions form{margin:0}
.board-state-wrap .board-item .actions .nsb-icon-btn{width:30px;height:30px}
.board-state-wrap .board-item .actions .board-link{display:inline-flex;align-items:center;gap:4px}
.board-inline-plus{font-weight:700; line-height:1; margin-top:-1px}


/* v59 tweaks: local action icons + state role magenta dots */
.nsb-icon-btn .icon-plus{display:inline-block;width:14px;height:14px;position:relative}
.nsb-icon-btn .icon-plus::before{content:"+";font-size:18px;line-height:14px;display:block;text-align:center;margin-top:-3px;font-weight:700}
.board-state-wrap .board-item .role::before{content:"" !important;display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--legacy-accent);margin-right:8px;vertical-align:1px;flex:0 0 8px}
.board-state-wrap .board-item .actions{min-width:110px}

/* v60 local boards action icons alignment */
.board-local-wrap .board-item .actions{
  min-width:84px;
  display:grid;
  grid-template-columns:34px 34px;
  justify-content:end;
  align-items:center;
  gap:8px;
}
.board-local-wrap .board-item .actions form{margin:0; display:contents;}
.board-local-wrap .nsb-icon-placeholder{
  visibility:hidden;
  pointer-events:none;
}
.board-local-wrap .board-item .actions .nsb-icon-btn,
.board-local-wrap .board-item .actions .nsb-icon-placeholder{
  margin:0;
}


/* menu fine polish */
.nav .nav-link{padding:12px 14px;border-radius:0;transition:background-color .12s ease;}
.nav .nav-link + .nav-link{margin-top:0;}
.nav-section:first-of-type{margin-top:6px;}
.nav-section span{line-height:1;}
.sidebar .nav{padding-bottom:12px;}

/* Modal scrolling fix */
.modal-dialog.modal-dialog-scrollable {
  max-height: calc(100vh - 2rem);
}
.modal-dialog.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 2rem);
}
.modal-dialog.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}


/* --- Responsive portal layout --- */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
img, svg, canvas, video {
  max-width: 100%;
  height: auto;
}
.sidebar {
  flex: 0 0 260px;
}
.content {
  min-width: 0;
}
.content-inner {
  max-width: 100%;
}
.table-responsive-auto {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-responsive-auto > .table {
  min-width: 760px;
}
.table td, .table th {
  vertical-align: middle;
}
.form-control, .form-select, .form-check-input, textarea {
  max-width: 100%;
}
.mobile-topbar,
.sidebar-backdrop {
  display: none;
}

/* Desktop Topbar (Brand aligned with content + Notifications + User + optional Logo) */
.desktop-topbar{display:none; position:fixed; top:0; left:0; right:0; z-index:1030; height:64px; background:#fff; border-bottom:1px solid rgba(0,0,0,.08); padding:0; align-items:center; gap:12px;}
.desktop-topbar__sidebar-gap{
  width:260px;
  flex:0 0 260px;
  /* Left area above the sidebar (logo zone) */
  display:flex;
  align-items:stretch;
  padding:0 10px;
}
.desktop-topbar__brandwrap{padding-left:28px;}
.desktop-topbar__brand{font-size:26px; font-weight:700; color: var(--nsb-magenta, #c3006b); letter-spacing:.2px;}
.desktop-topbar__spacer{flex:1;}
.desktop-topbar__actions{display:flex; align-items:center; gap:10px;}
.desktop-topbar__iconbtn{position:relative; width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center;}
.desktop-topbar__userbtn{display:flex; align-items:center; gap:10px; border-radius:999px; padding:8px 12px;}
.desktop-topbar__userbtn .user-badge{width:34px; height:34px; border-radius:999px; background: var(--nsb-magenta, #c3006b); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px;}
.desktop-topbar__userbtn .user-avatar-img{width:34px; height:34px; border-radius:999px; object-fit:cover; display:block; background:#eee;}
.desktop-topbar__userbtn .user-name{font-weight:600; color:#666;}

.topbar-badge{
  position:absolute;
  top:6px;
  right:6px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background: var(--nsb-magenta, #c3006b);
  color:#fff;
  font-size:12px;
  line-height:18px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
}


.topbar-logo{
  /* Stretch to topbar height while keeping aspect ratio */
  height:100%;
  max-height:64px;
  width:auto;
  max-width:220px;
  object-fit:contain;
  display:block;
  margin:0;
}

.notif-row{text-decoration:none; color:inherit;}
.notif-row:hover{background:rgba(0,0,0,.03);}
.notif-icon{width:34px; height:34px; border-radius:999px; background:rgba(195,0,107,.12); display:flex; align-items:center; justify-content:center; color: var(--nsb-magenta, #c3006b);} 
.notif-unread .fw-semibold{color:#222;}
.notif-read{opacity:.75;}

@media (min-width: 992px){
  body{padding-top:64px;}
  .desktop-topbar{display:flex;}
  .mobile-topbar{display:none !important;}
  .sidebar .brand{display:none;}
}
@media (min-width: 992px) {
  /*
    Desktop: keep topbar + sidebar always visible.
    Sidebar must NOT be pushed down twice (body padding-top already offsets the page).
    Therefore: sidebar is fixed under the topbar and scrolls internally.
  */
  .app{ padding-left:260px; }
  .sidebar{
    position:fixed;
    top:64px;
    left:0;
    width:260px;
    height:calc(100vh - 64px);
    overflow-y:auto;
    z-index:1020;
  }
  .content{ min-width:0; }
}
@media (max-width: 991.98px) {
  body {
    padding-top: 60px;
  }
  .mobile-topbar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1045;
    background: #fff;
    border-bottom: 1px solid #e6e8eb;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
  }
  .mobile-topbar__left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
  }
  .mobile-menu-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #d7dce2;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .mobile-topbar__brand {
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-topbar__title {
    color: #6b7280;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42vw;
  }
  .app {
    display: block;
    min-height: auto;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1055;
    width: min(86vw, 320px);
    max-width: 320px;
    transform: translateX(-100%);
    transition: transform .22s ease;
    overflow-y: auto;
    box-shadow: 10px 0 30px rgba(0,0,0,.22);
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(17,24,39,.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .content-inner {
    padding: 16px 14px 26px;
  }
  .page-title {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 14px;
  }
  .card,
  .group-card,
  .board-card,
  .board-section-card,
  .board-intro-card {
    border-radius: 12px;
  }
  .board-toolbar,
  .board-card-actions,
  .btn-group {
    flex-wrap: wrap;
  }
  .board-card-header,
  .group-card-header,
  .board-group-summary,
  .board-state-header,
  .board-row {
    align-items: flex-start;
  }
  .board-row,
  .group-card-header,
  .board-card-header {
    gap: 10px;
  }
  .board-item,
  .board-state-wrap .board-item,
  .board-local-wrap .board-item {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }
  .board-item .actions,
  .board-local-wrap .board-item .actions,
  .board-state-wrap .board-item .actions {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }
  .board-group-summary .board-group-name,
  .board-state-header .board-group-name {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }
  .table-responsive-auto > .table {
    min-width: 680px;
  }
  .modal-dialog {
    margin: .5rem;
  }
  .modal-content,
  .modal-dialog.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 1rem);
  }
}
@media (max-width: 767.98px) {
  .content-inner {
    padding: 14px 12px 22px;
  }
  .page-title {
    font-size: 26px;
  }
  .mobile-topbar__title {
    max-width: 36vw;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-value {
    font-size: 30px;
  }
  .login-card {
    width: 100%;
    padding: 20px;
  }
  .table-responsive-auto > .table {
    min-width: 620px;
  }
  .card .table td,
  .card .table th {
    white-space: nowrap;
  }
  .board-person,
  .board-item .person {
    align-items: flex-start;
  }
}


/* --- Responsive phase 2: module-specific mobile polish --- */
.card-body > .row:last-child{margin-bottom:0}
.btn, .form-select, .form-control{min-height:38px}
.dropdown-menu{max-width:min(92vw, 320px)}
.badge{white-space:normal}

@media (max-width: 991.98px){
  .content-inner .row{--bs-gutter-x: 1rem;}
  .card-body{padding:1rem}
  .card-header, .card-footer{padding:.85rem 1rem}
  .btn-group > .btn{flex:1 1 auto}
  .d-flex.gap-2.flex-wrap > .btn,
  .d-flex.gap-2.flex-wrap > a.btn{flex:1 1 auto}
}

@media (max-width: 767.98px){
  body.modal-open-mobile{overflow:hidden}
  .modal-dialog{margin:0 !important; max-width:none; width:100%; min-height:100vh}
  .modal-content,
  .modal-dialog.modal-dialog-scrollable .modal-content{border-radius:0; min-height:100vh; max-height:100vh}
  .modal-header,
  .modal-footer{position:sticky; z-index:3; background:#fff}
  .modal-header{top:0; box-shadow:0 1px 0 rgba(0,0,0,.06)}
  .modal-footer{bottom:0; box-shadow:0 -1px 0 rgba(0,0,0,.06); gap:.5rem}
  .modal-footer > *{flex:1 1 auto}
  .modal-body{padding:1rem .9rem calc(1rem + env(safe-area-inset-bottom))}

  .page-module-users .table-mobile-cards,
  .page-admin-users .table-mobile-cards,
  .page-documents .table-mobile-cards,
  .page-folder .table-mobile-cards,
  .page-module-role-edit .table-mobile-cards,
  .page-module-user-permissions .table-mobile-cards,
  .page-module-support-tickets .table-mobile-cards,
  .page-module-travel-expense-admin .table-mobile-cards,
  .page-module-travel-expenses .table-mobile-cards,
  .page-pv .table-mobile-cards,
  .page-admin-folders .table-mobile-cards,
  .page-admin-modules .table-mobile-cards,
  .page-module-tasks .table-mobile-cards,
  .page-module-my-tasks .table-mobile-cards,
  .page-profile .table-mobile-cards,
  .page-module-appointments .table-mobile-cards,
  .page-module-groups .table-mobile-cards{
    min-width:0 !important;
    border-collapse:separate;
    border-spacing:0;
  }
  .page-module-users .table-responsive,
  .page-admin-users .table-responsive,
  .page-documents .table-responsive,
  .page-folder .table-responsive,
  .page-module-role-edit .table-responsive,
  .page-module-user-permissions .table-responsive,
  .page-module-support-tickets .table-responsive,
  .page-module-travel-expense-admin .table-responsive,
  .page-module-travel-expenses .table-responsive,
  .page-pv .table-responsive,
  .page-admin-folders .table-responsive,
  .page-admin-modules .table-responsive,
  .page-module-tasks .table-responsive,
  .page-module-my-tasks .table-responsive,
  .page-profile .table-responsive,
  .page-module-appointments .table-responsive,
  .page-module-groups .table-responsive,
  .page-module-users .table-responsive-auto,
  .page-admin-users .table-responsive-auto,
  .page-documents .table-responsive-auto,
  .page-folder .table-responsive-auto,
  .page-module-role-edit .table-responsive-auto,
  .page-module-user-permissions .table-responsive-auto,
  .page-module-support-tickets .table-responsive-auto,
  .page-module-travel-expense-admin .table-responsive-auto,
  .page-module-travel-expenses .table-responsive-auto,
  .page-pv .table-responsive-auto,
  .page-admin-folders .table-responsive-auto,
  .page-admin-modules .table-responsive-auto,
  .page-module-tasks .table-responsive-auto,
  .page-module-my-tasks .table-responsive-auto,
  .page-profile .table-responsive-auto,
  .page-module-appointments .table-responsive-auto,
  .page-module-groups .table-responsive-auto{overflow:visible}

  .page-module-users .table-mobile-cards thead,
  .page-admin-users .table-mobile-cards thead,
  .page-documents .table-mobile-cards thead,
  .page-folder .table-mobile-cards thead,
  .page-module-role-edit .table-mobile-cards thead,
  .page-module-user-permissions .table-mobile-cards thead,
  .page-module-support-tickets .table-mobile-cards thead,
  .page-module-travel-expense-admin .table-mobile-cards thead,
  .page-module-travel-expenses .table-mobile-cards thead,
  .page-pv .table-mobile-cards thead,
  .page-admin-folders .table-mobile-cards thead,
  .page-admin-modules .table-mobile-cards thead,
  .page-module-tasks .table-mobile-cards thead,
  .page-module-my-tasks .table-mobile-cards thead,
  .page-profile .table-mobile-cards thead,
  .page-module-appointments .table-mobile-cards thead,
  .page-module-groups .table-mobile-cards thead{display:none}

  .page-module-users .table-mobile-cards tbody,
  .page-admin-users .table-mobile-cards tbody,
  .page-documents .table-mobile-cards tbody,
  .page-folder .table-mobile-cards tbody,
  .page-module-role-edit .table-mobile-cards tbody,
  .page-module-user-permissions .table-mobile-cards tbody,
  .page-module-support-tickets .table-mobile-cards tbody,
  .page-module-travel-expense-admin .table-mobile-cards tbody,
  .page-module-travel-expenses .table-mobile-cards tbody,
  .page-pv .table-mobile-cards tbody,
  .page-admin-folders .table-mobile-cards tbody,
  .page-admin-modules .table-mobile-cards tbody,
  .page-module-tasks .table-mobile-cards tbody,
  .page-module-my-tasks .table-mobile-cards tbody,
  .page-profile .table-mobile-cards tbody,
  .page-module-appointments .table-mobile-cards tbody,
  .page-module-groups .table-mobile-cards tbody,
  .page-module-users .table-mobile-cards tr,
  .page-admin-users .table-mobile-cards tr,
  .page-documents .table-mobile-cards tr,
  .page-folder .table-mobile-cards tr,
  .page-module-role-edit .table-mobile-cards tr,
  .page-module-user-permissions .table-mobile-cards tr,
  .page-module-support-tickets .table-mobile-cards tr,
  .page-module-travel-expense-admin .table-mobile-cards tr,
  .page-module-travel-expenses .table-mobile-cards tr,
  .page-pv .table-mobile-cards tr,
  .page-admin-folders .table-mobile-cards tr,
  .page-admin-modules .table-mobile-cards tr,
  .page-module-tasks .table-mobile-cards tr,
  .page-module-my-tasks .table-mobile-cards tr,
  .page-profile .table-mobile-cards tr,
  .page-module-appointments .table-mobile-cards tr,
  .page-module-groups .table-mobile-cards tr,
  .page-module-users .table-mobile-cards td,
  .page-admin-users .table-mobile-cards td,
  .page-documents .table-mobile-cards td,
  .page-folder .table-mobile-cards td,
  .page-module-role-edit .table-mobile-cards td,
  .page-module-user-permissions .table-mobile-cards td,
  .page-module-support-tickets .table-mobile-cards td,
  .page-module-travel-expense-admin .table-mobile-cards td,
  .page-module-travel-expenses .table-mobile-cards td,
  .page-pv .table-mobile-cards td,
  .page-admin-folders .table-mobile-cards td,
  .page-admin-modules .table-mobile-cards td,
  .page-module-tasks .table-mobile-cards td,
  .page-module-my-tasks .table-mobile-cards td,
  .page-profile .table-mobile-cards td,
  .page-module-appointments .table-mobile-cards td,
  .page-module-groups .table-mobile-cards td{display:block; width:100%}

  .page-module-users .table-mobile-cards tr,
  .page-admin-users .table-mobile-cards tr,
  .page-documents .table-mobile-cards tr,
  .page-folder .table-mobile-cards tr,
  .page-module-role-edit .table-mobile-cards tr,
  .page-module-user-permissions .table-mobile-cards tr,
  .page-module-support-tickets .table-mobile-cards tr,
  .page-module-travel-expense-admin .table-mobile-cards tr,
  .page-module-travel-expenses .table-mobile-cards tr,
  .page-pv .table-mobile-cards tr,
  .page-admin-folders .table-mobile-cards tr,
  .page-admin-modules .table-mobile-cards tr,
  .page-module-tasks .table-mobile-cards tr,
  .page-module-my-tasks .table-mobile-cards tr,
  .page-profile .table-mobile-cards tr,
  .page-module-appointments .table-mobile-cards tr,
  .page-module-groups .table-mobile-cards tr{
    margin:0 0 .9rem;
    background:#fff;
    border:1px solid #e7e9ee;
    border-radius:14px;
    box-shadow:0 1px 5px rgba(0,0,0,.04);
    overflow:hidden;
  }

  .page-module-users .table-mobile-cards td,
  .page-admin-users .table-mobile-cards td,
  .page-documents .table-mobile-cards td,
  .page-folder .table-mobile-cards td,
  .page-module-role-edit .table-mobile-cards td,
  .page-module-user-permissions .table-mobile-cards td,
  .page-module-support-tickets .table-mobile-cards td,
  .page-module-travel-expense-admin .table-mobile-cards td,
  .page-module-travel-expenses .table-mobile-cards td,
  .page-pv .table-mobile-cards td,
  .page-admin-folders .table-mobile-cards td,
  .page-admin-modules .table-mobile-cards td,
  .page-module-tasks .table-mobile-cards td,
  .page-module-my-tasks .table-mobile-cards td,
  .page-profile .table-mobile-cards td,
  .page-module-appointments .table-mobile-cards td,
  .page-module-groups .table-mobile-cards td{
    padding:.72rem .85rem;
    border:0;
    border-top:1px solid #f1f3f6;
    white-space:normal !important;
  }
  .page-module-users .table-mobile-cards tr td:first-child,
  .page-admin-users .table-mobile-cards tr td:first-child,
  .page-documents .table-mobile-cards tr td:first-child,
  .page-folder .table-mobile-cards tr td:first-child,
  .page-module-role-edit .table-mobile-cards tr td:first-child,
  .page-module-user-permissions .table-mobile-cards tr td:first-child,
  .page-module-support-tickets .table-mobile-cards tr td:first-child,
  .page-module-travel-expense-admin .table-mobile-cards tr td:first-child,
  .page-module-travel-expenses .table-mobile-cards tr td:first-child,
  .page-pv .table-mobile-cards tr td:first-child,
  .page-admin-folders .table-mobile-cards tr td:first-child,
  .page-admin-modules .table-mobile-cards tr td:first-child,
  .page-module-tasks .table-mobile-cards tr td:first-child,
  .page-module-my-tasks .table-mobile-cards tr td:first-child,
  .page-profile .table-mobile-cards tr td:first-child,
  .page-module-appointments .table-mobile-cards tr td:first-child,
  .page-module-groups .table-mobile-cards tr td:first-child{border-top:0}

  .table-mobile-cards td[data-label]::before{
    content: attr(data-label);
    display:block;
    font-size:.72rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.03em;
    color:#8a9099;
    margin-bottom:.28rem;
  }
  .table-mobile-cards td.cell-actions::before{display:none}
  .table-mobile-cards td.cell-actions{text-align:left !important; background:#fafbfc}
  .table-mobile-cards td.cell-actions .dropdown,
  .table-mobile-cards td.cell-actions .btn-group{width:100%}
  .table-mobile-cards td.cell-actions .btn,
  .table-mobile-cards td.cell-actions .dropdown-toggle{width:100%}
  .table-mobile-cards .badge{display:inline-flex; margin:.1rem .25rem .1rem 0}

  .page-module-users .row.g-2.align-items-end > div,
  .page-module-appointments .row.g-2.align-items-end > div,
  .page-module-travel-expenses .row.g-2.align-items-end > div,
  .page-module-travel-expense-admin .row.g-2.align-items-end > div,
  .page-pv .row.g-2.align-items-end > div,
  .page-documents .row.g-2.align-items-end > div,
  .page-folder .row.g-2.align-items-end > div{width:100%}

  .page-module-users .dropdown-menu,
  .page-admin-users .dropdown-menu,
  .page-module-support-tickets .dropdown-menu{width:100%}

  .page-module-role-edit .table-mobile-cards td,
  .page-module-user-permissions .table-mobile-cards td{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:1rem;
  }
  .page-module-role-edit .table-mobile-cards td:first-child,
  .page-module-user-permissions .table-mobile-cards td:first-child{
    display:block;
  }
  .page-module-role-edit .table-mobile-cards td .form-check-input,
  .page-module-user-permissions .table-mobile-cards td .form-check-input{transform:scale(1.15)}

  .page-module-appointments .card .table td,
  .page-module-travel-expenses .card .table td,
  .page-module-travel-expense-admin .card .table td{white-space:normal}

  .page-module-appointments .btn,
  .page-documents .btn,
  .page-folder .btn,
  .page-module-users .btn,
  .page-module-user-permissions .btn,
  .page-module-role-edit .btn,
  .page-module-travel-expenses .btn,
  .page-module-travel-expense-admin .btn,
  .page-module-support-tickets .btn{min-height:40px}
}



/* --- Responsive phase 3 hotfixes --- */
html, body { max-width: 100%; }
.mobile-topbar,
.sidebar-backdrop { display: none !important; }
.mobile-menu-btn { display: none !important; }

@media (min-width: 992px) {
  body { padding-top: 64px !important; }
  .mobile-topbar,
  .sidebar-backdrop { display: none !important; }
  .mobile-menu-btn { display: none !important; }
  body.sidebar-open { overflow: visible; }
  .sidebar { transform: none !important; }
}

@media (max-width: 991.98px) {
  body.sidebar-open { overflow: hidden; }
  .mobile-topbar { display: flex !important; }
  .mobile-menu-btn { display: inline-flex !important; }
  .content { min-width: 0; }

  .page-dashboard .stat-card,
  .page-dashboard .card.stat-card { min-height: 150px; }
  .page-dashboard .stat-icon,
  .page-dashboard .card.stat-card .stat-icon {
    width: 48px; height: 48px; font-size: 16px; margin-bottom: 8px;
  }
  .page-dashboard .stat-value { font-size: 26px; }
  .page-dashboard .stat-label { font-size: 14px; line-height: 1.25; }

  .page-module-appointments .appointments-calendar-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -2px;
  }
  .page-module-appointments .appointments-calendar-table {
    min-width: 760px;
    table-layout: fixed;
  }
  .page-module-appointments .appointments-calendar-table th,
  .page-module-appointments .appointments-calendar-table td {
    white-space: normal !important;
  }
  .page-module-appointments .appointments-calendar-table td {
    height: 115px !important;
    min-width: 108px;
    vertical-align: top;
  }
  .page-module-appointments .appointments-calendar-table a {
    word-break: break-word;
  }
  .page-module-appointments .card-body > .d-flex.justify-content-between.align-items-center.mb-2 {
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch !important;
  }
  .page-module-appointments .card-body > .d-flex.justify-content-between.align-items-center.mb-2 > .d-flex.gap-2 {
    width: 100%;
    justify-content: space-between;
  }
  .page-module-appointments .card-body > .d-flex.justify-content-between.align-items-center.mb-2 .btn-group {
    flex: 1 1 auto;
  }
  .page-module-appointments .card-body > .d-flex.justify-content-between.align-items-center.mb-2 .btn-group .btn,
  .page-module-appointments .card-body > .d-flex.justify-content-between.align-items-center.mb-2 > .d-flex.gap-2 > .btn {
    flex: 1 1 auto;
  }

  .page-module-state-board .board-list,
  .page-module-local-boards .board-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
  }
  .page-module-state-board .board-list > .board-item,
  .page-module-local-boards .board-list > .board-item {
    border: 1px solid #e7e8ec;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }
  .page-module-state-board .board-list > .board-item .role,
  .page-module-local-boards .board-list > .board-item .role {
    font-size: 14px;
    line-height: 1.25;
  }
  .page-module-state-board .board-list > .board-item .person,
  .page-module-local-boards .board-list > .board-item .person {
    align-items: flex-start;
  }
  .page-module-state-board .board-list > .board-item .person .txt .mail,
  .page-module-local-boards .board-list > .board-item .person .txt .mail {
    word-break: break-word;
  }
  .page-module-state-board .board-list > .board-item .actions,
  .page-module-local-boards .board-list > .board-item .actions {
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .page-module-state-board .board-list,
  .page-module-local-boards .board-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .page-dashboard .col-6 { width: 50%; }
  .page-dashboard .stat-card,
  .page-dashboard .card.stat-card { padding: 14px 12px; min-height: 136px; }
  .page-dashboard .stat-value { font-size: 22px; }
  .page-dashboard .stat-label { font-size: 13px; }
  .page-dashboard .stat-icon {
    width: 44px; height: 44px; font-size: 15px;
  }
  .page-module-state-board .board-list,
  .page-module-local-boards .board-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
    gap: 8px;
  }
}


/* Unread messages badge in sidebar */
.nav .nav-link{ position: relative; }
.nav .nav-link .nav-text{ line-height:1.2; }
.nav .nav-badge-pill{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:30px;
  padding:0 10px;
  border-radius:10px;
  background:var(--accent);
  color:#fff;
  font-weight:700;
  font-size:14px;
  line-height:1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.20), 0 2px 4px rgba(0,0,0,.18);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
}
.nav .nav-badge-count{display:block; line-height:1;}
.nav .nav-link:hover .nav-badge-pill{
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 0 rgba(0,0,0,.22), 0 4px 8px rgba(0,0,0,.22);
}
.nav .nav-link.active .nav-badge-pill{
  background:#fff;
  color:var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 0 rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.12);
}
@media (max-width: 575.98px){
  .nav .nav-badge-pill{
    min-width:32px;
    height:28px;
    padding:0 9px;
    border-radius:9px;
    font-size:13px;
  }
}


.nav-section-toggle{border:none;}


/* Appointment response buttons (AJAX) */
.att-status-wrap{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.att-btn{border-radius:10px;padding:10px 14px;font-weight:700;position:relative;box-shadow:0 6px 0 rgba(120,0,70,.35),0 10px 20px rgba(0,0,0,.10);transform:translateY(0);transition:transform .12s ease,box-shadow .12s ease,filter .12s ease}
.att-btn:hover{filter:brightness(1.03);transform:translateY(-1px);box-shadow:0 7px 0 rgba(120,0,70,.35),0 12px 22px rgba(0,0,0,.12)}
.att-btn:active{transform:translateY(3px);box-shadow:0 3px 0 rgba(120,0,70,.35),0 6px 14px rgba(0,0,0,.10)}
.att-yes,.att-no{background:#c3006b;color:#fff;border:1px solid #c3006b}
.att-maybe{background:#c3006b;color:#fff;border:1px solid #c3006b}
.att-btn .att-check{display:none;margin-right:6px}
.att-btn.active .att-check{display:inline}
.att-btn.is-loading{pointer-events:none;opacity:.9}
.att-btn .att-spinner{display:none;width:14px;height:14px;border-radius:50%;border:2px solid rgba(255,255,255,.55);border-top-color:#fff;margin-left:8px;vertical-align:-2px;animation:attspin .8s linear infinite}
.att-btn.is-loading .att-spinner{display:inline-block}
@keyframes attspin{to{transform:rotate(360deg)}}

/* Mini toast */
.toast-mini{position:fixed;right:18px;bottom:18px;padding:10px 14px;border-radius:12px;color:#fff;background:#c3006b;box-shadow:0 12px 25px rgba(0,0,0,.15);z-index:9999;transition:opacity .25s ease;opacity:0}
.toast-mini.show{opacity:1}
.toast-mini.err{background:#c0392b}



/* Appointment participation status buttons (AJAX) */
.att-status-wrap{display:flex;gap:10px;flex-wrap:wrap}
.att-btn{
  border-radius:12px;
  padding:10px 14px;
  font-weight:700;
  background:#c3006b;
  color:#fff;
  border:1px solid #c3006b;
  box-shadow:0 6px 0 rgba(120,0,70,.35),0 10px 20px rgba(0,0,0,.10);
  transform:translateY(0);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
  position:relative;
}
.att-btn:hover{filter:brightness(1.03);transform:translateY(-1px);box-shadow:0 7px 0 rgba(120,0,70,.35),0 12px 22px rgba(0,0,0,.12)}
.att-btn:active{transform:translateY(3px);box-shadow:0 3px 0 rgba(120,0,70,.35),0 6px 14px rgba(0,0,0,.10)}
.att-btn .att-check{display:none;margin-right:6px}
.att-btn.active .att-check{display:inline}
.att-btn .att-spinner{
  display:none;
  width:14px;height:14px;
  border:2px solid rgba(255,255,255,.45);
  border-top-color:#fff;
  border-radius:999px;
  margin-left:8px;
  vertical-align:middle;
  animation:attspin .8s linear infinite;
}
.att-btn.is-loading .att-spinner{display:inline-block}
@keyframes attspin{to{transform:rotate(360deg)}}
#attToast.toast-mini{
  position:fixed;right:18px;bottom:18px;z-index:9999;
  padding:10px 14px;border-radius:12px;color:#fff;background:#c3006b;
  box-shadow:0 12px 25px rgba(0,0,0,.15);
  transition:opacity .25s ease;
}
#attToast.toast-mini.err{background:#c0392b}
