@import url("https://fonts.googleapis.com/css2?family=Assistant:wght@400;500;600;700&display=swap");

:root {
  --ink: #172544;
  --muted: #707070;
  --line: #e2e7f0;
  --surface: #ffffff;
  --canvas: #f4f6fa;
  --brand: #003383;
  --brand-2: #0755ac;
  --accent: #9cbd17;
  --green-soft: #f0f6d9;
  --blue-soft: #e7eff8;
  --amber-soft: #fbf0d4;
  --red-soft: #f8e5e3;
  --red: #ae3d36;
  --shadow: 0 16px 48px rgba(0, 51, 131, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Assistant", Arial, sans-serif;
  font-size: 14px;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(68, 131, 109, 0.22);
  outline-offset: 1px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: 24px;
}

h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

h3 {
  margin-bottom: 0;
  font-size: 16px;
}

.is-hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.brand-logo-box {
  display: flex;
  width: 132px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: white;
}

.brand-logo-box--large {
  width: 180px;
  height: 58px;
  margin-bottom: 48px;
  padding: 10px 14px;
  border-radius: 10px;
}

.brand-logo-box--sidebar {
  width: 84px;
  height: 34px;
  padding: 6px;
}

.brand-logo,
.mobile-brand-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.mobile-brand-logo {
  width: 126px;
}

.button,
.icon-button,
.profile-button,
.nav-item,
.text-button {
  border: 0;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 11px;
  font-weight: 700;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.button--primary {
  color: white;
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(0, 51, 131, 0.22);
}

.button--primary:hover {
  background: var(--brand-2);
}

.button--secondary {
  border: 1px solid var(--line);
  background: var(--surface);
}

.button--secondary:hover {
  border-color: #bdc9c4;
  background: #f8faf9;
}

.button--full {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.text-button {
  padding: 4px;
  color: var(--brand-2);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 1.1fr) minmax(420px, 0.9fr);
}

.login-brand {
  display: flex;
  overflow: hidden;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px clamp(50px, 8vw, 120px);
  color: white;
  background:
    radial-gradient(circle at 85% 12%, rgba(156, 189, 23, 0.25), transparent 24%),
    linear-gradient(145deg, #00235c, #003f99);
}

.login-brand::after {
  position: absolute;
  right: -14%;
  bottom: -17%;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(255, 255, 255, 0.035),
    0 0 0 110px rgba(255, 255, 255, 0.025);
  content: "";
}

.login-brand .eyebrow {
  color: var(--accent);
}

.login-brand h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.login-lead {
  max-width: 550px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.65;
}

.login-proof {
  display: flex;
  z-index: 1;
  max-width: 390px;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.proof-number {
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  font-weight: 700;
}

.login-panel {
  display: grid;
  padding: 40px;
  place-items: center;
  background: #f7f9f8;
}

.login-card {
  width: min(100%, 400px);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
}

.login-card h2 {
  font-size: 30px;
}

.login-card > .muted {
  margin-bottom: 28px;
}

.mobile-brand {
  display: none;
  align-items: center;
  margin-bottom: 36px;
  gap: 12px;
}

.mobile-brand strong {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

label {
  display: block;
  margin-bottom: 17px;
  color: #34413d;
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #dce3e0;
  border-radius: 10px;
  outline: none;
  background: white;
  font-size: 14px;
}

input,
select {
  height: 43px;
  padding: 0 12px;
}

textarea {
  min-height: 82px;
  padding: 12px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #9aa4a0;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 56px;
}

.password-field .icon-button {
  position: absolute;
  top: 10px;
  right: 4px;
  width: 45px;
  border: 0;
  color: var(--brand-2);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.login-help {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.form-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--red);
  font-size: 12px;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  width: 242px;
  position: fixed;
  z-index: 30;
  top: 0;
  bottom: 0;
  left: 0;
  flex-direction: column;
  padding: 24px 15px;
  color: white;
  background: linear-gradient(180deg, #003383 0%, #00245f 100%);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  padding: 0 9px 25px;
  gap: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand strong {
  display: block;
  font-size: 15px;
}

.sidebar-brand span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
}

.sidebar-nav {
  display: grid;
  margin-top: 24px;
  gap: 5px;
}

.nav-item {
  display: flex;
  min-height: 43px;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.nav-item:hover,
.nav-item.is-active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-icon {
  display: inline-grid;
  width: 24px;
  margin-right: 7px;
  place-items: center;
  font-size: 18px;
}

.nav-count {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 10px;
  color: var(--brand);
  background: var(--accent);
  font-size: 10px;
}

.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-card {
  display: flex;
  align-items: center;
  padding: 20px 8px 13px;
  gap: 10px;
}

.user-card strong,
.user-card span {
  display: block;
  overflow: hidden;
  max-width: 145px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card strong {
  font-size: 12px;
}

.user-card span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.user-avatar {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--brand);
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.user-avatar--small {
  width: 29px;
  height: 29px;
}

.nav-item--quiet {
  width: 100%;
}

.workspace {
  width: calc(100% - 242px);
  margin-left: 242px;
}

.topbar {
  display: flex;
  height: 80px;
  position: sticky;
  z-index: 20;
  top: 0;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.topbar h1 {
  font-size: 19px;
}

.topbar .eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-button {
  position: relative;
}

.notification-dot {
  width: 7px;
  height: 7px;
  position: absolute;
  top: 7px;
  right: 7px;
  border: 2px solid white;
  border-radius: 50%;
  background: #d7685f;
}

.profile-button {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 4px 9px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 8px;
  background: white;
  font-size: 12px;
  font-weight: 700;
}

.mobile-menu {
  display: none;
}

.content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 34px clamp(20px, 3vw, 42px) 60px;
}

.welcome-row,
.section-heading,
.panel-heading,
.form-section-heading,
.table-meta,
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.welcome-row {
  margin-bottom: 26px;
}

.welcome-row h2 {
  margin-bottom: 4px;
  font-size: 25px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.metric-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(21, 60, 50, 0.035);
}

.metric-card > span {
  display: block;
  margin: 14px 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.metric-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 28px;
}

.metric-card small {
  color: #98a19e;
  font-size: 10px;
}

.metric-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 800;
}

.metric-icon--green {
  color: #668000;
  background: var(--green-soft);
}

.metric-icon--blue {
  color: #376b9c;
  background: var(--blue-soft);
}

.metric-icon--amber {
  color: #a2711d;
  background: var(--amber-soft);
}

.metric-icon--red {
  color: var(--red);
  background: var(--red-soft);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  margin-top: 18px;
  gap: 18px;
}

.panel,
.table-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(21, 60, 50, 0.03);
}

.panel {
  min-height: 310px;
  padding: 22px;
}

.panel-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-heading .eyebrow {
  margin-bottom: 3px;
}

.funnel-chart {
  display: grid;
  padding: 20px 0 0;
  gap: 10px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 120px 1fr 34px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.funnel-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 8px;
  background: #edf1ef;
}

.funnel-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #003383, #9cbd17);
}

.action-list {
  padding-top: 8px;
}

.action-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.action-date {
  display: grid;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  color: var(--brand-2);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.action-item strong,
.action-item span {
  display: block;
}

.action-item strong {
  font-size: 12px;
}

.action-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.section-heading {
  margin-bottom: 22px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 190px auto;
  align-items: end;
  margin-bottom: 15px;
  gap: 10px;
}

.filter-bar select,
.search-field {
  height: 43px;
  margin: 0;
}

.search-field {
  display: flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid #dce3e0;
  border-radius: 11px;
  background: white;
  gap: 8px;
}

.search-field input {
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
}

.table-panel {
  overflow: hidden;
}

.table-meta {
  min-height: 55px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.table-meta strong {
  font-size: 13px;
}

.table-meta span {
  color: var(--muted);
  font-size: 11px;
}

.table-wrap {
  overflow-x: auto;
  position: relative;
  min-height: 390px;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th {
  padding: 12px 18px;
  color: #7d8783;
  background: #fafbfa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

td {
  height: 64px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: #f8faf9;
}

.company-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.company-initials {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--brand-2);
  background: var(--green-soft);
  font-size: 10px;
  font-weight: 800;
}

.company-cell strong,
.company-cell span,
.location-cell strong,
.location-cell span {
  display: block;
}

.company-cell strong {
  overflow: hidden;
  max-width: 260px;
  text-overflow: ellipsis;
}

.company-cell span,
.location-cell span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.stage-pill,
.priority-pill,
.owner-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.stage-pill {
  color: #4a5873;
  background: #eef1f6;
}

.stage-pill--active {
  color: #003383;
  background: var(--blue-soft);
}

.stage-pill--hot {
  color: #93651b;
  background: var(--amber-soft);
}

.stage-pill--won {
  color: #2d6c3f;
  background: #e4f2e8;
}

.stage-pill--lost {
  color: var(--red);
  background: var(--red-soft);
}

.row-action {
  color: var(--brand-2);
  font-weight: 800;
}

.table-loading {
  display: flex;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #dbe5e1;
  border-top-color: var(--brand-2);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.pagination {
  min-height: 57px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.pagination div {
  display: flex;
  gap: 7px;
}

.empty-state {
  display: grid;
  min-height: 290px;
  padding: 30px;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 13px;
  color: var(--brand-2);
  background: var(--green-soft);
  font-size: 20px;
}

.empty-state h3 {
  margin-bottom: 6px;
  color: var(--ink);
}

.empty-state p {
  margin: 0 0 16px;
}

.empty-state--compact {
  min-height: 210px;
}

.drawer-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(13, 28, 24, 0.32);
  backdrop-filter: blur(2px);
}

.lead-drawer {
  width: min(570px, 100vw);
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  bottom: 0;
  transform: translateX(105%);
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--canvas);
  box-shadow: -20px 0 50px rgba(17, 42, 34, 0.16);
  transition: transform 0.25s ease;
}

.lead-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  position: sticky;
  z-index: 2;
  top: 0;
  align-items: start;
  justify-content: space-between;
  padding: 24px 25px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.drawer-header h2 {
  max-width: 440px;
  margin-bottom: 4px;
}

.drawer-header p {
  margin-bottom: 0;
}

.drawer-content {
  padding: 18px;
}

.company-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  gap: 15px;
}

.company-summary span,
.company-summary strong {
  display: block;
}

.company-summary span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.company-summary strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
}

.contact-actions {
  display: flex;
  margin: 12px 0;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-link {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--brand-2);
  background: white;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.lead-form,
.timeline-section {
  margin-top: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.form-section-heading {
  margin-bottom: 16px;
}

.form-section-heading--spaced {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.owner-pill {
  color: var(--muted);
  background: #f0f2f1;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.timeline-section {
  margin-bottom: 25px;
}

.timeline {
  position: relative;
}

.timeline-item {
  position: relative;
  margin-left: 8px;
  padding: 0 0 18px 24px;
  border-left: 1px solid #d9e1de;
}

.timeline-item::before {
  width: 9px;
  height: 9px;
  position: absolute;
  top: 3px;
  left: -5px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 1px var(--brand-2);
  content: "";
}

.timeline-item strong {
  display: block;
  font-size: 12px;
}

.timeline-item small {
  display: block;
  margin: 3px 0 7px;
  color: var(--muted);
}

.timeline-item p {
  margin: 0;
  color: #4d5955;
  font-size: 12px;
  line-height: 1.5;
}

.timeline-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.timeline-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.timeline-action {
  padding: 4px 7px;
  border: 0;
  border-radius: 6px;
  color: var(--brand);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 700;
}

.timeline-action--delete {
  color: var(--red);
  background: var(--red-soft);
}

.action-item-content {
  min-width: 0;
  flex: 1;
}

.agenda-actions {
  display: flex;
  margin-left: auto;
  gap: 6px;
}

.modal-backdrop {
  position: fixed;
  z-index: 140;
  inset: 0;
  background: rgba(5, 28, 70, 0.42);
  backdrop-filter: blur(3px);
}

.interaction-modal {
  width: min(540px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  position: fixed;
  z-index: 150;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 26px 70px rgba(0, 32, 88, 0.24);
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  gap: 9px;
}

.toast-region {
  display: grid;
  width: min(370px, calc(100% - 32px));
  position: fixed;
  z-index: 200;
  top: 18px;
  right: 18px;
  gap: 9px;
}

.toast {
  padding: 13px 15px;
  border-left: 4px solid var(--brand-2);
  border-radius: 10px;
  color: white;
  background: #223b34;
  box-shadow: var(--shadow);
  animation: toast-in 0.25s ease;
}

.toast--error {
  border-left-color: #e47d74;
  background: #58302d;
}

@keyframes toast-in {
  from {
    transform: translateY(-8px);
    opacity: 0;
  }
}

@media (max-width: 1120px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filter-bar {
    grid-template-columns: 1fr 150px 180px;
  }

  .filter-bar .text-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 800px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-brand {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 20px;
  }

  .mobile-brand {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: 20px 0 50px rgba(8, 31, 24, 0.28);
  }

  .workspace {
    width: 100%;
    margin-left: 0;
  }

  .mobile-menu {
    display: grid;
  }

  .topbar {
    height: 72px;
    padding: 0 16px;
  }

  .topbar > div:nth-child(2) {
    margin-right: auto;
    margin-left: 12px;
  }

  .profile-button > span:not(.user-avatar) {
    display: none;
  }

  .content {
    padding: 24px 16px 50px;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 560px) {
  .login-card {
    padding: 28px 22px;
  }

  .welcome-row,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-grid,
  .filter-bar,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar .search-field,
  .filter-bar .text-button {
    grid-column: auto;
  }

  .company-summary {
    grid-template-columns: 1fr;
  }

  .drawer-header {
    padding: 19px;
  }

  .drawer-content {
    padding: 10px;
  }
}
