/* GLB 0.8 – restrained modern navy/petrol/mint interface + mobile-first operational surfaces */
:root {
  --glb-blue: #0d2636;
  --glb-petrol: #107d78;
  --glb-mint: #a9e6cd;
  --glb-gold: #d5b77d;
  --glb-soft: #f6f9f8;
}
.sidebar {
  background: linear-gradient(172deg, #0b2636, #0c3139 75%, #0d4548);
  border-right: 1px solid #194752;
}
.glb08-nav-title {
  padding: 16px 14px 7px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.45px;
  color: #84aaa8;
}
.sidebar .nav .glb08-nav-link {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  height: 40px;
  font-weight: 650;
  font-size: 12px;
}
.glb08-nav-icon {
  width: 23px;
  flex: none;
  text-align: center;
  font-size: 18px;
  color: #7dcabb;
}
.sidebar .nav-item.active {
  background: #21766960;
  box-shadow: inset 3px 0 #7ce3c1;
}
.sidebar .nav-item.active .glb08-nav-icon {
  color: #a1f4d1;
}
.sidebar .nav {
  padding-bottom: 12px;
}
.v08-overline {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #198171;
  font-weight: 850;
}
.v08-today {
  background: linear-gradient(135deg, #102e3f, #11535a);
  color: #fff;
  padding: clamp(25px, 4vw, 50px);
  border-radius: 22px;
  box-shadow: 0 24px 55px #102e3f25;
}
.v08-today h1 {
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: -1.6px;
  line-height: 1.1;
  margin: 16px 0;
}
.v08-today h1 em {
  font-style: normal;
  color: #a4e5c8;
}
.v08-today > p {
  color: #b6d4d5;
  font-size: 13px;
}
.v08-shortcut-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.v08-shortcut {
  background: #f7fffc;
  color: #133844;
  border: 1px solid #eff7f5;
  border-radius: 16px;
  padding: 20px 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 130px;
  cursor: pointer;
  transition:
    transform 0.16s,
    box-shadow 0.16s;
}
.v08-shortcut:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 24px #0002;
}
.v08-shortcut-sym {
  color: #14816d;
  font-size: 25px;
  margin-bottom: 10px;
}
.v08-shortcut b {
  font-size: 15px;
}
.v08-shortcut small {
  color: #718a8d;
  font-size: 11px;
  margin-top: 7px;
  line-height: 1.4;
}
.v08-today .v08-note {
  margin-top: 24px;
  font-size: 11px;
}
.v08-import-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(300px, 1.15fr);
  align-items: start;
  gap: 18px;
}
.v08-import-main,
.v08-review {
  overflow: hidden;
}
.v08-import-drop {
  border: 2px dashed #9dc9bc;
  background: #f3faf8;
  border-radius: 16px;
  text-align: center;
  padding: 32px 17px;
  display: grid;
  justify-items: center;
  gap: 9px;
}
.v08-import-drop.is-dragging {
  border-color: #097f72;
  background: #dff8ee;
}
.v08-dropicon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #dcefe9;
  border-radius: 14px;
  font-size: 28px;
  color: #137967;
}
.v08-import-drop h2 {
  margin: 0;
  font-size: 18px;
  color: #12303a;
}
.v08-import-drop p,
.v08-import-drop small {
  margin: 0;
  color: #5b7476;
  font-size: 11px;
}
.v08-file-select {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 3px;
  min-height: 43px;
  padding: 0 20px;
}
.v08-divider {
  text-align: center;
  color: #5d7874;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 25px 0 12px;
}
.v08-textbox {
  width: 100%;
  border: 1px solid #d4e4e1;
  border-radius: 13px;
  padding: 15px;
  resize: vertical;
  min-height: 145px;
  font: inherit;
  font-size: 13px;
  color: #12333b;
  line-height: 1.7;
}
.v08-inline-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.v08-help {
  font-size: 11px;
  line-height: 1.65;
  background: #f0f6f4;
  border-radius: 12px;
  padding: 15px;
  margin-top: 19px;
  color: #46686b;
}
.v08-review-head {
  margin-bottom: 18px;
}
.v08-review-head h2 {
  font-size: 20px;
  margin: 8px 0;
  color: #143542;
}
.v08-review-head p {
  font-size: 11px;
  color: #5e777e;
  line-height: 1.5;
}
.v08-review-control {
  padding: 12px;
  background: #f3faf8;
  border: 1px solid #dfeee8;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 11px;
}
.v08-review-control input {
  accent-color: #148275;
}
.v08-review-items {
  max-height: 630px;
  overflow: auto;
  padding-right: 4px;
}
.v08-review-item {
  padding: 14px 5px 16px;
  border-bottom: 1px solid #e4edec;
  display: flex;
  gap: 12px;
}
.v08-item-check {
  margin-top: 26px;
}
.v08-item-check input {
  width: 18px;
  height: 18px;
  accent-color: #108579;
}
.v08-review-fields {
  flex: 1;
  min-width: 0;
}
.v08-review-fields label {
  display: grid;
  gap: 4px;
  font-size: 10px;
  color: #537178;
  font-weight: 750;
}
.v08-review-fields input,
.v08-review-fields select {
  min-width: 0;
  width: 100%;
  height: 38px;
  padding: 8px 10px;
  border: 1px solid #cfdfdb;
  border-radius: 9px;
  color: #153943;
  background: white;
  font: inherit;
  font-size: 12px;
}
.v08-review-mini {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.7fr);
  gap: 8px;
  margin-top: 10px;
}
.v08-sticky-action {
  position: sticky;
  bottom: 0;
  padding: 16px 0 0;
  background: linear-gradient(transparent, #fff 12%);
  display: grid;
  gap: 7px;
}
.v08-sticky-action small {
  font-size: 10px;
  color: #7c9495;
}
.v08-empty {
  padding: 34px 14px;
  background: #f7fbf9;
  text-align: center;
  border-radius: 13px;
}
.v08-empty b {
  color: #19414a;
}
.v08-empty p {
  font-size: 12px;
  color: #627475;
}
.v08-errors {
  margin-top: 15px;
  font-size: 11px;
  color: #73563e;
}
.v08-errors > div {
  max-height: 120px;
  overflow: auto;
}
.glb08-bottomnav {
  display: none;
}
.glb08-install {
  background: #e6f7ee !important;
  color: #176f5e !important;
  border-color: #b6decf !important;
}
.cloud-member-row span small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  color: #708890;
}
.cloud-member-row button {
  background: #edf8f3;
  border: 1px solid #bfe4d9;
  color: #157766;
  padding: 7px 9px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
}
.cloud-members .cloud-member-row {
  align-items: center;
}
@media (max-width: 1100px) {
  .v08-import-grid {
    grid-template-columns: 1fr;
  }
  .v08-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 62px;
  }
  .topbar .top-right {
    gap: 5px;
  }
  .topbar .top-right > button:not(#cloud-account):not(#glb08-install),
  .topbar .avatar {
    display: none;
  }
  .glb08-bottomnav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 76px;
    padding: 7px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    background: #fff;
    box-shadow: 0 -9px 25px #0f333326;
    z-index: 1800;
    border-top: 1px solid #dce8e4;
  }
  .glb08-bottom-button {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 3px;
    place-items: center;
    border: 0;
    background: transparent;
    color: #68848b;
    padding: 8px 1px;
    cursor: pointer;
    border-radius: 11px;
    font-family: inherit;
  }
  .glb08-bottom-button > span {
    font-size: 23px;
    line-height: 1.1;
  }
  .glb08-bottom-button small {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    font-weight: 800;
  }
  .glb08-bottom-button.active {
    background: #e5f7f0;
    color: #11776a;
  }
  main {
    padding-bottom: 125px !important;
  }
  .v08-today {
    padding: 27px 19px;
    border-radius: 16px;
  }
  .v08-shortcut-grid {
    gap: 9px;
  }
  .v08-shortcut {
    min-height: 135px;
    padding: 14px 12px;
  }
  .v08-shortcut b {
    font-size: 12.5px;
  }
  .v08-shortcut small {
    font-size: 10px;
  }
  .v08-review-mini {
    grid-template-columns: 1fr 1fr;
  }
  .v08-review-mini label:first-child {
    grid-column: span 2;
  }
  .v08-import-drop {
    padding: 22px 10px;
  }
  .v08-import-grid .panel {
    padding: 16px;
  }
  .v08-review-item {
    gap: 8px;
  }
  .v08-review-fields input,
  .v08-review-fields select {
    font-size: 14px;
  }
  .v08-file-select {
    min-height: 48px;
  }
}

