/* --- Ground Up FlipBoard Styles v2 --- */



:root {



  --board-bg: #f9f9fb;



  --dry-erase-white: #ffffff;



  --marker-black: #1f2937;



  --marker-red: #ef4444;



  --marker-yellow: #f59e0b;



  --marker-green: #10b981;



  --marker-blue: #3b82f6;



  --marker-purple: #8b5cf6;



  



  --rule-color: rgba(59, 130, 246, 0.12);



  --rule-spacing: 60px;



  



  --font-hand: 'Patrick Hand', cursive;



  --font-sans: 'Inter', sans-serif;



}







* {



  box-sizing: border-box;



  margin: 0;



  padding: 0;



}







body {



  font-family: var(--font-sans);



  background-color: #d1d5db; /* gray border around board */



  color: var(--marker-black);



  height: 100vh;



  overflow: hidden;



  display: flex;



  justify-content: center;



  align-items: center;



}







/* Whiteboard container */



.whiteboard {



  width: 100vw;



  height: 100vh;



  background-color: var(--dry-erase-white);



  border: 12px solid #374151; /* aluminum frame */



  box-shadow: inset 0 0 10px rgba(0,0,0,0.15), 0 10px 25px rgba(0,0,0,0.3);



  position: relative;



  display: flex;



  flex-direction: column;



}







/* Header */



.board-header {



  padding: 12px 24px;



  border-bottom: 2px solid #e5e7eb;



  display: flex;



  justify-content: space-between;



  align-items: center;



  user-select: none;



  background: white;



  z-index: 10;



  flex-wrap: wrap;



  gap: 12px;



}







.board-title-area {



  display: flex;



  align-items: center;



  gap: 12px;



}







.board-logo {



  font-size: 28px;



}







.board-title-group {



  display: flex;



  align-items: center;



  gap: 14px;



}







.board-title {



  font-family: var(--font-hand);



  font-size: 32px;



  font-weight: 700;



  color: var(--marker-black);



  cursor: pointer;



}







.board-date {



  font-family: var(--font-sans);



  font-size: 14px;



  font-weight: 600;



  color: #6b7280;



  border-left: 1px solid #e5e7eb;



  padding-left: 12px;



}







.board-page-nav {



  display: flex;



  align-items: center;



  gap: 4px;



  border-left: 1px solid #e5e7eb;



  padding-left: 12px;



}







.page-indicator-text {



  font-size: 13px;



  font-weight: 600;



  color: #4b5563;



  padding: 0 4px;



}







.board-controls {



  display: flex;



  gap: 8px;



  align-items: center;



  flex-wrap: wrap;



}







.mode-toggle-group {



  display: flex;



  background: #f1f5f9;



  padding: 4px;



  border-radius: 12px;



  border: 1px solid #cbd5e1;



  gap: 4px;



}







.mode-toggle-btn {



  border: none;



  background: transparent;



  padding: 8px 18px;



  font-size: 14px;



  font-weight: 600;



  border-radius: 9px;



  color: #475569;



  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);



  cursor: pointer;



  display: flex;



  align-items: center;



  gap: 6px;



}







.mode-toggle-btn:hover {



  background: #e2e8f0;



  color: #0f172a;



}







#header-draw-btn.active {



  background: #3b82f6 !important;



  color: #ffffff !important;



  font-weight: 700;



  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);



  transform: translateY(-1px);



}







#header-type-btn.active {



  background: #1e293b !important;



  color: #ffffff !important;



  font-weight: 700;



  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.35);



  transform: translateY(-1px);



}







#header-erase-btn.active {



  background: #ef4444 !important;



  color: #ffffff !important;



  font-weight: 700;



  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);



  transform: translateY(-1px);



}







.btn {



  background: white;



  border: 1px solid #d1d5db;



  padding: 8px 16px;



  border-radius: 8px;



  cursor: pointer;



  font-size: 14px;



  font-weight: 500;



  display: flex;



  align-items: center;



  gap: 6px;



  transition: all 0.2s;



}







.btn:hover {



  background: #f3f4f6;



  border-color: #9ca3af;



}







.btn-icon {



  padding: 1px 4px;



  min-height: 24px;



  border: none;



  background: transparent;



}







.btn-primary {



  background: var(--marker-black);



  color: white;



  border-color: var(--marker-black);



}







.btn-primary:hover {



  background: #374151;



  border-color: #374151;



}







/* Notebook lined pattern page area */



.board-page-container {



  flex: 1;



  overflow-y: auto;



  overflow-x: hidden;



  position: relative;



  background-color: #cbd5e1; /* clean contrast backing board color */



  padding: 20px 0 160px 0;



  -webkit-overflow-scrolling: touch;



  scroll-behavior: smooth;



}







.page-section {



  position: relative;



  min-height: 1400px;



  background-color: var(--dry-erase-white);



  background-image: linear-gradient(to bottom, transparent 59px, rgba(59, 130, 246, 0.16) 60px);



  background-size: 100% 60px;



  border-radius: 16px;



  margin: 0 auto 40px auto;



  width: 98%;



  max-width: 1450px;



  box-shadow: 0 12px 40px rgba(0,0,0,0.14);



  padding-bottom: 80px;



  overflow: hidden;



}







.page-section::before {



  content: '';



  position: absolute;



  top: 0;



  bottom: 0;



  left: 60px;



  width: 2px;



  background-color: rgba(239, 68, 68, 0.4); /* Red notebook left margin line */



  z-index: 2;



  pointer-events: none;



}







/* In Employee View Tab: hide secondary page sections and drawing canvas for clean single-board view */



.tab-view-employee .page-section:not(:first-child) {



  display: none !important;



}



.tab-view-employee .page-separator {



  display: none !important;



}







/* Lined list items */



.task-list {



  list-style: none;



  position: relative;



  z-index: 10;



}







.task-line {



  position: relative;



  z-index: 10;



  min-height: var(--rule-spacing);



  height: auto;



  display: flex;



  align-items: center;



  justify-content: space-between;



  border-bottom: 1px dashed rgba(59, 130, 246, 0.22);



  background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white so notebook rules & canvas drawings show through nicely */



  font-family: var(--font-hand);



  font-size: 28px;



  font-weight: 600;



  padding: 10px 18px 10px 75px; /* Offset text to start cleanly after the red notebook margin line */



  cursor: pointer;



  user-select: none;



  transition: background-color 0.2s;



}







.task-line:hover {



  background-color: #f1f5f9;



}







.task-left {



  display: flex;



  align-items: center;



  gap: 15px;



  flex: 1;



  min-width: 0;



}







.task-num {



  color: #6b7280;



  font-family: var(--font-sans);



  font-size: 16px;



  font-weight: 700;



  min-width: 30px;



  flex-shrink: 0;



}







.task-text-content {



  white-space: normal;



  word-break: break-word;



  overflow-wrap: break-word;



  line-height: 1.35;



  font-size: 28px;



  font-weight: 600;



  color: #0f172a;



  flex: 1;



}







/* Hide drawing canvas overlay in Employee and Completed tabs to prevent misaligned ink */



.tab-view-employee .drawing-container,



.tab-view-completed .drawing-container {



  display: none !important;



}







.task-check-btn {



  width: 26px;



  height: 26px;



  border-radius: 7px;



  border: 2px solid #94a3b8;



  background: #ffffff;



  display: flex;



  align-items: center;



  justify-content: center;



  font-size: 16px;



  font-weight: 900;



  color: #ffffff;



  cursor: pointer;



  flex-shrink: 0;



  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);



  margin-right: 4px;



  user-select: none;



  padding: 0;



}







.task-check-btn:hover {



  border-color: #10b981;



  background: #f0fdf4;



  transform: scale(1.12);



}







.task-check-btn.checked {



  background: #10b981;



  border-color: #10b981;



  color: #ffffff;



}







.task-right {



  display: flex;



  align-items: center;



  gap: 20px;



  flex-shrink: 0;



}







.task-assignee {



  color: #334155;



  font-size: 17px;



  font-weight: 600;



  margin-right: 12px;



}







.priority-dot {



  width: 20px;



  height: 20px;



  border-radius: 50%;



  box-shadow: 0 2px 8px rgba(0,0,0,0.2);



  border: 2px solid #ffffff;



  flex-shrink: 0;



}







.prio-urgent { background-color: var(--marker-red); }



.prio-normal { background-color: var(--marker-yellow); }



.prio-low { background-color: var(--marker-green); }







/* Completed task styling: strikethrough in Full & Employee views */



.task-line.done .task-text-content {



  text-decoration: line-through;



  color: #64748b;



  opacity: 0.7;



}







/* Clean text WITHOUT strikethrough when viewing in Completed tab */



.task-line.in-completed-tab .task-text-content {



  text-decoration: none !important;



  color: #0f172a !important;



  opacity: 1 !important;



}







.task-line.done .task-assignee {



  color: #9ca3af;



}







/* Sidebar folders panel */



.sidebar {



  position: absolute;



  top: 0;



  left: -320px;



  width: 320px;



  height: 100%;



  background: white;



  box-shadow: 5px 0 15px rgba(0,0,0,0.1);



  z-index: 100;



  transition: left 0.3s ease;



  display: flex;



  flex-direction: column;



}







.sidebar.open {



  left: 0;



}







.sidebar-header {



  padding: 20px;



  border-bottom: 1px solid #e5e7eb;



  display: flex;



  justify-content: space-between;



  align-items: center;



}







.sidebar-title {



  font-size: 18px;



  font-weight: 600;



}







.sidebar-content {



  flex: 1;



  overflow-y: auto;



  padding: 15px;



}







.folder-item {



  padding: 12px 15px;



  border: 1px solid #e5e7eb;



  border-radius: 8px;



  margin-bottom: 10px;



  cursor: pointer;



  transition: all 0.2s;



}







.folder-item:hover {



  background: #f9fafb;



}







.folder-item.active {



  background: #eff6ff;



  border-color: #3b82f6;



}







.folder-title {



  font-weight: 600;



  font-size: 15px;



}







.folder-meta {



  font-size: 12px;



  color: #6b7280;



  margin-top: 4px;



}







/* Canvas drawing overlay */



.drawing-container {



  position: absolute;



  top: 0;



  left: 0;



  width: 100%;



  height: 100%;



  z-index: 5;



  pointer-events: none; /* let clicks pass through when drawing is inactive */



}







.drawing-container.active {



  pointer-events: auto;



}







#paint-canvas, .page-canvas {



  width: 100%;



  height: 100%;



  display: block;



  touch-action: none; /* critical for pointer events on touch devices */



}







/* ==================== */



/* Expandable FAB       */



/* ==================== */



.fab-container {



  position: fixed;



  top: 50%;



  right: 28px;



  transform: translateY(-50%);



  z-index: 60;



  display: flex;



  flex-direction: column-reverse;



  align-items: center;



  gap: 12px;



}







.fab-main {



  width: 60px;



  height: 60px;



  border-radius: 50%;



  background: linear-gradient(135deg, var(--marker-black) 0%, #4b5563 100%);



  color: white;



  border: none;



  cursor: pointer;



  display: flex;



  align-items: center;



  justify-content: center;



  box-shadow: 0 6px 20px rgba(0,0,0,0.3);



  transition: transform 0.3s ease, box-shadow 0.3s ease;



}







.fab-main:hover {



  transform: scale(1.08);



  box-shadow: 0 8px 25px rgba(0,0,0,0.4);



}







.fab-main.active {



  background: linear-gradient(135deg, var(--marker-blue) 0%, #2563eb 100%);



  transform: rotate(45deg);



}







.fab-main .material-icons {



  font-size: 28px;



  transition: transform 0.3s ease;



}







.fab-actions {



  display: flex;



  flex-direction: column;



  gap: 10px;



  opacity: 0;



  transform: translateY(20px) scale(0.8);



  pointer-events: none;



  transition: opacity 0.25s ease, transform 0.25s ease;



}







.fab-actions.open {



  opacity: 1;



  transform: translateY(0) scale(1);



  pointer-events: auto;



}







.fab-action-btn {



  width: 48px;



  height: 48px;



  border-radius: 50%;



  background: white;



  border: 1px solid #e5e7eb;



  cursor: pointer;



  display: flex;



  align-items: center;



  justify-content: center;



  box-shadow: 0 4px 10px rgba(0,0,0,0.12);



  transition: all 0.2s ease;



}







.fab-action-btn:hover {



  transform: scale(1.1);



  box-shadow: 0 6px 15px rgba(0,0,0,0.2);



}







.fab-action-btn .material-icons {



  font-size: 22px;



  color: var(--marker-black);



}







.fab-action-btn.fab-danger .material-icons {



  color: var(--marker-red);



}







/* ==================== */



/* Star Rating          */



/* ==================== */



.star-rating {



  display: flex;



  align-items: center;



  gap: 4px;



  user-select: none;



}







.star-rating .star {



  font-size: 28px;



  cursor: pointer;



  filter: grayscale(100%);



  opacity: 0.3;



  transition: all 0.15s ease;



}







.star-rating .star.active {



  filter: grayscale(0%);



  opacity: 1;



  transform: scale(1.1);



}







.star-rating .star:hover {



  filter: grayscale(0%);



  opacity: 0.8;



  transform: scale(1.15);



}







.star-hint {



  font-size: 12px;



  color: #6b7280;



  margin-left: 8px;



  font-weight: 500;



}







/* ==================== */



/* Share Dropdown       */



/* ==================== */



.share-dropdown {



  position: fixed;



  top: 70px;



  right: 30px;



  background: white;



  border: 1px solid #e5e7eb;



  border-radius: 12px;



  box-shadow: 0 10px 25px rgba(0,0,0,0.15);



  z-index: 300;



  padding: 8px;



  opacity: 0;



  pointer-events: none;



  transform: translateY(-10px);



  transition: all 0.2s ease;



}







.share-dropdown.open {



  opacity: 1;



  pointer-events: auto;



  transform: translateY(0);



}







.share-option {



  display: flex;



  align-items: center;



  gap: 10px;



  width: 100%;



  padding: 12px 16px;



  border: none;



  background: transparent;



  font-size: 14px;



  font-weight: 500;



  cursor: pointer;



  border-radius: 8px;



  transition: background 0.15s;



  font-family: var(--font-sans);



  color: var(--marker-black);



}







.share-option:hover {



  background: #f3f4f6;



}







/* Modals and input forms */



.modal {



  position: fixed;



  top: 0;



  left: 0;



  width: 100vw;



  height: 100vh;



  background: rgba(0, 0, 0, 0.45);



  display: flex;



  justify-content: center;



  align-items: flex-start;



  z-index: 1000;



  opacity: 0;



  pointer-events: none;



  transition: opacity 0.2s ease;



  overflow-y: auto;



  -webkit-overflow-scrolling: touch;



  padding: 24px 12px;



  box-sizing: border-box;



}







.modal.open {



  opacity: 1;



  pointer-events: auto;



}







.modal-content {



  background: white;



  border-radius: 14px;



  width: 100%;



  max-width: 520px;



  max-height: calc(100vh - 48px);



  overflow-y: auto;



  overscroll-behavior: contain;



  -webkit-overflow-scrolling: touch;



  padding: 24px;



  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);



  margin: auto;



  box-sizing: border-box;



  display: flex;



  flex-direction: column;



}







/* Custom scrollbar for modal content */



.modal-content::-webkit-scrollbar {



  width: 6px;



}



.modal-content::-webkit-scrollbar-track {



  background: #f1f5f9;



  border-radius: 4px;



}



.modal-content::-webkit-scrollbar-thumb {



  background: #cbd5e1;



  border-radius: 4px;



}



.modal-content::-webkit-scrollbar-thumb:hover {



  background: #94a3b8;



}







.modal-header {



  font-size: 20px;



  font-weight: 700;



  margin-bottom: 16px;



  display: flex;



  justify-content: space-between;



  align-items: center;



  position: sticky;



  top: -24px;



  background: white;



  padding-top: 4px;



  padding-bottom: 10px;



  z-index: 15;



  border-bottom: 1px solid #f1f5f9;



}







.options-modal-footer {



  margin-top: 18px;



  border-top: 1px solid #e5e7eb;



  padding-top: 14px;



  display: flex;



  flex-direction: column;



  gap: 10px;



  position: sticky;



  bottom: -24px;



  background: white;



  padding-bottom: 4px;



  z-index: 15;



}







/* Sub-list action buttons inside modal */



.btn-sublist-action {



  display: inline-flex;



  align-items: center;



  justify-content: center;



  gap: 4px;



  padding: 6px 12px;



  border-radius: 6px;



  font-size: 12.5px;



  font-weight: 600;



  cursor: pointer;



  border: 1px solid transparent;



  transition: all 0.15s ease;



  user-select: none;



  white-space: nowrap;



}







.btn-sublist-add {



  background: #0284c7;



  color: #ffffff;



  border-color: #0284c7;



}







.btn-sublist-add:hover {



  background: #0369a1;



  transform: translateY(-1px);



}







.btn-sublist-rename {



  background: #f8fafc;



  color: #334155;



  border-color: #cbd5e1;



}







.btn-sublist-rename:hover {



  background: #e2e8f0;



}







.btn-sublist-del {



  background: #fef2f2;



  color: #dc2626;



  border-color: #fecaca;



}







.btn-sublist-del:hover {



  background: #fee2e2;



  border-color: #f87171;



}







.form-group {



  margin-bottom: 15px;



}







.form-label {



  display: block;



  font-size: 14px;



  font-weight: 500;



  margin-bottom: 6px;



  color: #374151;



}







.form-input {



  width: 100%;



  padding: 10px 12px;



  border: 1px solid #d1d5db;



  border-radius: 6px;



  font-size: 14px;



}







.form-select {



  width: 100%;



  padding: 10px 12px;



  border: 1px solid #d1d5db;



  border-radius: 6px;



  font-size: 14px;



  background: white;



}







.btn-group {



  display: flex;



  justify-content: flex-end;



  gap: 10px;



  margin-top: 20px;



}







/* Employee dropdown selector list */



.employee-select-popover {



  position: absolute;



  background: white;



  border: 1px solid #d1d5db;



  border-radius: 8px;



  box-shadow: 0 4px 10px rgba(0,0,0,0.1);



  padding: 8px;



  z-index: 1000;



  display: none;



}







.employee-option {



  padding: 8px 12px;



  cursor: pointer;



  border-radius: 4px;



  display: flex;



  align-items: center;



  gap: 8px;



}







.employee-option:hover {



  background: #f3f4f6;



}







/* Material Icons webfont fallback if offline */



.material-icons {



  font-family: 'Material Icons';



  font-weight: normal;



  font-style: normal;



  font-size: 24px;



  line-height: 1;



  letter-spacing: normal;



  text-transform: none;



  display: inline-block;



  white-space: nowrap;



  word-wrap: normal;



  direction: ltr;



  -webkit-font-smoothing: antialiased;



}







/* Custom styled scrollbars */



.board-page-container::-webkit-scrollbar {



  width: 8px;



}







.board-page-container::-webkit-scrollbar-thumb {



  background-color: #d1d5db;



  border-radius: 4px;



}







/* Page section card styles in scroll mode */



.page-section {



  position: relative;



  width: 100%;



  min-height: calc(100vh - 160px);



  margin-bottom: 30px;



  background-color: var(--dry-erase-white);



  background-image: linear-gradient(var(--rule-color) 1px, transparent 1px);



  background-size: 100% var(--rule-spacing);



  background-attachment: local;



  padding: 20px 40px 60px 40px;



  border-radius: 0;



  box-shadow: none;



  border-bottom: 3px solid #d1d5db; /* clean divide line between sheets */



}







/* Page section separator for scroll mode */



.page-separator {



  display: flex;



  align-items: center;



  gap: 12px;



  margin: 30px 0 15px 0;



  user-select: none;



}







.page-separator::before,



.page-separator::after {



  content: '';



  flex: 1;



  height: 1px;



  background: #d1d5db;



}







/* Sub-list heading ("Miso Room  Tuesday, October 6, 2026"): readable from across the room */



.page-separator-label {



  display: inline-flex;



  align-items: baseline;



  flex-wrap: wrap;



  justify-content: center;



  gap: 4px 12px;



  text-align: center;



}







.page-separator-name {



  font-size: 24px;



  font-weight: 800;



  color: #0f172a;



}







.page-separator-date {



  font-size: 15px;



  font-weight: 600;



  color: #475569;



}







/* ==================== */



/* Responsive Layout    */



/* ==================== */



@media (max-width: 768px) {



  .whiteboard {



    border: 4px solid #374151;



  }



  .board-header {



    padding: 8px 12px;



    flex-wrap: wrap;



    gap: 6px;



  }



  .board-title {



    font-size: 20px;



  }



  .board-subtitle {



    font-size: 11px;



  }



  .board-logo {



    font-size: 22px;



  }



  .board-title-area {



    gap: 8px;



  }



  .board-page-container {



    padding: 10px 10px 100px 10px;



  }



  .task-line {



    font-size: 18px;



    height: 45px;



  }



  .task-right {



    gap: 8px;



  }



  /* Hide button text labels on mobile, keep icons visible */



  .btn-label {



    display: none;



  }



  /* Ensure controls are visible */



  .board-controls {



    gap: 6px;



  }



  .board-controls .btn {



    padding: 6px 8px;



    font-size: 12px;



  }



  /* Sidebar full width on mobile */



  .sidebar {



    width: 100%;



    left: -100%;



  }



  .sidebar.open {



    left: 0;



  }



  /* Modal scrollable */



  .modal-content {



    max-height: 85vh;



    overflow-y: auto;



  }



  /* FAB smaller on mobile */



  .fab-main {



    width: 52px;



    height: 52px;



  }



  .fab-action-btn {



    width: 42px;



    height: 42px;



  }



  .fab-container {



    bottom: 16px;



    right: 16px;



  }



  /* Share dropdown */



  .share-dropdown {



    right: 12px;



    top: 60px;



  }



}







@media (max-width: 480px) {



  .board-title {



    font-size: 17px;



  }



  .task-line {



    font-size: 16px;



    height: 40px;



    padding: 0 4px;



  }



  .task-assignee {



    font-size: 14px;



    margin-right: 4px;



  }



}







/* Bottom Toolbar & Floating Save Button */



.bottom-toolbar {



  position: fixed;



  bottom: 20px;



  left: 50%;



  transform: translateX(-50%);



  display: flex;



  align-items: center;



  gap: 10px;



  background: rgba(255, 255, 255, 0.95);



  backdrop-filter: blur(10px);



  padding: 8px 16px;



  border-radius: 30px;



  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);



  border: 1px solid rgba(229, 231, 235, 0.8);



  z-index: 50;



}







