/* ============================================================
 *  MOBILE CSS — Clean, minimal list view (Height / Asana style)
 * ============================================================ */

/* ---------- Container ---------- */
.mobile-view {
  display: flex; flex-direction: column;
  height: 100dvh; background: var(--bg);
  position: relative;
}

/* ---------- Header ---------- */
.mobile-header {
  flex-direction: column; background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: var(--z-header);
}

.mobile-header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; height: 56px;
}

.mobile-header-title {
  font-size: 1.125rem; font-weight: 600;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}

.mobile-header-actions {
  display: flex; align-items: center; gap: 8px;
}

/* ---------- Search ---------- */
.mobile-search {
  padding: 0 16px 12px;
}
.mobile-search .input {
  background: var(--bg);
  border: 1px solid transparent;
}
.mobile-search .input:focus {
  background: var(--bg-surface);
  border-color: var(--border);
}

/* ---------- Filters & Sort ---------- */
.mobile-controls {
  display: flex; flex-direction: column;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 104px; /* header height */
  z-index: calc(var(--z-header) - 1);
}

.mobile-filters {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; padding: 12px 16px;
  scrollbar-width: none;
}
.mobile-filters::-webkit-scrollbar { display: none; }

.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-full);
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.8125rem; font-weight: 500;
  white-space: nowrap; transition: all var(--t-fast);
}
.filter-chip .count {
  background: var(--bg); padding: 2px 6px;
  border-radius: 10px; font-size: 0.75rem;
}
.filter-chip.active {
  background: var(--accent); color: var(--text-inverse);
  border-color: var(--accent);
}
.filter-chip.active .count {
  background: rgba(255,255,255,0.2); color: var(--text-inverse);
}

.mobile-sort {
  padding: 0 16px 12px;
}
.mobile-sort .select {
  background: transparent; border: none; padding: 0; box-shadow: none;
  font-size: 0.8125rem; color: var(--text-secondary); font-weight: 500;
  width: auto; background-position: right center; padding-right: 16px;
}

/* ---------- List ---------- */
.mobile-list {
  flex: 1; overflow-y: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
  padding-bottom: 80px; /* space for FAB */
}

/* ---------- Order Card ---------- */
.mobile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  transition: border-color var(--t-fast);
}
.mobile-card:active {
  background: var(--bg-hover);
}

.mobile-card-row1 {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.mobile-card-name {
  font-weight: 500; color: var(--text-primary);
  font-size: 0.9375rem; line-height: 1.3;
}
.mobile-card-status {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 4px;
  font-size: 0.6875rem; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--status-bg, var(--border));
  color: var(--status-fg, var(--text-secondary));
}

.mobile-card-row2 {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8125rem; color: var(--text-secondary);
}
.mobile-card-client {
  display: flex; align-items: center; gap: 4px;
}
.mobile-card-priority { display: flex; align-items: center; }

.mobile-card-row3 {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px; padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem;
}
.mobile-action-btn {
  color: var(--text-secondary);
  font-weight: 500; font-size: 0.8125rem;
}
.mobile-card-meta { display: flex; gap: 12px; color: var(--text-secondary); }

/* ---------- Floating Action Button ---------- */
.fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 28px; background: var(--accent); color: var(--text-inverse);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  z-index: var(--z-header);
  transition: transform var(--t-fast) var(--ease-spring);
}
.fab:active { transform: scale(0.92); }
.fab svg { width: 24px; height: 24px; }

/* ---------- Bottom Sheet Modal (Status Picker) ---------- */
.bottom-sheet {
  position: fixed; inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(2px);
  z-index: var(--z-modal);
  display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-base);
}
.bottom-sheet.active { opacity: 1; visibility: visible; }

.bottom-sheet-content {
  background: var(--bg-surface);
  border-top-left-radius: var(--r-xl);
  border-top-right-radius: var(--r-xl);
  padding: 24px 16px;
  transform: translateY(100%);
  transition: transform var(--t-base) var(--ease-spring);
}
.bottom-sheet.active .bottom-sheet-content { transform: translateY(0); }

.bottom-sheet-title {
  font-size: 1rem; font-weight: 600;
  margin-bottom: 16px; color: var(--text-primary);
  text-align: center;
}

.bottom-sheet-options {
  display: flex; flex-direction: column; gap: 8px;
}
.bottom-sheet-btn {
  width: 100%; padding: 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.9375rem; font-weight: 500; color: var(--text-primary);
  text-align: center; transition: background var(--t-fast);
}
.bottom-sheet-btn:active { background: var(--border); }
