@media (min-width: 1024px) {
  :root {
    --desktop-sidebar: 248px;
    background: #eef2f7;
  }

  body {
    background: #eef2f7;
    overflow: hidden;
  }

  .app-shell:not(.login-shell) {
    background: #eef2f7;
    display: block;
    min-height: 100dvh;
    padding: 0;
  }

  .app-shell:not(.login-shell) .phone-frame {
    background: #f5f7fb;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    width: 100%;
  }

  .app-shell:not(.login-shell) .status-space,
  .app-shell:not(.login-shell) .bottom-nav {
    display: none !important;
  }

  .app-shell:not(.login-shell) .screen-content {
    height: 100dvh;
    margin-left: var(--desktop-sidebar);
    overflow: auto;
    padding: 0;
    scrollbar-width: thin;
  }

  .app-shell:not(.login-shell) .screen-content > .page {
    margin: 0 auto;
    max-width: 1500px;
    min-height: 100%;
    padding: 28px 32px 42px;
    position: relative;
  }

  .app-shell:not(.login-shell) :is(h1, h2, h3, strong, span, small, p, button, input, select, textarea) {
    letter-spacing: 0 !important;
  }

  .desktop-nav {
    background: #fff;
    border-right: 1px solid #dce3ec;
    bottom: 0;
    display: flex;
    flex-direction: column;
    left: 0;
    padding: 22px 16px 18px;
    position: fixed;
    top: 0;
    width: var(--desktop-sidebar);
    z-index: 60;
  }

  .desktop-nav[hidden] {
    display: none;
  }

  .desktop-brand {
    border-bottom: 1px solid #e7ebf1;
    display: grid;
    gap: 4px;
    justify-items: center;
    margin: 0 4px 22px;
    padding: 0 4px 18px;
  }

  .desktop-brand img {
    display: block;
    height: 64px;
    object-fit: contain;
    width: 176px;
  }

  .desktop-brand span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
  }

  .desktop-nav-list {
    display: grid;
    gap: 6px;
  }

  .desktop-nav-button {
    align-items: center !important;
    background: transparent !important;
    border-radius: 8px !important;
    color: #64748b !important;
    display: grid !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    gap: 12px !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    justify-items: start !important;
    min-height: 50px;
    padding: 0 14px !important;
    position: relative;
    text-align: left;
    width: 100%;
  }

  .desktop-nav-button:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
  }

  .desktop-nav-button.active {
    background: #eaf2ff !important;
    color: #1d4ed8 !important;
  }

  .desktop-nav-button.active::before {
    background: #2563eb;
    border-radius: 0 4px 4px 0;
    content: '';
    height: 26px;
    left: -16px;
    position: absolute;
    top: 12px;
    width: 4px;
  }

  .desktop-nav-button svg {
    height: 20px;
    width: 20px;
  }

  .desktop-nav-button .sale-dot {
    background: #f97316;
    border-radius: 50%;
    height: 6px;
    left: 32px;
    position: absolute;
    top: 10px;
    width: 6px;
  }

  .desktop-account {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #0f172a;
    display: grid;
    gap: 9px;
    grid-template-columns: 38px minmax(0, 1fr) 14px;
    margin-top: auto;
    min-height: 58px;
    padding: 9px;
    text-align: left;
    width: 100%;
  }

  .desktop-account-avatar {
    background: #dbeafe;
    border-radius: 8px;
    color: #1d4ed8;
    display: grid;
    font-size: 11px;
    font-weight: 900;
    height: 38px;
    place-items: center;
    width: 38px;
  }

  .desktop-account-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .desktop-account-copy strong,
  .desktop-account-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-account-copy strong {
    font-size: 12px;
  }

  .desktop-account-copy small {
    color: #64748b;
    font-size: 10px;
  }

  .desktop-account-arrow {
    color: #94a3b8;
    font-size: 20px;
  }

  .top-header,
  .page-header,
  .sale-header,
  .detail-header {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 18px;
    min-height: 68px;
    padding: 11px 16px;
  }

  h1 {
    font-size: 25px;
  }

  .round-icon,
  .back-button,
  .avatar,
  .search-box,
  .period-chip,
  .filter-chip,
  .category-chip,
  .category-manager,
  .category-card,
  .product-row,
  .pos-product-card,
  .invoice-row,
  .invoice-summary,
  .more-card,
  .action-card,
  .setting-row,
  .inventory-row,
  .rr-list,
  .rr-summary,
  .store-card,
  .user-row-v2,
  .users-search,
  .users-stat-strip,
  .permission-summary-v2 {
    border-radius: 8px !important;
  }

  .hd-home-redesigned {
    background: transparent;
    padding: 28px 32px 42px !important;
  }

  .hd-home-v2 {
    gap: 16px;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .9fr);
  }

  .hd-home-head,
  .hd-stat-row {
    grid-column: 1 / -1;
  }

  .hd-home-head {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-height: 70px;
    padding: 11px 16px;
  }

  .hd-home-head h1 {
    font-size: 24px;
  }

  .hd-revenue-panel {
    border-radius: 8px;
    grid-column: 1;
    min-height: 245px;
    padding: 23px;
  }

  .hd-revenue-panel > strong {
    font-size: 38px;
  }

  .hd-periods {
    align-content: start;
    align-self: stretch;
    border-radius: 8px;
    grid-column: 2;
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .hd-periods button {
    border-radius: 6px;
    font-size: 12px;
    min-height: 42px;
    text-align: left;
    padding: 0 14px;
  }

  .hd-stat-row {
    gap: 16px;
  }

  .hd-mini-stat,
  .hd-board {
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
  }

  .hd-mini-stat {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 16px;
  }

  .hd-mini-stat i {
    grid-row: 1 / span 3;
  }

  .hd-mini-stat strong {
    font-size: 20px;
  }

  .hd-board {
    min-width: 0;
    padding: 18px;
  }

  .hd-notification-popover {
    border-radius: 8px;
    min-width: 380px;
  }

  .category-card-list,
  .category-card-list.large-icons {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }

  .category-card-list.large-icons .category-card {
    min-height: 126px;
  }

  .product-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .sale-page .pos-grid {
    gap: 12px !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  }

  .invoice-list,
  .users-list-v2,
  .inventory-table {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  }

  .more-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .more-card {
    min-height: 150px;
  }

  .rr-summary {
    min-height: 82px;
  }

  .rr-summary strong {
    font-size: 16px;
  }

  .rr-summary-revenue strong {
    font-size: 22px;
  }

  .rr-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  }

  .rr-row + .rr-row {
    border-left: 1px solid #edf1f6;
    border-top: 0;
  }

  .rr-row {
    min-height: 92px;
    padding: 14px;
  }

  .store-settings-v2,
  .users-v2,
  .revenue-report-v2,
  .customers-management-v2:not(.sheet-layer) {
    margin-inline: auto;
    max-width: 1200px;
    width: 100%;
  }

  .customers-management-v2:not(.sheet-layer) > .simple-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  }

  .customers-management-v2:not(.sheet-layer) .customer-row {
    margin-bottom: 0 !important;
  }

  .product-page .fab {
    bottom: 28px !important;
    right: 32px !important;
  }

  .cart-float {
    bottom: 24px;
    left: calc(var(--desktop-sidebar) + 32px);
    margin-left: auto;
    max-width: 520px;
    right: 32px;
  }

  .sheet-layer {
    align-items: center;
    padding: 32px;
  }

  .sheet {
    border-radius: 8px;
    max-height: calc(100dvh - 64px);
    width: min(760px, calc(100vw - 96px));
  }

  .sheet-handle {
    display: none;
  }

  .sheet-header {
    padding: 14px 18px;
  }

  .sheet-content {
    padding: 18px;
  }

  .customers-management-v2.sheet-layer > .sheet {
    border-radius: 8px !important;
    margin: auto !important;
    width: min(760px, calc(100vw - 96px)) !important;
  }

  .user-sheet {
    border-radius: 8px;
    bottom: auto;
    left: 50%;
    max-height: calc(100dvh - 64px);
    padding: 22px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(820px, calc(100vw - 96px));
  }

  .user-editor-grid,
  .user-permission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sale-bill {
    border-radius: 8px;
    margin-inline: auto;
    max-width: 620px;
  }

  .login-shell {
    background: #eef2f7;
    padding: 32px;
  }

  .login-frame {
    border-radius: 8px;
    min-height: 620px;
    width: min(100%, 480px);
  }
}

@media (min-width: 1280px) {
  .product-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sale-page .pos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .store-settings-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-settings-v2 > :first-child,
  .store-settings-v2 > :last-child {
    grid-column: 1 / -1;
  }
}