.floating-save-btn {



  position: absolute;



  top: 20px;



  right: 20px;



  width: 48px;



  height: 48px;



  border-radius: 50%;



  background: #3b82f6;



  color: white;



  border: none;



  display: flex;



  align-items: center;



  justify-content: center;



  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);



  cursor: pointer;



  z-index: 10;



  transition: all 0.2s ease;



}







.floating-save-btn:hover {



  transform: scale(1.08);



  background: #2563eb;



}







/* Priority Low Dot Standardized to Blue */



.priority-dot.prio-low, .prio-low {



  background-color: var(--marker-blue) !important;



}







/* ========================================= */



/* Pinned Folders Bar (Top Folder Switcher)   */



/* ========================================= */



.folder-nav-bar {



  display: flex;



  align-items: center;



  justify-content: space-between;



  gap: 12px;



  padding: 8px 20px;



  background: #f1f5f9;



  border-bottom: 1px solid #e2e8f0;



  position: relative;



  z-index: 30;



}







.folder-nav-scroll-wrapper {



  display: flex;



  align-items: center;



  overflow-x: auto;



  scrollbar-width: none;



  -ms-overflow-style: none;



  flex: 1;



  min-width: 0;



}







.folder-nav-scroll-wrapper::-webkit-scrollbar {



  display: none;



}







.folder-nav-tabs {



  display: flex;



  align-items: center;



  gap: 8px;



  white-space: nowrap;



}







.folder-nav-tab {



  display: inline-flex;



  align-items: center;



  gap: 8px;



  padding: 8px 16px;



  border-radius: 12px;



  font-family: var(--font-sans);



  font-size: 13.5px;



  font-weight: 700;



  color: #475569;



  background: #ffffff;



  border: 1.5px solid #cbd5e1;



  cursor: pointer;



  user-select: none;



  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);



  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);



}







.folder-nav-tab:hover {



  background: #f8fafc;



  color: #0f172a;



  border-color: #94a3b8;



  transform: translateY(-1px);



}







.folder-nav-tab.active {



  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);



  color: #ffffff;



  border-color: #0f172a;



  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);



}







.folder-nav-tab.active .folder-tab-badge {



  background: #3b82f6;



  color: #ffffff;



}







.folder-tab-icon {



  font-size: 16px;



  line-height: 1;



}







.folder-tab-title {



  font-size: 13.5px;



  letter-spacing: -0.2px;



}







.folder-tab-badge {



  background: #e2e8f0;



  color: #334155;



  font-size: 11px;



  font-weight: 700;



  padding: 1px 7px;



  border-radius: 10px;



  transition: all 0.18s;



}







.folder-tab-delete {



  margin-left: 4px;



  font-size: 12px;



  width: 18px;



  height: 18px;



  border-radius: 50%;



  display: inline-flex;



  align-items: center;



  justify-content: center;



  color: #94a3b8;



  cursor: pointer;



  transition: all 0.15s ease;



  line-height: 1;



}







.folder-tab-delete:hover {



  background: #fee2e2;



  color: #ef4444;



  transform: scale(1.15);



}







.folder-nav-tab.active .folder-tab-delete {



  color: #cbd5e1;



}







.folder-nav-tab.active .folder-tab-delete:hover {



  background: rgba(239, 68, 68, 0.35);



  color: #fca5a5;



}







.folder-nav-actions {



  display: flex;



  align-items: center;



  gap: 8px;



  flex-shrink: 0;



}







.folder-select-btn {



  display: inline-flex;



  align-items: center;



  gap: 6px;



  padding: 8px 14px;



  font-size: 13px;



  font-weight: 700;



  color: #1e293b;



  background: #ffffff;



  border: 1.5px solid #cbd5e1;



  border-radius: 12px;



  white-space: nowrap;



  flex-shrink: 0;



  cursor: pointer;



  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);



  transition: all 0.18s ease;



}







.folder-select-btn:hover {



  background: #f8fafc;



  border-color: #64748b;



  color: #0f172a;



  transform: translateY(-1px);



}







.folder-new-btn {



  display: inline-flex;



  align-items: center;



  gap: 5px;



  padding: 8px 14px;



  font-size: 13px;



  font-weight: 700;



  color: #2563eb;



  background: #eff6ff;



  border: 1.5px dashed #93c5fd;



  border-radius: 12px;



  white-space: nowrap;



  flex-shrink: 0;



  cursor: pointer;



  transition: all 0.18s ease;



}







.folder-new-btn:hover {



  background: #dbeafe;



  border-color: #3b82f6;



  color: #1d4ed8;



  transform: translateY(-1px);



}







/* Quick List Selector Dropdown */



.folder-selector-dropdown {



  position: absolute;



  top: calc(100% + 6px);



  right: 20px;



  width: 330px;



  background: #ffffff;



  border: 1px solid #cbd5e1;



  border-radius: 14px;



  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);



  z-index: 100;



  overflow: hidden;



  animation: folderDropDownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);



}







@keyframes folderDropDownFade {



  from {



    opacity: 0;



    transform: translateY(-6px) scale(0.98);



  }



  to {



    opacity: 1;



    transform: translateY(0) scale(1);



  }



}







.folder-selector-header {



  display: flex;



  justify-content: space-between;



  align-items: center;



  padding: 12px 16px;



  background: #f8fafc;



  border-bottom: 1px solid #e2e8f0;



}







.folder-selector-title {



  display: flex;



  align-items: center;



  gap: 6px;



  font-weight: 700;



  font-size: 13.5px;



  color: #0f172a;



}







.folder-selector-close {



  background: transparent;



  border: none;



  font-size: 14px;



  color: #94a3b8;



  cursor: pointer;



  padding: 2px 6px;



  border-radius: 4px;



}







.folder-selector-close:hover {



  background: #e2e8f0;



  color: #0f172a;



}







.folder-selector-search-box {



  display: flex;



  align-items: center;



  gap: 8px;



  padding: 8px 14px;



  background: #ffffff;



  border-bottom: 1px solid #f1f5f9;



}







.folder-selector-search-box .search-icon {



  font-size: 18px;



  color: #94a3b8;



}







.folder-selector-search-box input {



  flex: 1;



  border: none;



  outline: none;



  font-size: 13px;



  font-family: var(--font-sans);



  color: #1e293b;



  background: transparent;



}







.folder-selector-search-box input::placeholder {



  color: #94a3b8;



}







.folder-selector-list {



  max-height: 280px;



  overflow-y: auto;



  padding: 6px 0;



}







.folder-selector-item {



  display: flex;



  align-items: center;



  justify-content: space-between;



  padding: 10px 16px;



  cursor: pointer;



  transition: all 0.15s ease;



  font-size: 13.5px;



  font-weight: 600;



  color: #334155;



  border-left: 3px solid transparent;



}







.folder-selector-item:hover {



  background: #f8fafc;



  color: #0f172a;



}







.folder-selector-item.active {



  background: #eff6ff;



  color: #1d4ed8;



  border-left-color: #3b82f6;



  font-weight: 700;



}







.folder-selector-item-left {



  display: flex;



  align-items: center;



  gap: 10px;



}







.folder-selector-item-icon {



  font-size: 16px;



}







.folder-selector-item-title {



  font-size: 13.5px;



}







.folder-selector-badge {



  font-size: 11px;



  font-weight: 700;



  padding: 2px 8px;



  border-radius: 10px;



  background: #f1f5f9;



  color: #64748b;



}







.folder-selector-item.active .folder-selector-badge {



  background: #3b82f6;



  color: #ffffff;



}







@keyframes spin-anim {



  from { transform: rotate(0deg); }



  to { transform: rotate(360deg); }



}







.spin .material-icons {



  animation: spin-anim 0.65s cubic-bezier(0.4, 0, 0.2, 1) infinite;



}











/* Tab Bar Navigation — Big & Prominent UI (Mobile Responsive) */



.tab-bar {



  display: flex;



  align-items: center;



  justify-content: center;



  gap: 16px;



  padding: 12px 24px;



  background: #ffffff;



  border-bottom: 2px solid #e5e7eb;



  z-index: 20;



  box-shadow: 0 2px 10px rgba(0,0,0,0.03);



  overflow-x: auto;



  white-space: nowrap;



  -webkit-overflow-scrolling: touch;



  scrollbar-width: none;



}







.tab-bar::-webkit-scrollbar {



  display: none;



}







.tab-item {



  display: flex;



  align-items: center;



  gap: 10px;



  padding: 12px 28px;



  border-radius: 14px;



  font-size: 16px;



  font-weight: 700;



  color: #4b5563;



  cursor: pointer;



  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);



  background: #f8fafc;



  border: 2px solid #e2e8f0;



  box-shadow: 0 2px 6px rgba(0,0,0,0.04);



}







.tab-item:hover {



  background: #f1f5f9;



  border-color: #cbd5e1;



  transform: translateY(-2px);



  color: #1e293b;



}







.tab-item.active {



  background: #3b82f6;



  color: #ffffff;



  border-color: #2563eb;



  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);



  transform: translateY(-2px);



}







.tab-icon {



  font-size: 20px;



}







.tab-count {



  background: #e2e8f0;



  color: #1e293b;



  padding: 4px 12px;



  border-radius: 16px;



  font-size: 13px;



  font-weight: 800;



}







.tab-item.active .tab-count {



  background: #ffffff;



  color: #1d4ed8;



}







/* Pop Button Animations */



.btn {



  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);



}







.btn:hover {



  transform: translateY(-2px);



  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);



}







.btn:active {



  transform: translateY(0);



  box-shadow: none;



}







/* Task Reorder Up/Down Buttons */



.task-reorder-btn {



  display: flex;



  flex-direction: column;



  gap: 1px;



  margin-right: 4px;



  opacity: 0.5;



  transition: opacity 0.2s;



}







.task-line:hover .task-reorder-btn {



  opacity: 1;



}







.btn-arrow {



  background: none;



  border: none;



  color: #6b7280;



  font-size: 12px;



  line-height: 1;



  cursor: pointer;



  padding: 1px 4px;



  border-radius: 3px;



}







.btn-arrow:hover {



  background: #e5e7eb;



  color: #111827;



}







/* Ask Bandhu AI Floating Button & Modal */



.bandhu-fab {



  position: fixed;



  bottom: 24px;



  left: 24px;



  z-index: 60;



}







.bandhu-fab-btn {



  width: 54px;



  height: 54px;



  border-radius: 50%;



  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);



  color: white;



  border: none;



  display: flex;



  align-items: center;



  justify-content: center;



  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);



  cursor: pointer;



  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);



}







.bandhu-fab-btn:hover {



  transform: scale(1.1) rotate(10deg);



  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);



}







.bandhu-fab-btn .material-icons {



  font-size: 26px;



}







.bandhu-modal {



  position: fixed;



  bottom: 90px;



  left: 24px;



  width: 380px;



  max-width: calc(100vw - 48px);



  height: 480px;



  background: white;



  border-radius: 20px;



  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);



  z-index: 100;



  display: flex;



  flex-direction: column;



  overflow: hidden;



  opacity: 0;



  transform: translateY(20px) scale(0.95);



  pointer-events: none;



  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);



  border: 1px solid #e0e7ff;



}







.bandhu-modal.open {



  opacity: 1;



  transform: translateY(0) scale(1);



  pointer-events: auto;



}







.bandhu-header {



  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);



  color: white;



  padding: 14px 18px;



  display: flex;



  align-items: center;



  justify-content: space-between;



}







.bandhu-header-title {



  display: flex;



  align-items: center;



  gap: 10px;



  font-weight: 700;



  font-size: 16px;



}







.bandhu-messages {



  flex: 1;



  padding: 16px;



  overflow-y: auto;



  display: flex;



  flex-direction: column;



  gap: 12px;



  background: #f8fafc;



}







.bandhu-msg {



  max-width: 85%;



  padding: 10px 14px;



  border-radius: 14px;



  font-size: 13.5px;



  line-height: 1.5;



  word-wrap: break-word;



}







.bandhu-msg.ai {



  background: white;



  color: #1e293b;



  border: 1px solid #e2e8f0;



  align-self: flex-start;



  border-bottom-left-radius: 4px;



  box-shadow: 0 2px 6px rgba(0,0,0,0.03);



}







.bandhu-msg.user {



  background: #6366f1;



  color: white;



  align-self: flex-end;



  border-bottom-right-radius: 4px;



}







.bandhu-input-area {



  padding: 12px;



  background: white;



  border-top: 1px solid #e2e8f0;



  display: flex;



  align-items: center;



  gap: 8px;



}







.bandhu-input {



  flex: 1;



  padding: 10px 14px;



  border-radius: 20px;



  border: 1px solid #cbd5e1;



  font-size: 13.5px;



  outline: none;



  transition: border-color 0.2s;



}







.bandhu-input:focus {



  border-color: #6366f1;



}







.bandhu-voice-btn, .bandhu-send-btn {



  width: 38px;



  height: 38px;



  border-radius: 50%;



  border: none;



  display: flex;



  align-items: center;



  justify-content: center;



  cursor: pointer;



  transition: all 0.2s;



}







.bandhu-voice-btn {



  background: #f1f5f9;



  color: #64748b;



}







.bandhu-voice-btn:hover {



  background: #e2e8f0;



  color: #475569;



}







.bandhu-voice-btn.listening {



  background: #ef4444;



  color: white;



  animation: pulse-ring 1.2s infinite;



}







.bandhu-send-btn {



  background: #6366f1;



  color: white;



}







.bandhu-send-btn:hover {



  background: #4f46e5;



}







@keyframes pulse-ring {



  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }



  70% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }



  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }



}







/* Desktop view: Hide mobile app interface */



@media (min-width: 769px) {



  #mobile-app-container {



    display: none !important;



  }



}







/* ========================================================= */



/* DEDICATED MOBILE INTERFACE (Gu Bandhu Mobile Experience) */



/* "In start see card of list, and then click to open list"  */



/* ========================================================= */



