/* Promoted from _v4/_css/style.css. Opt-in only; legacy shared includes stay unchanged. */
/* Loaded after page styles. Do not change drag targets, attendance marks, or editor dimensions. */
body.smm-visual {
--rail: 1250px;
  --inset: 12px;
}

body.smm-visual {
background: #f7f7f7;
}

body.smm-visual .container.main {
max-width: var(--rail);
  margin: 0 auto;
  width: 100%;
  padding-left: var(--inset);
  padding-right: var(--inset);
}

body.smm-visual .container {
width: 100%;
}

body.smm-visual .card {
background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  padding: 12px 14px;
  margin-bottom: 14px;
}

body.smm-visual .card h4 {
margin: 0 0 10px 0;
}

body.smm-visual .siteHeader {
display: flex;
  justify-content: space-between;
  align-items: flex-end;   
  gap: 16px;
  padding: 8px 0 6px 0;
  margin: 0;
}

body.smm-visual .header-left {
width: auto;
  height: auto;
  margin: 0;
  padding: 0;
}

body.smm-visual .header-left img {
display: block;
  height: auto;
  width: auto;
  max-height: none;
}

body.smm-visual .header-right {
display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
}

body.smm-visual .header-right {
padding-right: 16px;
}

body.smm-visual .teamName {
margin: 0;
  padding: 0;
  white-space: nowrap;
}

body.smm-visual .teamName h4 {
margin: 0;
  font-weight: 800;
  color: rgba(0,0,0,.65);
}

body.smm-visual .loginForm {
margin: 0;
  padding: 0;
}

body.smm-visual .loginForm form {
display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

body.smm-visual .loginFormRight {
margin: 0;
}

body.smm-visual .navbar {
border: none;
  background: transparent;
  margin: 6px 0 10px 0;
  padding: 0;
}

body.smm-visual .navbar .nav,
body.smm-visual .navbar .navbar-nav {
display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;

  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;

  padding: 6px;
  margin: 0;
}

body.smm-visual .navbar .nav > li,
body.smm-visual .navbar .navbar-nav > li {
float: none;
  padding: 0;
  margin: 0;
  border-right: none;
}

body.smm-visual .navbar .nav > li > a,
body.smm-visual .navbar .navbar-nav > li > a {
display: block;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 800;
  color: rgba(0,0,0,.72);
  text-decoration: none;
}

body.smm-visual .navbar .nav > li > a:hover,
body.smm-visual .navbar .navbar-nav > li > a:hover {
background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.90);
}

body.smm-visual .navbar .nav > li.active > a,
body.smm-visual .navbar .navbar-nav > li.active > a {
background: rgba(0,0,0,.10);
}

body.smm-visual .btn-small {
padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.25);
  background: #fff;
  color: rgba(0,0,0,.85);
  font-weight: 800;
  cursor: pointer;
}

body.smm-visual .btn-small:hover {
background: #337ab7;
  border-color: #2e6da4;
  color: #fff;
}

body.smm-visual .btn-small-primary {
background: #337ab7;
  border-color: #2e6da4;
  color: #fff;
}

body.smm-visual .btn-small-primary:hover {
background: #286090;
  border-color: #204d74;
  color: #fff;
}

body.smm-visual .btn-orange {
background: #f0ad4e;
  border: 1px solid rgba(0,0,0,.2);
  color: #000;
  border-radius: 10px;
  font-weight: 800;
}

body.smm-visual .rosterTopRow {
display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  margin: 10px 0;
}

body.smm-visual .rosterTopActions {
display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  width: auto;
}

body.smm-visual .rosterTopRight {
display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  margin-left: auto;
  flex: 0 0 auto;
  width: auto;
}

