:root {
  color-scheme: light;
  font-family:
    "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  color: #1d2939;
  background: #f4f7f9;
  font-synthesis: none;
}

.portal-login-body {
  min-height: 100vh;
  background: #f2f6fb;
}

.portal-login-page {
  display: grid;
  min-height: 100vh;
  padding: 32px 20px;
  place-items: center;
}

.portal-login-card {
  width: min(100%, 460px);
  padding: 44px;
  border: 1px solid #d5e0ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(27 76 146 / 10%);
}

.portal-login-logo {
  width: 174px;
  height: auto;
  margin-bottom: 36px;
}

.portal-login-card h1 {
  margin: 6px 0 28px;
}

.portal-login-form {
  display: grid;
  gap: 12px;
}

.portal-login-form input {
  margin-bottom: 8px;
}

.portal-login-form button {
  margin-top: 12px;
}

.portal-current-user {
  align-self: center;
  padding: 0 4px 0 16px;
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}

.portal-logout-form {
  display: flex;
  align-items: center;
  margin: 0 0 0 auto;
}

.portal-logout-button {
  min-height: auto;
  padding: 8px 12px;
  border: 1px solid #9fb4cf;
  border-radius: 6px;
  background: #fff;
  color: #1b4c92;
  font-size: 13px;
}

.portal-intro p:last-child {
  margin: 12px 0 0;
  color: #667085;
}