@media (max-width: 768px) {



  html, body {



    height: auto !important;



    min-height: 100% !important;



    overflow-x: hidden !important;



    overflow-y: auto !important;



    -webkit-overflow-scrolling: touch !important;



    background: #f8fafc !important;



    color: #0f172a !important;



    margin: 0 !important;



    padding: 0 !important;



    width: 100vw !important;



    max-width: 100vw !important;



  }







  .whiteboard {



    border: none !important;



    box-shadow: none !important;



    height: auto !important;



    min-height: 100vh !important;



    width: 100vw !important;



    max-width: 100vw !important;



    overflow-x: hidden !important;



    background: #f8fafc !important;



    border-radius: 0 !important;



    padding: 0 !important;



    margin: 0 !important;



    display: block !important;



  }







  /* Hide Desktop-specific whiteboard chrome on mobile */



  .board-header,



  .folder-nav-bar,



  .tab-bar,



  .board-page-container,



  #board-workspace,



  .page-section,



  .drawing-container,



  #paint-canvas,



  .task-list,



  .bottom-toolbar,



  .fab-container,



  .bandhu-fab,



  .floating-save-btn {



    display: none !important;



  }







  /* Catch-all: Hide any desktop children inside .whiteboard */



  .whiteboard > header,



  .whiteboard > nav,



  .whiteboard > main,



  .whiteboard > .bottom-toolbar,



  .whiteboard > .fab-container,



  .whiteboard > .bandhu-fab {



    display: none !important;



  }







  /* Show Dedicated Mobile App Container */



  #mobile-app-container {



    display: flex !important;



    flex-direction: column;



    width: 100% !important;



    max-width: 100vw !important;



    min-height: 100vh;



    background: #f8fafc;



    box-sizing: border-box;



    overflow-x: hidden;



  }







  .mobile-view-section {



    width: 100%;



    max-width: 100vw;



    box-sizing: border-box;



  }







  /* --- SCREEN 1: Mobile Header --- */



  .mobile-header {



    display: flex;



    justify-content: space-between;



    align-items: center;



    padding: 10px 14px;



    background: #ffffff;



    border-bottom: 1px solid #e2e8f0;



    position: sticky;



    top: 0;



    z-index: 100;



    box-shadow: 0 1px 3px rgba(0,0,0,0.04);



  }







  .mobile-brand {



    display: flex;



    align-items: center;



    gap: 8px;



  }







  .mobile-brand-icon {



    font-size: 24px;



  }







  .mobile-brand-info {



    display: flex;



    flex-direction: column;



  }







  .mobile-brand-title {



    font-size: 17px;



    font-weight: 800;



    color: #0f172a;



    line-height: 1.1;



    margin: 0;



  }







  .mobile-brand-subtitle {



    font-size: 11px;



    font-weight: 700;



    color: #be185d;



    text-transform: uppercase;



    letter-spacing: 0.5px;



  }







  .mobile-header-actions {



    display: flex;



    align-items: center;



    gap: 6px;



  }







  .mobile-action-btn {



    width: 36px;



    height: 36px;



    border-radius: 10px;



    background: #f8fafc;



    border: 1px solid #e2e8f0;



    color: #475569;



    display: flex;



    align-items: center;



    justify-content: center;



    cursor: pointer;



    transition: all 0.15s ease;



  }







  .mobile-action-btn:active {



    transform: scale(0.92);



  }







  .mobile-action-btn .material-icons {



    font-size: 19px;



  }







  .mobile-btn-bandhu {



    color: #6366f1 !important;



    background: #eef2ff !important;



    border-color: #c7d2fe !important;



  }







  .mobile-btn-calls {



    color: #be185d !important;



    background: #fdf2f8 !important;



    border-color: #fbcfe8 !important;



  }







  .mobile-btn-harvest {



    color: #854d0e !important;



    background: #fefce8 !important;



    border-color: #fef08a !important;



  }







  /* --- Summary Banner & Search --- */



  .mobile-summary-banner {



    background: #ffffff;



    padding: 10px 14px 14px;



    border-bottom: 1px solid #f1f5f9;



  }







  .mobile-date-row {



    display: flex;



    justify-content: space-between;



    align-items: center;



    margin-bottom: 8px;



  }







  .mobile-date-text {



    font-size: 12.5px;



    font-weight: 600;



    color: #64748b;



  }







  .mobile-live-pill {



    font-size: 11px;



    font-weight: 700;



    color: #059669;



    background: #ecfdf5;



    padding: 2px 8px;



    border-radius: 12px;



    border: 1px solid #a7f3d0;



  }







  .mobile-search-box {



    display: flex;



    align-items: center;



    gap: 8px;



    background: #f8fafc;



    border: 1px solid #e2e8f0;



    border-radius: 10px;



    padding: 6px 12px;



  }







  .mobile-search-box .search-icon {



    font-size: 18px;



    color: #94a3b8;



  }







  .mobile-search-box input {



    flex: 1;



    border: none;



    outline: none;



    background: transparent;



    font-size: 13.5px;



    color: #1e293b;



    font-family: var(--font-sans);



  }







  .mobile-search-box input::placeholder {



    color: #94a3b8;



  }







  /* --- Section Heading --- */



  .mobile-section-heading {



    display: flex;



    justify-content: space-between;



    align-items: center;



    padding: 14px 14px 8px;



  }







  .mobile-section-heading h2 {



    font-size: 15px;



    font-weight: 800;



    color: #1e293b;



    text-transform: uppercase;



    letter-spacing: 0.5px;



    margin: 0;



  }







  .mobile-new-list-btn {



    display: flex;



    align-items: center;



    gap: 4px;



    background: #3b82f6;



    color: #ffffff;



    border: none;



    border-radius: 8px;



    padding: 6px 12px;



    font-size: 12px;



    font-weight: 700;



    cursor: pointer;



    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.25);



  }







  .mobile-new-list-btn:active {



    transform: scale(0.95);



  }







  /* --- SCREEN 1: Cards Grid --- */



  .mobile-cards-grid {



    display: grid;



    grid-template-columns: repeat(2, 1fr);



    gap: 10px;



    padding: 6px 14px 40px;



    box-sizing: border-box;



  }







  @media (max-width: 360px) {



    .mobile-cards-grid {



      grid-template-columns: 1fr;



    }



  }







  .mobile-list-card {



    background: #ffffff;



    border: 1.5px solid #e2e8f0;



    border-radius: 14px;



    padding: 14px;



    box-shadow: 0 2px 6px rgba(0,0,0,0.03);



    display: flex;



    flex-direction: column;



    justify-content: space-between;



    min-height: 115px;



    cursor: pointer;



    transition: all 0.15s ease;



    box-sizing: border-box;



  }







  .mobile-list-card:active {



    transform: scale(0.97);



    border-color: #3b82f6;



    background: #f0f7ff;



  }







  .mobile-list-card.active-board {



    border-color: #3b82f6;



    background: #eff6ff;



  }







  .mobile-card-top {



    display: flex;



    justify-content: space-between;



    align-items: flex-start;



  }







  .mobile-card-icon {



    font-size: 26px;



  }







  .mobile-card-badge {



    padding: 2px 7px;



    border-radius: 10px;



    font-size: 11px;



    font-weight: 700;



  }







  .mobile-badge-pending {



    background: #fdf2f8;



    color: #be185d;



    border: 1px solid #fbcfe8;



  }







  .mobile-badge-zero {



    background: #ecfdf5;



    color: #059669;



    border: 1px solid #a7f3d0;



  }







  .mobile-card-body {



    margin: 8px 0 6px;



  }







  .mobile-card-title {



    font-size: 15px;



    font-weight: 700;



    color: #0f172a;



    line-height: 1.25;



    margin-bottom: 2px;



  }







  .mobile-card-subtitle {



    font-size: 11px;



    color: #64748b;



    font-weight: 500;



  }







  .mobile-card-bottom {



    display: flex;



    justify-content: space-between;



    align-items: center;



    border-top: 1px solid #f1f5f9;



    padding-top: 6px;



    margin-top: 4px;



  }







  .mobile-card-hint {



    font-size: 11px;



    font-weight: 600;



    color: #3b82f6;



  }







  .mobile-card-arrow {



    font-size: 14px;



    font-weight: 800;



    color: #3b82f6;



  }







  .mobile-create-card {



    border: 2px dashed #cbd5e1;



    background: #ffffff;



    border-radius: 14px;



    padding: 14px;



    min-height: 115px;



    display: flex;



    flex-direction: column;



    align-items: center;



    justify-content: center;



    gap: 6px;



    cursor: pointer;



    color: #475569;



    box-sizing: border-box;



    transition: all 0.15s ease;



  }







  .mobile-create-card:active {



    transform: scale(0.97);



    border-color: #3b82f6;



    color: #3b82f6;



  }







  .mobile-create-card .create-icon {



    font-size: 26px;



    color: #3b82f6;



  }







  .mobile-create-card .create-label {



    font-size: 13px;



    font-weight: 700;



  }







  /* --- SCREEN 2: Mobile List Detail View --- */



  .mobile-list-topbar {



    display: flex;



    justify-content: space-between;



    align-items: center;



    padding: 10px 12px;



    background: #ffffff;



    border-bottom: 1px solid #e2e8f0;



    position: sticky;



    top: 0;



    z-index: 100;



    box-shadow: 0 1px 3px rgba(0,0,0,0.04);



  }







  .mobile-back-btn {



    display: inline-flex;



    align-items: center;



    gap: 4px;



    background: #f1f5f9;



    border: 1px solid #e2e8f0;



    border-radius: 8px;



    padding: 6px 10px;



    font-size: 12px;



    font-weight: 700;



    color: #1e293b;



    cursor: pointer;



  }







  .mobile-back-btn:active {



    background: #e2e8f0;



  }







  .mobile-back-btn .material-icons {



    font-size: 16px;



  }







  .mobile-list-title-wrap {



    display: flex;



    align-items: center;



    gap: 6px;



    flex: 1;



    min-width: 0;



    margin: 0 8px;



  }







  .mobile-list-icon {



    font-size: 18px;



  }







  .mobile-list-name {



    font-size: 16px;



    font-weight: 800;



    color: #0f172a;



    margin: 0;



    white-space: nowrap;



    overflow: hidden;



    text-overflow: ellipsis;



  }







  .mobile-list-quick-actions {



    display: flex;



    align-items: center;



    gap: 4px;



  }







  .mobile-icon-btn {



    width: 32px;



    height: 32px;



    border-radius: 8px;



    background: #f8fafc;



    border: 1px solid #e2e8f0;



    color: #475569;



    display: flex;



    align-items: center;



    justify-content: center;



    cursor: pointer;



  }







  .mobile-icon-btn .material-icons {



    font-size: 17px;



  }







  .mobile-voice-btn {



    background: #fef3c7 !important;



    border-color: #fde68a !important;



    color: #b45309 !important;



  }







  /* Page Navigation Bar */



  .mobile-page-bar {



    display: flex;



    justify-content: space-between;



    align-items: center;



    padding: 6px 12px;



    background: #ffffff;



    border-bottom: 1px solid #f1f5f9;



  }







  .mobile-page-nav-controls {



    display: flex;



    align-items: center;



    gap: 4px;



  }







  .mobile-page-btn {



    width: 28px;



    height: 28px;



    border-radius: 6px;



    background: #f8fafc;



    border: 1px solid #e2e8f0;



    color: #334155;



    display: flex;



    align-items: center;



    justify-content: center;



    cursor: pointer;



  }







  .mobile-page-btn .material-icons {



    font-size: 15px;



  }







  .mobile-page-btn.mobile-delete-page {



    color: #ef4444;



    border-color: #fecaca;



    background: #fef2f2;



  }







  .mobile-page-indicator {



    font-size: 12px;



    font-weight: 700;



    color: #475569;



    padding: 0 4px;



  }







  .mobile-page-bar-right {



    display: flex;



    align-items: center;



    gap: 6px;



  }







  .mobile-ocr-scan-btn {



    display: inline-flex;



    align-items: center;



    gap: 3px;



    background: #eff6ff;



    border: 1px solid #bfdbfe;



    color: #1d4ed8;



    border-radius: 8px;



    padding: 4px 8px;



    font-size: 11px;



    font-weight: 700;



    cursor: pointer;



  }







  .mobile-canvas-toggle-btn {



    display: inline-flex;



    align-items: center;



    gap: 3px;



    background: #f3e8ff;



    border: 1px solid #d8b4fe;



    color: #7e22ce;



    border-radius: 8px;



    padding: 4px 8px;



    font-size: 11px;



    font-weight: 700;



    cursor: pointer;



  }







  /* Canvas Wrapper */



  .mobile-canvas-wrapper {



    background: #ffffff;



    border-bottom: 2px solid #e2e8f0;



    padding: 8px;



  }







  .mobile-canvas-tools {



    display: flex;



    gap: 6px;



    margin-bottom: 6px;



  }







  .mobile-tool-btn {



    flex: 1;



    padding: 6px 4px;



    border-radius: 6px;



    border: 1px solid #cbd5e1;



    background: #f8fafc;



    font-size: 11.5px;



    font-weight: 700;



    cursor: pointer;



  }







  .mobile-tool-btn.active {



    background: #3b82f6;



    color: white;



    border-color: #3b82f6;



  }







  .mobile-canvas-box {



    width: 100%;



    height: 320px;



    border: 1px solid #cbd5e1;



    border-radius: 8px;



    position: relative;



    overflow: hidden;



    background: #ffffff;



    touch-action: none !important;



  }







  .mobile-canvas-box canvas {



    width: 100% !important;



    height: 100% !important;



    display: block !important;



    touch-action: none !important;



  }







  /* View Tabs (Sticky) */



  .mobile-tabs-bar {



    display: flex;



    gap: 6px;



    padding: 8px 12px;



    background: #f8fafc;



    border-bottom: 1px solid #e2e8f0;



    position: sticky;



    top: 50px;



    z-index: 90;



  }







  .mobile-tab-btn {



    flex: 1;



    padding: 8px 4px;



    border-radius: 8px;



    border: 1px solid #e2e8f0;



    background: #ffffff;



    color: #64748b;



    font-weight: 700;



    font-size: 12px;



    display: flex;



    align-items: center;



    justify-content: center;



    gap: 4px;



    cursor: pointer;



    box-shadow: 0 1px 2px rgba(0,0,0,0.03);



    transition: all 0.15s ease;



  }







  .mobile-tab-btn.active {



    background: #3b82f6;



    color: #ffffff;



    border-color: #3b82f6;



    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);



  }







  .mobile-tab-badge {



    padding: 1px 6px;



    border-radius: 10px;



    font-size: 10.5px;



    font-weight: 800;



    background: #f1f5f9;



    color: #475569;



  }







  .mobile-tab-btn.active .mobile-tab-badge {



    background: #ffffff;



    color: #1d4ed8;



  }







  /* Quick Add Task Card */



  .mobile-add-task-card {



    background: #ffffff;



    border: 1px solid #e2e8f0;



    border-radius: 12px;



    padding: 10px;



    margin: 10px 12px;



    box-shadow: 0 1px 3px rgba(0,0,0,0.03);



    box-sizing: border-box;



  }







  .mobile-add-input-row {



    display: flex;



    gap: 6px;



    align-items: center;



  }







  .mobile-add-input-row input {



    flex: 1;



    border: 1px solid #cbd5e1;



    border-radius: 8px;



    padding: 8px 10px;



    font-size: 13.5px;



    outline: none;



    font-family: var(--font-sans);



    color: #0f172a;



    background: #f8fafc;



  }







  .mobile-add-input-row input:focus {



    border-color: #be185d;



    background: #ffffff;



  }







  .mobile-voice-task-btn {



    width: 36px;



    height: 36px;



    border-radius: 8px;



    border: 1px solid #fde68a;



    background: #fef3c7;



    color: #b45309;



    display: flex;



    align-items: center;



    justify-content: center;



    cursor: pointer;



    flex-shrink: 0;



  }







  .mobile-voice-task-btn .material-icons {



    font-size: 19px;



  }







  .mobile-voice-task-btn.listening {



    background: #fee2e2;



    border-color: #fca5a5;



    color: #dc2626;



    animation: pulse-ring 1.2s infinite;



  }







  .mobile-submit-task-btn {



    background: #be185d;



    color: #ffffff;



    border: none;



    border-radius: 8px;



    padding: 0 12px;



    height: 36px;



    font-size: 13px;



    font-weight: 700;



    cursor: pointer;



    flex-shrink: 0;



  }







  .mobile-submit-task-btn:active {



    transform: scale(0.95);



  }







  .mobile-add-options-row {



    display: flex;



    justify-content: space-between;



    align-items: center;



    margin-top: 8px;



    gap: 6px;



  }







  .mobile-assign-picker-wrap {



    display: flex;



    align-items: center;



    gap: 4px;



    background: #f8fafc;



    border: 1px solid #cbd5e1;



    border-radius: 6px;



    padding: 2px 6px;



    flex: 1;



    max-width: 150px;



  }







  .mobile-assign-picker-wrap select {



    border: none;



    background: transparent;



    outline: none;



    font-size: 11.5px;



    font-family: var(--font-sans);



    color: #334155;



    width: 100%;



  }







  .mobile-priority-picker-wrap {



    display: flex;



    gap: 4px;



  }







  .mobile-prio-chip {



    border: 1px solid #e2e8f0;



    background: #f8fafc;



    border-radius: 12px;



    padding: 3px 7px;



    font-size: 10.5px;



    font-weight: 600;



    color: #64748b;



    cursor: pointer;



  }







  .mobile-prio-chip.active {



    border-color: #3b82f6;



    background: #eff6ff;



    color: #1d4ed8;



    font-weight: 700;



  }







  /* --- Tasks Container --- */



  .mobile-tasks-container {



    padding: 6px 10px 110px;



    display: flex;



    flex-direction: column;



    gap: 8px;



    box-sizing: border-box;



    width: 100%;



    max-width: 100vw;



    overflow-x: hidden;



  }







  .mobile-task-item {



    background: #ffffff;



    border: 1px solid #e2e8f0;



    border-radius: 12px;



    padding: 12px;



    display: flex;



    align-items: flex-start;



    gap: 10px;



    box-shadow: 0 1px 3px rgba(0,0,0,0.03);



    transition: all 0.15s ease;



    box-sizing: border-box;



  }







  .mobile-task-item.done {



    background: #f8fafc;



    opacity: 0.7;



    border-color: #e2e8f0;



  }







  .mobile-task-checkbox {



    width: 24px;



    height: 24px;



    border-radius: 7px;



    border: 2px solid #94a3b8;



    background: #ffffff;



    display: flex;



    align-items: center;



    justify-content: center;



    flex-shrink: 0;



    cursor: pointer;



    margin-top: 2px;



    transition: all 0.15s ease;



  }







  .mobile-task-checkbox.checked {



    background: #10b981;



    border-color: #10b981;



    color: #ffffff;



  }







  .mobile-task-check-icon {



    font-size: 13px;



    font-weight: 800;



    color: #ffffff;



  }







  .mobile-task-content {



    flex: 1;



    min-width: 0;



    cursor: pointer;



  }







  .mobile-task-text {



    font-size: 14.5px;



    font-weight: 600;



    color: #0f172a;



    line-height: 1.4;



    word-break: break-word;



  }







  .mobile-task-text.done {



    text-decoration: line-through;



    color: #94a3b8;



    font-weight: 500;



  }







  .mobile-task-meta {



    display: flex;



    flex-wrap: wrap;



    gap: 5px;



    margin-top: 5px;



    align-items: center;



  }







  .mobile-assignee-pill {



    font-size: 11px;



    font-weight: 600;



    color: #475569;



    background: #f1f5f9;



    padding: 2px 7px;



    border-radius: 6px;



  }







  .mobile-prio-pill {



    font-size: 11px;



    font-weight: 700;



    padding: 2px 7px;



    border-radius: 6px;



  }







  .mobile-prio-urgent {



    background: #fee2e2;



    color: #b91c1c;



    border: 1px solid #fecaca;



  }







  .mobile-prio-normal {



    background: #fef3c7;



    color: #b45309;



    border: 1px solid #fde68a;



  }







  .mobile-prio-low {



    background: #dcfce7;



    color: #15803d;



    border: 1px solid #bbf7d0;



  }







  .mobile-time-pill {



    font-size: 10.5px;



    color: #94a3b8;



    margin-left: auto;



  }







  .mobile-task-edit-btn {



    padding: 4px;



    color: #94a3b8;



    cursor: pointer;



    flex-shrink: 0;



  }







  .mobile-task-edit-btn .material-icons {



    font-size: 18px;



  }







  /* Employee Grouping */



  .mobile-emp-header {



    background: #f1f5f9;



    border-radius: 8px;



    padding: 8px 12px;



    font-size: 13px;



    font-weight: 700;



    color: #1e293b;



    display: flex;



    justify-content: space-between;



    align-items: center;



    margin-top: 6px;



    margin-bottom: 2px;



  }







  .mobile-emp-header-count {



    background: #e2e8f0;



    padding: 1px 7px;



    border-radius: 10px;



    font-size: 11px;



    color: #475569;



  }







  /* Empty State */



  .mobile-empty-state {



    background: #ffffff;



    border-radius: 12px;



    border: 1px solid #f1f5f9;



    padding: 36px 20px;



    text-align: center;



    color: #64748b;



  }







  .mobile-empty-icon {



    font-size: 36px;



    margin-bottom: 8px;



  }







  .mobile-empty-title {



    font-size: 16px;



    font-weight: 700;



    color: #1e293b;



    margin-bottom: 4px;



  }







  .mobile-empty-desc {



    font-size: 12.5px;



    color: #94a3b8;



  }







  /* Room Sub-lists / Page Dropdown & Tabs in Mobile */



  .mobile-room-tabs-bar {



    display: flex;



    flex-direction: column;



    gap: 6px;



    padding: 8px 12px;



    background: #ffffff;



    border-bottom: 1px solid #e2e8f0;



    max-width: 100vw;



    box-sizing: border-box;



    overflow: hidden;



  }



  .mobile-sublist-dropdown-bar {



    display: flex;



    align-items: center;



    gap: 6px;



    width: 100%;



    box-sizing: border-box;



  }



  .mobile-sublist-select-wrapper {



    flex: 1;



    min-width: 0;



    display: flex;



    align-items: center;



    background: #f0f9ff;



    border: 1.5px solid #0284c7;



    border-radius: 9px;



    padding: 1px 8px;



    box-shadow: 0 1px 2px rgba(2, 132, 199, 0.08);



    overflow: hidden;



  }



  .mobile-sublist-select-wrapper:focus-within {



    border-color: #0369a1;



    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);



    background: #ffffff;



  }



  .mobile-sublist-select-label {



    font-size: 11px;



    font-weight: 800;



    text-transform: uppercase;



    letter-spacing: 0.5px;



    color: #0369a1;



    white-space: nowrap;



    margin-right: 4px;



    flex-shrink: 0;



  }



  .mobile-sublist-select {



    flex: 1;



    min-width: 0;



    border: none;



    background: transparent;



    font-size: 13.5px;



    font-weight: 700;



    color: #0f172a;



    padding: 6px 2px;



    outline: none;



    cursor: pointer;



    text-overflow: ellipsis;



    white-space: nowrap;



    overflow: hidden;



  }



  .mobile-sublist-actions {



    display: flex;



    align-items: center;



    gap: 4px;



    flex-shrink: 0;



  }



  .mobile-sublist-action-btn {



    width: 33px;



    height: 33px;



    border-radius: 8px;



    border: 1px solid #cbd5e1;



    background: #ffffff;



    display: inline-flex;



    align-items: center;



    justify-content: center;



    font-size: 13px;



    cursor: pointer;



    transition: all 0.15s ease;



    flex-shrink: 0;



    color: #334155;



  }



  .mobile-sublist-action-btn:active {



    transform: scale(0.92);



    background: #f1f5f9;



  }



  .mobile-sublist-add-btn {



    background: #0284c7;



    color: #ffffff;



    border-color: #0284c7;



    font-weight: 700;



    font-size: 15px;



  }



  .mobile-sublist-pills-scroll {



    display: flex;



    gap: 6px;



    overflow-x: auto;



    padding-bottom: 2px;



    -webkit-overflow-scrolling: touch;



  }



  .mobile-room-tab-chip {



    display: inline-flex;



    align-items: center;



    gap: 6px;



    padding: 6px 12px;



    border-radius: 20px;



    border: 1px solid #e2e8f0;



    background: #f8fafc;



    font-size: 12px;



    font-weight: 700;



    color: #64748b;



    white-space: nowrap;



    cursor: pointer;



    user-select: none;



    touch-action: manipulation;



  }



  .mobile-room-tab-chip.active {



    background: #0284c7;



    border-color: #0284c7;



    color: #ffffff;



  }



  .mobile-chip-main {



    display: inline-flex;



    align-items: center;



    gap: 4px;



  }



  .mobile-chip-actions {



    display: inline-flex;



    align-items: center;



    gap: 3px;



    margin-left: 2px;



  }



  .mobile-room-chip-rename,



  .mobile-room-chip-del {



    padding: 1px 3px;



    border-radius: 4px;



    font-size: 10px;



    opacity: 0.65;



    cursor: pointer;



  }



  .mobile-room-chip-rename:hover,



  .mobile-room-chip-del:hover {



    opacity: 1;



    background: rgba(0, 0, 0, 0.1);



  }



  .mobile-task-low-stock {



    border-left: 4px solid #f59e0b !important;



    background: #fffbeb !important;



  }



}







