:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #18354d;
  background: #f4f7fb;
  font-synthesis: none;
  --blue: #003b73;
  --cyan: #19e3e8;
  --muted: #65788a;
  --line: #e1e8ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button,
.button {
  border: 0;
  border-radius: 10px;
  padding: 13px 18px;
  min-height: 46px;
  font-weight: 650;
  background: var(--blue);
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button.secondary,
.button.secondary {
  background: #eaf0f6;
  color: var(--blue);
}
button.danger {
  background: #fff0ed;
  color: #a63227;
}
a {
  color: var(--blue);
}
.shell {
  display: grid;
  grid-template-columns: 244px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--blue);
  color: white;
  padding: 34px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -1px;
}
.brand span {
  color: var(--cyan);
}
.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 600;
  margin-top: 5px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
  margin-top: 42px;
}
.sidebar nav button {
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  color: #c5d7ea;
  font-size: 14px;
  font-weight: 500;
}
.sidebar nav button.active {
  color: white;
  background: #ffffff1c;
  border-left: 3px solid var(--cyan);
}
.sidebar footer {
  margin-top: auto;
  font-size: 12px;
  color: #bed3e6;
  padding-top: 24px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 85px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar strong {
  font-size: 14px;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dcf7f5;
  color: var(--blue);
  font-weight: 700;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 750;
  font-size: 11px;
  color: #587187;
}
.content {
  max-width: 1440px;
  margin: auto;
  padding: 32px 40px 60px;
}
.heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 9px 0 8px;
}
h2 {
  font-size: 18px;
  margin: 0 0 15px;
}
h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0 28px;
}
.stat,
.panel,
.order-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stat {
  padding: 22px;
}
.stat strong {
  display: block;
  font-size: 34px;
  font-weight: 700;
  margin: 13px 0 5px;
  letter-spacing: -1px;
}
.stat:first-child {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.stat:first-child .muted {
  color: #c8dfed;
}
.stat label {
  font-size: 13px;
}
.panel {
  padding: 24px;
  margin-bottom: 20px;
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.panel-title h2 {
  margin: 0;
}
.toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.toolbar label {
  flex: 1;
  min-width: 130px;
}
.toolbar input,
.toolbar select {
  min-height: 44px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd8e3;
  background: white;
  color: #18354d;
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}
textarea {
  min-height: 95px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 19px;
  min-height: 19px;
  accent-color: var(--blue);
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid #edf1f5;
}
td button {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 12px;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.badge {
  display: inline-flex;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 650;
  background: #eaf0f6;
  color: #42617c;
}
.badge.authorized,
.badge.completed {
  background: #e3f6ed;
  color: #176d4c;
}
.badge.installing,
.badge.on_way {
  background: #e2f5fc;
  color: #14628b;
}
.badge.pending,
.badge.review,
.badge.pending_evidence {
  background: #fff2d9;
  color: #8b601c;
}
.badge.disabled,
.badge.suspended,
.badge.rejected {
  background: #fce9e7;
  color: #a54539;
}
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.empty strong {
  display: block;
  color: #18354d;
  font-size: 17px;
  margin-bottom: 8px;
}
.notice {
  border-left: 3px solid #18a8b2;
  background: #eef9fa;
  color: #285d68;
  padding: 16px 18px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.6;
  margin: 16px 0;
}
.notice.warning {
  background: #fff7e8;
  border-color: #e0a84c;
  color: #7d5e26;
}
.grid-two {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.orders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.order-card {
  padding: 20px;
}
.order-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.order-card h3 {
  font-size: 18px;
}
.order-card .address {
  min-height: 44px;
}
.order-card button {
  width: 100%;
  margin-top: 15px;
}
.timeline {
  list-style: none;
  padding: 0;
}
.timeline li {
  padding: 10px 0 10px 18px;
  border-left: 2px solid #dce7f0;
  font-size: 13px;
}
.timeline small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.detail-list {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  font-size: 14px;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-brand {
  background: var(--blue);
  color: white;
  padding: 60px 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand h1 {
  font-size: 48px;
  line-height: 1.12;
  max-width: 500px;
}
.login-brand h1 span {
  color: var(--cyan);
}
.login-brand p {
  color: #bed7ea;
  max-width: 420px;
}
.login-form {
  display: grid;
  align-content: center;
  padding: 60px 15%;
  background: white;
}
.login-form form {
  display: grid;
  gap: 20px;
}
.login-form h1 {
  font-size: 28px;
}
.login-form .notice {
  font-size: 12px;
}
.signature {
  width: 100%;
  height: 180px;
  border: 1px dashed #8ba5bd;
  border-radius: 8px;
  background: #fff;
  touch-action: none;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(480px, 90vw);
  background: #17374e;
  color: white;
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 30px #0003;
  z-index: 50;
}
#connectivity,
#demo-banner {
  text-align: center;
  padding: 10px 16px;
  background: #fff0cf;
  font-size: 13px;
  color: #6c4c16;
}
#demo-banner {
  background: #daf4f2;
  color: #164f52;
}
.file-list {
  display: grid;
  gap: 9px;
}
.file-list a {
  font-size: 13px;
}
.mobile-nav {
  display: none;
}
.progress {
  display: flex;
  gap: 5px;
  margin: 18px 0;
}
.progress span {
  flex: 1;
  height: 5px;
  border-radius: 5px;
  background: #dfe8ee;
}
.progress span.done {
  background: #00a7b5;
}
.error-text {
  color: #a63227;
}
.login-footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}
.row-actions {
  display: flex;
  gap: 5px;
}
.wrap {
  white-space: normal;
  min-width: 170px;
}
.permissions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.document-preview {
  width: 100%;
  height: 360px;
  border: 1px solid var(--line);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 205px 1fr;
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 18px 25px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .login-form {
    padding: 40px 10%;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 18px 20px;
  }
  .sidebar .brand {
    font-size: 22px;
  }
  .sidebar .brand small {
    font-size: 9px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    margin-top: 18px;
    gap: 6px;
  }
  .sidebar nav button {
    white-space: nowrap;
    font-size: 12px;
    min-height: 40px;
    padding: 10px;
  }
  .sidebar nav button.active {
    border-left: 0;
    border-bottom: 2px solid var(--cyan);
  }
  .sidebar footer {
    display: none;
  }
  .topbar {
    height: auto;
    padding: 14px 20px;
  }
  .topbar .eyebrow {
    display: none;
  }
  .content {
    padding: 23px 18px 40px;
  }
  h1 {
    font-size: 26px;
  }
  .heading {
    display: block;
  }
  .heading > button {
    margin-top: 15px;
  }
  .stats {
    gap: 10px;
    margin: 18px 0;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 29px;
  }
  .stat label {
    font-size: 12px;
  }
  .panel {
    padding: 18px;
  }
  .orders-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .toolbar {
    gap: 9px;
  }
  .toolbar label {
    min-width: 120px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 28px;
  }
  .login-brand h1 {
    font-size: 30px;
    margin: 30px 0 10px;
  }
  .login-brand > p,
  .login-brand footer {
    display: none;
  }
  .login-form {
    padding: 28px;
  }
  .detail-list {
    grid-template-columns: 95px 1fr;
  }
  .actions button {
    flex: 1;
  }
  .account .muted {
    display: none;
  }
  .topbar button {
    padding: 8px;
    min-height: 36px;
    font-size: 12px;
  }
  .panel-title {
    align-items: flex-start;
  }
  .document-preview {
    height: 280px;
  }
}
@media (min-width: 721px) {
  .sidebar {
    overflow-y: auto;
  }
  .sidebar nav {
    margin-top: 26px;
    gap: 2px;
  }
  .sidebar nav button {
    min-height: 39px;
    padding: 10px 14px;
  }
  .sidebar footer {
    padding-top: 25px;
  }
}
