@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope.ttf") format("truetype");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f7fa;
  color: #16324f;
  font-family: Manrope, Arial, sans-serif;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid #d8e2eb;
  background: #fff;
  color: #16324f;
  border-radius: 9px;
  padding: 11px 17px;
  font-weight: 750;
}
button:hover {
  background: #edf6f8;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.primary {
  background: #16324f;
  color: #fff;
  border-color: #16324f;
}
button.primary:hover {
  background: #244766;
}
button.quiet {
  border: 0;
  background: transparent;
}
a {
  color: inherit;
}
.topbar {
  height: 90px;
  background: #fff;
  border-bottom: 1px solid #e1e9ef;
  padding: 18px 4%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.topbar img {
  width: 205px;
  display: block;
}
.workspace-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #6d8096;
  font-weight: 800;
  border-left: 1px solid #e1e9ef;
  padding-left: 30px;
}
#account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
}
[hidden] {
  display: none !important;
}
#app {
  max-width: 1500px;
  margin: auto;
  padding: 38px 4% 100px;
}
h1 {
  font-size: 34px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 10px 0 12px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
}
h3 {
  font-size: 15px;
}
p {
  color: #697d92;
  line-height: 1.65;
}
.eyebrow {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.9px;
  color: #128597;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-bottom: 28px;
}
.page-heading p {
  margin: 0;
}
.panel {
  background: #fff;
  border: 1px solid #e1e8ef;
  border-radius: 16px;
  box-shadow: 0 5px 25px #16324f03;
}
.toolbar {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #e1e8ef;
}
.search {
  max-width: 400px;
  flex: 1;
}
.count {
  margin-left: auto;
  color: #6b7f92;
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #718396;
  background: #f9fbfc;
}
th,
td {
  padding: 20px 24px;
  border-bottom: 1px solid #edf1f5;
}
tr:last-child td {
  border-bottom: 0;
}
td a {
  font-weight: 800;
  text-decoration: none;
}
td a:hover {
  text-decoration: underline;
}
td small {
  display: block;
  color: #718396;
  margin-top: 5px;
  font-size: 11px;
}
.badge {
  background: #edf8f9;
  color: #147d87;
  border-radius: 20px;
  display: inline-block;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
}
.client-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 26px;
}
.client-nav {
  align-self: start;
  padding: 14px;
  position: sticky;
  top: 20px;
}
.client-nav a {
  display: block;
  padding: 13px 15px;
  border-radius: 8px;
  text-decoration: none;
  margin: 4px 0;
  font-weight: 700;
  color: #63758a;
}
.client-nav a[aria-current="page"] {
  background: #16324f;
  color: #fff;
}
.client-nav .nav-title {
  font-size: 10px;
  color: #8a9aac;
  letter-spacing: 1.6px;
  padding: 12px 15px;
}
.section {
  padding: 30px;
}
.section > p {
  margin-top: 0;
  margin-bottom: 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
}
.field.full {
  grid-column: 1/-1;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d8e2eb;
  border-radius: 8px;
  color: #16324f;
  background: #fff;
  font-weight: 500;
  font-size: 14px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #17aabd;
  outline: 2px solid #17aabd22;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.subhead {
  grid-column: 1/-1;
  border-top: 1px solid #e8eef3;
  padding-top: 24px;
  margin-top: 4px;
}
.service-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  align-items: end;
  gap: 14px;
  border-bottom: 1px solid #e8eef3;
  padding: 22px 0;
}
.service-row:first-of-type {
  padding-top: 5px;
}
.remove {
  color: #af3535;
}
.add-service {
  margin-top: 22px;
}
.savebar {
  position: fixed;
  bottom: 20px;
  right: 4%;
  left: calc(4% + 250px);
  max-width: 1130px;
  padding: 15px 22px;
  background: #fff;
  box-shadow: 0 4px 30px #16324f22;
  border: 1px solid #d7e2eb;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 5;
}
.savebar span {
  margin-right: auto;
  font-size: 12px;
  color: #697d92;
}
.empty {
  text-align: center;
  padding: 65px 25px;
}
.empty h2 {
  margin: 14px 0;
}
.empty .empty-icon {
  font-size: 28px;
  color: #1db1bd;
}
.login {
  max-width: 530px;
  margin: 90px auto;
  padding: 45px;
}
#message:not(:empty) {
  background: #eaf7f5;
  border: 1px solid #bee3dc;
  border-radius: 8px;
  padding: 13px 22px;
  margin: 20px 4% 0;
}
#message.error {
  color: #a52d2d;
  background: #fff0ef;
  border-color: #f0c7c7;
}
.required {
  color: #b94b36;
}
.loading {
  padding: 70px;
  text-align: center;
}
dialog {
  border: 1px solid #d8e2eb;
  border-radius: 16px;
  padding: 32px;
  max-width: 550px;
  color: #16324f;
}
dialog::backdrop {
  background: #16324f65;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 12px;
  text-decoration: none;
  color: #697d92;
}
.tax-note {
  padding: 14px;
  background: #f5f8fb;
  border-radius: 8px;
  font-size: 12px;
}
.deadline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #e8eef3;
}
.deadline small {
  display: block;
  color: #718396;
  margin-top: 5px;
}
.deadline time {
  font-size: 13px;
  font-weight: 750;
}
.muted {
  color: #718396;
  font-size: 12px;
}
.validation {
  color: #ae3030 !important;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
@media (max-width: 800px) {
  .workspace-label {
    display: none;
  }
  .topbar {
    padding: 15px 5%;
    height: 78px;
  }
  .topbar img {
    width: 155px;
  }
  #user-name {
    display: none;
  }
  .client-layout {
    grid-template-columns: 1fr;
  }
  .client-nav {
    position: static;
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  .client-nav .nav-title {
    display: none;
  }
  .client-nav a {
    white-space: nowrap;
    font-size: 12px;
  }
  .savebar {
    left: 4%;
    right: 4%;
    bottom: 10px;
  }
  .section {
    padding: 22px;
  }
  .service-row {
    grid-template-columns: 1fr 1fr;
  }
  .service-row .field:first-child {
    grid-column: 1/-1;
  }
  h1 {
    font-size: 28px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .form-grid {
    gap: 18px;
  }
  .login {
    margin: 50px 20px;
  }
}
@media (max-width: 500px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    padding: 16px;
  }
  .count {
    display: none;
  }
  .savebar {
    padding: 12px;
  }
  .savebar span {
    max-width: 90px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .client-nav {
    padding: 8px;
  }
  .service-row {
    grid-template-columns: 1fr;
  }
  .service-row .field:first-child {
    grid-column: auto;
  }
}

.button {
  display: inline-block;
  text-decoration: none;
  border: 1px solid #16324f;
  border-radius: 9px;
  padding: 11px 17px;
  font-weight: 750;
}
.button.primary {
  background: #16324f;
  color: #fff;
}
.button.primary:hover {
  background: #244766;
}
.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.service-card {
  padding: 20px;
  border: 1px solid #e1e8ef;
  border-radius: 12px;
}
.service-card.enabled {
  border-color: #82cbd2;
  background: #fbfefe;
}
.service-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.service-title h3 {
  margin: 0;
}
.service-switch {
  width: 44px;
  height: 26px;
  padding: 3px;
  border: 0;
  border-radius: 20px;
  background: #cbd5df;
  flex-shrink: 0;
}
.service-switch span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #16324f33;
  transition: transform 0.15s;
}
.service-switch[aria-checked="true"] {
  background: #128597;
}
.service-switch[aria-checked="true"] span {
  transform: translateX(18px);
}
.service-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}
.pricing-context {
  background: #f5f8fb;
  border-radius: 10px;
  padding: 20px;
}
.pricing-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0;
  font-size: 12px;
}
.price-detail {
  color: #607589;
  font-size: 12px;
  margin-top: 15px;
}
.price-detail small {
  display: block;
  margin: 5px 0;
}
.price-detail button {
  padding: 5px 10px;
  font-size: 11px;
}
.price-summary {
  background: #16324f;
  color: #fff;
  border-radius: 12px;
  padding: 22px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.price-summary strong {
  font-size: 22px;
}
.price-summary span {
  font-size: 12px;
}
@media (max-width: 700px) {
  .service-fields {
    grid-template-columns: 1fr;
  }
  .pricing-actions,
  .price-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}
.tax-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.tax-service-card {
  border: 1px solid #dce5ed;
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}
.tax-service-card summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
}
.tax-service-card summary::-webkit-details-marker {
  display: none;
}
.tax-service-card summary::before {
  content: "›";
  color: #128597;
  font-size: 23px;
  line-height: 1;
  transition: transform 0.15s;
}
.tax-service-card details[open] > summary::before {
  transform: rotate(90deg);
}
.tax-service-state {
  margin-left: auto;
  font-size: 10px;
  font-weight: 650;
  color: #6e7e8c;
  white-space: nowrap;
}
.tax-service-state.active {
  color: #128597;
}
.tax-service-fields {
  padding: 0 22px 22px;
  display: grid;
  gap: 20px;
}
.tax-authorisation {
  border-top: 1px solid #e5ecf2;
  padding-top: 19px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.tax-authorisation .badge {
  background: #f0f3f6;
  color: #65788d;
}
.tax-authorisation p {
  width: 100%;
  margin: 0;
  font-size: 12px;
}
.tax-disabled-note {
  margin: 0;
  padding: 0 22px 22px;
  font-size: 12px;
}
.tax-service-card:has(details[open]) .tax-disabled-note {
  border-top: 1px solid #edf1f5;
  padding-top: 14px;
}
@media (max-width: 1050px) {
  .tax-service-grid {
    grid-template-columns: 1fr;
  }
}
.service-questions {
  margin-top: 20px;
  padding: 18px;
  background: #f0f7f8;
  border-radius: 9px;
}
.column-dialog {
  width: 680px;
  max-width: 94vw;
}
.column-options {
  max-height: 55vh;
  overflow: auto;
  border: 1px solid #e1e8ef;
  border-radius: 10px;
}
.column-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf1f5;
}
.column-option label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.column-option input {
  width: 17px;
  height: 17px;
  accent-color: #128597;
}
.column-option button {
  padding: 5px 10px;
}
.client-table th[draggable] {
  cursor: grab;
  white-space: nowrap;
}
.column-value {
  display: block;
  min-width: 90px;
  max-width: 340px;
  max-height: 100px;
  overflow: auto;
  white-space: pre-wrap;
}
.toolbar {
  flex-wrap: wrap;
}
.workspace-nav {
  display: flex;
  gap: 8px;
  padding: 16px 4% 0;
  max-width: 1500px;
  margin: auto;
}
.workspace-nav a {
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  color: #697d92;
}
.workspace-nav a[aria-current="page"] {
  background: #16324f;
  color: white;
}
.badge.overdue {
  background: #fff0ef;
  color: #b83232;
  font-weight: 850;
}
#task-due {
  display: inline-block;
  width: auto;
  margin-left: 8px;
}
