/* FORM_CSS_MARKER */ :root { --color-brand: #1a1a2e; --color-muted: #6b7280; --color-border: #d1d5db; --radius-card: 12px; --radius-control: 8px; --shadow-card: 0 1px 3px rgba(0,0,0,0.08); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f7; color: #1d1d1f; padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } .is-hidden { display: none !important; } .container { max-width: 1400px; margin: 0 auto; padding: 16px; } #meals-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; } header { background: var(--color-brand); color: #fff; padding: 24px 16px; text-align: center; margin-bottom: 24px; border-radius: var(--radius-card); } header h1 { font-size: 1.5rem; margin-bottom: 4px; } header p { font-size: 0.85rem; opacity: 0.8; } .deadline { background: #fef3c7; color: #92400e; padding: 10px 16px; border-radius: var(--radius-control); margin-bottom: 20px; font-size: 0.9rem; text-align: center; font-weight: 500; } .employee-info { background: #fff; border-radius: var(--radius-card); padding: 16px; margin-bottom: 20px; box-shadow: var(--shadow-card); } .employee-info label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.85rem; } .employee-info input, .employee-info select { width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-control); font-size: 1rem; margin-bottom: 12px; } .user-bar { display: flex; align-items: center; gap: 12px; } .user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: none; } .user-avatar:not(.is-hidden) { display: block; } .user-meta { flex: 1; min-width: 0; } .user-name { font-weight: 600; font-size: 0.95rem; } .user-email { font-size: 0.85rem; color: var(--color-muted); overflow-wrap: anywhere; } .count-display { font-size: 0.8rem; color: var(--color-muted); margin-left: 8px; } .g-signin-wrap { display: flex; justify-content: center; } .admin-muted { font-size: 0.8rem; color: #9ca3af; } .filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; } .meal-card { background: #fff; border-radius: var(--radius-card); padding: 12px; margin-bottom: 0; box-shadow: var(--shadow-card); display: flex; gap: 12px; align-items: center; } .meal-img { width: 80px; height: 80px; border-radius: var(--radius-control); object-fit: cover; flex-shrink: 0; } .meal-info { flex: 1; min-width: 0; } .meal-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; } .meal-meta { font-size: 0.8rem; color: var(--color-muted); margin-bottom: 4px; } .meal-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; } .meal-tags span { font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; background: #e0f2fe; color: #0369a1; font-weight: 500; } .meal-tags span.new { background: #dcfce7; color: #15803d; } .meal-desc { font-size: 0.8rem; color: var(--color-muted); margin-bottom: 4px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; } .qty-control { display: flex; align-items: center; gap: 0; flex-shrink: 0; } .qty-control button { width: 32px; height: 32px; border: 1px solid var(--color-border); background: #f9fafb; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; } .qty-control button:first-child { border-radius: var(--radius-control) 0 0 var(--radius-control); } .qty-control button:last-child { border-radius: 0 var(--radius-control) var(--radius-control) 0; } .qty-control .qty { width: 36px; height: 32px; text-align: center; border: 1px solid var(--color-border); border-left: 0; border-right: 0; font-size: 0.95rem; font-weight: 600; } .meal-card.selected { border: 2px solid var(--color-brand); } .sticky-footer { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #e5e7eb; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -2px 8px rgba(0,0,0,0.1); z-index: 100; } .sticky-footer .inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; } .total { font-size: 1.1rem; font-weight: 700; } .btn { cursor: pointer; font-weight: 600; border-radius: var(--radius-control); transition: opacity 0.2s, background 0.2s, color 0.2s; font-family: inherit; } .btn-primary { background: var(--color-brand); color: #fff; border: none; padding: 12px 32px; font-size: 1rem; font-weight: 600; } .btn-primary:disabled { opacity: 0.4; cursor: not-allowed; } .btn-primary:hover:not(:disabled) { opacity: 0.85; } .btn-outline { background: transparent; color: var(--color-brand); border: 2px solid var(--color-brand); padding: 12px 32px; font-size: 1rem; font-weight: 600; } .btn-outline:hover { background: var(--color-brand); color: #fff; } .btn-sm { padding: 4px 10px; font-size: 0.78rem; border-radius: 6px; font-weight: 500; } .btn-sm.btn-edit, .btn-sm.btn-delete, .btn-sm.btn-save, .btn-sm.btn-cancel { border: 1px solid; } .btn-chip { padding: 6px 14px; border: 1px solid var(--color-border); border-radius: 20px; background: #fff; font-size: 0.8rem; font-weight: 500; } .btn-chip.active { background: var(--color-brand); color: #fff; border-color: var(--color-brand); } .submit-btn, .btn.btn-primary.submit-btn { background: var(--color-brand); color: #fff; border: none; padding: 12px 32px; font-size: 1rem; font-weight: 600; cursor: pointer; border-radius: var(--radius-control); transition: opacity 0.2s; } .submit-btn:disabled { opacity: 0.4; cursor: not-allowed; } .submit-btn:hover:not(:disabled) { opacity: 0.85; } .back-btn, .btn.btn-outline.back-btn { background: transparent; color: var(--color-brand); border: 2px solid var(--color-brand); padding: 12px 32px; font-size: 1rem; font-weight: 600; cursor: pointer; border-radius: var(--radius-control); transition: all 0.2s; margin-top: 20px; } .back-btn:hover { background: var(--color-brand); color: #fff; } .admin-toolbar-btn, .btn.btn-primary.btn-sm.admin-toolbar-btn { margin: 0; padding: 8px 16px; font-size: 0.85rem; } .success-msg { text-align: center; padding: 60px 20px; } .success-msg h2 { color: #15803d; margin-bottom: 8px; } .duplicate-warning { background: #fef3c7; color: #92400e; padding: 10px 16px; border-radius: var(--radius-control); margin-bottom: 20px; font-size: 0.9rem; text-align: center; font-weight: 500; border: 1px solid #fcd34d; } .search-bar { width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-control); font-size: 1rem; margin-bottom: 16px; } .closed-banner { background: #fee2e2; color: #991b1b; padding: 16px; border-radius: var(--radius-control); margin-bottom: 20px; text-align: center; font-weight: 600; font-size: 1rem; } @media (max-width: 479px) { .user-bar { flex-wrap: wrap; } .user-meta { flex-basis: calc(100% - 52px); } .user-bar #admin-btn { margin-left: 52px; } } @media (max-width: 480px) { .meal-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; } .qty-control { grid-column: 1 / -1; justify-content: center; } } @media (pointer: coarse) { .qty-control button { width: 44px; height: 44px; } .qty-control .qty { width: 44px; height: 44px; } .edit-qty button { width: 44px; height: 44px; } .edit-qty span { width: 44px; height: 44px; line-height: 44px; } } .discount-banner { background: #dcfce7; color: #15803d; padding: 10px 16px; border-radius: var(--radius-control); margin-bottom: 20px; font-size: 0.85rem; text-align: center; font-weight: 500; } .price-retail { text-decoration: line-through; color: #9ca3af; font-size: 0.75rem; margin-right: 4px; } .price-employee { color: #15803d; font-weight: 600; } .auth-overlay { position: fixed; inset: 0; background: var(--color-brand); display: flex; align-items: center; justify-content: center; z-index: 1000; } .auth-card { background: #fff; border-radius: 16px; padding: 48px 40px; text-align: center; max-width: 400px; width: 90%; box-shadow: 0 8px 32px rgba(0,0,0,0.3); } .auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; color: #1d1d1f; } .auth-card p { font-size: 0.9rem; color: var(--color-muted); margin-bottom: 32px; } .auth-card .logo { font-size: 2rem; margin-bottom: 16px; } .closed-overlay { position: fixed; inset: 0; background: var(--color-brand); display: none; align-items: center; justify-content: center; z-index: 2000; } .closed-overlay.is-visible { display: flex; } .closed-card { background: #fff; border-radius: 16px; padding: 48px 40px; text-align: center; max-width: 420px; width: 90%; box-shadow: 0 8px 32px rgba(0,0,0,0.3); } .closed-card h1 { font-size: 1.5rem; margin-bottom: 8px; color: #1d1d1f; } .closed-card p { font-size: 0.9rem; color: var(--color-muted); margin-bottom: 24px; } .closed-card .logo { font-size: 2.5rem; margin-bottom: 16px; } .countdown { font-size: 2rem; font-weight: 700; color: var(--color-brand); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; } .countdown-label { font-size: 0.75rem; color: #9ca3af; margin-top: 4px; } .admin-panel { background: #fff; border-radius: var(--radius-card); padding: 20px; box-shadow: var(--shadow-card); } .admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; } .admin-header h2 { font-size: 1.2rem; font-weight: 700; margin: 0; } .admin-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .admin-toolbar select { padding: 8px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-control); font-size: 0.9rem; } .admin-toolbar .back-btn { margin: 0; padding: 8px 16px; font-size: 0.85rem; } @media (max-width: 600px) { .admin-toolbar { width: 100%; } .admin-toolbar > * { flex: 1 1 100%; } } .admin-stats { font-size: 0.9rem; color: var(--color-muted); margin-bottom: 16px; } .admin-stats strong { color: #1d1d1f; } .admin-table-wrap { overflow-x: auto; } .admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; } .admin-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid #e5e7eb; font-weight: 600; color: var(--color-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; } .admin-table td { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; vertical-align: top; } .admin-table tr:last-child td { border-bottom: none; } .admin-table .items-cell { font-size: 0.82rem; color: #4b5563; } .admin-table .total-cell { font-weight: 600; white-space: nowrap; } .admin-table .time-cell { font-size: 0.8rem; color: #9ca3af; white-space: nowrap; } .admin-total-row { background: #f9fafb; font-weight: 700; } .admin-total-row td { border-top: 2px solid #e5e7eb; padding: 12px; } .admin-empty { text-align: center; padding: 40px 20px; color: #9ca3af; } .admin-actions { display: flex; gap: 6px; white-space: nowrap; flex-wrap: wrap; } .btn-edit { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; } .btn-edit:hover { background: #dbeafe; } .btn-delete { background: #fef2f2; color: #dc2626; border-color: #fecaca; } .btn-delete:hover { background: #fee2e2; } .btn-save { background: #dcfce7; color: #15803d; border-color: #bbf7d0; } .btn-save:hover { background: #bbf7d0; } .btn-cancel { background: #f9fafb; color: var(--color-muted); border-color: var(--color-border); } .btn-cancel:hover { background: #f3f4f6; } .edit-qty { display: inline-flex; align-items: center; gap: 0; margin: 2px 0; } .edit-qty button { width: 24px; height: 24px; border: 1px solid var(--color-border); background: #f9fafb; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; } .edit-qty button:first-child { border-radius: 4px 0 0 4px; } .edit-qty button:last-child { border-radius: 0 4px 4px 0; } .edit-qty span { width: 28px; height: 24px; text-align: center; line-height: 24px; border: 1px solid var(--color-border); border-left: 0; border-right: 0; font-size: 0.82rem; font-weight: 600; } .edit-qty.removed { opacity: 0.4; text-decoration: line-through; } .admin-add-item { margin-top: 8px; } .admin-add-item select { padding: 4px 8px; border: 1px solid var(--color-border); border-radius: 6px; font-size: 0.8rem; max-width: 220px; } .admin-loading, .admin-error { text-align: center; padding: 20px; } .admin-loading { color: #9ca3af; } .admin-error { color: #991b1b; }