body.smm-visual .rosterTopRight label {
display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

@media (max-width: 520px) {
body.smm-visual .rosterTopRow {
flex-wrap: wrap;
}

body.smm-visual .rosterTopRight {
justify-content: flex-start;
}
}

body.smm-visual .rosterLoading {
display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: rgba(0,0,0,.6);
}

body.smm-visual .rosterLoading .loadingText {
margin-top: 12px;
  font-size: 1.05em;
}

body.smm-visual .rosterLoading .spinner {
width: 36px;
  height: 36px;
  border: 4px solid rgba(0,0,0,.15);
  border-top-color: rgba(0,0,0,.55);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
to{ transform: rotate(360deg); }
}

body.smm-visual .meetItem a {
font-size: 1.15em;
  font-weight: 800;
  color: rgba(0,0,0,.85);
  text-decoration: none;
}

body.smm-visual .meetItem a:hover {
color: #337ab7;
  text-decoration: underline;
}

body.smm-visual .table {
background: #fff;
}

body.smm-visual .split2 {
width: 50%;
  float: left;
}

body.smm-visual .rightAlign {
text-align: right;
}

body.smm-visual .clear {
clear: both;
}


/* Root compatibility: retain Bootstrap, x-editable and both existing header markups. */
body.smm-visual {
  --surface: #fff;
  --border: rgba(0,0,0,.14);
  --muted: rgba(0,0,0,.65);
  --accent: #337ab7;
  --radius: 14px;
}
body.smm-visual > .container {
  width: 100%;
  max-width: var(--rail);
  margin: 0 auto;
  padding: 0 var(--inset);
}
body.smm-visual .header-left {
  height: auto;
  margin-bottom: 0;
  max-width: 100%;
}
body.smm-visual .header-left img {
  width: 320px;
  max-width: 100%;
  height: auto;
}
body.smm-visual .teamName {
  width: auto;
  height: auto;
  padding-top: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}
body.smm-visual .siteHeader {
  flex-wrap: wrap;
  align-items: flex-end;
}
body.smm-visual .siteHeader .header-left,
body.smm-visual .siteHeader .teamName {
  float: none;
}
body.smm-visual .header-right {
  min-width: 0;
  padding-right: 0;
  padding-bottom: 12px;
}
/* Legacy header has no flex wrapper; keep its original content and login form. */
body.smm-visual > .container > .header-left {
  float: left;
}
body.smm-visual > .container > .teamName,
body.smm-visual > .container > .loginForm {
  float: right;
  padding-top: 48px;
}
body.smm-visual .navbar {
  clear: both;
  min-height: 0;
}
body.smm-visual .navbar .container {
  width: 100%;
  margin: 0;
  padding: 0;
}
body.smm-visual .navbar .nav > li {
  display: block;
  width: auto;
  box-shadow: none;
  background: transparent;
}
body.smm-visual .navbar .nav > li > a {
  border: 0;
  border-radius: 12px;
}
/* Only neutral buttons: retain primary/danger states and blank entry buttons. */
body.smm-visual .btn-default,
body.smm-visual .btn:not([class*="btn-"]) {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: rgba(0,0,0,.85);
  font-weight: 700;
}
body.smm-visual .btn-default:hover,
body.smm-visual .btn:not([class*="btn-"]):hover {
  background: #eee;
}
body.smm-visual .form-control {
  border-radius: 10px;
}
body.smm-visual footer {
  clear: both;
  padding: 12px 0;
  color: var(--muted);
  overflow-wrap: break-word;
}
body.smm-visual .getStarted {
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
body.smm-visual .dashboard > div {
  min-width: 0;
}
/* Preserve the promoted roster loader, mobile cards and save indicators. */
body.smm-roster #roster {
  float: none;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  overflow: auto;
}
/* Meet list and setup cards keep their existing fields and ordering. */
body.smm-visual .menu {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
body.smm-visual .menuItem {
  box-shadow: none;
  border-bottom: 1px solid var(--border);
}
body.smm-visual a:hover .menuItem {
  background: #eee;
}
body.smm-visual .selectedMenuItem {
  background: #e6edf5;
  color: #222;
  font-weight: 700;
}
body.smm-meet .form {
  width: calc(100% - 213px);
}
body.smm-meet #newMeetForm {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body.smm-meet #newMeetForm > .col2,
body.smm-meet #newMeetForm > .col3 {
  float: none;
  flex: 1 1 230px;
  min-width: 0;
  height: auto;
  min-height: 100px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  background: var(--surface);
}
body.smm-meet #newMeetForm > div:not(.col2):not(.col3):not(.modal) {
  flex-basis: 100%;
}
body.smm-meet #newMeetForm input:not([type="hidden"]),
body.smm-meet #newMeetForm select {
  max-width: 100%;
}
/* Scroll wide entry tables locally; preserve sticky headers and editor markup. */
body.smm-evententrytable .table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
body.smm-evententrytable #meetSelector {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
body.smm-attendance #attendance {
  overflow-x: auto;
}
@media (max-width: 700px) {
  body.smm-visual .siteHeader {
    align-items: flex-start;
    gap: 8px;
  }
  body.smm-visual .header-right {
    align-items: flex-start;
  }
  body.smm-visual > .container > .teamName,
  body.smm-visual > .container > .loginForm {
    float: none;
    clear: both;
    padding-top: 8px;
    text-align: left;
  }
  body.smm-visual .loginForm form {
    justify-content: flex-start;
    margin: 0;
  }
  body.smm-visual .navbar .nav > li > a {
    padding: 10px;
  }
  body.smm-meet .menu {
    float: none;
    width: 100%;
    height: auto;
    max-height: 180px;
    margin: 8px 0 12px;
  }
  body.smm-meet .form {
    float: none;
    width: 100%;
  }
  body.smm-visual footer .pull-right {
    float: none;
  }
}
@media (max-width: 600px) {
  /* Neutralize the attendance stylesheet's universal, compounded font scaling. */
  body.smm-attendance * {
    font-size: inherit;
  }
  body.smm-attendance .header-left,
  body.smm-attendance .teamName,
  body.smm-attendance .navbar,
  body.smm-attendance footer {
    visibility: visible;
    height: auto;
  }
  body.smm-attendance .header-left {
    width: auto;
  }
  body.smm-attendance .navbar,
  body.smm-attendance footer {
    width: 100%;
  }
  body.smm-attendance .selectSession {
    max-width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
  }
}
