/* FlowDeskPOS app: phone and tablet layout (sidebar becomes a slide-over drawer) */
.fd-drawer { display: flex; flex: none; height: 100%; }
.fd-backdrop { display: none; }
.fd-main { flex: 1 1 0%; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.fd-topbar { display: none; }
@supports (height: 100dvh) { .fd-shell { height: 100dvh; } }

@media (max-width: 1023px) {
  .fd-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    height: auto;
    max-width: 86vw;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }
  .fd-drawer.fd-open { transform: translateX(0); box-shadow: 0 0 40px rgba(0, 0, 0, 0.5); }
  .fd-backdrop.fd-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(10, 6, 30, 0.55);
  }
  .fd-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
    padding: max(8px, env(safe-area-inset-top)) 12px 8px;
    color: #fff;
    background: #150e33;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .fd-menu-btn {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    cursor: pointer;
  }
  .fd-topbar-title { font-weight: 800; letter-spacing: -0.01em; font-size: 1rem; }
  .fd-content { padding: 12px !important; }
}

@media (max-width: 480px) {
  .fd-content { padding: 10px !important; }
}
