:root {
  --navy: #10203e;
  --cream: #f7f3ed;
  --paper: #fff;
  --gold: #a2794d;
  --gold-light: #d9b06f;
  --ink: #10264b;
  --muted: #687187;
  --line: #e4ded5;
  --green: #3c7162;
  --soft: #f4eee6;
}
* {
  box-sizing: border-box;
}
html {
  font-size: 14px;
  background: var(--cream);
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  min-height: 100vh;
}
.auth-pending .sidebar,
.auth-pending main,
.auth-guest .sidebar,
.auth-guest main {
  display: none;
}
.login-screen {
  min-height: 100vh;
  padding: 32px 18px;
  display: none;
  place-items: center;
  background: linear-gradient(135deg, #f7f3ed 0%, #efe6da 100%);
}
.auth-pending .login-screen,
.auth-guest .login-screen {
  display: grid;
}
.auth-ready .login-screen {
  display: none;
}
.login-panel {
  width: min(440px, 100%);
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 38px;
  box-shadow: 0 22px 70px #10203e18;
}
.login-logo {
  display: block;
  width: 235px;
  max-width: 82%;
  margin: 0 auto 30px;
}
.login-logo img {
  display: block;
  width: 100%;
}
.login-eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 2px;
}
.login-panel h1 {
  margin: 0;
  font-size: 42px;
}
.login-copy {
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0 24px;
}
.login-panel form,
.login-panel label {
  display: grid;
  gap: 8px;
}
.login-panel form {
  gap: 15px;
}
.login-panel label {
  color: #667087;
  font-size: 11px;
}
.login-panel input {
  width: 100%;
  border: 1px solid #ded6cc;
  border-radius: 7px;
  padding: 13px;
  background: #fff;
}
.login-panel .primary {
  width: 100%;
  margin-top: 3px;
}
.login-error {
  min-height: 18px;
  margin: 0;
  color: #a33d3d;
  font-size: 12px;
}
.login-back {
  display: block;
  margin-top: 23px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.install-app-button {
  width: 100%;
  margin-top: 12px;
  border: 1px solid #d8cbbb;
  border-radius: 7px;
  padding: 11px 14px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}
.install-app-button:hover {
  border-color: var(--gold);
  color: #79552f;
}
.sidebar-actions {
  margin-left: auto;
  display: grid;
  gap: 6px;
}
.sidebar-install {
  width: auto;
  margin: 0;
  padding: 7px 9px;
  border-color: #ffffff30;
  background: transparent;
  color: #fff;
  font-size: 10px;
}
.install-dialog {
  width: min(470px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  color: var(--ink);
  background: #fffdfb;
  box-shadow: 0 24px 80px #10203e38;
}
.install-dialog::backdrop {
  background: #10203e99;
}
.install-dialog h2 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 31px;
}
.install-dialog ol {
  margin: 16px 0 22px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.65;
}
.install-dialog .primary {
  width: 100%;
}
.app-installed [data-install-app] {
  display: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c69254;
  outline-offset: 2px;
}
.sidebar {
  width: 245px;
  background: var(--navy);
  color: #fff;
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  padding: 34px 20px;
  display: flex;
  flex-direction: column;
}
.logo-card {
  height: 95px;
  background: #fffaf5;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 12px;
}
.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav-label {
  color: #9eabc1;
  font-size: 10px;
  letter-spacing: 2px;
  margin: 49px 14px 18px;
}
nav {
  display: grid;
  gap: 8px;
}
.nav-item {
  border: 0;
  background: none;
  color: #e0e6f0;
  padding: 14px 14px;
  width: 100%;
  min-height: 50px;
  border-radius: 9px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
}
.nav-item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  flex: 0 0 auto;
}
.nav-item span {
  line-height: 1.45;
}
.nav-item:hover,
.nav-item.active {
  background: #fff1;
  color: #ffd39a;
}
.nav-item.active:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e3b365;
  border-radius: 6px;
}
.sidebar-user {
  margin-top: auto;
  border-top: 1px solid #ffffff20;
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-account {
  min-width: 0;
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.sidebar-account:hover strong,
.sidebar-account:focus-visible strong {
  color: #ffd39a;
}
.avatar,
.session-button b {
  background: #ead8bd;
  color: #725333;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 11px;
  font-weight: 500;
  flex: 0 0 auto;
  background-size: cover;
  background-position: center;
}
.sidebar-user strong,
.sidebar-user small {
  display: block;
}
.sidebar-user strong {
  font-size: 13px;
  font-weight: 500;
}
.sidebar-user small {
  font-size: 10px;
  color: #aeb9cc;
  margin-top: 4px;
}
.logout-button {
  margin-left: auto;
  border: 1px solid #ffffff35;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  padding: 7px 10px;
  font-size: 11px;
}
.logout-button:hover,
.logout-button:focus-visible {
  border-color: #e3b365;
  color: #ffd39a;
}
.profile-photo-field {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.profile-preview {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ead8bd center/cover no-repeat;
  color: #725333;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.profile-photo-field input {
  width: 100%;
  font-size: 12px;
}
.password-guidance {
  color: #7b8292;
  font-size: 11px;
  line-height: 1.5;
  margin: -4px 0 14px;
}
main {
  margin-left: 245px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 75px;
  background: #fffdfb;
  display: flex;
  align-items: center;
  padding: 0 42px;
  border-bottom: 1px solid #eee9e2;
}
.topbar p {
  font-size: 12px;
  color: #7c8495;
  margin: 0;
}
.session-button {
  margin-left: auto;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #70798a;
  font-size: 12px;
}
.session-button i {
  width: 6px;
  height: 6px;
  background: #a7783e;
  border-radius: 50%;
}
.session-button b {
  margin-left: 15px;
  width: 30px;
  height: 30px;
  font-weight: 400;
}
.mobile-menu {
  display: none;
  border: 0;
  background: none;
  font-size: 22px;
  margin-right: 10px;
}
.demo-strip {
  height: 33px;
  background: #ede2d2;
  color: #865e34;
  font-size: 9px;
  letter-spacing: 0.35px;
  text-align: center;
  padding: 10px 15px;
}
.page {
  display: none;
  padding: 36px 72px 42px;
  flex: 1;
}
.page.active {
  display: block;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 29px;
}
.page-heading > div > small {
  display: block;
  color: #a16f42;
  letter-spacing: 2px;
  font-size: 10px;
  margin-bottom: 13px;
}
h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  color: #0c2a50;
}
.page-heading h1 {
  font-size: 42px;
  line-height: 1;
  margin: 0 0 11px;
  letter-spacing: -0.4px;
}
.page-heading p {
  margin: 0;
  color: #788094;
  font-size: 14px;
}
.primary,
.outline,
.light-button,
.square {
  border-radius: 7px;
  padding: 12px 17px;
  border: 1px solid var(--line);
  background: #fff;
}
.primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  font-weight: 500;
  min-height: 42px;
}
.primary:hover {
  background: #1a3157;
}
.outline:hover,
.light-button:hover {
  border-color: #b48c5b;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 27px;
}
.stats article,
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stats article {
  height: 143px;
  padding: 25px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.stats span {
  font-size: 12px;
  color: #747b8b;
}
.stats strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  color: #071f46;
  margin: 18px 0 2px;
  line-height: 0.9;
}
.stats small {
  font-size: 11px;
  color: #7d8493;
  margin-top: 7px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(310px, 1fr);
  gap: 25px;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 25px 22px;
}
.card-title h2 {
  margin: 0;
  font-size: 27px;
}
.card-title p {
  color: #748097;
  font-size: 11px;
  margin: 5px 0 0;
}
.day-card {
  min-height: 358px;
  padding: 0 24px 16px;
}
.day-card .card-title {
  padding-left: 0;
  padding-right: 0;
}
.today-row {
  display: grid;
  grid-template-columns: 92px 42px 1fr auto auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e9e3db;
  padding: 18px 0;
}
.today-row:last-child {
  border-bottom: 0;
}
.today-row time {
  display: grid;
  gap: 3px;
  font-size: 15px;
}
.today-row time small {
  color: #778095;
  font-size: 10px;
  font-weight: 500;
  margin: 0;
  text-transform: capitalize;
}
.today-row time strong {
  color: #071f46;
  font-size: 15px;
  font-weight: 500;
}
.client-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ead8bd;
  color: #745537;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.today-row strong,
.today-row small {
  display: block;
}
.today-row strong {
  font-weight: 500;
}
.today-row small {
  font-size: 11px;
  color: #778095;
  margin-top: 4px;
}
.tag {
  font-size: 9px;
  border-radius: 6px;
  padding: 6px 9px;
  background: #eaf2ed;
  color: #39715f;
}
.tag.pending {
  background: #fbedd9;
  color: #966b32;
}
.tiny {
  padding: 9px 12px;
  font-size: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.row-actions,
.table-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.table-actions {
  flex-wrap: wrap;
}
.danger-link {
  border: 1px solid #d6a3a0;
  border-radius: 6px;
  background: #fff;
  color: #9d3434;
  padding: 9px 12px;
  font-size: 11px;
}
.danger-link:hover {
  background: #fff4f3;
}
.overview-side {
  display: grid;
  gap: 22px;
}
.story-card {
  height: 264px;
  background: var(--navy);
  border-radius: 9px;
  color: #fff;
  padding: 27px 26px;
  position: relative;
  overflow: hidden;
}
.story-card small {
  letter-spacing: 2px;
  color: #cf8d58;
  font-size: 9px;
}
.story-card h2 {
  color: #f3c986;
  font-size: 28px;
  line-height: 1.15;
  margin: 17px 0 8px;
}
.story-card p {
  font-size: 12px;
  line-height: 1.55;
  width: 220px;
  margin: 0 0 15px;
}
.light-button {
  position: relative;
  z-index: 2;
  padding: 11px 15px;
  color: var(--navy);
}
.flower {
  position: absolute;
  width: 135px;
  height: 135px;
  right: -28px;
  bottom: -24px;
  opacity: 0.12;
  background: repeating-conic-gradient(
    from 0deg,
    #fff 0 12deg,
    transparent 12deg 45deg
  );
  border-radius: 50%;
}
.checklist {
  padding: 25px;
}
.checklist h2 {
  font-size: 25px;
  margin: 0 0 15px;
}
.checklist label {
  display: block;
  padding: 9px 0;
  color: #5f687a;
  font-size: 12px;
}
.client-card {
  padding: 25px;
  margin-top: 30px;
}
.client-tools {
  display: grid;
  grid-template-columns: 1fr 106px;
  gap: 12px;
  margin-bottom: 20px;
}
.client-tools input,
.client-tools select,
.client-select-label select,
.calendar-controls select {
  border: 1px solid #ded6cc;
  border-radius: 6px;
  background: #fff;
  padding: 12px 16px;
}
.client-table,
.finance-table {
  width: 100%;
  border-collapse: collapse;
}
.client-table th,
.finance-table th {
  text-align: left;
  background: #faf8f5;
  color: #687084;
  font-size: 10px;
  font-weight: 500;
  padding: 13px 9px;
}
.client-table td,
.finance-table td {
  padding: 17px 9px;
  border-bottom: 1px solid #e6dfd6;
}
.client-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.client-name .client-dot {
  background: #f0ece6;
  color: #85817b;
}
.client-name strong,
.client-name small {
  display: block;
}
.client-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dfd4c7;
  background: #f4eee6;
  flex: 0 0 auto;
}
.summary-person {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
}
.summary-person .client-photo,
.summary-person .client-dot {
  width: 56px;
  height: 56px;
}
.summary-person h2 {
  margin: 0;
}
.client-name strong {
  font-weight: 500;
}
.client-name small {
  font-size: 11px;
  color: #7c8494;
  margin-top: 4px;
}
.empty {
  display: none;
  text-align: center;
  color: #7a8190;
  padding: 30px;
}
.calendar-card {
  padding: 25px;
  margin-top: 30px;
}
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.calendar-controls strong {
  margin: 0 0 0 0;
  min-width: 110px;
}
.square {
  width: 47px;
  height: 42px;
  padding: 0;
  font-size: 18px;
}
.calendar-controls select {
  padding: 11px 15px;
}
.google-calendar-button {
  margin-left: auto;
  min-height: 42px;
  border: 1px solid #ded6cc;
  border-radius: 7px;
  background: #fff;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.google-calendar-button span {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #4285f4;
  color: #fff;
  font-weight: 600;
}
.google-calendar-button b {
  font-size: 11px;
  font-weight: 500;
}
.google-calendar-button.connected span {
  background: var(--green);
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
  border: 1px solid #ded6cc;
  border-radius: 8px;
  overflow: hidden;
  min-height: 285px;
}
.week-grid.day-view {
  display: block;
  min-height: 420px;
}
.day-timeline {
  min-width: 520px;
}
.hour-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  min-height: 58px;
  border-bottom: 1px solid #ebe5dd;
}
.hour-row:last-child {
  border-bottom: 0;
}
.hour-label {
  padding: 12px;
  color: #7a8291;
  font-size: 11px;
  border-right: 1px solid #ebe5dd;
}
.hour-content {
  padding: 7px 10px;
}
.calendar-entry.blocked {
  background: #ece9e6;
  border-left-color: #7b8290;
  color: #606876;
}
.calendar-empty {
  color: #9096a1;
  font-size: 11px;
  padding: 8px 2px;
}
.anamnese-dialog {
  width: min(780px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
}
.anamnese-dialog form {
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.anamnese-section {
  margin: 20px 0;
}
.anamnese-section h3 {
  color: var(--ink);
  font: 500 22px/1.2 "Cormorant Garamond", Georgia, serif;
  border-bottom: 1px solid #e6ded4;
  padding-bottom: 7px;
  margin: 0 0 10px;
}
.anamnese-details span {
  white-space: pre-wrap;
}
.anamnese-version {
  width: 100%;
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid #ded6cc;
  border-radius: 6px;
  background: #fff;
}
.day-column {
  border-right: 1px solid #ded6cc;
  padding: 12px 9px;
}
.day-column:last-child {
  border: 0;
}
.day-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #70798b;
  margin-bottom: 16px;
}
.calendar-entry {
  background: #f2ece3;
  border-left: 2px solid #ae7b3f;
  padding: 10px 8px;
  margin-bottom: 8px;
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.45;
}
.calendar-entry strong {
  display: block;
}
.calendar-delete {
  border: 0;
  background: none;
  color: #9d3434;
  font-size: 9px;
  padding: 6px 0 0;
  text-decoration: underline;
}
.calendar-note {
  font-size: 11px;
  color: #7a8394;
  margin: 17px 0 0;
}
.client-select-label {
  display: grid;
  gap: 7px;
  width: 132px;
  font-size: 11px;
  margin-bottom: 19px;
}
.client-select-label select {
  padding: 11px 14px;
}
.evolution-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  gap: 24px;
}
.history-card {
  min-height: 308px;
  padding: 26px 24px;
}
.history-card h2,
.client-summary h2,
.finance-card h2 {
  font-size: 27px;
  margin: 0 0 8px;
}
.history-empty {
  border-left: 2px solid #e9d6ba;
  height: 95px;
  display: grid;
  place-items: center;
  color: #788095;
  font-size: 14px;
}
.history-item {
  border-left: 2px solid #d3a05f;
  padding: 5px 18px 18px;
  margin-top: 18px;
}
.history-item small {
  color: #7b8292;
}
.history-item p {
  line-height: 1.55;
}
.client-summary {
  padding: 26px 25px;
  min-height: 308px;
}
.client-summary h3 {
  font-size: 12px;
  color: #7b8292;
  font-weight: 400;
  margin: 11px 0 18px;
}
.client-summary p {
  line-height: 1.5;
}
.anamnese-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}
.anamnese-details {
  display: grid;
  gap: 12px;
}
.anamnese-details div {
  border-bottom: 1px solid #eee8df;
  padding-bottom: 10px;
}
.anamnese-details strong,
.anamnese-details span {
  display: block;
}
.anamnese-details strong {
  color: #727b8d;
  font-size: 11px;
  font-weight: 400;
  margin-bottom: 4px;
}
.anamnese-details span {
  line-height: 1.5;
}
.notice {
  background: #f3efe9;
  padding: 13px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 24px;
}
.compact-heading {
  margin-bottom: 31px;
}
.finance-stats {
  margin-bottom: 28px;
}
.finance-card {
  padding: 27px 24px;
}
.finance-card h2 {
  margin-bottom: 23px;
}
.finance-table td {
  height: 77px;
}
.finance-main strong,
.finance-main small {
  display: block;
}
.finance-main small {
  font-size: 10px;
  color: #7c8392;
  margin-top: 5px;
}
.payment-progress {
  width: 170px;
  height: 8px;
  appearance: none;
  border: 0;
  border-radius: 6px;
  margin-top: 8px;
  overflow: hidden;
}
.payment-progress::-webkit-progress-bar {
  background: #ece7e0;
}
.payment-progress::-webkit-progress-value {
  background: #a9865c;
}
.payment-progress::-moz-progress-bar {
  background: #a9865c;
}
.register-payment {
  white-space: nowrap;
}
footer {
  border-top: 1px solid #e5dfd7;
  min-height: 68px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #969ba5;
  font-size: 9px;
  margin-top: auto;
}
dialog {
  border: 0;
  border-radius: 12px;
  padding: 0;
  width: min(480px, calc(100% - 30px));
  box-shadow: 0 25px 80px #0d1d3860;
}
dialog::backdrop {
  background: #0c173f66;
  backdrop-filter: blur(2px);
}
dialog form {
  padding: 30px;
  position: relative;
}
dialog h2 {
  font-size: 28px;
  margin: 0 0 7px;
}
dialog p {
  color: #727b8d;
  line-height: 1.5;
  margin: 0 0 20px;
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 12px;
  background: none;
  border: 0;
  font-size: 24px;
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 11px;
  color: #737b8a;
}
.field input,
.field select,
.field textarea {
  border: 1px solid #ded6cc;
  border-radius: 6px;
  padding: 11px;
  background: #fff;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
dialog menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 0 0;
  margin: 0;
}
.delete-warning {
  border: 1px solid #e1b9b5;
  border-radius: 7px;
  background: #fff5f4;
  color: #8b3030;
  padding: 13px;
  font-size: 12px;
}
.danger {
  border-color: #963b36;
  background: #963b36;
  color: #fff;
}
.delete-client-button {
  width: 100%;
  margin-top: 4px;
}
.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  padding: 13px 18px;
  border-radius: 7px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.25s;
}
.toast.show {
  opacity: 1;
  transform: none;
}
@media (max-width: 1050px) {
  .page {
    padding: 34px 38px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-grid,
  .evolution-grid {
    grid-template-columns: 1fr;
  }
  .overview-side {
    grid-template-columns: 1fr 1fr;
  }
  .week-grid {
    overflow: auto;
  }
  .table-scroll {
    overflow: auto;
  }
  .client-table,
  .finance-table {
    min-width: 800px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 0.25s;
  }
  .sidebar.open {
    transform: none;
  }
  main {
    margin-left: 0;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    padding: 0 18px;
  }
  .session-button span {
    display: none;
  }
  .page {
    padding: 27px 18px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-heading h1 {
    font-size: 36px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stats article {
    height: 132px;
    padding: 18px;
  }
  .stats strong {
    font-size: 30px;
  }
  .overview-side {
    grid-template-columns: 1fr;
  }
  .today-row {
    grid-template-columns: 82px 38px 1fr;
  }
  .today-row .tag,
  .today-row .row-actions {
    grid-column: 3;
    width: max-content;
  }
  .calendar-controls {
    flex-wrap: wrap;
  }
  .week-grid {
    grid-template-columns: repeat(7, 150px);
  }
  footer {
    padding: 20px;
    gap: 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 450px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .client-card,
  .calendar-card,
  .finance-card {
    padding: 14px;
  }
  .client-tools {
    grid-template-columns: 1fr;
  }
  .page-heading .primary {
    width: 100%;
  }
  .login-panel {
    padding: 28px 22px;
  }
  .login-panel h1 {
    font-size: 36px;
  }
}
