/* Mobile production pass — touch targets, native inputs and a readable day calendar. */
@media (max-width: 760px) {
  .topbar {
    padding-right: 14px;
    padding-left: 14px;
    gap: 8px;
  }
  .top-actions {
    flex: 1;
    min-width: 0;
    gap: 10px;
    justify-content: flex-end;
  }
  .mobile-menu {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    min-width: 32px;
    min-height: 36px;
    padding: 4px;
  }
  .searchbox {
    min-width: 0;
    flex: 1;
    max-width: 260px;
    padding: 8px 10px;
    gap: 7px;
  }
  .searchbox input {
    width: 100% !important;
    min-width: 0;
    font-size: 16px !important;
    padding: 0;
  }
  .searchbox svg {
    width: 15px;
    height: 15px;
  }
  .user {
    padding-right: 0;
    border-right: 0;
    flex-shrink: 0;
  }
  .icon-button {
    flex-shrink: 0;
    min-height: 32px;
    min-width: 30px;
    padding: 5px;
  }
  .user .avatar {
    width: 32px;
    height: 32px;
  }
  .sidebar-dismiss {
    height: 32px;
    width: 32px;
    left: 9px;
    top: 10px;
  }
  .page-heading h1 {
    font-size: 21px;
    line-height: 1.5;
    margin-bottom: 6px;
  }
  .page-heading p {
    line-height: 1.8;
  }
  .week-board.single-day {
    width: 100%;
    min-width: 0;
  }
  .single-day .week-heading,
  .single-day .week-body {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .single-day .calendar-event {
    border-radius: 6px;
  }
  .single-day .calendar-event > strong {
    font-size: 15px;
    line-height: 1.5;
  }
  .single-day .event-time {
    font-size: 12px;
  }
  .single-day .calendar-event > small {
    font-size: 12px;
  }
  .single-day .event-foot {
    font-size: 12px;
  }
  .single-day .is-tiny .calendar-event > strong {
    font-size: 14px;
  }
  .single-day .is-tiny .event-time {
    font-size: 12px;
  }
  .single-day .time-gutter > span {
    font-size: 12px;
  }
  .calendar-filterbar > select,
  .calendar-date-label > input,
  .calendar-patient-search {
    min-height: 39px;
  }
  .calendar-navigation > button {
    min-height: 30px;
    min-width: 28px;
  }
  .calendar-view-switch > button {
    min-height: 30px;
  }
  .profile-tabs button {
    min-height: 43px;
  }
  .patient-open {
    min-height: 40px;
  }
  .row-menu {
    min-height: 33px;
    padding: 7px 10px;
    font-size: 14px;
  }
  .close {
    width: 32px;
    height: 32px;
    padding: 0;
    display: grid;
    place-items: center;
    left: 12px;
    top: 9px;
  }
  .form-row label {
    min-width: 0;
  }
  input,
  select,
  textarea {
    font-size: 16px !important;
    min-width: 0;
  }
  label input,
  label select {
    min-height: 43px;
  }
  .calendar-patient-search {
    font-size: 16px !important;
  }
  .calendar-date-label > input {
    width: 100%;
    max-width: 100%;
  }
  .calendar-filterbar select {
    min-width: 0;
  }
  .appointment-filters input,
  .appointment-filters select {
    min-height: 41px;
  }
  .panel-title select {
    max-width: 45%;
    font-size: 14px !important;
  }
  #record-dialog,
  #booking {
    max-height: calc(100dvh - 28px);
  }
  .receipt-open {
    min-height: 34px;
  }
  .global-search-results .search-result {
    min-height: 53px;
  }
}
@media (max-width: 380px) {
  form .form-row {
    flex-direction: column;
    gap: 16px;
  }
  .panel-title {
    flex-wrap: wrap;
  }
  .searchbox {
    padding-right: 8px;
    padding-left: 8px;
  }
  .top-actions {
    gap: 8px;
  }
  .calendar-filterbar .calendar-date-label,
  .calendar-filterbar > select {
    width: 100%;
  }
  .calendar-view-switch {
    width: 100%;
    justify-content: center;
  }
  .calendar-view-switch > button {
    flex: 1;
  }
  .visit-account-mini b {
    font-size: 14px;
  }
  .receipt-amount strong {
    font-size: 24px;
  }
}

@media (max-width: 760px) {
  .month-daynames,
  .month-days {
    min-width: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .month-daynames > span {
    font-size: 12px;
    padding: 13px 1px;
  }
  .month-cell {
    min-height: 84px;
    padding: 5px 2px;
    cursor: pointer;
    position: relative;
  }
  .month-cell-top {
    gap: 0;
    justify-content: center;
    position: relative;
    margin-bottom: 3px;
  }
  .month-cell-top > button:first-child {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
  .month-cell .add-cell {
    display: none;
  }
  .month-cell .month-event,
  .month-cell .more-events {
    display: none;
  }
  .month-cell:not([data-count="0"]):after {
    content: attr(data-count);
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #daf2eb;
    border: 1px solid #c2e6da;
    color: #087568;
    font: 500 12px Manrope;
    margin: 7px auto 0;
  }
  .month-cell:focus-visible {
    outline: 2px solid #16c4b0;
    outline-offset: -2px;
  }
  .month-cell:hover {
    background: #f1faf7;
  }
}

@media (max-width: 760px) {
  .insight-stat .stat-value {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(17px, 5.5vw, 24px) !important;
  }
  .receipt-amount {
    flex-wrap: wrap;
  }
  .money-cell small,
  .account-metric small {
    font-family: inherit;
  }
}