.portal-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.portal-app-card {
  display: flex;
  min-height: 190px;
  padding: 28px;
  border: 1px solid #cbd8e8;
  border-radius: 14px;
  background: #fff;
  color: #102a4c;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.portal-app-card:hover,
.portal-app-card:focus-visible {
  border-color: #1b4c92;
  box-shadow: 0 12px 32px rgb(27 76 146 / 12%);
  transform: translateY(-2px);
}

.portal-app-card strong {
  margin: 8px 0;
  color: #1b4c92;
  font-size: 25px;
}

.portal-app-card > span:last-child {
  color: #667085;
}

.portal-app-label {
  color: #3d8ec9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.portal-message-card {
  margin-top: 48px;
  padding: 40px;
}

.account-user-email {
  display: block;
  margin-top: 4px;
  color: #667085;
}

.account-type-badge,
.account-status-badge {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.account-type-badge.is-owner {
  background: #e8f1ff;
  color: #1b4c92;
}

.account-status-badge.is-active {
  background: #e9f7ef;
  color: #187647;
}

.account-permission-summary {
  margin: 0;
  padding-left: 18px;
}

.muted-text {
  color: #667085;
}

.account-user-form {
  align-items: start;
}

.account-permission-type,
.account-permission-list {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.account-permission-type legend,
.account-permission-list legend {
  margin-bottom: 10px;
  font-weight: 700;
}

.account-type-option,
.account-permission-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d5e0ed;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.account-type-option + .account-type-option,
.account-permission-option + .account-permission-option {
  margin-top: 10px;
}

.account-type-option input,
.account-permission-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.account-type-option span,
.account-permission-option span,
.account-type-option small,
.account-permission-option small {
  display: block;
}

.account-type-option small,
.account-permission-option small,
.account-permission-note {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
}

.account-permission-note {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .portal-login-card { padding: 32px 24px; }
  .portal-app-grid { grid-template-columns: 1fr; }
  .portal-current-user { padding: 16px; }
  .portal-logout-form { margin: 0; padding: 0 16px 16px; }
  .account-user-table { min-width: 780px; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

.site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid #d7e0e6;
  background: #ffffff;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(100% - 40px, 1040px);
  min-height: 70px;
  margin: 0 auto;
}

.product-name,
.step {
  margin: 0;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand-link {
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 150px;
  height: 28px;
}

.product-name {
  padding-left: 20px;
  border-left: 1px solid #d7e0e6;
  color: #475467;
  font-size: 14px;
}

.product-navigation {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
}

.product-navigation-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
  text-decoration: none;
}

.product-navigation-link:hover,
.product-navigation-link[aria-current="page"] {
  color: #1b4c92;
}

.navigation-toggle,
.navigation-backdrop {
  display: none;
}

.page {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.intro {
  margin-bottom: 36px;
}

.step {
  color: #1b4c92;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(28px, 5vw, 40px);
}

.intro-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.document-draft-panel {
  margin-bottom: 28px;
}

.document-draft-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 32px;
  border-bottom: 1px solid #e4e9ed;
}

summary.document-draft-heading {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

summary.document-draft-heading::-webkit-details-marker {
  display: none;
}

.document-draft-panel:not([open]) .document-draft-heading {
  border-bottom-color: transparent;
}

.document-draft-heading h2 {
  margin-top: 6px;
  font-size: 20px;
}

.document-draft-heading p:last-child {
  max-width: 680px;
  margin: 10px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.document-draft-heading-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 20px;
}

.document-draft-heading button {
  flex: 0 0 auto;
  min-width: 210px;
}

.document-draft-chevron {
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid #1b4c92;
  border-bottom: 2px solid #1b4c92;
  transform: rotate(225deg);
  transition: transform 160ms ease;
}

.document-draft-panel:not([open]) .document-draft-chevron {
  transform: rotate(45deg);
}

.document-draft-list-header,
.document-draft-item {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) minmax(120px, 1fr) minmax(180px, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.document-draft-list-header {
  padding: 12px 32px;
  color: #667085;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}

.document-draft-item {
  padding: 18px 32px;
  border-top: 1px solid #e4e9ed;
}

.document-draft-list-header + .document-draft-list .document-draft-item:first-child {
  border-top: 0;
}

.document-draft-primary,
.document-draft-secondary,
.document-draft-date {
  min-width: 0;
  margin: 0;
}

.document-draft-primary {
  color: #101828;
  font-weight: 800;
}

.document-draft-secondary,
.document-draft-date {
  color: #475467;
  font-size: 13px;
  line-height: 1.6;
}

.document-draft-date span {
  display: block;
}

.document-draft-actions {
  display: flex;
  gap: 8px;
}

.document-draft-actions button {
  min-width: 0;
  padding: 9px 13px;
  font-size: 13px;
}

.document-draft-actions .document-draft-delete {
  border: 1px solid #b42318;
  color: #b42318;
  background: #ffffff;
}

.document-draft-actions .document-draft-delete:hover {
  color: #ffffff;
  background: #b42318;
}

.document-draft-empty {
  margin: 0;
  padding: 24px 32px;
  color: #667085;
  text-align: center;
}

.document-draft-status {
  min-height: 1.5em;
  margin: 0;
  padding: 0 32px 18px;
  color: #1b4c92;
  font-size: 13px;
  font-weight: 700;
}

.dummy-fill-button {
  flex: 0 0 auto;
  min-width: auto;
  padding: 11px 16px;
  border: 1px solid #1b4c92;
  color: #1b4c92;
  background: #ffffff;
  font-size: 14px;
}

.dummy-fill-button:hover {
  color: #1b4c92;
  background: #ffffff;
}

.card {
  overflow: hidden;
  border: 1px solid #d7e0e6;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgb(16 24 40 / 7%);
}

.form-section + .form-section {
  margin-top: 24px;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 32px;
  border-bottom: 1px solid #e4e9ed;
  color: #ffffff;
  background: #1b4c92;
}

summary.card-heading {
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background 160ms ease;
}

summary.card-heading:hover {
  background: #1b4c92;
}

summary.card-heading::-webkit-details-marker {
  display: none;
}

summary.card-heading:focus-visible {
  outline: 3px solid rgb(27 76 146 / 24%);
  outline-offset: -3px;
}

.form-section:not([open]) .card-heading {
  border-bottom-color: transparent;
}

.card-heading-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.accordion-chevron {
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(225deg);
  transition: transform 160ms ease;
}

.form-section:not([open]) .accordion-chevron {
  transform: rotate(45deg);
}

.card-heading h2 {
  margin-top: 6px;
  font-size: 20px;
}

.card-heading .step,
.card-heading .property-title-context {
  color: #ffffff;
}

form {
  padding: 0;
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 26px 28px;
  padding: 32px;
}

.field {
  grid-column: span 6;
}

.field-wide {
  grid-column: 1 / -1;
}

.field-half {
  grid-column: span 6;
}

.field-third {
  grid-column: span 4;
}

.field[data-property-hierarchy-field] {
  grid-column: span 3;
}

.field-room-number {
  grid-column: 1 / span 3;
}

.field.field-row-start {
  grid-column: 1 / span 3;
}

.field-two-thirds {
  grid-column: span 8;
}

.field-quarter {
  grid-column: span 3;
}

.property-title-context {
  margin-left: 8px;
  color: #1b4c92;
  font-size: 0.82em;
  white-space: nowrap;
}

.field label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.field .checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  accent-color: #1b4c92;
}

.multi-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

#leaseTypeGroup {
  flex-wrap: nowrap;
}

.field .multi-checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

.multi-checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: #1b4c92;
}

.required {
  margin-left: 8px;
  color: #b42318;
  font-size: 12px;
}

.required.direct-input-available {
  color: #1976a8;
}

.unit-input {
  display: flex;
  align-items: center;
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #98a2b3;
  border-radius: 8px;
  color: #1d2939;
  background: #ffffff;
  font: inherit;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

#propertyAbout,
#propertySpecialNotes {
  min-height: 224px;
}

input[readonly],
textarea[readonly],
select:disabled {
  color: #475467;
  background: #f2f4f7;
}

input[type="number"],
.unit-input input {
  text-align: right;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #1b4c92;
  outline: 3px solid rgb(27 76 146 / 14%);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #d92d20;
}

.error,
.room-status {
  margin: 9px 0 0;
  font-size: 13px;
}

.error {
  color: #b42318;
  font-weight: 700;
}

.room-status {
  color: #667085;
}

.room-status[data-state="matched"] {
  color: #067647;
  font-weight: 700;
}

.room-status[data-state="unmatched"] {
  color: #b42318;
  font-weight: 700;
}

.global-error {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid #fecdca;
  border-radius: 8px;
  color: #b42318;
  background: #fef3f2;
  font-weight: 700;
}

.global-notice {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid #a6f4c5;
  border-radius: 8px;
  color: #05603a;
  background: #ecfdf3;
  font-weight: 700;
}

.master-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 28px;
  padding: 16px 20px;
  border: 1px solid #d7e0e6;
  border-radius: 10px;
  background: #ffffff;
}

.master-links span {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.master-links a,
.master-back a,
.master-actions a,
.master-form-actions a {
  color: #1b4c92;
  font-weight: 700;
}

.master-links a[aria-current="page"] {
  color: #163c73;
  text-decoration-thickness: 3px;
}

.master-page {
  width: min(100% - 40px, 1320px);
}

.master-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.master-page-heading h1,
.master-form-page h1 {
  margin-top: 8px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 13px 18px;
  border-radius: 8px;
  color: #ffffff;
  background: #1b4c92;
  font-weight: 800;
  text-decoration: none;
}

.master-table-wrap {
  overflow-x: auto;
}

.master-table-section + .master-table-section {
  margin-top: 32px;
}

.master-table-section h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

.master-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.master-table th,
.master-table td {
  min-width: 130px;
  padding: 16px;
  border-bottom: 1px solid #e4e9ed;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.master-table th {
  color: #344054;
  background: #eef5fc;
  white-space: nowrap;
}

.property-special-notes-table {
  min-width: 960px;
  table-layout: fixed;
}

.property-special-notes-table th,
.property-special-notes-table td {
  min-width: 0;
  overflow-wrap: anywhere;
}

.property-special-notes-table .master-text {
  min-width: 0;
  max-width: none;
}

.master-text {
  min-width: 260px;
  max-width: 420px;
  white-space: pre-wrap;
}

.master-actions {
  min-width: 150px;
  white-space: nowrap;
}

.master-actions > a,
.master-actions > form {
  display: inline-block;
  vertical-align: middle;
}

.master-actions form {
  margin: 0 0 0 14px;
}

.danger-button {
  min-width: auto;
  padding: 7px 11px;
  border: 1px solid #b42318;
  color: #b42318;
  background: #fef3f2;
  font-size: 13px;
}

.danger-button:hover {
  border-color: #b42318;
  color: #ffffff;
  background: #b42318;
}

.master-form-page {
  max-width: 900px;
}

.master-back {
  margin: 14px 0 28px;
}

.master-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 28px;
  padding: 32px;
}

.property-master-form-page {
  max-width: 1180px;
}

.property-master-form {
  margin-bottom: 42px;
}

.compact-checkboxes {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.compact-checkboxes legend {
  margin-bottom: 10px;
  font-weight: 700;
}

.compact-checkboxes label {
  display: inline-flex;
  align-items: center;
  margin-right: 22px;
}

.compact-checkboxes input {
  width: auto;
  margin-right: 7px;
}

.form-subheading {
  margin: 4px 0 -10px;
  font-size: 18px;
}

.nested-master-section {
  margin-top: 42px;
}

.nested-master-section .master-page-heading {
  margin-bottom: 18px;
}

.nested-master-section h2,
.nested-master-section p {
  margin: 0;
}

.nested-master-section p {
  margin-top: 6px;
  color: #667085;
}

.special-note-source {
  margin-bottom: 28px;
  padding: 24px 28px;
}

.special-note-source h2 {
  margin-bottom: 14px;
}

.special-note-buildings {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.special-note-buildings legend {
  margin-bottom: 10px;
  font-weight: 700;
}

.special-note-buildings .multi-checkbox-group {
  max-height: 320px;
  overflow-y: auto;
}

.monthly-employee-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.monthly-employee-form .field-third {
  grid-column: span 4;
}

.monthly-employee-form .field-half {
  grid-column: span 6;
}

.monthly-employee-form .field-two-thirds {
  grid-column: span 8;
}

.master-form-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 8px;
}

.request-page {
  max-width: 800px;
}

.request-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 32px;
}

.request-conditional[hidden] {
  display: none;
}

.request-form-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 4px;
}

.request-form-actions button {
  min-width: 140px;
}

.cancel-link {
  color: #475467;
  font-weight: 700;
}

.success-dialog {
  width: min(calc(100% - 40px), 560px);
  padding: 30px;
  border: 0;
  border-radius: 14px;
  color: #1d2939;
  box-shadow: 0 24px 80px rgb(16 24 40 / 24%);
}

.success-dialog::backdrop {
  background: rgb(16 24 40 / 48%);
}

.success-dialog h2 {
  color: #05603a;
  font-size: 22px;
}

.success-dialog p {
  margin: 16px 0 24px;
  line-height: 1.8;
}

.success-dialog form {
  display: flex;
  justify-content: flex-end;
}

.success-dialog button {
  min-width: 120px;
}

.output-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 28px;
  padding: 30px 32px;
  border-radius: 14px;
  color: #ffffff;
  background: #163c73;
}

.output-panel h2 {
  font-size: 20px;
}

.output-panel button {
  flex: 0 0 auto;
  color: #163c73;
  background: #ffffff;
}

.output-panel button:hover {
  background: #e8eef7;
}

.field .error {
  line-height: 1.5;
}

.unit-input span {
  flex: 0 0 auto;
  color: #667085;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 220px;
  padding: 14px 22px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #1b4c92;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: #143a70;
}

button:focus-visible {
  outline: 3px solid rgb(27 76 146 / 24%);
  outline-offset: 3px;
}

.expense-page {
  width: min(100% - 40px, 1200px);
}

.payroll-page {
  width: min(100% - 40px, 1200px);
}

.payroll-access-page {
  width: min(100% - 40px, 720px);
}

.payroll-access-card {
  margin-top: 32px;
}

.payroll-access-form {
  display: grid;
  gap: 20px;
  padding: 32px;
}

.payroll-access-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.payroll-access-form button {
  justify-self: start;
  min-width: 180px;
}

.payroll-access-form p {
  margin: 0;
  color: #475467;
  font-size: 14px;
}

.payroll-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.payroll-heading h1 {
  margin-top: 6px;
}

.payroll-heading-actions {
  display: flex;
  gap: 12px;
}

.table-sort-button {
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  text-align: left;
}

.table-sort-button:hover {
  color: #1b4c92;
  background: transparent;
}

.sort-indicator {
  margin-left: 10px;
  color: #667085;
}

.payroll-upload-content {
  padding: 32px;
}

.payroll-upload-content .expense-drop-zone {
  margin-bottom: 16px !important;
}

.payroll-bank-transfer-card,
.payroll-step + .payroll-step {
  margin-top: 24px;
}

.bank-transfer-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.bank-transfer-upload-field h3 {
  margin: 0 0 10px;
  color: #1b4c92;
  font-size: 16px;
}

.bank-transfer-upload-field .expense-drop-zone {
  height: calc(100% - 29px);
  margin-bottom: 0 !important;
}

.payroll-month-field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 700;
}

