:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #172b42;
  background: #f3f6f9;
  font-synthesis: none;
  --navy: #122b46;
  --teal: #087e81;
  --line: #dce5ec;
  --muted: #697b8d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 15px;
  background: white;
  color: var(--navy);
  font-weight: 600;
}
button:hover {
  border-color: #0b8c90;
  background: #edf8f7;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.primary:hover {
  background: #066c70;
  color: white;
}
.danger {
  color: #a33737;
}
.quiet {
  background: transparent;
  border-color: transparent;
}
.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: #b9cbdb;
  padding: 31px 18px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  display: flex;
  flex-direction: column;
}
.brand {
  padding: 0 13px 30px;
  letter-spacing: 1.5px;
  font-size: 13px;
  font-weight: 800;
  color: white;
}
.brand span {
  display: block;
  font-size: 12px;
  color: #8da8be;
  letter-spacing: 0.3px;
  font-weight: 400;
  margin-top: 7px;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #159b9a;
  border-radius: 9px;
  float: left;
  margin: 0 10px 0 0;
  color: white;
  letter-spacing: -2px;
  font-size: 18px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar nav button {
  text-align: left;
  background: transparent;
  color: #b9cbdb;
  border: 0;
  padding: 13px 17px;
  font-weight: 500;
}
.sidebar nav button.active {
  background: #24445f;
  color: white;
  border-left: 3px solid #35c4bb;
}
.navicon {
  width: 29px;
  display: inline-block;
  opacity: 0.9;
  font-size: 18px;
}
.sidebottom {
  margin-top: auto;
  font-size: 12px;
  padding: 24px 12px 0;
  line-height: 1.6;
  border-top: 1px solid #365169;
}
.sidebottom b {
  color: #a7e1d6;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 82px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 15px;
}
.topbar .search {
  width: min(430px, 40vw);
  border: 0;
  background: #f4f7fa;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.avatar {
  display: grid;
  place-items: center;
  background: #e4f3f0;
  color: #087e81;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  font-weight: 700;
}
.account small {
  color: var(--muted);
  display: block;
}
.demo {
  font-size: 11px;
  border-radius: 5px;
  background: #fff3cf;
  color: #8a6412;
  padding: 5px 8px;
  white-space: nowrap;
}
.content {
  max-width: 1580px;
  margin: auto;
  padding: 34px 38px 50px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-size: 10px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 9px;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.6px;
  margin: 0 0 8px;
}
h2 {
  font-size: 17px;
  margin: 0 0 20px;
}
h3 {
  font-size: 15px;
  margin: 0 0 12px;
}
p {
  line-height: 1.6;
}
small,
.muted {
  color: var(--muted);
}
.sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 21px 23px;
  position: relative;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font-size: 31px;
  margin: 12px 0 9px;
  letter-spacing: -1px;
}
.stat small {
  font-size: 11px;
}
.stat .stat-icon {
  position: absolute;
  right: 20px;
  top: 20px;
  background: #e9f4f4;
  color: var(--teal);
  padding: 8px;
  border-radius: 8px;
  font-size: 17px;
}
.red {
  color: #ba4c40 !important;
}
.amber {
  color: #ac7a17 !important;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 24px;
  margin-bottom: 24px;
  min-width: 0;
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.panel-title h2 {
  margin: 0;
}
.grid2 {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
}
.departments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.dept {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
}
.dept b {
  font-size: 12px;
}
.dept strong {
  display: block;
  font-size: 26px;
  margin: 16px 0;
}
.dept small {
  font-size: 10px;
}
.activity {
  display: grid;
  gap: 16px;
}
.event {
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
}
.event .dot {
  margin-top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10a6a0;
  flex-shrink: 0;
}
.event small {
  font-size: 10px;
}
.tablewrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  background: #f7f9fb;
  padding: 13px 12px;
  font-weight: 600;
}
td {
  padding: 17px 12px;
  border-bottom: 1px solid #eaf0f4;
  vertical-align: top;
}
td b {
  font-weight: 650;
}
td small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tr.link {
  cursor: pointer;
}
tr.link:hover {
  background: #f4faf9;
}
.badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border-radius: 5px;
  padding: 5px 8px;
  background: #edf2f7;
  color: #55708a;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.working {
  background: #e7f0fb;
  color: #34618d;
}
.badge.ready,
.badge.completed {
  background: #e2f4ed;
  color: #28775d;
}
.badge.hold,
.badge.cancelled {
  background: #fff0eb;
  color: #ad5837;
}
.badge.approval {
  background: #fff5db;
  color: #967018;
}
.badge.waiting {
  background: #eef1f7;
  color: #64738a;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 21px;
}
.filters input {
  flex: 1;
  min-width: 180px;
}
.filters select {
  width: auto;
  max-width: 210px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d5dfe7;
  background: white;
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--navy);
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px #0b85851a;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}
label input,
label select,
label textarea {
  display: block;
  margin-top: 7px;
  font-weight: 400;
}
textarea {
  min-height: 75px;
  resize: vertical;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.full {
  grid-column: 1/-1;
}
.notice {
  background: #edf7f6;
  border: 1px solid #d2ebe8;
  color: #3b6967;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.notice.warn {
  background: #fff7e5;
  border-color: #efdeb7;
  color: #8a6d34;
}
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.column {
  min-width: 0;
}
.column-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 3px;
  margin-bottom: 10px;
}
.column-head span {
  margin-left: auto;
  background: #e0e8ee;
  padding: 4px 8px;
  border-radius: 15px;
  font-size: 10px;
}
.workcard {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px;
  margin-bottom: 16px;
}
.workcard .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  font-size: 11px;
}
.workcard h3 {
  margin-bottom: 6px;
}
.workcard p {
  font-size: 12px;
  margin: 7px 0;
  color: var(--muted);
}
.workcard .due {
  padding-top: 12px;
  border-top: 1px solid #edf1f4;
  margin-top: 14px;
  font-size: 11px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.actions button {
  font-size: 11px;
  padding: 9px 11px;
}
.actions .primary {
  flex: 1;
}
.route {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 17px 0;
  font-size: 10px;
}
.route span {
  padding: 6px 9px;
  border-radius: 5px;
  background: #f1f4f7;
  color: #768798;
}
.route .current {
  background: #dff4f1;
  color: #096e6c;
  font-weight: 700;
}
.route .past {
  background: #e5f1ec;
  color: #578370;
}
.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  font-size: 12px;
}
.summary span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-bottom: 8px;
}
.item-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}
.item-heading h2 {
  margin: 0;
}
.item-specs {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
}
.item-specs small {
  display: block;
  font-size: 10px;
  margin-bottom: 6px;
}
.item-section {
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 20px;
}
.file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 12px 0;
  gap: 10px;
  border-bottom: 1px solid #edf1f4;
}
.file small {
  font-size: 10px;
  display: block;
  margin-top: 5px;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.empty {
  padding: 35px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tabs button {
  font-size: 11px;
}
.tabs button.active {
  background: var(--navy);
  color: white;
}
.footer-note {
  color: #7b8c9c;
  font-size: 10px;
  text-align: center;
  padding-top: 10px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: var(--navy);
  color: white;
  padding: 12vh 9vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-art h1 {
  font-size: 45px;
  line-height: 1.15;
  margin: 34px 0 24px;
}
.login-art p {
  font-size: 14px;
  color: #a8c4d8;
}
.login-art .eyebrow {
  color: #4dd0c2;
}
.login-form {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-form form {
  width: 100%;
  max-width: 355px;
}
.login-form h2 {
  font-size: 27px;
  margin-bottom: 10px;
}
.login-form .primary {
  width: 100%;
  margin-top: 5px;
}
.login-demo {
  font-size: 11px;
  background: #e9eff5;
  padding: 15px;
  border-radius: 8px;
  margin-top: 25px;
  line-height: 1.8;
}
dialog {
  max-width: 780px;
  width: calc(100% - 30px);
  max-height: 90vh;
  overflow: auto;
  border: 0;
  border-radius: 13px;
  padding: 30px;
  color: var(--navy);
  box-shadow: 0 30px 90px #091a3e4d;
}
dialog::backdrop {
  background: #102b46a6;
}
.close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  font-size: 23px;
  padding: 3px 10px;
}
.form-error {
  color: #af3d33;
  font-size: 12px;
  margin: 12px 0;
}
.itemform {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.check input {
  width: auto;
  margin: 0;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 20;
  background: #163c4c;
  color: white;
  box-shadow: 0 4px 25px #112c3933;
  border-radius: 9px;
  padding: 14px 20px;
  max-width: calc(100vw - 40px);
  display: none;
  font-size: 13px;
}
.mobilebrand {
  display: none;
}
.settings-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.settings-row small {
  display: block;
  margin-top: 5px;
}
.settings-row .actions {
  margin: 0;
}
.pill {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 9px;
  font-size: 11px;
}
.balance {
  font-size: 23px;
  color: var(--teal);
  font-weight: 700;
}
.button-row {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 20px;
}
.checkboxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 15px 0;
}
.checkboxes label {
  margin: 6px 0;
}
pre {
  white-space: pre-wrap;
  font-size: 10px;
  background: #f5f8fa;
  border-radius: 6px;
  padding: 12px;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 42px;
  }
  .stats {
    gap: 24px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 195px 1fr;
  }
  .sidebar {
    width: 195px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .content {
    padding: 26px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .departments {
    gap: 10px;
  }
  .board {
    gap: 12px;
  }
  .workcard {
    padding: 14px;
  }
  .summary {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 18px;
  }
  .stat .stat-icon {
    display: none;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 15px 12px 10px;
    display: block;
  }
  .brand {
    padding: 0 5px 15px;
    font-size: 11px;
  }
  .brand span {
    font-size: 10px;
  }
  .mark {
    width: 29px;
    height: 29px;
    font-size: 15px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
  }
  .sidebar nav button {
    white-space: nowrap;
    font-size: 11px;
    padding: 10px 12px;
  }
  .sidebar nav button.active {
    border: 0;
    border-bottom: 2px solid #35c4bb;
  }
  .navicon {
    font-size: 13px;
    width: 20px;
  }
  .sidebottom {
    display: none;
  }
  .topbar {
    height: 64px;
    padding: 0 17px;
  }
  .topbar .search {
    display: none;
  }
  .account {
    font-size: 11px;
  }
  .account .avatar {
    width: 31px;
    height: 31px;
  }
  .account button {
    padding: 6px 8px;
    font-size: 10px;
  }
  .demo {
    font-size: 10px;
  }
  .content {
    padding: 25px 16px 40px;
  }
  .heading {
    align-items: flex-start;
    gap: 12px;
  }
  h1 {
    font-size: 23px;
  }
  .heading > .primary {
    font-size: 11px;
    padding: 10px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 27px;
  }
  .stat span {
    font-size: 11px;
  }
  .stat small {
    font-size: 9px;
  }
  .panel {
    padding: 18px;
    margin-bottom: 18px;
  }
  .departments {
    grid-template-columns: 1fr 1fr;
  }
  .grid2 {
    gap: 0;
  }
  .board {
    grid-template-columns: 1fr;
  }
  .column {
    background: #edf1f5;
    padding: 10px;
    border-radius: 10px;
  }
  .workcard {
    padding: 19px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .summary {
    gap: 19px;
  }
  .item-specs {
    gap: 17px;
  }
  .item-heading {
    align-items: flex-start;
  }
  .route {
    gap: 4px;
  }
  .route span {
    font-size: 9px;
    padding: 5px 6px;
  }
  .filters select {
    max-width: 100%;
    flex: 1;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 34px 26px;
  }
  .login-art h1 {
    font-size: 30px;
    margin: 20px 0 8px;
  }
  .login-art p {
    font-size: 12px;
    margin-bottom: 0;
  }
  .login-form {
    padding: 30px 25px;
  }
  .login-form h2 {
    font-size: 23px;
  }
  dialog {
    padding: 27px 20px;
  }
  .checkboxes {
    grid-template-columns: 1fr 1fr;
  }
  .settings-row {
    align-items: flex-start;
  }
  .settings-row .actions {
    justify-content: flex-end;
  }
  .file {
    flex-wrap: wrap;
  }
  td,
  th {
    padding: 13px 9px;
  }
  .panel-title h2 {
    font-size: 15px;
  }
  .footer-note {
    font-size: 9px;
  }
  .heading .sub {
    font-size: 11px;
  }
  .notice {
    font-size: 11px;
  }
}
