:root {
  --ink: #172b37;
  --muted: #6e7e87;
  --teal: #007b72;
  --line: #e3e9e9;
  --bg: #f4f7f7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: var(--teal);
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 22px;
  overflow: auto;
  z-index: 20;
}
.brand {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.7px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 37px;
  height: 37px;
  background: var(--teal);
  border-radius: 10px;
  color: white;
  font-size: 23px;
}
.workspace {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.7px;
  color: #8c9b9f;
  margin: 34px 0 12px;
}
nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  color: #53666f;
  border-radius: 7px;
  margin: 3px 0;
}
nav a:hover {
  background: #e9f5f2;
  color: var(--teal);
}
nav a span {
  font-size: 19px;
  min-width: 22px;
}
.sidebar-foot {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.shell {
  margin-left: 236px;
}
.topbar {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 36px;
}
.top-search input {
  border: 0;
  background: #f4f7f7;
  border-radius: 8px;
  padding: 10px 15px;
  width: 290px;
}
.profile-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
main {
  padding: 34px 36px;
  max-width: 1600px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}
h1 {
  font-size: 29px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.8px;
  margin: 0 0 9px;
}
h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 20px;
}
h3 {
  font-size: 16px;
  font-weight: 700;
}
.muted,
.subtitle {
  color: var(--muted);
}
.eyebrow {
  color: var(--teal);
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 750;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 22px 0;
}
.stat,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  box-shadow: 0 3px 9px #12303003;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
}
.stat-number {
  font-size: 29px;
  font-weight: 700;
  margin: 10px 0 2px;
  letter-spacing: -0.7px;
}
.stat a {
  font-size: 12px;
}
.panel {
  margin-bottom: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr);
  gap: 22px;
}
.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 15px;
  text-align: center;
}
.btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.btn-primary:hover {
  background: #00675f;
  border-color: #00675f;
}
.btn-light {
  background: #f3f6f6;
  border-color: var(--line);
  color: var(--ink);
}
.btn-danger {
  background: #a52e40;
  color: #fff;
}
.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.actions form {
  margin: 0;
}
.filterbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.filterbar input,
.filterbar select {
  width: auto;
  min-width: 110px;
  flex: 1;
}
.form-control,
.form-select,
input:not([type="checkbox"]):not([type="hidden"]),
textarea,
select {
  border: 1px solid #d7e0e1;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  max-width: 100%;
}
input[type="checkbox"] {
  accent-color: var(--teal);
}
.field {
  margin-bottom: 18px;
}
.field label {
  font-size: 12px;
  font-weight: 650;
  display: block;
  margin-bottom: 7px;
}
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
}
.field textarea {
  min-height: 95px;
}
.field small {
  display: block;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.wide {
  grid-column: 1/-1;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  font-weight: 650;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  background: #f7f9f9;
}
td,
th {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
td {
  font-size: 13px;
}
tbody tr:hover {
  background: #fafcfc;
}
.badge-status {
  display: inline-block;
  background: #edf3f3;
  color: #52716f;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.status-Paid,
.status-Completed,
.status-Accepted,
.status-Active {
  background: #e5f4ed;
  color: #25704c;
}
.status-Overdue,
.status-Blocked,
.status-Urgent {
  background: #fff0ee;
  color: #b45343;
}
.status-Draft {
  background: #f1f2f5;
  color: #697283;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px;
}
.progress-track {
  height: 7px;
  background: #edf1f1;
  border-radius: 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--teal);
}
.timeline-day {
  font-size: 12px;
  color: var(--muted);
  margin: 24px 0 10px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.media-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  min-width: 0;
}
.media-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
}
.media-card video {
  width: 100%;
  max-height: 200px;
}
.media-card small {
  display: block;
  color: var(--muted);
}
.detail-pairs {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
}
.detail-pairs dt {
  font-weight: 500;
  color: var(--muted);
}
.detail-pairs dd {
  margin: 0;
  white-space: pre-wrap;
}
.auth-card {
  max-width: 430px;
  margin: 45px auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 35px;
}
.demo-panel {
  margin: 0 0 26px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #f8fbfb 0%, #f3f8f8 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.demo-panel__label {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #8c9b9f;
}
.demo-account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 10px 10px 12px;
  text-align: left;
  background: #fff;
  border: 1px solid #dce5e6;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(23, 43, 55, 0.04);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.demo-account-card:hover,
.demo-account-card:focus-visible {
  border-color: #9fc5c1;
  box-shadow: 0 4px 14px rgba(0, 123, 114, 0.1);
  outline: none;
  transform: translateY(-1px);
}
.demo-account-card__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.demo-account-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.demo-account-card__title {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.2;
}
.demo-account-card__email {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-account-card__action {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--teal);
  background: #eef6f5;
}
.password-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #d7e0e1;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.password-input-wrap:focus-within {
  border-color: #7eb8b2;
  box-shadow: 0 0 0 3px rgba(0, 123, 114, 0.12);
}
.password-input-wrap__field {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-right: 8px !important;
}
.password-toggle {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid #e8ecec;
  border-radius: 0;
  background: #fafcfc;
  color: #7a8b94;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--teal);
  background: #f0f7f6;
  outline: none;
}
.password-toggle__icon {
  display: block;
}
.password-toggle__icon--hide {
  display: none;
}
.password-toggle[aria-pressed="true"] .password-toggle__icon--show {
  display: none;
}
.password-toggle[aria-pressed="true"] .password-toggle__icon--hide {
  display: block;
}
.guest-shell main {
  max-width: 1100px;
}
.mobile-menu {
  display: none;
}
footer {
  padding: 15px 36px 28px;
  color: #91a0a4;
  font-size: 11px;
}
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  background: #e9f3f6;
  color: #245664;
}
.line-items input {
  min-width: 80px;
  width: 100%;
}
.line-items .description {
  min-width: 210px;
}
.document {
  max-width: 900px;
  margin: auto;
}
.document-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.total-box {
  max-width: 330px;
  margin: 20px 0 20px auto;
}
.total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px;
}
.total-row.grand {
  background: #eaf5f2;
  font-size: 18px;
  font-weight: 700;
}
.note {
  white-space: pre-wrap;
}
.pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}
.check-list label {
  display: block;
  padding: 7px;
}
.check-list input {
  margin-right: 8px;
}
details {
  margin-bottom: 14px;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
}
.tab-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.tab-links a {
  padding: 7px 11px;
  background: #eef5f3;
  border-radius: 7px;
}
.hero {
  background: #e6f1ed;
  border: 1px solid #d4e6de;
  border-radius: 12px;
  padding: 25px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.hero h2 {
  font-size: 21px;
  margin: 0 0 8px;
}
.pill {
  display: inline-block;
  background: white;
  padding: 7px 12px;
  border-radius: 25px;
  font-size: 12px;
}
.upload-progress {
  width: 100%;
  margin: 10px 0;
}
.topbar .brand {
  font-size: 21px;
}
@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
  }
  body.nav-open .sidebar {
    transform: none;
    box-shadow: 10px 0 40px #0003;
  }
  .shell {
    margin: 0;
  }
  .mobile-menu {
    display: inline-block;
  }
  .topbar {
    padding: 0 16px;
    height: 66px;
  }
  .top-search {
    display: none;
  }
  .profile-links {
    gap: 10px;
  }
  main {
    padding: 22px 16px;
  }
  .page-head {
    flex-direction: column;
  }
  .grid-2,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat-number {
    font-size: 24px;
  }
  .panel {
    padding: 17px;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
  .document-top {
    flex-direction: column;
  }
  .hero {
    flex-direction: column;
  }
  .detail-pairs {
    grid-template-columns: 110px 1fr;
  }
}
@media print {
  .sidebar,
  .topbar,
  footer,
  .no-print,
  .alert {
    display: none !important;
  }
  .shell {
    margin: 0;
  }
  body {
    background: white;
  }
  main {
    padding: 0;
  }
  .panel {
    border: 0;
    box-shadow: none;
  }
  .document {
    max-width: none;
  }
}
