/* Dashboard CrossFit Capelle: opmaak één op één naar het SugarWOD-dashboard (Inspinia-skin). */
:root {
  --nav: #2f4050; --nav-dark: #293846; --body: #eeeeee; --heading: #e0e0e0;
  --text: #676a6c; --text-dark: #616161; --line: #e7eaec; --line-light: #eeeeee;
  --blue: #2296F3; --pink: #e91e8c; --green: #1ab394; --red: #ed5565; --orange: #f8ac59; --purple: #9b59b6;
  --ibox-dark: #3c3c3c; --white: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Roboto, helvetica, arial, sans-serif; font-size: 13px; color: var(--text); background: var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--text-dark); text-decoration: underline; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 100; color: var(--text-dark); }
h2 { font-size: 24px; font-weight: 100; }
h3 { font-size: 16px; font-weight: 600; margin: 5px 0; }
h4 { font-size: 14px; font-weight: 600; margin: 5px 0; }
h5 { font-size: 12px; font-weight: 600; }
p { margin: 0 0 10px; }
small { font-size: 85%; }
.text-muted { color: #9e9e9e; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.pull-right { float: right; }
.clearfix::after { content: ""; display: table; clear: both; }
.hidden { display: none !important; }
.m-t { margin-top: 15px; } .m-b { margin-bottom: 15px; } .m-t-md { margin-top: 10px; } .m-t-lg { margin-top: 30px; }

/* Topbalk */
.topbar { background: var(--nav); height: 59px; display: flex; align-items: center; padding: 0 15px; color: #a7b1c2; position: relative; z-index: 50; }
.topbar .brand { display: flex; align-items: center; color: #fff; font-size: 18px; white-space: nowrap; margin-right: 18px; text-decoration: none; }
.topbar .brand .daxko { font-size: 9px; color: #a7b1c2; line-height: 8px; display: block; letter-spacing: .5px; }
.topbar .brand .logo { display: inline-block; width: 22px; height: 22px; background: var(--blue); border-radius: 4px; margin-right: 6px; position: relative; top: 1px; }
.topbar .brand .sugar { font-weight: 300; letter-spacing: -.5px; }
.topbar .brand .gym { max-width: 190px; overflow: hidden; text-overflow: ellipsis; font-weight: 500; margin-left: 4px; font-size: 16px; }
.topbar .icons a { color: #a7b1c2; margin: 0 8px; font-size: 13px; }
.topbar .icons a:hover { color: #fff; text-decoration: none; }
.topbar .search { background: transparent; border: 0; color: #fff; font-size: 13px; padding: 8px 12px; margin-left: 12px; width: 220px; outline: none; }
.topbar .search::placeholder { color: #8d95a3; }
.topbar .nav { margin-left: auto; display: flex; align-items: center; height: 100%; }
.topbar .nav > .item { position: relative; height: 59px; display: flex; align-items: center; }
.topbar .nav > .item > a { color: #a7b1c2; font-weight: 600; padding: 0 12px; height: 59px; display: flex; align-items: center; text-decoration: none; }
.topbar .nav > .item > a:hover, .topbar .nav > .item.open > a { background: var(--nav-dark); color: #fff; }
.topbar .nav .caret { margin-left: 4px; font-size: 9px; }
.topbar .newnav { border: 1px solid #fff; color: #fff; background: transparent; padding: 3px 8px; font-size: 11px; font-weight: 700; margin: 0 12px; border-radius: 3px; letter-spacing: .3px; cursor: default; }
.topbar .avatar { width: 26px; height: 26px; border-radius: 4px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 180px; background: #fff; border: 1px solid rgba(0,0,0,.15); border-radius: 3px; box-shadow: 0 6px 12px rgba(0,0,0,.175); padding: 5px 0; z-index: 100; list-style: none; margin: 0; }
.dropdown-menu.right { left: auto; right: 0; }
.item.open > .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 6px 20px; color: var(--text); white-space: nowrap; text-decoration: none; }
.dropdown-menu li a:hover { background: #f5f5f5; }
.dropdown-menu li.header { padding: 6px 20px 2px; font-size: 11px; font-weight: 700; color: #9e9e9e; text-transform: uppercase; }
.dropdown-menu li.divider { height: 1px; background: #e5e5e5; margin: 5px 0; }
.dropdown-menu .badge-new { background: var(--red); color: #fff; font-size: 9px; padding: 1px 4px; border-radius: 2px; margin-left: 4px; font-weight: 700; }

/* Paginakop */
.page-heading { background: var(--heading); min-height: 76px; display: flex; align-items: center; padding: 0 15px; }
.page-heading h2 { flex: 1; }
.page-heading h2 .sub { font-weight: 100; color: #8a8a8a; }
.page-heading h2 .count { font-size: 14px; font-weight: 400; color: #8a8a8a; margin-left: 6px; }
.page-heading .actions { display: flex; gap: 6px; align-items: center; }
.tabs-bar { background: var(--heading); padding: 0 8px; display: flex; gap: 2px; }
.tabs-bar a { background: #d5d5d5; color: #8a8a8a; padding: 8px 24px; font-size: 12px; font-weight: 500; text-decoration: none; border-radius: 3px 3px 0 0; }
.tabs-bar a.active { background: var(--body); color: var(--text-dark); }
.tabs-bar a:hover { text-decoration: none; color: var(--text-dark); }
.wrapper { padding: 20px 15px 40px; }
.row { display: flex; gap: 20px; align-items: flex-start; }
.col-8 { flex: 2; min-width: 0; } .col-4 { flex: 1; min-width: 0; } .col-6 { flex: 1; min-width: 0; } .col-12 { flex: 1 1 100%; }

/* ibox */
.ibox { background: #fff; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ibox-title { background: var(--ibox-dark); color: #fff; padding: 10px 15px; font-size: 13px; font-weight: 500; display: flex; align-items: center; }
.ibox-title.blue { background: var(--blue); } .ibox-title.pink { background: var(--pink); } .ibox-title.grey { background: #6b6b6b; font-size: 16px; font-weight: 300; }
.ibox-title .right { margin-left: auto; font-size: 11px; font-weight: 700; }
.ibox-content { padding: 15px; }
.ibox-content.flush { padding: 0; }

/* Tabellen (DataTables-look) */
.dt-top { display: flex; align-items: center; padding: 10px 12px; gap: 6px; }
.dt-top .dt-search { border: 1px solid var(--line); border-radius: 2px; padding: 5px 8px; font-size: 12px; width: 190px; }
.dt-top .spacer { flex: 1; }
table.dt { width: 100%; border-collapse: collapse; }
table.dt th { background: #f5f5f5; font-weight: 700; font-size: 13px; text-align: left; padding: 8px 10px; border-bottom: 1px solid #bdbdbd; border-top: 1px solid var(--line-light); white-space: nowrap; cursor: pointer; user-select: none; position: relative; }
table.dt th.c, table.dt td.c { text-align: center; }
table.dt th .sort { color: #c8c8c8; font-size: 10px; margin-left: 4px; }
table.dt th.asc .sort, table.dt th.desc .sort { color: var(--text-dark); }
table.dt td { padding: 8px 10px; border-bottom: 1px solid var(--line-light); height: 35px; vertical-align: middle; }
table.dt tbody tr:hover { background: #fafafa; }
table.dt td a { color: var(--text); }
table.dt .empty { text-align: center; padding: 14px; color: #9e9e9e; }
.dt-bottom { display: flex; align-items: center; justify-content: center; padding: 10px; gap: 2px; }
.dt-bottom .info { margin-right: auto; color: #9e9e9e; font-size: 12px; }
.pg { border: 1px solid var(--line); background: #fff; padding: 3px 8px; font-size: 12px; cursor: pointer; color: var(--text); min-width: 26px; text-align: center; }
.pg.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.pg.dis { color: #ccc; cursor: default; }
.avatar-sm { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; font-size: 9px; font-weight: 700; vertical-align: middle; margin-right: 8px; overflow: hidden; }
.avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; border-radius: 4px; background: var(--blue); color: #fff; font-size: 24px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.label-badge { display: inline-block; background: #bdbdbd; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 3px; margin: 1px 2px 1px 0; font-weight: 700; }
.label-badge.coach { background: #616161; } .label-badge.blue { background: var(--blue); }
.star { font-size: 14px; } .star.green { color: #1ab394; } .star.yellow { color: #f8ac59; } .star.red { color: #ed5565; }

/* Knoppen en formulieren */
.btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #9e9e9e; background: #fff; color: #9e9e9e; font-size: 12px; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-family: inherit; text-decoration: none; line-height: 1.4; }
.btn:hover { background: #f5f5f5; color: #616161; text-decoration: none; }
.btn.xs { padding: 2px 6px; font-size: 11px; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #1976d2; }
.btn.success { border-color: var(--green); color: var(--green); }
.btn.success:hover { background: var(--green); color: #fff; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.danger:hover { background: var(--red); color: #fff; }
.btn.dark { background: #3c3c3c; border-color: #3c3c3c; color: #fff; }
.btn.pink { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn.grey { background: #616161; border-color: #616161; color: #fff; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: 4px 0 0 4px; margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 4px 4px 0; }
.btn-group .btn.active { background: #e0e0e0; color: #616161; }
label { display: block; font-size: 12px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.help { font-size: 11px; color: #9e9e9e; font-style: italic; margin: 4px 0 12px; }
.form-control, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 2px; padding: 6px 10px; font-size: 13px; font-family: inherit; color: var(--text); background: #fff; }
.form-control:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
.form-control.readonly, .form-control[readonly] { background: #eee; }
textarea { min-height: 120px; resize: vertical; }
.form-group { margin-bottom: 15px; }
.form-row { display: flex; gap: 20px; }
.form-row > * { flex: 1; min-width: 0; }
.radio, .checkbox { display: flex; align-items: flex-start; gap: 6px; font-weight: 400; font-size: 13px; margin: 4px 0; cursor: pointer; }
.radio input, .checkbox input { margin-top: 2px; }
.switch { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; font-size: 11px; font-weight: 700; cursor: pointer; }
.switch span { padding: 3px 8px; background: #fff; color: #9e9e9e; }
.switch.on span:first-child, .switch.off span:last-child { background: var(--blue); color: #fff; }
.switch.on span:last-child, .switch.off span:first-child { background: #eee; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.alert-info { background: #e3f2fd; border: 1px solid #b6dcfb; padding: 12px 15px; margin-bottom: 15px; color: #1565c0; }
.alert-info h4 { color: #1565c0; }
.alert-success { background: #e8f5e9; border: 1px solid #c8e6c9; padding: 10px 15px; margin-bottom: 15px; color: #2e7d32; }
.alert-danger { background: #fdecea; border: 1px solid #f5c6cb; padding: 10px 15px; margin-bottom: 15px; color: #c62828; }
.code { background: #f5f5f5; border: 1px solid var(--line); padding: 10px; font-family: Menlo, Consolas, monospace; font-size: 11px; white-space: pre-wrap; word-break: break-all; }

/* Editor werkbalk */
.md-toolbar { border: 1px solid var(--line); border-bottom: 0; background: #fafafa; padding: 4px 6px; display: flex; gap: 2px; }
.md-toolbar a { color: #9e9e9e; padding: 3px 6px; border-radius: 2px; cursor: pointer; font-size: 12px; }
.md-toolbar a:hover { background: #eee; color: #616161; text-decoration: none; }
.md-toolbar .sep { width: 1px; background: #ddd; margin: 2px 4px; }
.md-area { border-radius: 0; min-height: 220px; font-family: Roboto, sans-serif; line-height: 1.5; }
.md-status { text-align: right; font-size: 11px; color: #9e9e9e; padding: 3px 0; }
.md-preview { border: 1px solid var(--line); padding: 10px; min-height: 220px; background: #fff; line-height: 1.5; }

/* Grote cijfers */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 14px; padding: 10px 15px 18px; }
.stat .num { font-size: 26px; font-weight: 100; color: var(--text-dark); line-height: 1.1; }
.stat .lbl { font-size: 11px; color: #9e9e9e; }
.stat-box { background: #fff; padding: 14px 18px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.stat-box .num { font-size: 26px; font-weight: 100; color: var(--text-dark); }
.stat-box .lbl { font-size: 11px; color: #9e9e9e; }
.quick { display: flex; justify-content: space-around; padding: 18px 10px; }
.quick a { text-align: center; color: var(--text); font-size: 12px; line-height: 1.3; text-decoration: none; }
.quick a i { display: block; font-size: 26px; margin-bottom: 6px; color: #616161; }
.chart-box { background: #fff; padding: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.chart-box h5 { font-size: 13px; font-weight: 500; color: var(--text-dark); }
.chart-box h5 small { font-size: 10px; color: #9e9e9e; }

/* Kalender (weekweergave) */
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day { background: #f7f7f7; border: 1px solid var(--line); min-height: 520px; display: flex; flex-direction: column; }
.cal-day .head { text-align: center; padding: 10px 4px; font-weight: 500; font-size: 13px; color: var(--text-dark); background: #fff; border-bottom: 1px solid var(--line); cursor: pointer; }
.cal-day .head .fa { font-size: 9px; margin-left: 3px; color: #9e9e9e; }
.cal-day .comments { margin: 8px; border: 1px solid #bdbdbd; background: #fff; text-align: center; padding: 3px; font-size: 12px; cursor: pointer; border-radius: 2px; }
.cal-day .cards { flex: 1; overflow-y: auto; padding: 0 8px 8px; }
.cal-card { background: #fff; border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer; }
.cal-card .ct { background: #9e9e9e; color: #fff; padding: 5px 8px; font-size: 12px; display: flex; align-items: center; gap: 5px; }
.cal-card .ct.unpub { background: #616161; }
.cal-card .cb { padding: 6px 8px; font-size: 12px; max-height: 92px; overflow: hidden; white-space: pre-wrap; line-height: 1.4; }
.cal-card .cf { padding: 2px 8px 6px; font-size: 10px; color: #9e9e9e; }
.cal-add { position: fixed; right: 40px; bottom: 40px; width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,.3); cursor: pointer; z-index: 20; }
.cal-month { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); background: #fff; }
.cal-month .dh { text-align: center; font-weight: 700; font-size: 11px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f5f5f5; }
.cal-month .dc { min-height: 110px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2px; font-size: 11px; }
.cal-month .dc .dn { text-align: right; color: #9e9e9e; padding: 2px 4px; }
.cal-month .chip { display: block; background: var(--blue); color: #fff; padding: 2px 4px; margin: 2px 0; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-month .chip.black { background: #3c3c3c; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding-top: 60px; }
.modal { background: #fff; width: 600px; max-width: 95%; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,.5); }
.modal .mh { padding: 12px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal .mh h4 { flex: 1; font-size: 16px; font-weight: 500; }
.modal .mh .x { cursor: pointer; font-size: 20px; color: #9e9e9e; }
.modal .mb { padding: 15px; }
.modal .mf { padding: 12px 15px; border-top: 1px solid var(--line); text-align: right; display: flex; justify-content: flex-end; gap: 6px; }

/* Login (zoals de SugarWOD-inlogpagina) */
.login-bg { min-height: 100vh; background: linear-gradient(160deg, #1e88e5, #29b6f6); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: #fff; width: 312px; padding: 26px 20px 20px; border-radius: 3px; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.login-card .logo { text-align: center; font-size: 22px; color: #616161; margin-bottom: 26px; font-weight: 300; }
.login-card .logo b { font-weight: 700; color: var(--blue); }
.login-card h3 { font-size: 16px; font-weight: 700; color: #424242; margin-bottom: 4px; }
.login-card p { font-size: 12px; color: #757575; margin-bottom: 12px; }
.login-card .form-control { padding: 9px 10px; margin-bottom: 10px; }
.login-card .btn-cont { width: 100%; justify-content: center; padding: 9px; background: #cfd8dc; border: 0; color: #fff; font-weight: 700; letter-spacing: .5px; font-size: 13px; }
.login-card .btn-cont.ready { background: var(--blue); }
.login-foot { color: #fff; font-size: 11px; margin-top: 18px; opacity: .9; }
.login-foot a { color: #fff; text-decoration: underline; }
.login-err { background: #d81b60; color: #fff; padding: 8px 12px; font-size: 12px; margin-bottom: 12px; border-radius: 2px; }

/* Diversen */
.markdown p { margin: 0 0 8px; } .markdown ul, .markdown ol { margin: 0 0 8px 20px; }
.loading { padding: 30px; text-align: center; color: #9e9e9e; }
.loading i { margin-right: 6px; }
.benchmark-icon { color: #f8ac59; }
.lock { color: #fff; opacity: .8; }
.onramp .lo { background: #f8d7da; } .onramp .mid { background: #fff3cd; } .onramp .hi { background: #d4edda; }
.pct-bar { background: #fff; padding: 12px 16px; flex: 1; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pct-bar .num { font-size: 24px; font-weight: 100; }
.pie-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; font-size: 11px; }
.pie-legend span::before { content: ""; display: inline-block; width: 18px; height: 8px; margin-right: 6px; background: var(--c); vertical-align: middle; }
@media (max-width: 900px) { .row { flex-direction: column; } .cal-week { grid-template-columns: repeat(2, 1fr); } .topbar .search { display: none; } }