.v08-staff-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 15px 0;
}
.v08-staff-head > div {
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(145deg, #143a44, #187066);
  color: #fff;
}
.v08-staff-head small {
  display: block;
  font-size: 10px;
  color: #ace1ca;
  letter-spacing: 1px;
  font-weight: 750;
}
.v08-staff-head strong {
  font-size: 32px;
  display: block;
  margin-top: 8px;
}
.v08-staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.v08-staff-metric {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #dfe9e7;
}
.v08-staff-metric span,
.v08-staff-metric small {
  display: block;
  color: #718b8c;
  font-size: 11px;
}
.v08-staff-metric strong {
  display: block;
  color: #123a43;
  font-size: 28px;
  margin: 9px 0;
}
.v08-staff-metric small {
  font-size: 10px;
}
@media (max-width: 760px) {
  .v08-staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .v08-staff-metric {
    padding: 15px;
  }
  .v08-staff-metric strong {
    font-size: 23px;
  }
}

.glb08-member-edit {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cloud-members .glb08-member-edit select {
  width: 155px;
  font-size: 11px;
  min-height: 33px;
  border: 1px solid #c8dcd5;
  border-radius: 8px;
  padding: 6px;
  background: #fff;
}
.cloud-members .glb08-member-edit button {
  min-height: 33px;
}
.cloud-member-row {
  gap: 12px;
  flex-wrap: wrap;
}
.cloud-member-row > span {
  flex: 1;
  min-width: 150px;
}
@media (max-width: 600px) {
  .cloud-members .glb08-member-edit {
    width: 100%;
  }
  .cloud-members .glb08-member-edit select {
    flex: 1;
  }
}

.v08-staff-count {
  background: #fff;
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid #deebe6;
  border-radius: 18px;
  margin-bottom: 18px;
}
.v08-staff-count-form {
  max-width: 800px;
  display: grid;
  gap: 16px;
}
.v08-staff-count-form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 750;
  color: #163a42;
}
.v08-staff-count-form select,
.v08-staff-count-form input {
  width: 100%;
  min-height: 53px;
  border-radius: 11px;
  border: 1px solid #d3e3df;
  padding: 12px;
  background: #fafffd;
  font-size: 16px;
  color: #163b43;
}
.v08-staff-count-form > button {
  min-height: 55px;
  font-size: 14px;
}
.v08-staff-count-form > p {
  font-size: 11px;
  color: #698789;
}
.v08-two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.v08-recent-counts {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}
.v08-recent-counts > div {
  border-bottom: 1px solid #edf3f0;
  padding: 11px 4px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.v08-recent-counts b {
  font-size: 13px;
}
.v08-recent-counts small {
  display: block;
  color: #769092;
  margin-top: 4px;
}
@media (max-width: 550px) {
  .v08-two-fields {
    grid-template-columns: 1fr;
  }
}
/* menu import: rows that need a second look */
.v08-review-item.is-flagged {
  background: var(--orange-soft);
  border-left: 3px solid var(--orange);
  padding-left: 8px;
}
.v08-flags {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.4;
}
.v08-flags b {
  color: var(--orange);
}
.v08-vat-source {
  font-weight: 500;
  color: var(--muted);
}
.v08-review-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