.payroll-month-field input {
  width: auto;
  min-width: 180px;
}

.payroll-note {
  margin: 0 0 24px;
  color: #475467;
  line-height: 1.7;
}

.payroll-message {
  margin-top: 24px;
  margin-bottom: 0;
  white-space: pre-line;
}

.payroll-completion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.payroll-completion[hidden] {
  display: none;
}

.payroll-completion button {
  min-width: 180px;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

form[data-expense-form] {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.expense-recent-claims {
  width: 100%;
  margin-bottom: 28px;
  overflow: hidden;
}

.expense-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid #d7e0e6;
}

.expense-list-heading > span {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.expense-claims-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.expense-claims-table {
  width: 100%;
  border-collapse: collapse;
}

.expense-claims-table th,
.expense-claims-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #e4eaf0;
  text-align: left;
  white-space: nowrap;
}

.expense-claims-table th {
  color: #475467;
  background: #f8fafc;
  font-size: 12px;
}

.expense-claims-table tbody tr:last-child td {
  border-bottom: 0;
}

.expense-empty-list {
  padding: 28px !important;
  color: #667085;
  text-align: center !important;
}

.expense-status-badge {
  display: inline-flex;
  width: auto;
  min-width: 0;
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

button.expense-status-badge.is-draft {
  color: #1b4c92;
  background: #eef4fb;
  text-decoration: underline;
}

.expense-status-badge.is-submitted {
  color: #8a4b08;
  background: #fff4e5;
}

.expense-status-badge.is-approved {
  color: #067647;
  background: #ecfdf3;
}

.expense-status {
  padding: 7px 14px;
  border-radius: 999px;
  color: #1b4c92;
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.expense-optional-fields[hidden] {
  display: none;
}

.expense-detail-section {
  border-top: 1px solid #d7e0e6;
}

.expense-detail-section > .card-heading {
  color: #ffffff;
  background: #1b4c92;
}

.expense-detail-section > .card-heading h2 {
  margin-top: 0;
}

.expense-detail-section[hidden] {
  display: none;
}

.expense-setting-field,
.expense-route-action,
.expense-add-detail-field {
  display: flex;
  align-items: stretch;
  flex-direction: column;
}

.expense-field-label {
  display: block;
  min-height: 29px;
  margin-bottom: 10px;
}

.secondary-button {
  min-width: auto;
  border: 1px solid #1b4c92;
  color: #1b4c92;
  background: #ffffff;
}

.secondary-button:hover {
  color: #ffffff;
  background: #1b4c92;
}

.expense-swap-row,
.expense-inline-controls,
.expense-amount-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.expense-swap-row input,
.expense-inline-controls select,
.expense-amount-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.icon-button {
  flex: 0 0 44px;
  min-width: 44px;
  height: 48px;
  padding: 0;
  border: 1px solid #98a2b3;
  color: #1b4c92;
  background: #f8fafc;
  font-size: 20px;
}

.expense-tax-note {
  margin-left: 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
}

.expense-route-results {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #b2ccff;
  border-radius: 10px;
  color: #163c73;
  background: #eef5fc;
}

.expense-route-results[hidden] {
  display: none;
}

.expense-route-results[data-state="error"] {
  border-color: #fecdca;
  color: #b42318;
  background: #fef3f2;
}

.expense-confirmed-route {
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid #98a2b3;
  border-radius: 8px;
  color: #1d2939;
  background: #f8fafc;
  line-height: 1.5;
}

.expense-route-candidate {
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #b2ccff;
  color: #1b4c92;
  background: #ffffff;
  text-align: left;
  font-size: 14px;
}

.expense-route-candidate:hover {
  color: #ffffff;
  background: #1b4c92;
}

.expense-drop-zone {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  min-height: 150px;
  margin: 0 !important;
  padding: 24px;
  border: 2px dashed #98a2b3;
  border-radius: 10px;
  color: #475467;
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
}

.expense-drop-zone:hover,
.expense-drop-zone.is-dragging {
  border-color: #1b4c92;
  background: #eef5fc;
}

.expense-drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.expense-drop-zone strong {
  color: #1b4c92;
}

.expense-drop-zone small {
  color: #667085;
}

.expense-detail-list {
  margin: 0 32px 32px;
  padding: 22px 24px;
  border: 1px solid #d7e0e6;
  border-radius: 10px;
  background: #f8fafc;
}

.expense-detail-list h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.expense-detail-list ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.expense-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #e4eaf0;
}

.expense-detail-item:last-child {
  border-bottom: 0;
}

.expense-detail-item-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.expense-detail-item-actions button {
  min-width: 0;
  padding: 7px 10px;
  font-size: 12px;
}

.expense-detail-actions,
.expense-form-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.expense-detail-actions button,
.expense-form-actions button {
  width: 100%;
  min-width: 0;
}

.expense-detail-actions .danger-button,
.expense-form-actions .danger-button {
  padding: 14px 22px;
  font-size: inherit;
  font-weight: 800;
}

.expense-form-actions {
  margin-top: 0;
}

@media (max-width: 760px) {
  body.navigation-open {
    overflow: hidden;
  }

  .header-inner {
    justify-content: space-between;
    width: calc(100% - 24px);
    min-height: 64px;
  }

  .brand-logo {
    width: 132px;
    height: auto;
  }

  .navigation-toggle {
    position: relative;
    z-index: 102;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex: 0 0 44px;
    gap: 5px;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #eef4fb;
    box-shadow: none;
  }

  .navigation-toggle:hover {
    background: #eef4fb;
    box-shadow: none;
    transform: none;
  }

  .navigation-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 999px;
    background: #1b4c92;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .navigation-open .navigation-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navigation-open .navigation-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navigation-open .navigation-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .navigation-backdrop {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgb(15 23 42 / 42%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .navigation-open .navigation-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .product-navigation {
    position: fixed;
    z-index: 101;
    top: 0;
    right: 0;
    align-items: stretch;
    flex-direction: column;
    width: min(84vw, 320px);
    height: 100vh;
    height: 100dvh;
    padding: 80px 20px 24px;
    background: #ffffff;
    box-shadow: -12px 0 32px rgb(15 23 42 / 18%);
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(105%);
    transition: transform 200ms ease, visibility 200ms ease;
  }

  .navigation-open .product-navigation {
    visibility: visible;
    transform: translateX(0);
  }

  .product-navigation-link {
    justify-content: flex-start;
    min-height: 52px;
    padding: 12px 14px;
    border-left: 0;
    border-bottom: 1px solid #e4eaf0;
    color: #344054;
    font-size: 15px;
    font-weight: 700;
  }

  .product-navigation-link[aria-current="page"] {
    border-radius: 8px;
    background: #eef4fb;
    color: #1b4c92;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 24px, 1040px);
    padding-top: 44px;
  }

  .card-heading,
  .fields-grid {
    padding: 24px 20px;
  }

  .intro-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .document-draft-heading {
    align-items: stretch;
    flex-direction: column;
    padding: 24px 20px;
  }

  .document-draft-heading-actions {
    width: 100%;
  }

  .document-draft-heading button {
    flex: 1 1 auto;
    width: 100%;
  }

  .document-draft-chevron {
    flex: 0 0 auto;
  }

  .document-draft-list-header {
    display: none;
  }

  .document-draft-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 20px;
  }

  .document-draft-item:first-child {
    border-top: 0;
  }

  .document-draft-actions {
    margin-top: 6px;
  }

  .document-draft-actions button {
    flex: 1 1 0;
    width: auto;
  }

  .document-draft-empty {
    padding: 22px 20px;
  }

  .document-draft-status {
    padding-right: 20px;
    padding-left: 20px;
  }

  .payroll-heading,
  .payroll-heading-actions,
  .payroll-completion {
    align-items: stretch;
    flex-direction: column;
  }

  .bank-transfer-upload-grid {
    grid-template-columns: 1fr;
  }

  .dummy-fill-button {
    width: 100%;
  }

  .fields-grid {
    grid-template-columns: 1fr;
  }

  .field,
  .field-half,
  .field-quarter,
  .field-third,
  .field-two-thirds,
  .field-wide,
  .field[data-property-hierarchy-field],
  .field-room-number,
  .field.field-row-start {
    grid-column: auto;
  }

  .field[data-property-hierarchy-field],
  .field-room-number {
    grid-column: auto !important;
  }

  .output-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 24px 20px;
  }

  .master-page-heading,
  .master-form-actions,
  .request-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .master-page-heading .button-link {
    width: 100%;
  }

  .master-form {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .request-form {
    padding: 24px 20px;
  }

  .expense-form-actions {
    align-items: stretch;
  }

  .expense-detail-list {
    margin: 0 20px 24px;
  }

  .expense-list-heading {
    padding: 20px;
  }

  .expense-claims-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .expense-claims-table,
  .expense-claims-table tbody,
  .expense-claims-table tr,
  .expense-claims-table td {
    display: block;
    width: 100%;
  }

  .expense-claims-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px 18px;
    border-bottom: 1px solid #d7e0e6;
  }

  .expense-claims-table tbody tr:last-child {
    border-bottom: 0;
  }

  .expense-claims-table td {
    padding: 8px 4px;
    border: 0;
    white-space: normal;
  }

  .expense-claims-table td::before {
    display: block;
    margin-bottom: 3px;
    color: #667085;
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
  }

  .expense-claims-table .expense-empty-list {
    grid-column: 1 / -1;
  }

  .expense-empty-list::before {
    display: none !important;
  }

  .expense-detail-item {
    align-items: stretch;
    flex-direction: column;
  }

  .expense-detail-item-actions button {
    width: auto;
  }

  .icon-button {
    width: 44px;
  }

  .master-form .field,
  .master-form .field-wide,
  .master-form-actions {
    grid-column: auto;
  }

  button {
    width: 100%;
  }
}
