:root {
  --accent: #6956e8;
  --ink: #1d1834;
  --muted: #787287;
  --line: #e9e6f0;
  --canvas: #f7f7fc;
  --panel: #fff;
  --success: #4fa568;
  --danger: #dc596d;
  --cyan: #13aeb7;
  --coral: #f06d7d;
  --lime: #91b73b;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--canvas);
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  transition: 0.18s ease;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
.app-shell {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  width: 252px;
  padding: 24px 17px 18px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px 25px;
}
.brand-mark,
.brand-logo {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  flex: 0 0 auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 82%, white),
    var(--accent)
  );
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 25%, transparent);
  font-size: 18px;
}
.brand-logo {
  object-fit: contain;
}
.brand > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.brand strong {
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand small {
  margin-top: 2px;
  color: #9993a7;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.mobile-close {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
}
.nav-label {
  margin: 10px 12px 8px;
  color: #aaa5b7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.management-label {
  margin-top: 25px;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-list a {
  position: relative;
  height: 44px;
  padding: 0 13px;
  border-radius: 12px;
  color: #6c677c;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}
.nav-list a:hover {
  background: #f7f5ff;
  color: var(--accent);
}
.nav-list a.active {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 11%, white),
    color-mix(in srgb, var(--accent) 4%, white)
  );
  color: var(--accent);
}
.nav-list a.active:before {
  content: "";
  position: absolute;
  left: -17px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}
.nav-list i {
  width: 20px;
  font-style: normal;
  font-size: 18px;
  text-align: center;
}
.health-card {
  margin-top: auto;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, white);
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent) 10%, white),
    #fff
  );
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.health-card b {
  font-size: 12px;
}
.health-card span {
  color: #827c91;
  font-size: 10px;
  line-height: 1.4;
}
.health-card > div {
  height: 4px;
  margin-top: 7px;
  border-radius: 5px;
  background: #ddd8ec;
  overflow: hidden;
}
.health-card i {
  display: block;
  width: 92%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #e957aa);
}
.sidebar-user {
  margin-top: 18px;
  padding: 16px 4px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
}
.sidebar-user > div {
  display: flex;
  flex-direction: column;
}
.sidebar-user b {
  font-size: 11px;
}
.sidebar-user small {
  color: var(--muted);
  font-size: 9px;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffe4b4, #ffc79c);
  color: #754521;
  font-size: 10px;
  font-weight: 800;
}
.avatar.dark {
  background: #2c254a;
  color: #fff;
}
.avatar.soft {
  background: color-mix(in srgb, var(--accent) 11%, white);
  color: var(--accent);
}
.workspace {
  min-width: 0;
  flex: 1;
  margin-left: 252px;
}
.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 72px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.global-search {
  width: min(440px, 45vw);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a19ba9;
}
.global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}
.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: #716a7e;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
}
.icon-button:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, white);
  color: var(--accent);
}
.menu-button {
  display: none;
}
.profile-menu {
  position: relative;
}
.profile-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.profile-menu summary::-webkit-details-marker {
  display: none;
}
.profile-menu summary > span:last-child {
  display: flex;
  flex-direction: column;
}
.profile-menu summary b {
  font-size: 11px;
}
.profile-menu summary small {
  color: var(--muted);
  font-size: 9px;
}
.profile-menu[open] > div {
  position: absolute;
  z-index: 50;
  right: 0;
  top: 45px;
  width: 175px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(33, 25, 63, 0.15);
}
.profile-menu[open] a,
.profile-menu[open] button {
  width: 100%;
  height: 35px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6d6679;
  text-align: left;
  font-size: 10px;
}
.profile-menu[open] a {
  display: flex;
  align-items: center;
}
.profile-menu[open] a:hover,
.profile-menu[open] button:hover {
  background: #f3f0ff;
  color: var(--accent);
}
.content {
  max-width: 1480px;
  margin: 0 auto;
  padding: 31px 34px 46px;
}
.flash {
  position: relative;
  min-height: 48px;
  margin-bottom: 17px;
  padding: 10px 45px 10px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 650;
}
.flash b {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.flash button {
  position: absolute;
  right: 12px;
  border: 0;
  background: transparent;
  color: inherit;
}
.flash.success {
  background: #e8f6ec;
  color: #397f4d;
}
.flash.success b {
  background: #52ad69;
  color: #fff;
}
.flash.error {
  background: #fff0f2;
  color: #ad4354;
}
.flash.error b {
  background: #df5d70;
  color: #fff;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}
.page-heading h1,
.create-heading h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 35px);
  letter-spacing: -0.8px;
  line-height: 1.12;
}
.page-heading > div > p:last-child,
.create-heading > div > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.eyebrow {
  margin: 0 0 8px !important;
  color: #8c8698 !important;
  font-size: 10px !important;
  font-weight: 750 !important;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.eyebrow i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #ef5aa4;
  box-shadow: 0 0 0 4px #fde4f0;
}
.button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.button.primary {
  border-color: var(--accent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 90%, white),
    color-mix(in srgb, var(--accent) 82%, #30197e)
  );
  box-shadow: 0 9px 18px color-mix(in srgb, var(--accent) 23%, transparent);
  color: #fff;
}
.button.primary:hover {
  transform: translateY(-1px);
}
.button.outline {
  border-color: #dedbe7;
  background: #fff;
  color: #6b6478;
}
.button.outline:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, white);
  color: var(--accent);
}
.button.success {
  background: #53b971;
  color: #fff;
}
.button.danger {
  background: #fff0f2;
  color: var(--danger);
  border-color: #f5d3d9;
}
.button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 9px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(41, 31, 78, 0.035);
}
.panel-head {
  padding: 20px 21px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head h2 {
  margin: 0;
  font-size: 14px;
}
.panel-head p {
  margin: 4px 0 0;
  color: #938da0;
  font-size: 10px;
}
.panel-head > a {
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
}
.metric-grid {
  margin: 25px 0 17px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.metric {
  position: relative;
  min-height: 130px;
  padding: 18px;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  display: flex;
  gap: 14px;
  box-shadow: 0 10px 25px rgba(44, 34, 83, 0.09);
}
.metric:after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -52px;
  width: 130px;
  height: 130px;
  border: 26px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.metric.violet {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 90%, white),
    var(--accent)
  );
}
.metric.cyan {
  background: linear-gradient(135deg, #16bbc2, #0a9faa);
}
.metric.coral {
  background: linear-gradient(135deg, #fd7986, #ec576e);
}
.metric.lime {
  background: linear-gradient(135deg, #a8ca4b, #86ad2f);
}
.metric > span {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 19px;
}
.metric > div {
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.metric small {
  font-size: 10px;
  font-weight: 650;
  opacity: 0.88;
}
.metric strong {
  margin-top: 6px;
  font-size: 25px;
  line-height: 1;
}
.metric em {
  margin-top: 14px;
  font-size: 9px;
  font-style: normal;
  opacity: 0.8;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 0.7fr);
  gap: 16px;
}
.request-list {
  border-top: 1px solid #f0edf4;
}
.request-row {
  min-height: 76px;
  padding: 11px 17px 11px 21px;
  border-bottom: 1px solid #f0edf4;
  display: grid;
  grid-template-columns:
    36px minmax(180px, 1.4fr) minmax(125px, 0.8fr)
    75px 78px auto;
  gap: 10px;
  align-items: center;
}
.request-row:last-child {
  border-bottom: 0;
}
.request-row > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.request-row b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}
.request-row small {
  color: #9791a1;
  font-size: 8.5px;
}
.trip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #686173;
  font-size: 9px;
}
.status {
  width: fit-content;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}
.status.pending {
  background: #eeeaff;
  color: var(--accent);
}
.status.approved,
.status.settled {
  background: #e7f6ea;
  color: #478f58;
}
.status.rejected {
  background: #fff0f2;
  color: #d75165;
}
.status.draft {
  background: #f0eef3;
  color: #7e7789;
}
.status.large {
  padding: 9px 12px;
  font-size: 10px;
}
.flow-panel {
  padding-bottom: 16px;
}
.flow {
  margin: 5px 20px;
  padding: 0;
  list-style: none;
}
.flow li {
  position: relative;
  min-height: 57px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
}
.flow li:not(:last-child):after {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 1px;
  background: #ddd8e4;
}
.flow li > i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f0edf4;
  color: #918b9b;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 9px;
}
.flow li.done > i {
  background: #e7f6ea;
  color: #46925a;
}
.flow li > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.flow b {
  font-size: 10px;
}
.flow small {
  color: #9a94a3;
  font-size: 8px;
}
.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: #8d8796;
}
.empty-state b {
  color: var(--ink);
  font-size: 13px;
}
.empty-state p {
  margin: 6px 0 0;
  font-size: 10px;
}
.toolbar {
  min-height: 61px;
  margin: 22px 0 15px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.toolbar .table-search {
  min-width: 210px;
  flex: 1;
}
.toolbar select {
  height: 39px;
  padding: 0 32px 0 11px;
  border: 1px solid #dfdbe6;
  border-radius: 10px;
  background: #fff;
  color: #6c6578;
  font-size: 10px;
}
.table-search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a49eac;
}
.table-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10px;
}
.toolbar-note {
  margin-left: auto;
  color: #918b9a;
  font-size: 9px;
}
.table-wrap {
  overflow: auto;
}
.data-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}
.data-table th {
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid #eae7ef;
  background: #faf9fc;
  color: #96909f;
  font-size: 8px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.data-table td {
  height: 66px;
  padding: 9px 12px;
  border-bottom: 1px solid #efedf3;
  color: #686272;
  font-size: 9px;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fcfbff;
}
.data-table input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}
.table-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.table-title b {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 9.5px;
}
.table-title small {
  color: #9b95a5;
  font-size: 8px;
}
.person {
  display: flex;
  align-items: center;
  gap: 9px;
}
.person > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.person b {
  font-size: 9.5px;
}
.person small,
.person span {
  color: #9791a0;
  font-size: 8px;
}
.level-pill {
  padding: 6px 8px;
  border-radius: 8px;
  background: #f0edff;
  color: var(--accent);
  font-size: 8px;
  font-weight: 750;
  white-space: nowrap;
}
.selection-bar {
  position: fixed;
  z-index: 45;
  left: calc(50% + 126px);
  bottom: 24px;
  transform: translateX(-50%);
  min-width: 350px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #211a3b;
  color: #fff;
  box-shadow: 0 18px 45px rgba(33, 26, 59, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
}
.selection-bar[hidden] {
  display: none;
}
.selection-bar b {
  width: 25px;
  height: 25px;
  margin-right: 5px;
  border-radius: 8px;
  background: var(--accent);
  display: inline-grid;
  place-items: center;
}
.create-heading {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 13px;
  align-items: center;
}
.create-heading > span {
  color: #59aa6c;
  font-size: 9px;
}
.request-form {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 15px;
  align-items: start;
}
.form-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-card {
  padding: 19px;
}
.form-card-head {
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
}
.form-card-head > span {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eeeaff;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
}
.form-card-head h2 {
  margin: 0;
  font-size: 13px;
}
.form-card-head p {
  margin: 3px 0 0;
  color: #9791a0;
  font-size: 8px;
}
.form-grid {
  display: grid;
  gap: 13px;
}
.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-grid label,
.field-stack label,
.action-dialog label {
  color: #625c6f;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 8.5px;
  font-weight: 750;
}
.form-grid input,
.form-grid select,
.form-grid textarea,
.field-stack input,
.field-stack select,
.field-stack textarea,
.action-dialog input,
.action-dialog select,
.action-dialog textarea,
.level-row input,
.level-row select {
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid #dedae5;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 500;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.field-stack input:focus,
.level-row input:focus,
.level-row select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}
.form-grid label > small,
.field-stack label > small {
  color: #9993a2;
  font-size: 7.5px;
  font-weight: 500;
}
.money-input {
  position: relative;
}
.money-input > span {
  position: absolute;
  z-index: 1;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #8f8999;
}
.money-input input {
  padding-left: 26px;
}
.self-row {
  margin-bottom: 14px;
  padding: 12px 13px;
  border-radius: 11px;
  background: #f7f5ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.self-row > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.self-row b {
  font-size: 9px;
}
.self-row small {
  color: #948e9e;
  font-size: 8px;
}
.self-row label {
  padding: 7px 9px;
  border: 1px solid #d7d0fa;
  border-radius: 9px;
  background: #fff;
  color: var(--accent);
  font-size: 8px;
  font-weight: 750;
}
.self-row input {
  accent-color: var(--accent);
}
.toggle-question {
  min-height: 52px;
  padding: 11px 13px;
  border: 1px solid #e7e3eb;
  border-radius: 11px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
}
.toggle-question span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.toggle-question input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
.form-card h3 {
  margin: 0 0 11px;
  font-size: 10px;
}
.form-card hr {
  height: 1px;
  margin: 19px 0;
  border: 0;
  background: #eeebf2;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.resource-grid label {
  color: #625c70;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 8px;
  font-weight: 750;
}
.resource-grid input {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #dedae5;
  border-radius: 9px;
}
.resource-grid small {
  color: #9b95a4;
  font-size: 7px;
  font-weight: 500;
}
.estimate-aside {
  position: sticky;
  top: 91px;
}
.estimate-card {
  overflow: hidden;
}
.estimate-head {
  padding: 16px;
  border-bottom: 1px solid #ece9f1;
  display: flex;
  align-items: center;
  gap: 9px;
}
.estimate-head > span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eeeaff;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.estimate-head h2 {
  margin: 0;
  font-size: 12px;
}
.estimate-head p {
  margin: 3px 0 0;
  color: #9791a1;
  font-size: 8px;
}
.estimate-card dl {
  margin: 0;
  padding: 12px 16px;
}
.estimate-card dl div {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.estimate-card dt {
  color: #8d8797;
  font-size: 8px;
}
.estimate-card dd {
  margin: 0;
  font-size: 9px;
  font-weight: 750;
}
.grand-total {
  padding: 15px 16px;
  background: linear-gradient(
    120deg,
    var(--accent),
    color-mix(in srgb, var(--accent) 68%, #d964ad)
  );
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.grand-total span {
  font-size: 9px;
}
.grand-total strong {
  font-size: 17px;
}
.route-preview {
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.route-preview b {
  width: 100%;
  color: #8e8798;
  font-size: 8px;
  text-transform: uppercase;
}
.route-preview span {
  color: #716a7c;
  font-size: 7px;
}
.form-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 8px;
}
.detail-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.65fr);
  gap: 15px;
  align-items: start;
}
.detail-main,
.detail-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.detail-hero {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  background: linear-gradient(
    130deg,
    #fff,
    color-mix(in srgb, var(--accent) 5%, white)
  );
}
.detail-hero div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.detail-hero div:not(:last-child) {
  border-right: 1px solid #e5e1ea;
}
.detail-hero span {
  color: #948e9d;
  font-size: 8px;
}
.detail-hero strong {
  font-size: 15px;
}
.detail-section {
  padding-bottom: 18px;
}
.detail-grid {
  padding: 0 21px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.detail-grid > div {
  min-height: 63px;
  padding: 11px;
  border: 1px solid #ebe8ef;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.detail-grid span {
  color: #9993a2;
  font-size: 8px;
}
.detail-grid b {
  font-size: 9px;
}
.cost-grid {
  padding: 0 21px 15px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cost-grid > div {
  padding: 11px;
  border: 1px solid #e9e6ee;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 6px;
}
.cost-grid i,
.expense-card dt i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.cost-grid i.purple,
.expense-card i.purple {
  background: var(--accent);
}
.cost-grid i.cyan,
.expense-card i.cyan {
  background: var(--cyan);
}
.cost-grid i.coral,
.expense-card i.coral {
  background: var(--coral);
}
.cost-grid i.lime,
.expense-card i.lime {
  background: var(--lime);
}
.cost-grid span {
  color: #8d8797;
  font-size: 8px;
}
.cost-grid b {
  grid-column: 1/-1;
  font-size: 10px;
}
.compact {
  min-width: 580px;
}
.compact th:first-child,
.compact td:first-child {
  padding-left: 21px;
}
.approval-timeline {
  margin: 5px 20px 18px;
  padding: 0;
  list-style: none;
}
.approval-timeline li {
  position: relative;
  min-height: 65px;
  padding-left: 42px;
}
.approval-timeline li:not(:last-child):after {
  content: "";
  position: absolute;
  left: 15px;
  top: 31px;
  bottom: 0;
  width: 1px;
  background: #dad6e1;
}
.approval-timeline li > i {
  position: absolute;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #eeeaff;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}
.approval-timeline li.approved > i {
  background: #e7f6ea;
  color: #48945b;
}
.approval-timeline li.rejected > i {
  background: #fff0f2;
  color: #d75164;
}
.approval-timeline li > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.approval-timeline b {
  font-size: 9px;
}
.approval-timeline span,
.approval-timeline small {
  color: #96909f;
  font-size: 8px;
}
.audit-mini {
  padding-bottom: 12px;
}
.audit-mini > div:not(.panel-head) {
  padding: 7px 20px;
  display: flex;
  gap: 8px;
}
.audit-mini > div > i {
  color: var(--accent);
}
.audit-mini > div > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.audit-mini b {
  font-size: 8.5px;
}
.audit-mini small {
  color: #9a94a3;
  font-size: 7.5px;
}
.audit-mini > a {
  display: block;
  margin: 10px 20px;
  color: var(--accent);
  font-size: 8.5px;
  font-weight: 750;
}
.summary-grid {
  margin: 22px 0 15px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.summary-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.summary-grid article {
  min-height: 82px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.summary-icon.purple {
  background: #eeeaff;
  color: var(--accent);
}
.summary-icon.cyan {
  background: #e4f8f8;
  color: #0c9ca5;
}
.summary-icon.coral {
  background: #fff0df;
  color: #dc791e;
}
.summary-icon.green {
  background: #e7f6e9;
  color: #48955c;
}
.summary-grid article > div {
  display: flex;
  flex-direction: column;
}
.summary-grid strong {
  font-size: 18px;
}
.summary-grid small {
  margin-top: 3px;
  color: #928c9b;
  font-size: 9px;
}
.bulk-bar {
  position: fixed;
  z-index: 45;
  left: calc(50% + 126px);
  bottom: 24px;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 310px));
  min-height: 68px;
  padding: 10px 12px 10px 17px;
  border-radius: 16px;
  background: #211a3b;
  color: #fff;
  box-shadow: 0 18px 45px rgba(33, 26, 59, 0.3);
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  gap: 9px;
  align-items: center;
}
.bulk-bar[hidden] {
  display: none;
}
.bulk-bar span {
  font-size: 9px;
}
.bulk-bar span b {
  width: 25px;
  height: 25px;
  margin-right: 5px;
  border-radius: 8px;
  background: var(--accent);
  display: inline-grid;
  place-items: center;
}
.bulk-bar textarea {
  height: 43px;
  padding: 8px 10px;
  border: 1px solid #41395a;
  border-radius: 10px;
  resize: none;
  background: #2d2647;
  color: #fff;
  font-size: 8px;
}
.action-dialog {
  width: min(540px, calc(100vw - 30px));
  padding: 28px;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(28, 20, 54, 0.27);
}
.action-dialog::backdrop {
  background: rgba(29, 22, 52, 0.48);
  backdrop-filter: blur(3px);
}
.action-dialog > .dialog-close {
  position: absolute;
  right: 15px;
  top: 14px;
}
.dialog-close button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #797281;
  font-size: 18px;
}
.action-dialog h2 {
  margin: 6px 0;
  font-size: 19px;
}
.action-dialog > p {
  margin: 0 0 18px;
  color: #8e8898;
  font-size: 10px;
}
.docket-label {
  color: var(--accent) !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dialog-total {
  margin: 17px 0;
  padding: 14px;
  border-radius: 12px;
  background: #f7f5ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-total span {
  font-size: 9px;
}
.dialog-total strong {
  font-size: 18px;
}
.dialog-actions {
  margin-top: 17px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.dialog-note {
  padding: 11px;
  border-radius: 10px;
  background: #f7f5ff;
  color: #777080;
  font-size: 8px;
}
.finance-dialog {
  width: min(650px, calc(100vw - 30px));
}
.finance-hero {
  min-height: 150px;
  margin-top: 22px;
  padding: 22px 25px;
  border-radius: 19px;
  background: linear-gradient(
    125deg,
    var(--accent),
    color-mix(in srgb, var(--accent) 65%, #d45fad)
  );
  color: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  align-items: center;
  box-shadow: 0 16px 35px color-mix(in srgb, var(--accent) 23%, transparent);
}
.finance-hero > div {
  display: flex;
  flex-direction: column;
}
.finance-hero > div:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}
.finance-hero small {
  font-size: 9px;
  opacity: 0.8;
}
.finance-hero strong {
  margin: 7px 0 4px;
  font-size: 24px;
}
.finance-hero span {
  font-size: 8px;
  opacity: 0.75;
}
.section-title {
  margin: 25px 0 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.section-title h2 {
  margin: 0;
  font-size: 15px;
}
.section-title p {
  margin: 4px 0 0;
  color: #948e9d;
  font-size: 9px;
}
.finance-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.finance-card {
  min-height: 82px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) 0.6fr auto auto;
  gap: 15px;
  align-items: center;
}
.finance-card > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.finance-card > div:nth-child(2) small {
  color: #9892a1;
  font-size: 8px;
}
.finance-card > div:nth-child(2) strong {
  font-size: 11px;
}
.report-kpis {
  margin: 22px 0 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.report-kpis article {
  min-height: 105px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.report-kpis small {
  color: #8f8998;
  font-size: 9px;
}
.report-kpis strong {
  margin-top: 9px;
  font-size: 21px;
}
.report-kpis span {
  margin-top: auto;
  color: #9791a0;
  font-size: 8px;
}
.report-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.75fr;
  gap: 14px;
}
.chart-card,
.expense-card {
  min-height: 320px;
}
.bars {
  padding: 12px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bars > div > span {
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
}
.bars b {
  font-size: 8.5px;
}
.bars small {
  color: #888293;
  font-size: 8px;
}
.bars > div > i {
  height: 10px;
  border-radius: 8px;
  background: #f0edf4;
  display: block;
  overflow: hidden;
}
.bars > div > i > b {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #b16de4);
  display: block;
}
.expense-total {
  margin: 5px 20px 15px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f1edff, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.expense-total strong {
  font-size: 23px;
}
.expense-total span {
  color: #8f8998;
  font-size: 8px;
}
.expense-card dl {
  margin: 0 20px;
}
.expense-card dl div {
  min-height: 39px;
  border-bottom: 1px solid #eeebf2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.expense-card dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #777080;
  font-size: 8.5px;
}
.expense-card dd {
  margin: 0;
  font-size: 9px;
  font-weight: 750;
}
.template-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.template-list {
  overflow: hidden;
}
.template-list > a {
  min-height: 68px;
  padding: 11px 14px;
  border-top: 1px solid #eeebf2;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 9px;
  align-items: center;
}
.template-list > a.active {
  background: #f7f5ff;
  box-shadow: inset 3px 0 var(--accent);
}
.template-list > a > span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eeeaff;
  color: var(--accent);
  display: grid;
  place-items: center;
}
.template-list > a > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.template-list > a b {
  font-size: 9px;
}
.template-list > a small {
  color: #9892a1;
  font-size: 8px;
}
.template-list > a i {
  color: #aaa4b2;
  font-style: normal;
}
.editor-head {
  min-height: 90px;
  padding: 18px 20px;
  border-bottom: 1px solid #ece9f0;
}
.editor-head p {
  margin: 0;
  color: #9993a2;
  font-size: 8px;
  text-transform: uppercase;
}
.editor-head h2 {
  margin: 4px 0;
  font-size: 15px;
}
.editor-head span {
  color: #8c8696;
  font-size: 8px;
}
.level-list {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.level-row {
  min-height: 78px;
  padding: 10px;
  border: 1px solid #e9e5ed;
  border-radius: 12px;
  display: grid;
  grid-template-columns:
    34px minmax(120px, 0.8fr) minmax(130px, 0.8fr) minmax(180px, 1.1fr)
    auto auto;
  gap: 9px;
  align-items: center;
}
.level-number {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: #eeeaff;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
}
.level-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.level-row > div small {
  color: #9b95a4;
  font-size: 7px;
}
.level-row > div input {
  min-height: 34px;
}
.level-row label {
  color: #777080;
  font-size: 7.5px;
  font-weight: 700;
}
.level-row select {
  min-height: 34px;
  margin-top: 4px;
}
.level-row select[multiple] {
  height: 58px;
}
.checkbox-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 7px !important;
}
.checkbox-row input {
  width: 16px !important;
  min-height: 16px !important;
  accent-color: var(--accent);
}
.workflow-note {
  margin: 0 20px 20px;
  padding: 13px;
  border-radius: 12px;
  background: #f3f0ff;
  color: var(--accent);
}
.workflow-note b {
  font-size: 9px;
}
.workflow-note p {
  margin: 4px 0 0;
  color: #7e778a;
  font-size: 8px;
  line-height: 1.45;
}
.settings-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.settings-tabs {
  padding: 8px;
}
.settings-tabs button {
  width: 100%;
  height: 43px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #716a7d;
  text-align: left;
  font-size: 9px;
  font-weight: 750;
}
.settings-tabs button.active {
  background: #f0edff;
  color: var(--accent);
}
.settings-panel {
  min-height: 570px;
  padding: 22px;
}
.settings-head {
  padding-bottom: 17px;
  border-bottom: 1px solid #ece9f0;
}
.settings-head h2 {
  margin: 0;
  font-size: 15px;
}
.settings-head p {
  margin: 5px 0 0;
  color: #918b9b;
  font-size: 9px;
}
.settings-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
}
.upload-box {
  min-height: 150px;
  padding: 15px;
  border: 1.5px dashed #d7d1e2;
  border-radius: 13px;
  background: #faf9fc;
  color: #6b6475;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 750;
  text-align: center;
  cursor: pointer;
}
.upload-box input {
  max-width: 190px;
  font-size: 8px;
}
.upload-box span {
  color: #9892a1;
  font-size: 7.5px;
}
.login-bg {
  background: linear-gradient(135deg, #443486, #8b59cf);
  color: #fff;
}
.login-bg span {
  color: #e7e1fb;
}
.field-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.switch-list {
  margin-top: 8px;
}
.switch-list label {
  min-height: 65px;
  border-bottom: 1px solid #efecf2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.switch-list label > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.switch-list b {
  font-size: 9px;
}
.switch-list small {
  color: #9892a1;
  font-size: 8px;
}
.switch-list input {
  width: 38px;
  height: 20px;
  accent-color: var(--accent);
}
.settings-actions {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #ece9f0;
  display: flex;
  justify-content: flex-end;
}
.error-page {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-page > span {
  color: var(--accent);
  font-size: 70px;
  font-weight: 900;
  opacity: 0.25;
}
.error-page h1 {
  margin: 0;
  font-size: 26px;
}
.error-page p {
  margin: 8px 0 20px;
  color: var(--muted);
}
.mobile-nav,
.menu-scrim {
  display: none;
}
.login-page {
  min-height: 100vh;
  padding: 34px;
  background:
    radial-gradient(
      circle at 16% 25%,
      rgba(244, 112, 171, 0.65),
      transparent 29%
    ),
    radial-gradient(
      circle at 80% 12%,
      rgba(57, 201, 196, 0.45),
      transparent 25%
    ),
    linear-gradient(135deg, #2e235f, #6751cf 55%, #4a2d8a);
  background-size: cover;
  background-position: center;
  display: grid;
  grid-template-columns: 1.15fr 430px;
  gap: 30px;
}
.login-story {
  padding: 12px 26px 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.login-brand > img,
.login-brand > span,
.mobile-login-brand img,
.mobile-login-brand > span {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  object-fit: contain;
}
.login-brand > span,
.mobile-login-brand > span {
  background: var(--accent);
  display: grid;
  place-items: center;
}
.login-brand > div {
  display: flex;
  flex-direction: column;
}
.login-brand b {
  font-size: 16px;
}
.login-brand small {
  margin-top: 2px;
  font-size: 8px;
  text-transform: uppercase;
  opacity: 0.72;
}
.login-story > div:nth-child(2) {
  max-width: 610px;
}
.login-pill {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 9px;
  font-weight: 700;
}
.login-story h1 {
  margin-top: 18px;
  font-size: clamp(40px, 5.2vw, 70px);
  letter-spacing: -2.5px;
  line-height: 1.02;
}
.login-story > div:nth-child(2) > p:last-child {
  max-width: 520px;
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.78;
}
.login-stats {
  display: flex;
  gap: 50px;
}
.login-stats span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.login-stats b {
  font-size: 17px;
}
.login-stats small {
  font-size: 8px;
  opacity: 0.67;
}
.login-card {
  width: 100%;
  max-width: 430px;
  margin: auto;
  padding: 46px 45px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 65px rgba(29, 19, 67, 0.25);
  backdrop-filter: blur(20px);
}
.mobile-login-brand {
  display: none;
}
.login-card > .eyebrow {
  color: var(--accent) !important;
}
.login-card h2 {
  margin: 7px 0;
  font-size: 25px;
}
.login-card > p:not(.eyebrow) {
  margin: 0 0 27px;
  color: #8f8999;
  font-size: 10px;
}
.login-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-card form > label {
  color: #5e586c;
  font-size: 9px;
  font-weight: 750;
}
.login-input {
  height: 47px;
  margin-top: 7px;
  padding: 0 13px;
  border: 1px solid #ded9e6;
  border-radius: 12px;
  color: #9a94a2;
  display: flex;
  align-items: center;
  gap: 9px;
}
.login-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}
.login-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
}
.login-input button {
  width: 25px;
  height: 25px;
  border: 0;
  background: transparent;
  color: #9993a2;
}
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.login-options label {
  color: #777181;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
}
.login-options input {
  accent-color: var(--accent);
}
.login-options a {
  color: var(--accent);
  font-size: 8px;
  font-weight: 700;
}
.login-button {
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--accent),
    color-mix(in srgb, var(--accent) 73%, #2e186f)
  );
  box-shadow: 0 12px 22px color-mix(in srgb, var(--accent) 25%, transparent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.login-help {
  margin: 24px 0 0 !important;
  text-align: center;
}
.login-help a {
  color: var(--accent);
}
.login-error {
  margin: 0 0 14px;
  padding: 10px;
  border-radius: 9px;
  background: #fff0f2;
  color: #ad4354;
  font-size: 9px;
}
@media (max-width: 1120px) {
  .metric-grid,
  .report-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }
  .flow-panel {
    display: none;
  }
  .request-form {
    grid-template-columns: 1fr;
  }
  .estimate-aside {
    position: static;
  }
  .estimate-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .estimate-head,
  .grand-total {
    grid-column: 1/-1;
  }
  .route-preview {
    border-left: 1px solid var(--line);
  }
  .form-actions {
    max-width: 430px;
    margin-left: auto;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .level-row {
    grid-template-columns:
      34px minmax(110px, 0.7fr) minmax(120px, 0.7fr)
      minmax(150px, 1fr) auto;
  }
  .level-row > .checkbox-row {
    display: none !important;
  }
}
@media (max-width: 820px) {
  .sidebar {
    width: 275px;
    transform: translateX(-105%);
    box-shadow: 25px 0 60px rgba(35, 25, 71, 0.16);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-close {
    display: block;
  }
  .menu-scrim {
    position: fixed;
    z-index: 35;
    inset: 0;
    border: 0;
    background: rgba(30, 23, 56, 0.4);
    backdrop-filter: blur(2px);
  }
  .menu-scrim.open {
    display: block;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .menu-button {
    display: grid;
  }
  .content {
    padding: 25px 18px 95px;
  }
  .selection-bar,
  .bulk-bar {
    left: 50%;
    width: calc(100vw - 36px);
  }
  .template-layout,
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .template-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .template-list > .panel-head {
    grid-column: 1/-1;
  }
  .settings-tabs {
    display: flex;
    overflow: auto;
  }
  .settings-tabs button {
    min-width: 150px;
  }
  .finance-hero {
    grid-template-columns: repeat(2, 1fr);
  }
  .finance-hero > div:last-child {
    display: none;
  }
  .login-page {
    padding: 24px;
    grid-template-columns: 0.9fr 390px;
  }
  .login-story {
    padding: 8px 5px;
  }
  .login-stats {
    gap: 25px;
  }
  .detail-grid,
  .cost-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .global-search {
    display: none;
  }
  .topbar:after {
    content: "Travel Approval Portal";
    flex: 1;
    margin-left: 10px;
    font-size: 12px;
    font-weight: 750;
  }
  .top-actions > .icon-button {
    display: none;
  }
  .profile-menu summary > span:last-child {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .button {
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 0;
  }
  .page-heading > .button:first-letter {
    font-size: 16px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading > div > p:last-child {
    max-width: 285px;
    line-height: 1.5;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric {
    min-height: 126px;
    padding: 14px;
    flex-direction: column;
    gap: 8px;
  }
  .metric > span {
    width: 31px;
    height: 31px;
  }
  .metric strong {
    position: absolute;
    right: 14px;
    top: 21px;
    font-size: 20px;
  }
  .request-row {
    min-height: 80px;
    padding: 11px 13px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }
  .request-row .trip,
  .request-row > strong,
  .request-row > i {
    display: none;
  }
  .request-row .status {
    grid-column: 3;
    grid-row: 1;
  }
  .mobile-nav {
    position: fixed;
    z-index: 32;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 66px;
    border: 1px solid rgba(226, 222, 237, 0.9);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 35px rgba(35, 27, 66, 0.14);
    backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
  }
  .mobile-nav a {
    color: #8f899b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 17px;
  }
  .mobile-nav span {
    font-size: 7px;
    font-weight: 650;
  }
  .mobile-nav .mobile-create {
    width: 48px;
    height: 48px;
    margin: -22px auto 0;
    border-radius: 16px;
    background: linear-gradient(
      145deg,
      var(--accent),
      color-mix(in srgb, var(--accent) 75%, #34177e)
    );
    color: #fff;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 30%, transparent);
    display: grid;
    place-items: center;
  }
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .toolbar select,
  .toolbar .button {
    width: 100%;
  }
  .toolbar-note {
    margin: 0;
  }
  .summary-grid,
  .summary-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .summary-grid article {
    min-height: 72px;
    padding: 12px;
  }
  .bulk-bar {
    bottom: 85px;
    grid-template-columns: 1fr auto auto;
  }
  .bulk-bar textarea {
    display: none;
  }
  .finance-hero {
    min-height: 190px;
    padding: 19px;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .finance-hero > div {
    border: 0 !important;
  }
  .finance-card {
    min-height: 110px;
    grid-template-columns: 1fr auto;
  }
  .finance-card > .person {
    grid-column: 1/-1;
  }
  .finance-card > .status {
    display: none;
  }
  .report-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .template-list {
    display: block;
  }
  .level-row {
    grid-template-columns: 34px 1fr;
  }
  .level-row > * {
    grid-column: 2;
  }
  .level-row > .level-number {
    grid-column: 1;
    grid-row: 1;
  }
  .level-row > .button {
    width: 100%;
  }
  .settings-panel {
    min-height: 0;
    padding: 17px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .form-grid.two,
  .form-grid.three {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: 1;
  }
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .create-heading {
    grid-template-columns: 40px 1fr;
  }
  .create-heading > span {
    display: none;
  }
  .estimate-card {
    display: block;
  }
  .route-preview {
    border-left: 0;
  }
  .form-actions {
    max-width: none;
  }
  .detail-hero {
    grid-template-columns: 1fr;
  }
  .detail-hero div {
    padding-bottom: 9px;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }
  .detail-aside {
    display: flex;
  }
  .login-page {
    min-height: 100svh;
    padding: 16px;
    display: flex;
    align-items: center;
  }
  .login-story {
    display: none;
  }
  .login-card {
    padding: 30px 23px;
    border-radius: 23px;
  }
  .mobile-login-brand {
    margin-bottom: 29px;
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .action-dialog {
    padding: 23px;
  }
  .data-table {
    min-width: 780px;
  }
}
.catalog-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.catalog-card {
  overflow: hidden;
}
.catalog-card.wide-card {
  grid-column: 1/-1;
}
.catalog-list {
  border-top: 1px solid var(--line);
}
.catalog-list > button {
  width: 100%;
  min-height: 62px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid #efecf2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.catalog-list > button:hover {
  background: #faf9ff;
}
.catalog-list span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.catalog-list b {
  font-size: 9.5px;
}
.catalog-list small {
  color: #9892a1;
  font-size: 8px;
}
.catalog-list i {
  padding: 5px 7px;
  border-radius: 7px;
  background: #e8f6eb;
  color: #4a945c;
  font-size: 7.5px;
  font-style: normal;
}
.rate-form {
  padding: 0 18px 18px;
}
.rate-form > div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr 0.8fr auto;
  gap: 10px;
  align-items: end;
}
.rate-form label {
  color: #696272;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 8px;
  font-weight: 750;
}
.rate-form input {
  width: 100%;
  min-height: 37px;
  padding: 7px 9px;
  border: 1px solid #dedae5;
  border-radius: 9px;
}
.option-groups {
  padding: 0 20px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.option-groups h3 {
  margin: 0 0 8px;
  font-size: 9px;
}
.option-groups section > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.option-groups section span {
  padding: 8px 9px;
  border-radius: 9px;
  background: #f7f5fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.5px;
}
.option-groups small {
  color: #59a56a;
  font-size: 7px;
}
@media (max-width: 820px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .catalog-card.wide-card {
    grid-column: 1;
  }
  .option-groups {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .rate-form > div {
    grid-template-columns: 1fr;
  }
  .option-groups {
    grid-template-columns: 1fr;
  }
}
.button.ghost {
  border-color: transparent;
  background: #f6f4fa;
  color: #746d80;
}
.button.ghost:hover {
  color: var(--accent);
  background: #f0edff;
}
.login-success {
  margin: 0 0 14px;
  padding: 10px;
  border-radius: 9px;
  background: #e8f6ec;
  color: #397f4d;
  font-size: 9px;
}
.password-page {
  min-height: 100vh;
  padding: 25px;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(244, 112, 171, 0.55),
      transparent 30%
    ),
    radial-gradient(
      circle at 82% 12%,
      rgba(57, 201, 196, 0.4),
      transparent 27%
    ),
    linear-gradient(135deg, #2e235f, #6751cf 55%, #4a2d8a);
  display: grid;
  place-items: center;
}
.password-card {
  max-width: 470px;
}
.password-card .mobile-login-brand {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.password-card .login-button {
  display: flex;
  align-items: center;
  justify-content: center;
}
.filter-panel {
  margin: 22px 0 15px;
  padding: 12px;
}
.filter-primary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 210px auto;
  gap: 9px;
  align-items: center;
}
.filter-primary .table-search {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dfdbe6;
  border-radius: 10px;
}
.filter-primary select,
.filter-grid input,
.filter-grid select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #dfdbe6;
  border-radius: 10px;
  background: #fff;
  color: #6c6578;
  font-size: 9px;
}
.advanced-filters {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}
.advanced-filters summary {
  padding: 12px 3px 2px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.advanced-filters summary span {
  margin-left: 6px;
  padding: 4px 7px;
  border-radius: 10px;
  background: #f0edff;
}
.filter-grid {
  padding: 14px 2px 5px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.filter-grid label {
  color: #6b6475;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 8px;
  font-weight: 750;
}
.filter-actions {
  padding: 10px 2px 2px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.pagination {
  padding: 14px 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8d8796;
  font-size: 9px;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pagination b {
  color: #625c6e;
}
.role-rights {
  margin-top: 20px;
  padding-bottom: 20px;
}
.role-right-grid {
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.role-right-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fcfbfe;
}
.role-right-card h3 {
  margin: 0 0 11px;
  font-size: 11px;
}
.role-right-card h3 small {
  margin-left: 5px;
  color: #9a94a3;
  font-size: 7px;
  font-weight: 600;
}
.role-right-card > div {
  max-height: 235px;
  margin-bottom: 12px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.role-right-card label {
  padding: 7px 8px;
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 7px;
  align-items: start;
}
.role-right-card input {
  accent-color: var(--accent);
}
.role-right-card span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.role-right-card b {
  font-size: 8px;
}
.role-right-card small {
  color: #9993a2;
  font-size: 7px;
}
.attachment-list {
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.attachment-list a {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: center;
}
.attachment-list a > span {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #eeeaff;
  color: var(--accent);
  display: grid;
  place-items: center;
}
.attachment-list a > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.attachment-list b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8.5px;
}
.attachment-list small {
  color: #9892a1;
  font-size: 7.5px;
}
@media (max-width: 1000px) {
  .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .filter-primary {
    grid-template-columns: 1fr 1fr;
  }
  .filter-primary .table-search {
    grid-column: 1/-1;
  }
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .role-right-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .filter-primary,
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .filter-primary .table-search {
    grid-column: 1;
  }
  .filter-actions,
  .pagination {
    align-items: stretch;
    flex-direction: column;
  }
  .pagination > div {
    justify-content: space-between;
  }
  .attachment-list {
    grid-template-columns: 1fr;
  }
  .role-right-grid {
    padding: 0 12px;
  }
}
.heading-actions {
  display: flex;
  gap: 8px;
}
.report-table-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.report-table-card {
  overflow: auto;
}
.report-table-card .data-table {
  min-width: 480px;
}
.resource-report {
  grid-column: 1/-1;
}
.option-item {
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 9px;
  background: #f7f5fa;
  display: grid;
  grid-template-columns: 1fr 25px;
  gap: 6px;
  align-items: center;
}
.option-item span {
  padding: 0 !important;
  background: transparent !important;
}
.option-item button {
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 7px;
  background: #eeeaff;
  color: var(--accent);
}
.template-meta {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
}
.template-meta > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.template-meta input[name="name"] {
  max-width: 460px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #dedae5;
  border-radius: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}
@media (max-width: 620px) {
  .template-meta {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .report-table-grid {
    grid-template-columns: 1fr;
  }
  .resource-report {
    grid-column: 1;
  }
}
@media (max-width: 620px) {
  .heading-actions {
    flex-direction: column;
  }
  .heading-actions .button {
    width: 42px;
    min-height: 36px;
    overflow: hidden;
    font-size: 0;
  }
  .heading-actions .button:first-letter {
    font-size: 15px;
  }
}
