:root {
  font-family: Segoe UI, Arial, sans-serif;
  color: #24313e;
  background: #f3f5f7;
}

* { box-sizing: border-box; }

body {
  display: flex;
  min-height: 100vh;
  margin: 0;
}

aside {
  display: flex;
  width: 236px;
  flex: none;
  flex-direction: column;
  color: #fff;
  background: #202020;
}

.brand {
  padding: 29px 22px 37px;
  color: #ffc20a;
}

.brand img {
  display: block;
  width: 174px;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

nav button {
  width: 100%;
  padding: 18px 25px;
  border: 0;
  color: #fff;
  background: none;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

nav button.active,
nav button:hover {
  border-left: 4px solid #ffc20a;
  color: #ffc20a;
  background: #343434;
}

.foot {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid #353535;
}

.userLogo {
  display: block;
  width: 28px;
  height: 28px;
  flex: none;
  object-fit: contain;
}

.userInfo {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.userInfo strong {
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  text-overflow: ellipsis;
}

.userInfo small {
  color: #aaa;
  font-size: 9px;
}

.logout {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: transparent;
  font-size: 18px;
}

.logout:hover,
.logout:focus-visible {
  color: #ffc20a;
  background: #343434;
}

main { flex: 1; min-width: 0; }

header {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 3px solid #ffc20a;
  background: #fff;
}

header strong { font-size: 17px; }

#clock {
  color: #64748b;
  font-size: 12px;
}

.headerActions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.content { padding: 27px 28px; }
h1 { margin: 0 0 28px; font-size: 23px; }
h2 { margin: 0; font-size: 15px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 14px;
}

.kpi {
  padding: 18px 20px;
  border: 1px solid #e0e5ea;
  border-left: 4px solid var(--accent);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.kpi:focus,
.kpi:hover {
  outline: 1px solid #b7c1cb;
  box-shadow: 0 5px 16px #0001;
}

.kpi small {
  display: block;
  color: #65758a;
  font-size: 11px;
  font-weight: 700;
}

.kpi strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 31px;
}

.kpi span { color: #667085; font-size: 11px; }
.status { margin: 18px 0; color: #27835b; font-size: 12px; }

article {
  margin-top: 22px;
  padding: 21px;
  border: 1px solid #e1e5ea;
  background: #fff;
}

.sectionHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.developmentNotice {
  max-width: 720px;
  padding: 28px;
}

.developmentBadge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 3px;
  color: #704d00;
  background: #fff2c2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.developmentNotice h2 { margin-bottom: 8px; }
.developmentNotice p { margin-bottom: 0; }

.warning { color: #b42c2c; font-size: 10px; font-weight: 700; }
.actions { display: flex; justify-content: flex-end; margin-top: 18px; }
button { cursor: pointer; }

button.primary {
  padding: 13px 20px;
  border: 0;
  color: #222;
  background: #ffc20a;
  font-weight: 700;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 15px;
  margin: 20px 0;
}

.toolbar label { font-size: 12px; font-weight: 600; }

.toolbar input,
.toolbar select {
  display: block;
  min-width: 190px;
  margin-top: 5px;
  padding: 10px;
  border: 1px solid #cbd5e1;
}

.toolbar button,
.pagination button {
  padding: 10px 15px;
  border: 1px solid #cbd5e1;
  background: #fff;
}

.tableWrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 12px; color: #fff; background: #29313a; text-align: left; }
td { padding: 11px; border-bottom: 1px solid #e9edf2; }
tr:nth-child(even) td { background: #f7f8fa; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 17px;
}

.muted { color: #64748b; font-size: 12px; }

.error {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid #f2c7c5;
  color: #9f2626;
  background: #fff3f2;
}

.bars {
  display: flex;
  min-height: 300px;
  align-items: end;
  gap: 6px;
  overflow-x: auto;
  padding-top: 20px;
  border-bottom: 1px solid #ccd4dd;
}

.barcol {
  min-width: 34px;
  flex: 1;
  color: #64748b;
  font-size: 10px;
  text-align: center;
}

.bar {
  width: 65%;
  min-height: 2px;
  margin: 0 auto 7px;
  border-radius: 3px 3px 0 0;
  background: #f4b900;
}

.barcol b { display: block; margin-bottom: 4px; color: #25313d; }

@media (max-width: 1050px) {
  .cards { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  aside { width: 190px; }
}

@media (max-width: 650px) {
  body { display: block; }
  aside { width: 100%; height: auto; }
  .brand { padding: 15px; }
  .brand img { width: 150px; height: 40px; }
  nav { display: flex; overflow: auto; }
  nav button { width: auto; padding: 13px; white-space: nowrap; }
  .foot { display: flex; padding: 10px 16px; }
  header { height: auto; gap: 12px; padding: 15px; }
  header strong { font-size: 14px; }
  .headerActions { gap: 8px; }
  #clock { font-size: 10px; }
  .content { padding: 18px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .sectionHead { display: block; }
  .warning { display: block; margin-top: 8px; }
}