/* ============================================================ */



/* DESKTOP ROOM TABS NAVIGATION                                */



/* ============================================================ */



.desktop-room-tabs-bar {



  display: flex;



  align-items: center;



  flex-wrap: wrap;



  gap: 12px;



  padding: 10px 24px;



  background: #f8fafc;



  border-bottom: 1px solid #e2e8f0;



  user-select: none;



}







.desktop-sublist-dropdown-wrap {



  display: inline-flex;



  align-items: center;



  gap: 8px;



  background: #ffffff;



  border: 1.5px solid #0284c7;



  border-radius: 10px;



  padding: 3px 10px;



  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.08);



}







.desktop-sublist-select-label {



  font-size: 12px;



  font-weight: 800;



  color: #0284c7;



  white-space: nowrap;



}







.desktop-sublist-select {



  border: none;



  background: transparent;



  font-size: 13.5px;



  font-weight: 700;



  color: #0f172a;



  padding: 6px 8px;



  outline: none;



  cursor: pointer;



}







.desktop-sublist-btn {



  padding: 4px 8px;



  border-radius: 6px;



  border: 1px solid #cbd5e1;



  background: #f8fafc;



  cursor: pointer;



  font-size: 12px;



  transition: all 0.15s ease;



}



.desktop-sublist-btn:hover {



  background: #e2e8f0;



}



.desktop-sublist-btn:disabled,



.mobile-sublist-action-btn:disabled {



  opacity: 0.35;



  cursor: default;



}







.desktop-sublist-add-btn {



  padding: 5px 12px;



  border-radius: 8px;



  border: none;



  background: #0284c7;



  color: #ffffff;



  font-size: 12px;



  font-weight: 700;



  cursor: pointer;



  transition: background 0.15s ease;



}



.desktop-sublist-add-btn:hover {



  background: #0369a1;



}







.desktop-sublist-chips-wrap {



  display: inline-flex;



  align-items: center;



  gap: 8px;



  overflow-x: auto;



}







.desktop-room-tab-chip {



  display: inline-flex;



  align-items: center;



  gap: 6px;



  padding: 6px 14px;



  border-radius: 20px;



  border: 1px solid #cbd5e1;



  background: #ffffff;



  font-size: 13px;



  font-weight: 600;



  color: #334155;



  cursor: pointer;



  transition: all 0.15s ease;



  white-space: nowrap;



  user-select: none;



}







.desktop-room-tab-chip:hover {



  background: #f1f5f9;



  border-color: #94a3b8;



}







.desktop-room-tab-chip.active {



  background: #0284c7;



  border-color: #0284c7;



  color: #ffffff;



  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);



}







.room-chip-main {



  display: inline-flex;



  align-items: center;



  gap: 6px;



  cursor: pointer;



}







.room-chip-btn-group {



  display: inline-flex;



  align-items: center;



  gap: 2px;



  margin-left: 4px;



}







.room-chip-btn {



  display: inline-flex;



  align-items: center;



  justify-content: center;



  padding: 2px 4px;



  border-radius: 4px;



  border: none;



  background: transparent;



  font-size: 11px;



  opacity: 0.65;



  cursor: pointer;



  color: inherit;



  transition: opacity 0.15s, background-color 0.15s;



}







.room-chip-btn:hover {



  opacity: 1;



  background: rgba(0, 0, 0, 0.12);



}







.desktop-room-tab-chip.active .room-chip-btn:hover {



  background: rgba(255, 255, 255, 0.25);



}







.desktop-room-tab-add {



  padding: 6px 14px;



  border: 1px dashed #94a3b8;



  background: transparent;



  color: #64748b;



  border-radius: 20px;



  font-size: 12px;



  font-weight: 600;



  cursor: pointer;



}



.desktop-room-tab-add:hover {



  background: #e2e8f0;



  color: #0f172a;



}







/* ============================================================ */



/* SUBTASKS HIERARCHY UI (Mobile & Desktop)                     */



/* ============================================================ */



.task-subtasks-wrapper {



  margin-top: 8px;



  padding-left: 8px;



  border-left: 2px solid #e2e8f0;



  display: flex;



  flex-direction: column;



  gap: 6px;



  width: 100%;



}







.subtask-row {



  display: flex;



  align-items: center;



  gap: 8px;



  font-size: 13px;



  color: #334155;



  padding: 3px 0;



}







.subtask-checkbox {



  width: 18px;



  height: 18px;



  border-radius: 4px;



  border: 1.5px solid #94a3b8;



  display: flex;



  align-items: center;



  justify-content: center;



  cursor: pointer;



  background: #ffffff;



  flex-shrink: 0;



}







.subtask-checkbox.checked {



  background: #10b981;



  border-color: #10b981;



  color: #ffffff;



}







.subtask-text {



  flex: 1;



  word-break: break-word;



  line-height: 1.3;



}







.subtask-text.done {



  text-decoration: line-through;



  color: #94a3b8;



}







.subtask-del-btn {



  background: transparent;



  border: none;



  color: #cbd5e1;



  cursor: pointer;



  padding: 2px 6px;



  font-size: 12px;



  border-radius: 4px;



}



.subtask-del-btn:hover {



  color: #ef4444;



  background: #fee2e2;



}







.subtask-add-row {



  display: flex;



  align-items: center;



  gap: 6px;



  margin-top: 4px;



}







.subtask-inline-input {



  flex: 1;



  padding: 4px 8px;



  font-size: 12.5px;



  border: 1px solid #e2e8f0;



  border-radius: 6px;



  outline: none;



  background: #f8fafc;



}



.subtask-inline-input:focus {



  background: #ffffff;



  border-color: #3b82f6;



}







.subtask-inline-add-btn {



  padding: 4px 10px;



  font-size: 12px;



  font-weight: 600;



  color: #ffffff;



  background: #10b981;



  border: none;



  border-radius: 6px;



  cursor: pointer;



}



.subtask-inline-add-btn:hover {



  background: #059669;



}







/* ============================================================ */



/* STOCK BADGES & QUICK INVENTORY EDIT                          */



/* ============================================================ */



.stock-pill {



  display: inline-flex;



  align-items: center;



  gap: 4px;



  font-size: 11.5px;



  font-weight: 700;



  color: #0369a1;



  background: #e0f2fe;



  border: 1px solid #bae6fd;



  padding: 2px 8px;



  border-radius: 6px;



  cursor: pointer;



  transition: all 0.15s ease;



}







.stock-pill:hover {



  background: #bae6fd;



  border-color: #7dd3fc;



  transform: translateY(-1px);



}







.stock-pill.low-stock {



  color: #b45309;



  background: #fef3c7;



  border-color: #f59e0b;



}







.stock-pill.low-stock:hover {



  background: #fde68a;



}







.low-stock-alert-pill {



  display: inline-flex;



  align-items: center;



  gap: 4px;



  font-size: 11px;



  font-weight: 700;



  color: #b91c1c;



  background: #fee2e2;



  border: 1px solid #fca5a5;



  padding: 2px 7px;



  border-radius: 6px;



  animation: pulse 2s infinite;



}







@keyframes pulse {



  0%, 100% { opacity: 1; }



  50% { opacity: 0.75; }



}







.options-subtask-row {



  display: flex;



  align-items: center;



  gap: 8px;



  padding: 6px 8px;



  background: #f8fafc;



  border: 1px solid #e2e8f0;



  border-radius: 6px;



  font-size: 13px;



}



.options-subtask-del {



  margin-left: auto;



  border: none;



  background: transparent;



  color: #94a3b8;



  cursor: pointer;



  padding: 2px 6px;



}



.options-subtask-del:hover {



  color: #ef4444;



}







/* Inventory Item Checked Audit State (Never Deleted) */



.task-line.checked-inventory {



  background: #f0fdf4 !important;



  border-left: 4px solid #10b981 !important;



}



.task-line.checked-inventory .task-text-content {



  color: #166534 !important;



  font-weight: 600;



}



.mobile-task-item.checked-inventory {



  background: #f0fdf4 !important;



  border: 1.5px solid #86efac !important;



}



.mobile-task-item.checked-inventory .mobile-task-text {



  color: #166534 !important;



}







/* Active Room Section Highlight */



.page-section.active-page-section {



  border: 2px solid #38bdf8 !important;



  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12) !important;



}



.page-section.active-page-section .page-separator {



  background: #e0f2fe !important;



  border-left: 4px solid #0284c7 !important;



}







/* ============================================================ */



/* INVENTORY DISPLAY: BIG QUANTITY & NO BOXES                   */



/* ============================================================ */



.mobile-inventory-item {



  display: flex !important;



  align-items: center !important;



  justify-content: space-between !important;



  padding: 13px 15px !important;



  background: #ffffff !important;



  border-radius: 12px !important;



  margin-bottom: 9px !important;



  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;



  border: 1px solid #f1f5f9 !important;



  position: relative !important;



}







.mobile-inventory-item.mobile-task-low-stock {



  background: #fffbf0 !important;



  border-color: #fed7aa !important;



}







.mobile-inventory-left {



  display: flex;



  flex-direction: column;



  flex: 1;



  min-width: 0;



  padding-right: 12px;



}







.mobile-inventory-text {



  font-size: 16px;



  font-weight: 600;



  color: #0f172a;



  word-break: break-word;



  line-height: 1.35;



}







.mobile-inventory-low-alert {



  font-size: 11.5px;



  font-weight: 700;



  color: #dc2626;



  margin-top: 4px;



  display: flex;



  align-items: center;



  gap: 4px;



}







.mobile-inventory-qty-block {



  display: inline-flex;



  align-items: baseline;



  gap: 3px;



  cursor: pointer;



  padding: 4px 6px;



  border-radius: 6px;



  user-select: none;



  background: transparent !important;



  border: none !important;



  box-shadow: none !important;



  transition: opacity 0.15s ease, transform 0.1s ease;



  flex-shrink: 0;



}







.mobile-inventory-qty-block:active {



  opacity: 0.7;



  transform: scale(0.96);



}







.mobile-inventory-big-qty {



  font-size: 26px;



  font-weight: 800;



  line-height: 1;



  color: #0284c7;



  letter-spacing: -0.5px;



}







.mobile-inventory-big-qty.low-stock {



  color: #dc2626;



}







.mobile-inventory-unit {



  font-size: 13px;



  font-weight: 700;



  color: #64748b;



  text-transform: lowercase;



}







.mobile-inventory-edit-hint {



  font-size: 12px;



  opacity: 0.45;



  margin-left: 2px;



}







/* Desktop Inventory Big Quantity (No Box) */



.desktop-inv-big-qty {



  display: inline-flex;



  align-items: baseline;



  gap: 3px;



  font-size: 22px;



  font-weight: 800;



  color: #0284c7;



  margin-left: 14px;



  cursor: pointer;



  background: transparent !important;



  border: none !important;



  padding: 0;



  user-select: none;



  transition: opacity 0.15s ease;



}







.desktop-inv-big-qty:hover {



  opacity: 0.8;



}







.desktop-inv-big-qty.low-stock {



  color: #dc2626;



}







.desktop-inv-unit {



  font-size: 13px;



  font-weight: 600;



  color: #64748b;



}







.inv-edit-pencil {



  font-size: 12px;



  opacity: 0.45;



}

/* ============================================================ */
/* STATE-OF-THE-ART INVENTORY TABLE LAYOUT (DESKTOP)            */
/* ============================================================ */

/* Horizontal scroll container on narrow desktop/tablets */
.task-list.is-inventory-list {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Sticky Table Header */
.inv-table-header-row {
  display: grid !important;
  grid-template-columns: minmax(260px, 2.5fr) 130px 140px 115px 125px 190px 130px 36px;
  align-items: center;
  padding: 10px 18px 10px 75px !important;
  background: #f1f5f9 !important;
  border-bottom: 2px solid #cbd5e1 !important;
  font-family: var(--font-sans) !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #475569 !important;
  min-width: 1080px;
  box-sizing: border-box;
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 20;
  list-style: none !important;
}

.inv-th-col {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Inventory Item Row */
.task-line.inv-table-row {
  display: grid !important;
  grid-template-columns: minmax(260px, 2.5fr) 130px 140px 115px 125px 190px 130px 36px;
  align-items: center !important;
  justify-content: normal !important;
  padding: 8px 18px 8px 75px !important;
  min-height: 58px !important;
  min-width: 1080px;
  box-sizing: border-box !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
  background-color: rgba(255, 255, 255, 0.95);
  transition: all 0.15s ease;
  font-family: var(--font-sans) !important;
}

.task-line.inv-table-row:hover {
  background-color: #f8fafc !important;
}

.task-line.inv-table-row.is-low-stock {
  background-color: #fff1f2 !important;
  border-left: 5px solid #ef4444 !important;
}

/* Col 1: Product Cell */
.inv-td-product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-right: 12px;
}

.inv-product-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.inv-product-name {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.inv-product-name:hover {
  color: #2563eb;
}

/* Col 2: Current Stock */
.inv-td-stock {
  display: flex;
  align-items: center;
}

.inv-stock-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 8px;
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.05);
}

.inv-stock-tag:hover {
  border-color: #0284c7;
  background: #ffffff;
  transform: translateY(-1px);
}

.inv-stock-val {
  font-size: 19px;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: -0.02em;
}

.inv-stock-unit {
  font-size: 12px;
  font-weight: 700;
  color: #0369a1;
}

.inv-stock-pencil {
  font-size: 11px;
  opacity: 0.5;
  margin-left: 2px;
}

.inv-stock-tag.low-stock {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
}

.inv-stock-tag.low-stock .inv-stock-val {
  color: #dc2626 !important;
}

.inv-stock-tag.low-stock .inv-stock-unit {
  color: #b91c1c !important;
}

/* Col 3: Min Stock Limit */
.inv-td-min {
  display: flex;
  align-items: center;
}

.inv-min-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.inv-min-tag:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.inv-min-val {
  font-size: 16px;
  font-weight: 800;
  color: #334155;
}

.inv-min-unit {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.inv-min-alert {
  font-size: 10px;
  font-weight: 800;
  background: #ef4444;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.inv-min-tag.low-stock {
  background: #fef2f2 !important;
  border-color: #f87171 !important;
}

.inv-min-tag.low-stock .inv-min-val {
  color: #b91c1c !important;
}

/* Empty dash */
.inv-td-empty {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 16px;
  padding-left: 8px;
}

/* Col 4: Batch */
.inv-td-batch {
  display: flex;
  align-items: center;
}

.inv-batch-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.inv-batch-tag:hover {
  background: #ffffff;
  border-color: #94a3b8;
}

.inv-jar-pill {
  font-size: 11px;
  font-weight: 700;
  color: #4338ca;
  background: #e0e7ff;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
}

.inv-qr-btn {
  display: inline-flex;
  align-items: center;
  color: #2563eb;
  padding: 2px 4px;
  margin-left: 4px;
  border-radius: 4px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.inv-qr-btn:hover {
  background: #eff6ff;
  color: #1d4ed8;
  transform: scale(1.1);
}

/* Col 5: Start Date */
.inv-td-start {
  display: flex;
  align-items: center;
}

.inv-start-tag {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}

/* Col 6: Harvest Date & Countdown */
.inv-td-harvest {
  display: flex;
  align-items: center;
}

.inv-harvest-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: #92400e;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.inv-harvest-tag:hover {
  border-color: #f59e0b;
}

/* Status Badges */
.inv-col-status {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.inv-col-status.pending { background: #e0f2fe; color: #0369a1; }
.inv-col-status.soon { background: #fef3c7; color: #b45309; border: 1px solid #fcd34d; }
.inv-col-status.ready { background: #dcfce7; color: #15803d; }
.inv-col-status.overdue { background: #fee2e2; color: #b91c1c; }
.inv-col-status.harvested { background: #e2e8f0; color: #475569; }

/* Col 7: Room / Fridge Location */
.inv-td-room {
  display: flex;
  align-items: center;
}

.inv-room-tag {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

/* Col 8: Actions / Priority Dot */
.inv-td-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================ */
/* MOBILE INVENTORY PREMIUM CARD                                */
/* ============================================================ */

.mobile-task-item.mobile-inventory-card {
  display: flex !important;
  flex-direction: column !important;
  padding: 14px 16px !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  margin-bottom: 12px !important;
  transition: all 0.15s ease !important;
  position: relative !important;
}

.mobile-task-item.mobile-inventory-card:active {
  background: #f8fafc !important;
}

.mobile-task-item.mobile-inventory-card.mobile-task-low-stock {
  border-color: #fca5a5 !important;
  background: #fffafa !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08) !important;
  border-left: 4px solid #ef4444 !important;
}

/* Mobile Top Row: Product + Big Quantity */
.m-inv-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.m-inv-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.m-inv-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.m-inv-title {
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  word-break: break-word;
}

.m-inv-stock-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 6px 12px;
  border-radius: 10px;
  background: #f0f9ff;
  border: 1.5px solid #7dd3fc;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08);
}

.m-inv-stock-num {
  font-size: 20px;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: -0.02em;
}

.m-inv-stock-unit {
  font-size: 12px;
  font-weight: 700;
  color: #0369a1;
}

.m-inv-stock-pencil {
  font-size: 11px;
  opacity: 0.5;
  margin-left: 2px;
}

.m-inv-stock-badge.low-stock {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
}

.m-inv-stock-badge.low-stock .m-inv-stock-num {
  color: #dc2626 !important;
}

.m-inv-stock-badge.low-stock .m-inv-stock-unit {
  color: #b91c1c !important;
}

/* Mobile Alert Banner */
.m-inv-alert-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  margin-top: 10px;
  border-radius: 8px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  font-size: 12.5px;
  color: #b91c1c;
  line-height: 1.3;
}

.m-inv-alert-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.m-inv-alert-msg strong {
  font-weight: 800;
}

/* 4-Box Key Metrics Grid */
.m-inv-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.m-inv-stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.m-inv-stat-lbl {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.m-inv-stat-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.m-inv-stat-val small {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.m-inv-stat-box.is-low {
  background: #fff1f2;
  border-color: #fca5a5;
}

.m-inv-stat-val.val-danger {
  color: #dc2626;
  font-weight: 800;
}

.m-inv-stat-val.val-batch {
  font-weight: 800;
  color: #0f172a;
}

.m-inv-stat-box.harvest-stat-box {
  background: #fffbeb;
  border-color: #fde68a;
}

.m-inv-stat-val.val-harvest {
  color: #92400e;
  font-weight: 800;
}

.m-inv-harvest-val-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
}

.m-inv-badge-wrap {
  margin-top: 2px;
}

/* Card Footer */
.m-inv-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.m-inv-room-pill {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
}

.mobile-inv-options-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #94a3b8;
  display: flex;
  align-items: center;
}

/* Fallback backward compatibility styles */
.inv-table-line {
  min-height: 56px;
}
.inv-table-columns-wrap {
  display: inline-flex;
}
.inv-batch-line {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

/* ===== AirMenu selling catalog (shown instead of sub-lists on the AirMenu tab) ===== */
.airmenu-catalog {
  padding: 12px 20px 110px;
  font-family: var(--font-sans, Inter, sans-serif);
  color: #0f172a;
}
.airmenu-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.airmenu-toolbar-title {
  font-size: 22px;
  font-weight: 800;
}
.airmenu-toolbar-title span {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-left: 4px;
}
.airmenu-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.airmenu-tool-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.airmenu-share-pdf {
  border-color: #16a34a;
  color: #15803d;
}
.airmenu-tool-btn,
.airmenu-cat-add {
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.airmenu-tool-btn:hover,
.airmenu-cat-add:hover {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}
.airmenu-add-main {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}
.airmenu-add-main:hover {
  background: #1d4ed8;
  color: #ffffff;
}
.airmenu-empty {
  padding: 40px 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #64748b;
}
.airmenu-cat {
  margin-top: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}
.airmenu-cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 2px solid #cbd5e1;
}
.airmenu-cat-name {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.airmenu-cat-count {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}
.airmenu-low-count {
  color: #dc2626;
}
.airmenu-cat-head .airmenu-cat-add {
  margin-left: auto;
  font-size: 14px;
  padding: 7px 12px;
}
.airmenu-cat-empty {
  padding: 16px;
  font-size: 15px;
  color: #94a3b8;
  font-style: italic;
}
.airmenu-head-row,
.airmenu-row {
  display: grid;
  grid-template-columns: minmax(200px, 2.4fr) 150px 120px 150px minmax(140px, 1.4fr) 110px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}
.airmenu-head-row {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e2e8f0;
}
.airmenu-row {
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.airmenu-row:last-child {
  border-bottom: none;
}
.airmenu-row.is-low {
  background: #fef2f2;
}
.am-lbl {
  display: none;
}
.am-name {
  cursor: pointer;
  min-width: 0;
}
.am-name-text {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}
.am-pack {
  font-size: 16px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}
.am-name:hover .am-name-text {
  color: #1d4ed8;
  text-decoration: underline;
}
.airmenu-row .inv-stock-tag {
  font-family: inherit;
  padding: 6px 14px;
}
.airmenu-row .inv-stock-val {
  font-size: 22px;
}
.airmenu-row .inv-stock-unit {
  font-size: 14px;
}
.am-packs-val {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}
.am-packs-val small {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}
.am-loc {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.airmenu-sell-btn {
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 10px;
  background: #16a34a;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
.airmenu-sell-btn:hover {
  background: #15803d;
}

/* Phone: one card per product — name on top, then Qty / Packs / Min, then location + Sell */
.airmenu-catalog.am-mobile {
  padding: 4px 10px 30px;
}
.am-mobile .airmenu-toolbar-title {
  font-size: 19px;
}
.am-mobile .airmenu-tool-btn {
  font-size: 14px;
  padding: 8px 10px;
}
.am-mobile .airmenu-cat-head {
  flex-wrap: wrap;
  padding: 10px 12px;
}
.am-mobile .airmenu-cat-name {
  font-size: 21px;
}
.am-mobile .airmenu-head-row {
  display: none;
}
.am-mobile .airmenu-row {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "name name name"
    "qty packs min"
    "loc loc act";
  gap: 8px;
  padding: 12px;
}
.am-mobile .am-name { grid-area: name; }
.am-mobile .am-qty { grid-area: qty; }
.am-mobile .am-packs { grid-area: packs; }
.am-mobile .am-min { grid-area: min; }
.am-mobile .am-loc { grid-area: loc; }
.am-mobile .am-act { grid-area: act; }
.am-mobile .am-lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.am-mobile .am-name-text {
  font-size: 19px;
}

/* AirMenu modals (sell / add product / categories) */
.airmenu-modal .modal-header {
  font-size: 18px;
}
.am-sell-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.am-sell-mode input {
  width: 20px;
  height: 20px;
}
.am-sell-stepper,
.am-sell-amount {
  display: flex;
  gap: 8px;
  align-items: center;
}
.am-sell-num {
  font-size: 22px !important;
  font-weight: 800;
  text-align: center;
  flex: 1;
  min-width: 0;
}
.am-sell-amount .form-select {
  width: 110px;
  font-size: 16px;
}
.am-step {
  width: 52px;
  height: 48px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  font-size: 26px;
  font-weight: 800;
  cursor: pointer;
}
.am-sell-preview {
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  font-size: 17px;
  line-height: 1.5;
}
.am-preview-low {
  color: #dc2626;
}
.am-preview-warn {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #b45309;
}
.am-sell-confirm {
  background: #16a34a !important;
  border-color: #16a34a !important;
  font-size: 17px;
  font-weight: 800;
}
.am-sell-confirm:disabled,
.airmenu-modal .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.am-add-tabs {
  display: flex;
  gap: 8px;
  margin: 6px 0 12px;
}
.am-add-tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.am-add-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}
.am-add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.am-add-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.am-add-grid-one {
  grid-template-columns: 1fr;
}
.am-cand-list {
  margin-top: 8px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.am-cand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.am-cand:hover {
  background: #f8fafc;
}
.am-cand.picked {
  background: #dbeafe;
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}
.am-cand-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.am-cand-meta {
  font-size: 13px;
  color: #64748b;
}
.am-cand-empty {
  padding: 14px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}
.am-cat-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 12px;
}
.am-cat-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.am-cat-num {
  width: 22px;
  font-weight: 700;
  color: #64748b;
}
.am-cat-title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
}
.am-cat-btn {
  width: 36px;
  height: 34px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.am-cat-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.am-cat-add {
  display: flex;
  gap: 8px;
}
.am-cat-hint {
  margin: 8px 0 12px;
  font-size: 13px;
  color: #64748b;
}

/* AirMenu box inside the item options modal */
.options-airmenu-section {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}
.options-airmenu-title {
  font-weight: 700;
  color: #c2410c;
  margin-bottom: 8px;
}
.options-airmenu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.options-airmenu-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  display: block;
  margin-bottom: 3px;
}
.options-airmenu-custom {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.options-airmenu-custom input {
  flex: 1;
  min-width: 0;
}
.options-airmenu-custom select {
  width: 90px;
}
.options-airmenu-remove {
  margin-top: 10px;
  color: #dc2626;
  border-color: #fca5a5;
  font-weight: 700;
}

/* Inventory line that is also on AirMenu */
.inv-airmenu-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .am-add-grid,
  .am-add-grid-3,
  .options-airmenu-grid {
    grid-template-columns: 1fr;
  }
}

#toast-notification {
  z-index: 3000 !important;
}

/* "↕️ Change list order…" entry at the top of the Select List menu */
.folder-selector-reorder {
  display: block;
  width: calc(100% - 24px);
  margin: 4px 12px 8px;
  padding: 8px 12px;
  border: 1px dashed #93c5fd;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.folder-selector-reorder:hover {
  background: #dbeafe;
}

/* Phone "Factory Lists" heading: ↕️ Order sits before + New List */
.mobile-section-heading .mobile-order-lists-btn {
  margin-left: auto;
  margin-right: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* AirMenu drag handles (mouse and finger): products and whole sections */
.am-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 6px;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: grab;
  touch-action: none;           /* finger drag moves the row instead of scrolling the page */
  user-select: none;
  vertical-align: middle;
}
.am-drag:hover { background: #e2e8f0; color: #334155; }
.am-drag-cat { width: 32px; height: 32px; font-size: 22px; }
.am-dragging {
  opacity: 0.85;
  outline: 2px dashed #3b82f6;
  outline-offset: 2px;
  background: #eff6ff !important;
  position: relative;
  z-index: 5;
}
body.am-drag-active, body.am-drag-active * { cursor: grabbing !important; user-select: none !important; }

/* ============================================================ */
/* INVENTORY TABLE ON NARROWER SCREENS (Samsung Flip portrait,  */
/* small laptops): fit the width instead of cutting the right   */
/* side off. Draw mode catches finger swipes, so a sideways     */
/* scroll is not reachable there.                               */
/* ============================================================ */
@media (max-width: 1320px) {
  .inv-table-header-row,
  .task-line.inv-table-row {
    /* product | stock | min | batch | start | harvest | actions  (location hidden: the section heading names it) */
    grid-template-columns: minmax(140px, 2fr) 96px 122px 66px 104px 150px 34px;
    min-width: 0;
    padding-right: 10px !important;
  }
  .inv-th-room,
  .inv-td-room {
    display: none !important;
  }
  .inv-harvest-tag {
    flex-wrap: wrap;
    row-gap: 2px;
  }
  .inv-td-product {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .inv-th-col {
    white-space: normal;     /* "CURRENT STOCK" wraps instead of running into "MIN STOCK" */
    line-height: 1.25;
    padding-right: 6px;
  }
}

@media (max-width: 900px) {
  .inv-table-header-row,
  .task-line.inv-table-row {
    grid-template-columns: minmax(120px, 2fr) 92px 118px 62px 140px 32px;
    padding-left: 56px !important;
  }
  .inv-th-start,
  .inv-td-start {
    display: none !important;
  }
}

/* Inventory product cell: name on top, "🍽️ AirMenu · Miso · 200 gm" tag below it */
.inv-product-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}
.inv-product-stack .inv-product-name {
  max-width: 100%;
  white-space: normal;          /* long names wrap to a 2nd line instead of "…" */
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.inv-product-stack .inv-airmenu-tag {
  margin-left: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-inv-title-wrap:has(.inv-airmenu-tag) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.m-inv-title-wrap .inv-airmenu-tag {
  margin-left: 0;
}

/* Add product box: "Add to AirMenu" pressed before a line was tapped */
.am-cand-list.am-need-pick {
  outline: 3px solid #dc2626;
  outline-offset: 1px;
}
.am-cand-list.am-need-pick::before {
  content: "👆 Tap a product in this list first";
  display: block;
  padding: 8px 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 800;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Phone inventory card with a single filled box: no half-empty row */
.m-inv-metrics-grid.m-inv-metrics-single {
  grid-template-columns: 1fr;
}

/* Phone "Add product" row: the text box kept its default ~20-letter minimum width, so the wider
   "+ Add Product" button (Inventory) was pushed off the right edge of the screen. */
.mobile-add-input-row input { min-width: 0; }
.mobile-add-input-row .mobile-voice-task-btn,
.mobile-add-input-row .mobile-submit-task-btn { flex-shrink: 0; white-space: nowrap; }

/* Board (Samsung TV browser): date = Day / Month / Year dropdowns + one-tap buttons (see App.enhanceDateInput) */
.fb-date-select-row { display: grid; grid-template-columns: 0.8fr 1fr 1.1fr; gap: 6px; }
.fb-date-select { min-height: 44px; padding: 6px 8px !important; font-size: 16px; font-weight: 600; }
.fb-date-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fb-date-quick-btn { min-height: 38px; padding: 4px 12px !important; font-size: 14px !important; font-weight: 700;
  background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; border-radius: 8px; }
.board-dates #options-batch-fields { grid-template-columns: 1fr 1fr !important; }

/* ── 22 Oct: header / bottom bar tidy-up, per-page Add button, task popup with Keyboard / Pen, Close ── */
/* Adding a line is the big button on each page; Draw / Type / Erase stay on the round pen button (FAB) */
#header-add-task-btn, #header-mode-group { display: none !important; }
/* Bottom bar (Type Task / Draw Notes / Clear Draw) hidden; clearing a drawing stays on the round pen button */
#bottom-toolbar { display: none !important; }

/* Big "Add Task" button at the right of the sub-list row + page row (as tall as both) */
.desktop-room-tabs-bar.has-add-task { flex-wrap: nowrap; align-items: stretch; }
.desktop-room-tabs-bar .sublist-rows { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.desktop-room-tabs-bar .sublist-rows > * { align-self: flex-start; max-width: 100%; }
.sublist-add-task-btn {
  flex: none; align-self: stretch;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 230px; min-height: 64px; padding: 10px 30px;
  font-size: 24px; font-weight: 800; color: #fff; background: #2563eb;
  border: none; border-radius: 14px; cursor: pointer;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
}
.sublist-add-task-btn .material-icons { font-size: 32px; }
.sublist-add-task-btn:active { transform: scale(0.97); background: #1d4ed8; }

.board-header { position: relative; }
.close-app-btn {
  position: absolute; top: 12px; right: 24px; z-index: 30;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px !important; min-height: 48px; font-size: 18px; font-weight: 800;
  color: #b91c1c; background: #fef2f2; border: 2px solid #fca5a5 !important; border-radius: 12px;
}
.close-app-btn .material-icons { font-size: 24px; }

.board-closed-overlay {
  position: fixed; inset: 0; top: 0; left: 0; right: 0; bottom: 0; z-index: 5000;
  background: #0f172a; display: flex; align-items: center; justify-content: center;
}
.board-closed-box { text-align: center; color: #e2e8f0; }
.board-closed-icon { font-size: 96px !important; color: #64748b; }
.board-closed-title { font-size: 44px; font-weight: 800; margin: 12px 0 36px; }
.board-open-again-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 30px !important; font-weight: 800; padding: 22px 56px !important; border-radius: 16px; min-height: 84px;
}
.board-open-again-btn .material-icons { font-size: 40px; }

/* Task popup: Keyboard / Pen before Cancel */
.task-modal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.task-modal-actions .task-modal-actions-gap { flex: 1; }
.task-input-mode-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.task-input-mode-btn.active { background: #1e293b; color: #fff; border-color: #1e293b; }
.task-pen-wrap {
  width: 100%; height: 300px; border: 2px dashed #93c5fd; border-radius: 12px; background: #fff;
  touch-action: none; overflow: hidden;
}
#task-pen-pad { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.task-pen-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; color: #64748b; }
.task-pen-actions .btn { display: inline-flex; align-items: center; gap: 6px; }

/* Big screens (the board): a wide popup at the top, Assign To and Priority side by side, so it fits in the
   upper half and the on-screen keyboard opens below it. --fb-vvh = the visible height above the keyboard. */
@media (min-width: 1024px) {
  #task-modal { align-items: flex-start; padding-top: calc(var(--fb-vvh, 100vh) * 0.2); }   /* 20% down from the top */
  #task-modal .modal-content {
    max-width: 1100px; width: 94vw; padding: 22px 30px; margin: 0 auto;   /* top of the screen, not centred */
    max-height: calc(var(--fb-vvh, 100vh) * 0.8 - 12px);
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px;
  }
  #task-modal .modal-content > * { grid-column: 1 / -1; }
  #task-modal #task-modal-assignee-group, #task-modal #task-modal-priority-group { grid-column: auto; }
  #task-modal .modal-header { font-size: 26px; }
  #task-modal .form-label { font-size: 18px; font-weight: 700; }
  #task-modal .form-input, #task-modal .form-select { font-size: 22px; min-height: 58px; }
  #task-modal .task-modal-actions .btn { font-size: 20px; min-height: 56px; padding: 10px 22px; }
  #task-modal .task-pen-wrap { height: 340px; }
}

/* 22 Oct (2): line numbers on every list, no "double-click to add" rows, movable New Task popup */
.task-list { counter-reset: fb-line; }
.task-list > li.task-line { counter-increment: fb-line; }
.task-list > li.task-line::before {
  content: counter(fb-line);
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  min-width: 34px; text-align: right;
  font-family: var(--font-sans, system-ui, sans-serif); font-size: 18px; font-weight: 800; color: #64748b;
  pointer-events: none;
}
.task-list > li.task-line.inv-table-row::before { left: 10px; font-size: 16px; }
.airmenu-cat { counter-reset: fb-am; }
.airmenu-cat .airmenu-row { counter-increment: fb-am; }
.airmenu-cat .airmenu-row .am-name::before {
  content: counter(fb-am) ".";
  display: inline-block; min-width: 30px; margin-right: 4px;
  font-size: 18px; font-weight: 800; color: #64748b;
}
.task-line-add-placeholder { display: none !important; }
#task-modal .task-modal-drag-handle { cursor: move; touch-action: none; user-select: none; }

/* "Added by" tag on task / order rows */
.task-added-by {
  font-family: var(--font-sans, system-ui, sans-serif); font-size: 13px; font-weight: 600; color: #475569;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 999px; padding: 2px 10px; margin: 0 10px;
  white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis;
}

/* 22 Oct (3): sub-tasks in the New Task popup; the Edit Task popup like the New Task one */
.task-subtasks-optional { font-weight: 500; color: #94a3b8; font-size: 0.85em; }
.task-new-subtasks-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.task-new-subtask { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #f0fdf4;
  border: 1px solid #bbf7d0; border-radius: 10px; font-weight: 600; color: #14532d; }
.task-new-subtask .material-icons { font-size: 20px; color: #16a34a; }
.task-new-subtask-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.task-new-subtask-del { border: none; background: transparent; color: #b91c1c; font-size: 26px; line-height: 1;
  cursor: pointer; padding: 0 6px; }
.task-new-subtask-row { display: flex; gap: 8px; }
.task-new-subtask-row .form-input { flex: 1; }
#task-new-subtask-add { display: inline-flex; align-items: center; gap: 4px; background: #10b981; color: #fff;
  border-color: #10b981; font-weight: 700; }
.options-mode-row { margin: 4px 0 12px; }
#options-pen-pad { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.task-pen-actions .task-modal-actions-gap { flex: 1; }

@media (min-width: 1024px) {
  #options-modal { align-items: flex-start; padding-top: calc(var(--fb-vvh, 100vh) * 0.2); }
  #options-modal .modal-content {
    max-width: 1100px; width: 94vw; padding: 22px 30px; margin: 0 auto;
    max-height: calc(var(--fb-vvh, 100vh) * 0.8 - 12px); overflow-y: auto;
  }
  #options-modal .modal-header { font-size: 26px; }
  #options-modal .form-label { font-size: 18px; font-weight: 700; }
  #options-modal #options-task-input-text, #options-modal .form-select { font-size: 22px !important; min-height: 58px; }
  #options-modal .task-modal-actions .btn, #options-modal .options-modal-footer .btn { font-size: 20px; min-height: 56px; }
  #options-modal .task-pen-wrap { height: 300px; }
  #task-modal .task-new-subtask-row .form-input { font-size: 20px; min-height: 52px; }
  #task-modal #task-new-subtask-add { font-size: 20px; min-height: 52px; padding: 8px 20px; }
}

/* 22 Oct (4): no drawing on the board and no pen — always the keyboard.
   Round pen button + its menu, the drawing layer (old drawings stay saved, just hidden),
   and the Keyboard / Pen choice in the New / Edit Task popups are hidden. */
#fab-container { display: none !important; }
.drawing-container { display: none !important; }
#options-mode-keyboard-btn, #options-mode-pen-btn, #options-pen-group, .options-mode-row { display: none !important; }
/* Add Task popup: Pen is back; its Clear sits between Pen and Cancel, so the one under the pad is hidden */
#task-pen-clear-btn { display: none !important; }
#task-pen-clear-row-btn { align-items: center; gap: 6px; font-weight: 700; color: #b91c1c; border-color: #fca5a5; }
/* A required field left empty */
.field-missing { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18) !important; }
.task-pen-wrap.field-missing { border-style: solid !important; }

/* 22 Oct (5): Due date + Given by in the task popups; due tag on rows; "Writing..." flash on the pen pad */
.due-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.due-quick-btn { font-weight: 700; background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
@media (min-width: 1024px) {
  #task-modal #task-modal-due-group, #task-modal #task-modal-givenby-group { grid-column: auto; }
  #task-modal .due-quick-btn { font-size: 18px; min-height: 48px; }
}
.task-due {
  font-family: var(--font-sans, system-ui, sans-serif); font-size: 13px; font-weight: 700; white-space: nowrap;
  color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 999px; padding: 2px 10px; margin-left: 10px;
}
.task-due.due-today { color: #92400e; background: #fef3c7; border-color: #fcd34d; }
.task-due.due-late { color: #fff; background: #dc2626; border-color: #dc2626; }
.task-line.done .task-due { opacity: 0.55; }
.task-pen-wrap { position: relative; }
.task-pen-wrap .pen-writing-flash {
  position: absolute; top: 10px; right: 12px; pointer-events: none; display: none;
  font-weight: 800; font-size: 15px; color: #fff; background: #2563eb; border-radius: 999px; padding: 4px 12px;
  animation: penFlash 0.8s ease-in-out infinite alternate;
}
.task-pen-wrap.is-writing .pen-writing-flash { display: block; }
@keyframes penFlash { from { opacity: 1; } to { opacity: 0.35; } }

/* 23 Oct: Pen / Eraser / Undo / Clear on the Add Task pad (top-right); the "Writing…" flash moves to top-left */
.task-pen-wrap .pen-writing-flash { right: auto; left: 12px; }
.task-pen-wrap.is-erasing .pen-writing-flash { background: #f59e0b; }
.task-pen-wrap.is-erasing #task-pen-pad { cursor: cell; }
.task-pen-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.task-pen-head .form-label { margin-bottom: 0; }
.pen-tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pen-tool {
  font-weight: 700; font-size: 15px; padding: 6px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid #cbd5e1; background: #f8fafc; color: #1e293b; touch-action: manipulation;
}
.pen-tool.active { background: #1e293b; color: #fff; border-color: #1e293b; }
.pen-tool-clear { color: #b91c1c; border-color: #fca5a5; }
/* The Clear in the bottom row (after Pen) is gone: Clear is in the row above the pad */
#task-pen-clear-row-btn { display: none !important; }

/* 23 Oct (2): task rows — task, due date and priority on the line; assigned-to and "by" on a small line below */
.task-list > li.task-line.has-meta { padding-top: 4px; padding-bottom: 4px; }
.task-line .task-meta {
  flex-basis: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px;
  padding-left: 48px; margin-top: 6px; line-height: 1.2;
}
/* "to Praloy": a capsule like "by …" */
.task-line .task-meta .task-assignee {
  margin: 0; padding: 1px 8px; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-sans, system-ui, sans-serif); font-size: 12px; font-weight: 700;
  color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe;
}
.task-line.done .task-meta .task-assignee { color: #64748b; background: #f1f5f9; border-color: #e2e8f0; }
/* 🔊 on each task line */
.task-speak-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: 14px;
  border-radius: 50%; border: 1px solid #fcd34d; background: #fffbeb; color: #b45309; cursor: pointer; flex-shrink: 0;
}
.task-speak-btn .material-icons { font-size: 22px; }
.task-speak-btn:active { transform: scale(0.92); background: #fef3c7; }
.task-line .task-meta .task-added-by { font-size: 12px; margin: 0; padding: 1px 8px; }
/* 23 Oct (3): lists with one page (all but Inventory / AirMenu): no page arrows, page count, + or delete-page */
body.fb-one-page .board-page-nav,
body.fb-one-page #mobile-prev-page-btn, body.fb-one-page #mobile-next-page-btn, body.fb-one-page #mobile-page-indicator,
body.fb-one-page #mobile-add-page-btn, body.fb-one-page #mobile-delete-page-btn { display: none !important; }
/* Top-right corner: Refresh and Close side by side, the same size; the header's buttons stay clear of them */
.board-top-right { position: absolute; top: 12px; right: 24px; z-index: 30; display: flex; gap: 12px; }
.board-top-right .close-app-btn { position: static; }
.board-top-right .btn { min-width: 150px; justify-content: center; }
.board-refresh-big {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px !important; min-height: 48px; font-size: 18px; font-weight: 800;
  color: #1d4ed8; background: #eff6ff; border: 2px solid #93c5fd !important; border-radius: 12px;
}
.board-refresh-big .material-icons { font-size: 24px; }
@media (min-width: 1700px) { .board-header { padding-right: 370px !important; } }
/* Narrower screens: the buttons get their own full-width row under the title; only the title row leaves room */
@media (min-width: 769px) and (max-width: 1699px) {
  .board-title-area { padding-right: 370px; min-height: 52px; }
  .board-controls { flex-basis: 100%; }
}
/* Hidden from the header: AI Scan, Upload PDF, Hindi Voice (its reminders still run; Settings keeps the test button)
   Export CSV (still in the Share popup) and Folders (the list tabs and Select List remain) */
#header-ocr-btn, #header-upload-btn, #header-tts-btn, #header-export-csv-btn, #folders-btn { display: none !important; }

/* The board's own one-field box (instead of the browser's prompt) */
.fb-ask { position: fixed; inset: 0; z-index: 7000; background: rgba(15, 23, 42, 0.55);
  display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; }
.fb-ask-box { width: 100%; max-width: 480px; background: #fff; border-radius: 20px; padding: 22px 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35); font-family: var(--font-sans, system-ui, sans-serif); }
.fb-ask-title { font-size: 22px; font-weight: 800; color: #0f172a; margin-bottom: 14px; }
.fb-ask-label { display: block; font-size: 15px; font-weight: 600; color: #475569; margin-bottom: 8px; }
.fb-ask-field + .fb-ask-field { margin-top: 6px; }
.fb-ask-box { max-height: 82vh; overflow-y: auto; }
.fb-ask-input { width: 100%; height: 54px; padding: 0 16px; border: 1.5px solid #cbd5e1; border-radius: 14px;
  font-size: 20px; color: #0f172a; outline: none; box-sizing: border-box; }
.fb-ask-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.fb-ask-error { min-height: 20px; margin-top: 6px; font-size: 14px; font-weight: 600; color: #dc2626; }
.fb-ask-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.fb-ask-actions .btn { min-width: 110px; min-height: 50px; justify-content: center; font-size: 17px; font-weight: 700; border-radius: 12px; }
.fb-ask-ok { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }
select.fb-ask-input { background: #fff; }

/* 23 Oct (5): the Settings PIN — 4 boxes, one digit each */
.fb-pin .fb-ask-box { max-width: 400px; text-align: center; }
.fb-pin-hint { font-size: 16px; color: #475569; margin-bottom: 18px; }
.fb-pin-boxes { display: flex; justify-content: center; gap: 14px; }
.fb-pin-digit { width: 64px; height: 72px; text-align: center; font-size: 32px; font-weight: 800; color: #0f172a;
  border: 2px solid #cbd5e1; border-radius: 14px; outline: none; background: #f8fafc; }
.fb-pin-digit:focus { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.fb-pin .fb-ask-error { text-align: center; margin-top: 12px; }
.fb-pin .fb-ask-actions { justify-content: center; }
.fb-shake { animation: fbShake 0.4s; }
@keyframes fbShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }

/* Settings: AirMenu sections + PIN at the top */
.settings-quick { display: flex; flex-direction: column; gap: 10px; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid #e5e7eb; }
.settings-quick-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.settings-quick-text { flex: 1; min-width: 0; }
.settings-quick-text h3 { margin: 0 0 2px; font-size: 16px; }
.settings-quick-text span { font-size: 13px; color: #64748b; }
.settings-quick-row .btn { white-space: nowrap; font-weight: 700; }

/* "Add Task" in the Full List / Employee List / Completed row (lists with one page) */
#tab-bar { align-items: center; }
#tab-bar .sublist-add-task-btn.in-tab-bar { margin-left: auto; min-width: 0; min-height: 60px; padding: 8px 26px; font-size: 22px; }
#tab-bar .sublist-add-task-btn.in-tab-bar .material-icons { font-size: 28px; }

/* 23 Oct (4): Share popup — 1 recipients, 2 method, 3 format */
#share-modal .share-v2 {
  max-width: 560px; width: 94vw; max-height: 90vh; overflow-y: auto; padding: 22px 24px;
  border-radius: 20px; font-family: var(--font-sans, system-ui, sans-serif); color: #0f172a;
}
/* one scrolling column: nothing in it is squeezed (the list keeps its own height) */
#share-modal .share-v2 { display: block !important; }
#share-modal .share-v2 > * { flex-shrink: 0; }
.share-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #e2e8f0; }
.share-head-icon { width: 44px; height: 44px; border-radius: 12px; background: #ecfdf5; color: #16a34a;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.share-head-text { flex: 1; min-width: 0; }
.share-title { font-size: 24px; font-weight: 800; line-height: 1.2; }
.share-sub { font-size: 14px; color: #64748b; margin-top: 2px; }
.share-close { cursor: pointer; font-size: 28px !important; color: #334155; padding: 4px; }
.share-scope { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; background: #f1f5f9; border-radius: 12px; }
.share-scope .btn { flex: 1; justify-content: center; font-size: 13px; font-weight: 700; padding: 8px; border-radius: 9px; }
.share-target { margin-bottom: 14px; padding: 10px; background: #eff6ff; border: 1.5px solid #bfdbfe; border-radius: 12px; }
.share-target label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: #1d4ed8; }
.share-target select { width: 100%; padding: 8px; border-radius: 8px; border: 1px solid #bfdbfe; font-size: 14px; font-weight: 700; }
.share-step { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; font-size: 19px; font-weight: 800; }
.share-step:first-of-type { margin-top: 4px; }
.share-num { width: 30px; height: 30px; border-radius: 50%; background: #2563eb; color: #fff; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.share-sync { margin-left: auto; border: 1px solid #e2e8f0; background: #f8fafc; color: #475569; border-radius: 10px;
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.share-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 50px; border-radius: 14px;
  background: #f1f5f9; border: 1px solid #e2e8f0; }
.share-search .material-icons { color: #64748b; }
.share-search input { flex: 1; border: none; background: transparent; outline: none; font-size: 16px; color: #0f172a; }
.share-selall { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid #e2e8f0; }
.share-selall label { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; cursor: pointer; }
#share-selected-count { font-size: 14px; color: #64748b; }
.share-v2 input[type=checkbox] { width: 22px; height: 22px; accent-color: #2563eb; cursor: pointer; flex-shrink: 0; }
.share-list { max-height: 300px; min-height: 120px; overflow-y: auto; }
@media (max-height: 900px) { .share-list { max-height: 210px; } }
.share-row { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.share-row.no-phone { cursor: default; }
.share-row-text { flex: 1; min-width: 0; }
.share-row-name { font-size: 16px; font-weight: 600; color: #0f172a; }
.share-row-phone { display: flex; align-items: center; gap: 4px; font-size: 14px; color: #64748b; margin-top: 2px; }
.share-row-phone .material-icons { font-size: 15px; }
.share-row.no-phone .share-row-phone { color: #d97706; }
.share-row-edit { display: inline-flex; align-items: center; gap: 4px; border: none; background: none; color: #2563eb;
  font-size: 15px; font-weight: 600; cursor: pointer; padding: 6px; }
.share-row-edit .material-icons { font-size: 18px; }
.share-empty { padding: 14px; text-align: center; color: #94a3b8; font-size: 14px; }
.share-custom-row { display: flex; gap: 10px; margin-top: 14px; }
.share-custom-row .form-input { flex: 1; height: 50px; border-radius: 14px; font-size: 15px; }
#share-add-custom-btn { height: 50px; padding: 0 22px; border-radius: 14px; font-size: 16px; font-weight: 700;
  color: #2563eb; background: #eff6ff; border: 1px solid #bfdbfe; }
.share-custom-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.share-custom-list:empty { display: none; }
.share-opts { display: grid; gap: 12px; }
.share-opts-2 { grid-template-columns: 1fr 1fr; }
.share-opts-3 { grid-template-columns: 1fr 1fr 1fr; }
.share-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; min-height: 64px;
  border: 1.5px solid #e2e8f0; border-radius: 14px; background: #fff; cursor: pointer; text-align: left; font: inherit; }
.share-opt.selected { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 1px #2563eb inset; }
.share-opt.is-soon { opacity: 0.55; cursor: not-allowed; }
.share-opt-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.share-opt-icon .material-icons { font-size: 22px; }
.share-ic-wa { background: #25d366; color: #fff; border-radius: 50%; }
.share-ic-gmail { background: #fef2f2; color: #dc2626; }
.share-ic-text { background: #eff6ff; color: #2563eb; }
.share-ic-link { background: #f1f5f9; color: #334155; }
.share-ic-pdf { background: #fef2f2; color: #dc2626; }
.share-opt-label { flex: 1; font-size: 16px; font-weight: 600; color: #0f172a; }
.share-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #94a3b8; flex-shrink: 0; }
.share-opt.selected .share-radio { border-color: #2563eb; box-shadow: inset 0 0 0 4px #fff; background: #2563eb; }
.share-soon { font-size: 11px; font-weight: 700; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 2px 8px; }
.share-send { width: 100%; margin-top: 18px; justify-content: center; gap: 10px; min-height: 56px; font-size: 18px !important;
  font-weight: 800; color: #fff !important; background: #25d366 !important; border: none !important; border-radius: 14px; }
.share-send.is-pdf { background: #2563eb !important; }
.share-send.is-gmail { background: #dc2626 !important; }
.share-send:disabled { opacity: 0.6; }
.share-csv { width: 100%; display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px; text-align: left;
  border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; cursor: pointer; font: inherit; }
.share-csv-icon { width: 44px; height: 44px; border-radius: 50%; background: #dcfce7; color: #16a34a;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.share-csv-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 16px; color: #334155; }
.share-csv-text small { font-size: 13px; color: #64748b; }
.share-csv-go { color: #64748b; }
.share-status { margin-top: 14px; padding: 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0;
  font-size: 14px; color: #475569; text-align: center; }
#share-progress-bar { margin-top: 8px; height: 4px; background: #e2e8f0; border-radius: 2px; overflow: hidden; }
#share-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #25d366, #10b981); transition: width 0.3s ease; }
@media (max-width: 520px) {
  .share-opts-3 { grid-template-columns: 1fr 1fr; }
  .share-title { font-size: 21px; }
}
/* The line number sits beside the task's own line, not in the middle of a row that has sub-tasks */
.task-list > li.task-line::before { top: 30px; }
.task-list > li.task-line.has-meta::before { top: 23px; }
@media (min-width: 1024px) {
  #task-modal .pen-tool { font-size: 18px; padding: 8px 16px; min-height: 46px; }
}
/* Laptops (wide but not tall): a shorter pad so Enter shows without scrolling. The upright board keeps 340px. */
@media (min-width: 1024px) and (max-height: 1100px) {
  #task-modal .task-pen-wrap { height: 200px; }
  #task-modal { padding-top: calc(var(--fb-vvh, 100vh) * 0.03); }
  #task-modal .modal-content { max-height: calc(var(--fb-vvh, 100vh) * 0.97 - 12px); }
}

/* 23 Oct (6): Daily Work → Completed — filters + table of finished tasks from every list */
.cmp-panel { padding: 18px 24px 40px; background: #f8fafc; font-family: var(--font-sans, system-ui, sans-serif); color: #0f172a;
  flex: 1 1 auto; min-height: 0; overflow-y: auto; }  /* takes the board's place and scrolls on its own */
#tab-bar, .board-header, #folder-tabs-bar, .folder-tabs-bar { flex-shrink: 0; }
.cmp-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cmp-filter { position: relative; }
.cmp-filter-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 64px; text-align: left;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; cursor: pointer; font: inherit; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.cmp-filter.open .cmp-filter-btn { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.cmp-filter-ic { color: #1e3a8a; font-size: 24px !important; }
.cmp-filter-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cmp-filter-label { font-size: 13px; color: #475569; }
.cmp-filter-value { font-size: 15px; font-weight: 700; color: #1e3a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-chev { color: #475569; }
.cmp-menu { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; right: 0; min-width: 260px; max-height: 420px; overflow-y: auto;
  background: #fff; border: 1px solid #dbeafe; border-radius: 14px; padding: 8px; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14); }
.cmp-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 10px; border: none; background: none; border-radius: 10px;
  font: inherit; font-size: 15px; color: #1e293b; cursor: pointer; text-align: left; }
.cmp-opt:hover, .cmp-opt.active { background: #eff6ff; }
.cmp-opt .material-icons { font-size: 20px; color: #1e3a8a; }
.cmp-check { width: 20px; height: 20px; flex-shrink: 0; border: 2px solid #94a3b8; border-radius: 5px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; }
.cmp-check.on { background: #2563eb; border-color: #2563eb; }
.cmp-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 42px; margin-bottom: 6px; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: 10px; }
.cmp-search .material-icons { color: #64748b; font-size: 20px; }
.cmp-search input { flex: 1; border: none; background: transparent; outline: none; font-size: 15px; }
.cmp-custom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 6px 4px; }
.cmp-custom input[type="date"] { flex: 1; min-width: 130px; }
.cmp-custom .material-icons { color: #64748b; }
.cmp-apply { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; font-weight: 700; }
.cmp-custom .fb-date-picker { flex: 1; min-width: 220px; }
.cmp-type-ic { color: #334155 !important; }
.cmp-bar { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 12px; padding: 10px 14px;
  background: #eff6ff; border: 1px solid #dbeafe; border-radius: 14px; }
.cmp-sort { display: inline-flex; align-items: center; gap: 8px; border: none; background: none; font: inherit; font-size: 16px; font-weight: 700;
  color: #1e3a8a; cursor: pointer; }
.cmp-count { font-size: 14px; color: #334155; background: #fff; border: 1px solid #dbeafe; border-radius: 999px; padding: 4px 14px; }
.cmp-table { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 120px 200px 140px 30px; align-items: center; gap: 10px; padding: 14px 18px; }
.cmp-head { background: #f8fafc; font-size: 14px; font-weight: 700; color: #1e293b; border-bottom: 1px solid #e2e8f0; }
.cmp-row { width: 100%; border: none; border-bottom: 1px solid #f1f5f9; background: #fff; font: inherit; text-align: left; cursor: pointer; min-height: 76px; }
.cmp-row:hover { background: #f8fafc; }
.cmp-c-no { font-weight: 700; color: #1e293b; }
.cmp-c-task { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cmp-ic { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cmp-ic .material-icons { font-size: 26px; }
.cmp-task-text { font-size: 16px; color: #0f172a; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cmp-c-emp, .cmp-c-date { font-size: 14px; color: #1e3a8a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-c-go { color: #475569; }
.cmp-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.cmp-pill.p-urgent { color: #dc2626; background: #fee2e2; }
.cmp-pill.p-normal { color: #b45309; background: #fef3c7; }
.cmp-pill.p-low { color: #15803d; background: #dcfce7; }
.cmp-empty { padding: 30px; text-align: center; color: #64748b; }
.cmp-foot { padding: 12px 18px; font-size: 13px; color: #64748b; background: #f8fafc; }
.cmp-detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cmp-detail-head .fb-ask-title { margin: 0; }
.cmp-dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0 0 6px; font-size: 15px; }
.cmp-dl dt { color: #64748b; font-weight: 600; }
.cmp-dl dd { margin: 0; color: #0f172a; }
@media (max-width: 1200px) {
  .cmp-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-head, .cmp-row { grid-template-columns: 50px minmax(0, 1fr) 100px 150px 110px 24px; padding: 12px 12px; }
}
@media (max-width: 700px) {
  .cmp-panel { padding: 12px; }
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "no task go" "no pri go" "no emp go"; row-gap: 4px; }
  .cmp-row .cmp-c-no { grid-area: no; } .cmp-row .cmp-c-task { grid-area: task; } .cmp-row .cmp-c-pri { grid-area: pri; }
  .cmp-row .cmp-c-emp { grid-area: emp; } .cmp-row .cmp-c-date { display: none; } .cmp-row .cmp-c-go { grid-area: go; }
}

/* AirMenu: red rows — all Tofu and Soda products, Chilli Butter Miso, Chocolate Butter Miso (server: airmenu_red.json) */
.airmenu-row.is-red { background: #fee2e2 !important; box-shadow: inset 5px 0 0 #dc2626; }
.airmenu-row.is-red .am-name-text, .airmenu-row.is-red .am-pack, .airmenu-row.is-red .am-cell,
.airmenu-row.is-red .am-packs-val, .airmenu-row.is-red .am-lbl, .airmenu-row.is-red .inv-stock-val,
.airmenu-row.is-red .inv-stock-unit, .airmenu-row.is-red .am-loc { color: #b91c1c !important; }
.airmenu-row.is-red .am-name-text { font-weight: 800; }
/* A product's production date (29 Oct), in grey under the name: "📅 Prod. date 27.10.26 ✏️", tap to change */
/* a big enough grey pill to hit with a finger on the board (the name around it opens the product editor) */
.airmenu-row .am-red-date { display: flex; width: max-content; align-items: center; gap: 4px; margin: 6px 0 2px; padding: 6px 12px;
  min-height: 34px; border: 1.5px solid #cbd5e1; border-radius: 999px; background: #f1f5f9; color: #475569 !important;
  font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; white-space: nowrap; }
.airmenu-row .am-red-date:hover, .airmenu-row .am-red-date:active { background: #e2e8f0; border-color: #94a3b8; }
.airmenu-row .am-red-date.is-empty { border-style: dashed; color: #64748b !important; font-weight: 600; }
.airmenu-row .am-red-date .material-icons { font-size: 18px; color: #64748b; }
/* Production date popup: big day back / forward buttons and quick days (the board has no date calendar) */
.am-date-ic { font-size: 20px; vertical-align: -4px; color: #475569; }
.am-date-pick { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; }
.am-date-step { width: 56px; height: 56px; flex: none; border: 1.5px solid #cbd5e1; border-radius: 12px; background: #f8fafc; cursor: pointer; }
.am-date-step .material-icons { font-size: 32px; color: #334155; }
.am-date-step:disabled { opacity: 0.35; cursor: default; }
.am-date-show { flex: 1; text-align: center; }
.am-date-type { width: 100%; box-sizing: border-box; text-align: center; font: inherit; font-size: 30px; font-weight: 800;
  color: #0f172a; letter-spacing: 1px; padding: 6px 8px; border: 2px dashed #cbd5e1; border-radius: 12px; background: #fff; outline: none; }
.am-date-type:focus { border: 2px solid #3b82f6; background: #eff6ff; }
.am-date-type.is-bad { border: 2px solid #dc2626; color: #b91c1c; background: #fef2f2; }
.am-date-show small { display: block; font-size: 14px; color: #64748b; margin-top: 4px; }
.am-date-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.am-date-quick button { padding: 10px 4px; border: 1.5px solid #cbd5e1; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: #334155; cursor: pointer; }
.am-date-quick button:active { background: #e2e8f0; }

/* Flip board: popups in the top part of the screen, above the on-screen keyboard (which covers the lower part).
   They scroll inside; the focused box is scrolled into view (initBoardDates). The task popups keep their own rules. */
body.board-dates .airmenu-modal,
body.board-dates .fb-ask,
body.board-dates #share-modal,
body.board-dates #settings-modal { align-items: flex-start !important; padding-top: 16px !important; }
body.board-dates .airmenu-modal .modal-content,
body.board-dates .fb-ask-box,
body.board-dates #share-modal .modal-content,
body.board-dates #settings-modal .modal-content {
  margin-top: 0 !important;
  max-height: min(calc(var(--fb-vvh, 100vh) - 32px), 54vh) !important;
  overflow-y: auto !important;
}

/* Inventory (lists with several rooms): only the room picked in the chips / dropdown is shown */
body.fb-page-only #board-workspace .page-section:not(.active-page-section) { display: none !important; }

/* Header: no "‹ Page 2 of 15 (Room) › + 🗑" after the date, in any list (rooms: chips, dropdown, + Add Room) */
.board-page-nav,
#mobile-prev-page-btn, #mobile-next-page-btn, #mobile-page-indicator, #mobile-add-page-btn, #mobile-delete-page-btn { display: none !important; }

/* 23 Oct (7): one header row — the list name with "Updated …" under it on the left; Call AI · Harvest · Share ·
   Settings right next to Refresh · Close (which stay in the top-right corner) */
.board-title-group { flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.board-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.board-date { border-left: none !important; padding-left: 0 !important; font-size: 13px; white-space: nowrap; }
@media (min-width: 769px) {
  .board-header { flex-wrap: nowrap !important; padding-right: 370px !important; }
  .board-title-area { padding-right: 0 !important; min-height: 0 !important; flex: 0 1 auto; min-width: 0; }
  .board-controls { flex-basis: auto !important; flex-wrap: nowrap !important; margin-left: auto; justify-content: flex-end; flex-shrink: 0; }
}
/* narrower screens (the upright board, a zoomed laptop): smaller buttons so the row fits */
@media (min-width: 769px) and (max-width: 1500px) {
  .board-header { padding-left: 16px !important; padding-right: 290px !important; }
  .board-controls { gap: 6px; }
  .board-controls .btn { padding: 6px 10px !important; font-size: 14px !important; min-height: 44px; }
  .board-controls .btn .material-icons { font-size: 18px !important; }
  .board-top-right { right: 16px; gap: 8px; }
  .board-top-right .btn { min-width: 0 !important; padding: 8px 14px !important; font-size: 17px !important; min-height: 48px; }
  .board-title { font-size: 30px; }
}

/* 23 Oct (8): Employee List tab hidden; Full List filter bar (same look as Completed) above the board */
#tab-employee, #mobile-tab-employee { display: none !important; }
#full-filter-bar.flt-panel { flex: 0 0 auto; overflow: visible; padding: 12px 24px 4px; min-height: 0; position: relative; z-index: 40; }
.flt-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.flt-clear { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c;
  border-radius: 999px; padding: 4px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.flt-clear .material-icons { font-size: 18px; }

/* Completed has 5 filters now (Date, Lene Wala, Dene Wala, Priority, Type): they share the row */
.cmp-filters { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important; }
.cmp-more { display: block; width: 100%; padding: 14px; border: none; border-top: 1px solid #e2e8f0; background: #eff6ff;
  color: #1d4ed8; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }

/* Flip board (Samsung TV browser): filter menus open inside the filter area and push the board down, instead of
   floating over it — a floating, scrolling menu was left behind as a "ghost" and drew its names cut off */
/* (27 Oct) they float over the list again so nothing below moves, but still never scroll inside themselves:
   the whole menu is drawn at once (the "ghost" came from the menu's own scrolling) */
body.board-dates .cmp-menu {
  position: absolute !important; z-index: 60; max-height: none !important; overflow: visible !important;
  min-width: 0 !important;
}
body.board-dates .cmp-filters { align-items: start; }
.cmp-menu { overflow-x: hidden; }
.cmp-opt { min-width: 0; }

/* Inventory room chips: 5 per row (wrapping), no sideways scrolling */
.desktop-sublist-chips-wrap { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
  overflow: visible !important; flex-wrap: unset; white-space: normal; max-width: 100%; }
.desktop-sublist-chips-wrap .desktop-room-tab-chip { min-width: 0; justify-content: flex-start; overflow: hidden; }
.desktop-sublist-chips-wrap .desktop-room-tab-chip > * { min-width: 0; }
.desktop-sublist-chips-wrap .desktop-room-tab-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#settings-rooms { display: block; white-space: normal; }
/* names wrap instead of being cut off (the upright board has less room) */
.desktop-sublist-chips-wrap .desktop-room-tab-chip { height: auto !important; min-height: 38px; padding-top: 5px; padding-bottom: 5px; line-height: 1.15; }
.desktop-sublist-chips-wrap .desktop-room-tab-chip span { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; word-break: normal; }
@media (max-width: 1500px) {
  .desktop-sublist-chips-wrap { gap: 6px; }
  .desktop-sublist-chips-wrap .desktop-room-tab-chip { font-size: 13px; padding-left: 8px; padding-right: 8px; }
  #desktop-room-tabs-bar .sublist-add-task-btn:not(.in-tab-bar) { min-width: 0 !important; padding: 10px 18px !important; font-size: 20px !important; }
}

/* Quick actions on each room capsule; the menu sits outside the clipped chips. */
.room-chip-menu-btn { flex: 0 0 28px; width: 28px; min-height: 30px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.room-chip-menu-btn:hover { background: rgb(0 0 0 / 10%); }
.room-chip-menu-btn:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.room-chip-menu { position: fixed; z-index: 10000; min-width: 140px; padding: 5px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; box-shadow: 0 6px 20px rgb(0 0 0 / 18%); }
.room-chip-menu button { display: block; width: 100%; padding: 10px 14px; border: 0; border-radius: 6px; background: transparent; color: #334155; text-align: left; font: inherit; cursor: pointer; }
.room-chip-menu button:last-child { color: #b91c1c; }
.room-chip-menu button:hover, .room-chip-menu button:focus-visible { background: #f1f5f9; outline: 2px solid #0284c7; outline-offset: -2px; }
.room-chip-menu button:disabled { opacity: .4; cursor: not-allowed; }

/* Main lists: five tabs per row. Inventory room capsules keep their own layout. */
#folder-nav-bar { flex-shrink: 0; }
#folder-nav-bar .folder-nav-scroll-wrapper { overflow: visible; width: 100%; }
#folder-nav-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; white-space: normal; }
#folder-nav-tabs .folder-nav-tab { min-width: 0; justify-content: center; }
#folder-nav-tabs .folder-tab-title { white-space: normal; overflow-wrap: anywhere; }
#folder-nav-tabs .folder-tab-badge { flex-shrink: 0; }
.settings-list-management { padding: 14px 0; border-bottom: 1px solid #e5e7eb; }
.settings-list-management h3 { margin: 0 0 6px; }
.settings-list-management p { margin: 0 0 12px; color: #64748b; }
.settings-list-management .folder-nav-actions { display: flex; flex-wrap: wrap; padding: 0; border: 0; background: transparent; }
.settings-list-management #folder-selector-dropdown { position: static; width: 100%; min-width: 0; margin-top: 12px; box-sizing: border-box; box-shadow: none; }

/* Compact room picker; expand to access every room capsule. */
.inventory-rooms-collapse { width: 100%; }
.inventory-rooms-collapse > summary { cursor: pointer; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: #0369a1; font-weight: 700; }
.inventory-rooms-collapse > summary:focus-visible { outline: 2px solid #0284c7; outline-offset: 2px; }
.inventory-rooms-collapse[open] > summary { margin-bottom: 10px; }

/* Ordering → item catalog (Excel items by category): capsules, filters, grouped table */
.oc-panel { padding-bottom: 24px; }
.oc-caps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.oc-cap { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 42px; padding: 6px 12px; border-radius: 20px;
  border: 1px solid #cbd5e1; background: #fff; color: #334155; font: inherit; font-size: 13px; font-weight: 600; text-align: left;
  cursor: pointer; line-height: 1.15; }
.oc-cap:hover { background: #f1f5f9; border-color: #94a3b8; }
.oc-cap.active { background: #0284c7; border-color: #0284c7; color: #fff; box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25); }
.oc-cap-ic { flex: none; font-size: 16px; }
.oc-cap-name { flex: 1; min-width: 0; white-space: normal; }
.oc-cap-n { flex: none; font-size: 11px; opacity: 0.75; }
.oc-about { margin: -4px 0 12px; font-size: 14px; color: #475569; }
.oc-search input { width: 100%; border: none; outline: none; background: transparent; font: inherit; font-size: 15px; font-weight: 700;
  color: #1e3a8a; padding: 0; }
.oc-search .cmp-filter-btn { cursor: text; }
.oc-table { margin-top: 12px; }
.oc-head, .oc-row { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 0.9fr) 200px 140px;
  align-items: center; gap: 10px; padding: 12px 16px; }
.oc-head { background: #f8fafc; font-size: 14px; font-weight: 700; color: #1e293b; border-bottom: 1px solid #e2e8f0; }
.oc-row { width: 100%; border: none; border-bottom: 1px solid #f1f5f9; background: #fff; font: inherit; font-size: 14px; text-align: left;
  color: #0f172a; }
.oc-row:hover { background: #f8fafc; }
.oc-row.oc-sel { background: #eff6ff; }
.oc-row.oc-incart { background: #f0fdf4; }
/* Ordering cart (27 Oct): tick box · product · category · stock · min · order qty · Add to cart; order summary below */
.oc-c-chk { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.oc-c-chk input { width: 20px; height: 20px; accent-color: #2563eb; cursor: pointer; margin: 0; }
.oc-c-name { border: none; background: none; font: inherit; text-align: left; padding: 0; color: inherit; cursor: pointer; min-width: 0; }
.oc-c-name:hover b { color: #1d4ed8; text-decoration: underline; }
.oc-c-cat { color: #475569; font-size: 13px; }
.oc-c-stock, .oc-c-min { font-size: 14px; font-weight: 700; color: #0f172a; }
.oc-c-stock.low { color: #b91c1c; }
.oc-c-min { color: #475569; font-weight: 600; }
.oc-lbl { display: none; font-style: normal; font-weight: 600; color: #64748b; }
.oc-c-oq { display: flex; align-items: center; gap: 6px; }
.oc-c-oq input { width: 64px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 7px 4px; font: inherit; font-size: 15px; font-weight: 700; color: #0f172a;
  text-align: center; -moz-appearance: textfield; }
.oc-c-oq input::-webkit-outer-spin-button, .oc-c-oq input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.oc-step { flex: none; width: 34px; height: 34px; border: 1px solid #cbd5e1; border-radius: 8px; background: #f8fafc; color: #1e3a8a;
  font: inherit; font-size: 20px; font-weight: 800; line-height: 1; cursor: pointer; }
.oc-step:hover { background: #eff6ff; border-color: #93c5fd; }
.oc-step:active { background: #dbeafe; }
.oc-cartbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 900; border: none; border-radius: 999px;
  background: #0f172a; color: #fff; min-width: 440px; min-height: 64px; padding: 16px 32px; font: inherit; font-size: 18px; font-weight: 700;
  cursor: pointer; box-shadow: 0 10px 30px rgba(15, 23, 42, .35); white-space: nowrap;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.oc-cartbar b { color: #86efac; font-size: 19px; }
.oc-cartbar:hover { background: #1e293b; }
.oc-cartbar[hidden] { display: none; }
/* Order summary on its own full page (27 Oct) */
.oc-sumpage { position: fixed; inset: 0; z-index: 1000; background: #f1f5f9; display: flex; flex-direction: column; }
.oc-sp-head { display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: #fff; border-bottom: 1px solid #e2e8f0; font-size: 20px; }
.oc-sp-back { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cbd5e1; background: #fff; border-radius: 10px;
  padding: 10px 16px; font: inherit; font-size: 16px; font-weight: 700; color: #1e3a8a; cursor: pointer; }
.oc-sp-back:hover { background: #eff6ff; }
.oc-sp-body { flex: 1; overflow-y: auto; padding: 20px; }
.oc-sp-body .oc-summary { max-width: 900px; margin: 0 auto; }
.oc-sp-body .oc-sum-head b { visibility: hidden; }   /* the page title already says Order summary */
.oc-c-oq input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.oc-c-oq em { font-style: normal; color: #64748b; font-size: 13px; font-weight: 600; }
.oc-add { border: 1px solid #2563eb; background: #2563eb; color: #fff; border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 13px;
  font-weight: 700; cursor: pointer; white-space: nowrap; }
.oc-add:hover { background: #1d4ed8; }
.oc-add.on { background: #dcfce7; border-color: #86efac; color: #166534; }
.oc-bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: #eff6ff; border-bottom: 1px solid #dbeafe; color: #1e3a8a; }
.oc-summary { margin-top: 16px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; overflow: hidden; }
.oc-sum-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; font-size: 16px; }
.oc-sum-head span { font-size: 13px; font-weight: 700; color: #475569; }
.oc-sum-empty { padding: 16px; color: #64748b; font-size: 14px; }
.oc-sum-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 90px 32px; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid #f1f5f9; }
.oc-sum-name b { display: block; font-size: 15px; }
.oc-sum-name small { display: block; color: #64748b; font-size: 12px; margin-top: 2px; }
.oc-sum-qty { font-weight: 700; white-space: nowrap; }
.oc-sum-amt { text-align: right; font-weight: 700; color: #334155; }
.oc-sum-x { border: none; background: #f1f5f9; color: #64748b; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 14px; }
.oc-sum-x:hover { background: #fee2e2; color: #b91c1c; }
.oc-sum-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 15px; font-weight: 700; }
.oc-sum-total small { color: #64748b; font-weight: 600; }
.oc-sum-total b { font-size: 18px; color: #0f172a; }
.oc-sum-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 16px 14px; }
.oc-place { border: none; background: #16a34a; color: #fff; border-radius: 10px; padding: 10px 18px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.oc-place:hover { background: #15803d; }
.oc-place:disabled { opacity: 0.6; cursor: default; }
.oc-c-no { font-weight: 700; color: #64748b; }
.oc-c-name b { display: block; font-size: 15px; }
.oc-c-name small { display: block; color: #64748b; font-size: 12px; margin-top: 2px; }
.oc-c-qty, .oc-c-rate { color: #334155; font-size: 13px; }
.oc-c-ven { color: #1e3a8a; font-size: 13px; font-weight: 600; }
.oc-c-ven i { color: #94a3b8; font-weight: 400; }
.oc-group { padding: 10px 16px; background: #eff6ff; color: #1e3a8a; font-weight: 800; font-size: 15px; border-bottom: 1px solid #dbeafe; }
.oc-group span { font-size: 12px; font-weight: 700; background: #fff; border: 1px solid #bfdbfe; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.oc-pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.oc-pill.ok { background: #dcfce7; color: #166534; }
.oc-pill.rev { background: #fef3c7; color: #92400e; }
.oc-detail-ic { font-size: 28px; }
@media (max-width: 1100px) { .oc-caps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .oc-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oc-head { display: none; }
  .oc-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "cat cat" "stock min" "oq act";
    row-gap: 6px; padding: 10px 12px; }
  .oc-row .oc-c-name { grid-area: name; }
  .oc-row .oc-c-cat { grid-area: cat; } .oc-row .oc-c-stock { grid-area: stock; } .oc-row .oc-c-min { grid-area: min; }
  .oc-row .oc-c-oq { grid-area: oq; } .oc-row .oc-c-act { grid-area: act; justify-self: end; }
  .oc-lbl { display: inline; }
  .oc-sum-row { grid-template-columns: minmax(0, 1fr) auto 32px; }
  .oc-sum-amt { display: none; }
  .oc-cartbar { min-width: 0; width: calc(100% - 32px); min-height: 60px; padding: 14px 22px; font-size: 16px; }
  .oc-cartbar b { font-size: 17px; }
  .oc-sp-head { padding: 10px 12px; font-size: 18px; }
  .oc-sp-body { padding: 12px; }
}
/* Share is PDF only (27 Oct): the hidden format step stays hidden */
.share-step[hidden], .share-opts[hidden] { display: none !important; }

/* Recipes (27 Oct): AirMenu products with their cost sheets, on a full page (uses the .oc-sumpage frame) */
.folder-nav-recipes { border-style: dashed; }
.rc-list { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; }
.rc-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: none; border-bottom: 1px solid #f1f5f9;
  background: #fff; font: inherit; text-align: left; cursor: pointer; color: #0f172a; }
.rc-row:hover { background: #f8fafc; }
.rc-row.rc-none { cursor: default; opacity: .65; }
.rc-name { flex: 1; min-width: 0; }
.rc-name b { display: block; font-size: 16px; }
.rc-name small { display: block; color: #64748b; font-size: 12px; margin-top: 2px; }
.rc-cost { font-weight: 800; color: #166534; white-space: nowrap; }
.rc-cost small { color: #64748b; font-weight: 600; }
.rc-cost i { color: #94a3b8; font-weight: 500; }
.rc-go { color: #94a3b8; width: 24px; }
.rc-sheet { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 14px; overflow-x: auto; }
.rc-sheet-title { font-size: 17px; font-weight: 700; margin: 0 0 10px; text-transform: capitalize; }
.rc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rc-table th { border: 1px solid #334155; padding: 6px 8px; background: #f8fafc; font-weight: 800; }
.rc-table td { padding: 6px 8px; border-left: 1px solid #94a3b8; border-right: 1px solid #94a3b8; }
.rc-table tbody tr:last-child td { border-bottom: 1px solid #94a3b8; }
.rc-c { text-align: center; }
.rc-n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-total td { font-weight: 800; }
.rc-gap td { height: 14px; }
.rc-hl { background: #fde047; padding: 3px 8px; font-weight: 800; }
@media (max-width: 700px) {
  .rc-table { font-size: 13px; }
  .rc-table th, .rc-table td { padding: 5px 4px; }
}
/* (27 Oct) Full List / Completed / Add Task row only on Daily Work; on Ordering only the item catalog shows.
   !important: some code (window resize, panel redraws) sets these back to visible with an inline style */
body.fb-not-daily #tab-bar { display: none !important; }
body.fb-ordering #board-workspace, body.fb-ordering #full-filter-bar, body.fb-ordering #tab-bar,
body.fb-ordering #desktop-room-tabs-bar, body.fb-ordering #completed-panel { display: none !important; }
/* Recipes added by hand: batch note and preparation steps */
.rc-note { color: #475569; font-size: 14px; margin: -4px 0 10px; }
.rc-steps { margin-top: 16px; }
.rc-steps-h { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.rc-step { margin-bottom: 10px; font-size: 15px; }
.rc-step ul { margin: 4px 0 0; padding-left: 22px; }
.rc-step li { margin: 2px 0; }
.rc-page .rc-sheet { margin-bottom: 18px; }
.rc-kind { font-size: 12px; font-weight: 600; color: #64748b; text-transform: none; margin-left: 6px; }
.rc-opt { color: #b45309; font-weight: 700; }
.rc-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 12px 0 0; font-size: 15px; }
.rc-facts dt { color: #475569; font-weight: 700; }
.rc-facts dd { margin: 0; }
.rc-notebox { margin-top: 10px; padding: 8px 12px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; font-size: 14px; color: #78350f; }
.rc-step ol { margin: 4px 0 0; padding-left: 22px; }
/* Recipes scale (27 Oct): Grams = the recipe's amount, Quantity = typed / filled in proportion */
.rc-hint { font-size: 13px; color: #64748b; margin: -4px 0 10px; }
.rc-scale td.rc-q { text-align: right; white-space: nowrap; }
.rc-scale td.rc-q input { width: 110px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 15px;
  font-weight: 700; text-align: right; color: #0f172a; -moz-appearance: textfield; }
.rc-scale td.rc-q input::-webkit-outer-spin-button, .rc-scale td.rc-q input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rc-scale td.rc-q input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.rc-scale td.rc-q em { font-style: normal; color: #64748b; font-size: 13px; }
.rc-scale .rc-hl:empty { display: none; }
@media (max-width: 700px) { .rc-scale td.rc-q input { width: 80px; } }
.rc-scale .rc-yield td { font-weight: 800; border-top: 1px dashed #cbd5e1; }

/* Recipes: a product with more than one recipe shows their names as tabs (27 Oct) */
.rc-tabs { max-width: 760px; margin: 0 auto 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.rc-tab { border: 1px solid #cbd5e1; background: #fff; color: #1e3a8a; border-radius: 999px; padding: 9px 16px; font: inherit;
  font-size: 15px; font-weight: 700; cursor: pointer; text-transform: capitalize; }
.rc-tab:hover { background: #eff6ff; }
.rc-tab.on { background: #1e3a8a; border-color: #1e3a8a; color: #fff; }
.rc-pane[hidden] { display: none; }
/* Settings → Recipes editor (27 Oct) */
.rc-updated { font-size: 13px; color: #475569; margin: -4px 0 8px; }
.rce-form { max-width: 980px; }
.rce-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: #334155; }
.rce-form label small { font-weight: 500; color: #64748b; }
.rce-form input[type="text"], .rce-form textarea { border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 15px;
  font-weight: 500; color: #0f172a; background: #fff; }
.rce-form input[readonly] { background: #f1f5f9; }
.rce-form textarea { resize: vertical; }
.rce-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0; }
.rce-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rce-wide { margin: 12px 0; }
.rce-h { font-size: 15px; font-weight: 800; margin: 14px 0 6px; }
.rce-prods { display: flex; flex-wrap: wrap; gap: 6px; }
.rce-form label.rce-chip { flex-direction: row; align-items: center; gap: 6px; border: 1px solid #cbd5e1; border-radius: 999px; padding: 5px 12px;
  font-weight: 600; cursor: pointer; background: #fff; }
.rce-form label.rce-chip.on { background: #dcfce7; border-color: #86efac; color: #166534; }
.rce-chip input { margin: 0; }
.rce-tablewrap { overflow-x: auto; }
.rce-items { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.rce-items th { text-align: left; font-size: 13px; color: #475569; padding: 6px 4px; border-bottom: 1px solid #e2e8f0; }
.rce-items td { padding: 4px; }
.rce-items input[type="text"] { width: 100%; min-width: 0; }
.rce-items .rce-num { max-width: 110px; text-align: right; }
.rce-items .rce-uom { max-width: 90px; }
.rce-items input[readonly] { background: #f8fafc; font-weight: 700; }
.rce-form .rce-rowact { white-space: nowrap; }
.rce-form .rce-rowact label { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; font-weight: 600; margin-right: 6px; }
.rce-costs { display: flex; flex-wrap: wrap; gap: 18px; padding: 10px 12px; background: #f8fafc; border-radius: 10px; font-size: 15px; }
.rce-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.rce-new b { color: #1d4ed8; }
@media (max-width: 700px) { .rce-grid, .rce-grid3 { grid-template-columns: 1fr; } }
/* Recipe: "Last updated … by …" in a box with ✏️ (anybody can change the quantities, 27 Oct) */
.rc-upbox { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 8px 8px 8px 12px;
  border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; font-size: 14px; color: #334155; }
.rc-pencil { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #93c5fd;
  border-radius: 10px; background: #eff6ff; color: #1d4ed8; cursor: pointer; }
.rc-pencil:hover { background: #dbeafe; }
.rc-pencil .material-icons { font-size: 20px; }
/* ── Daily Work "Add tasks" popup (3 Nov): Kaun · Urgent · Zaruri ── */
#dw-modal .dw-content { max-width: 560px; width: 94vw; }
.dw-label { font-weight: 800; font-size: 16px; }
.dw-urgent { color: var(--marker-red, #dc2626); }
.dw-zaruri { color: #b45309; }
.dw-people { display: flex; gap: 10px; flex-wrap: wrap; border-radius: 12px; padding: 2px; }
.dw-people.dw-missing { box-shadow: 0 0 0 3px rgba(220, 38, 38, .35); }
.dw-person { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid #cbd5e1; border-radius: 999px;
  font-size: 17px; font-weight: 700; cursor: pointer; background: #fff; user-select: none; }
.dw-person input { width: 20px; height: 20px; margin: 0; accent-color: #16a34a; }
.dw-person:has(input:checked) { border-color: #16a34a; background: #f0fdf4; }
.dw-box { width: 100%; min-height: 84px; font-size: 16px; resize: vertical; }
.dw-hint { min-height: 18px; font-size: 13px; color: #475569; margin: -4px 0 10px; }
/* (19 Nov) Phone home header: 7 icons now (MBook added) — they share the row and shrink a little on narrow phones
   instead of pushing Settings off the screen */
@media (max-width: 480px) {
  .mobile-header-actions { gap: 4px; flex-shrink: 0; }
  .mobile-header-actions .mobile-action-btn { width: 31px; height: 32px; padding: 0; }
  .mobile-header-actions .mobile-action-btn .material-icons { font-size: 19px; }
  .mobile-brand, .mobile-brand-info { min-width: 0; flex-shrink: 1; }
  .mobile-brand-title, .mobile-brand-subtitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
}
@media (max-width: 400px) { .mobile-brand-icon { display: none; } }

/* 21 Nov (Manish): smaller header buttons for Call AI, WhatsApp, Harvest, Bills/Invoice, Share and Settings */
#header-calls-btn, #header-wa-btn, #header-harvest-btn, #header-mbook-btn, #share-btn, #settings-btn {
  padding: 4px 10px;
  font-size: 12.5px;
  gap: 4px;
  border-radius: 7px;
  min-height: 0;
  line-height: 1.2;
}
#header-wa-btn { border-radius: 999px; }
#header-calls-btn .material-icons, #header-wa-btn .material-icons, #header-harvest-btn .material-icons,
#header-mbook-btn .material-icons, #share-btn .material-icons, #settings-btn .material-icons {
  font-size: 16px !important;
}
#header-harvest-btn .badge { font-size: 10px !important; padding: 0 5px !important; }


/* (22 Nov 2026) Repairing list: short form + details under each line */
.repair-overlay { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: flex-start; justify-content: center;
  padding: 10vh 16px 16px; background: rgba(15, 23, 42, 0.5); }   /* (22 Nov) starts 10% from the top */
.repair-card { width: 100%; max-width: 440px; max-height: 85vh; overflow-y: auto; background: #fff; border-radius: 18px;
  padding: 16px 16px 14px; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3); }
.repair-head { display: flex; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.repair-x { border: none; background: #f1f5f9; border-radius: 999px; width: 32px; height: 32px; font-size: 16px; cursor: pointer; }
.repair-label { display: block; font-size: 12px; font-weight: 700; color: #475569; margin: 10px 0 4px; }
.repair-photo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.repair-photo-btns .btn { justify-content: center; }
.repair-preview { width: 100%; max-height: 220px; object-fit: contain; border: 1px solid #e2e8f0; border-radius: 10px; margin-top: 8px; background: #f8fafc; }
.repair-status { font-size: 12px; font-weight: 700; margin-top: 4px; }
.repair-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.repair-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.repair-details { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; color: #475569; line-height: 1.5; }
.repair-details a { color: #1d4ed8; font-weight: 700; text-decoration: none; }
.repair-sep { margin: 0 6px; color: #cbd5e1; }
.repair-thumb { display: block; margin-top: 6px; width: 84px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid #e2e8f0; cursor: pointer; }
