912 lines
24 KiB
CSS
912 lines
24 KiB
CSS
/**
|
|
* Mobile layout for /recipes — dashboard steps, card tables, fullscreen editor.
|
|
* Breakpoint matches recipes.html mobile-nav (@768px).
|
|
*/
|
|
|
|
.ingredient-mobile-summary,
|
|
.ingredient-mobile-sheet,
|
|
.unloading-group-mobile-summary,
|
|
.unloading-group-mobile-sheet {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
/* --- Dashboard step navigation --- */
|
|
.recipes-mobile-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
margin-bottom: 1rem;
|
|
padding: 0.65rem 0.85rem;
|
|
background: var(--surface-card, #fff);
|
|
border: 1px solid var(--border-subtle, #e2e8f0);
|
|
border-radius: 12px;
|
|
box-shadow: var(--box-shadow, 0 1px 3px rgba(15, 23, 42, 0.06));
|
|
}
|
|
|
|
.recipes-mobile-nav[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.recipes-mobile-nav-back {
|
|
flex-shrink: 0;
|
|
min-height: 44px;
|
|
padding: 0.4rem 0.75rem;
|
|
border-radius: 10px;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.recipes-mobile-nav-title {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #0f172a);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
body.dashboard-mobile-step-dispensers #periodsCol,
|
|
body.dashboard-mobile-step-dispensers #recipesCol {
|
|
display: none !important;
|
|
}
|
|
|
|
body.dashboard-mobile-step-periods #dispensersCol,
|
|
body.dashboard-mobile-step-periods #recipesCol {
|
|
display: none !important;
|
|
}
|
|
|
|
body.dashboard-mobile-step-recipes #dispensersCol,
|
|
body.dashboard-mobile-step-recipes #periodsCol {
|
|
display: none !important;
|
|
}
|
|
|
|
body.dashboard-mobile-step-periods #periodsCol,
|
|
body.dashboard-mobile-step-recipes #recipesCol {
|
|
display: block !important;
|
|
}
|
|
|
|
body.dashboard-mobile-step-dispensers #dispensersCol {
|
|
display: block !important;
|
|
}
|
|
|
|
/* --- Recipe list cards --- */
|
|
#recipesList .recipe-actions .btn {
|
|
min-width: 44px;
|
|
min-height: 44px;
|
|
padding: 0.45rem 0.65rem;
|
|
}
|
|
|
|
#recipesList .recipe-actions-row {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
#recipesList .recipe-drag-handle {
|
|
touch-action: none;
|
|
-webkit-user-drag: element;
|
|
}
|
|
|
|
#recipesList .list-item.recipe-card-dragging {
|
|
opacity: 0.72;
|
|
}
|
|
|
|
#recipesList.recipe-list-reorder-active {
|
|
touch-action: none;
|
|
}
|
|
|
|
body.recipe-list-reorder-tracking {
|
|
touch-action: none;
|
|
}
|
|
|
|
.recipe-reorder-edge-hints {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1295;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.recipe-reorder-edge-hint {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
height: 3.25rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
transition: opacity 0.18s ease;
|
|
}
|
|
|
|
.recipe-reorder-edge-hint--top {
|
|
top: 0;
|
|
background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.28), rgba(var(--primary-rgb), 0));
|
|
}
|
|
|
|
.recipe-reorder-edge-hint--bottom {
|
|
bottom: 0;
|
|
background: linear-gradient(to top, rgba(var(--primary-rgb), 0.28), rgba(var(--primary-rgb), 0));
|
|
}
|
|
|
|
.recipe-reorder-edge-hint.is-active {
|
|
opacity: 1;
|
|
}
|
|
|
|
.recipe-reorder-hint--floating {
|
|
position: fixed;
|
|
left: 0.75rem;
|
|
right: 0.75rem;
|
|
bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
|
|
z-index: 1296;
|
|
margin: 0;
|
|
}
|
|
|
|
.recipe-list-scroll-zone-label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
padding: 0.28rem 0.65rem;
|
|
border-radius: 999px;
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
color: var(--primary-color, #2196f3);
|
|
background: rgba(255, 255, 255, 0.92);
|
|
box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
|
|
}
|
|
|
|
.recipe-reorder-hint,
|
|
.recipe-reorder-hint--floating {
|
|
padding: 0.55rem 0.75rem;
|
|
border-radius: 10px;
|
|
font-size: 0.78rem;
|
|
line-height: 1.4;
|
|
font-weight: 500;
|
|
color: var(--primary-color, #2196f3);
|
|
background: rgba(var(--primary-rgb), 0.1);
|
|
border: 1px solid rgba(var(--primary-rgb), 0.22);
|
|
opacity: 0;
|
|
transform: translateY(4px);
|
|
transition: opacity 0.22s ease, transform 0.22s ease;
|
|
}
|
|
|
|
.recipe-reorder-hint.is-visible,
|
|
.recipe-reorder-hint--floating.is-visible {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
#recipesList {
|
|
position: relative;
|
|
}
|
|
|
|
#recipesList .recipe-card-insert-indicator {
|
|
position: absolute;
|
|
left: 0.5rem;
|
|
right: 0.5rem;
|
|
height: 3px;
|
|
border-radius: 999px;
|
|
background: var(--primary-color, #2196f3);
|
|
box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.18);
|
|
pointer-events: none;
|
|
z-index: 8;
|
|
}
|
|
|
|
#recipesList .list-item.recipe-card-dragging {
|
|
opacity: 0.35;
|
|
border-style: dashed;
|
|
}
|
|
|
|
.recipe-card-drag-ghost--card-clone {
|
|
position: fixed;
|
|
z-index: 1300;
|
|
pointer-events: none;
|
|
opacity: 0.96;
|
|
box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
|
|
margin: 0 !important;
|
|
transition: none !important;
|
|
transform: none;
|
|
will-change: left, top;
|
|
}
|
|
|
|
body.recipe-mobile-transfer-armed #recipesList .recipe-drag-handle {
|
|
color: var(--primary-color, #2196f3);
|
|
border-color: rgba(var(--primary-rgb), 0.45);
|
|
background: rgba(var(--primary-rgb), 0.12);
|
|
}
|
|
|
|
body.recipe-mobile-transfer-armed #recipesCol .card-header::after {
|
|
content: "Режим переноса: выберите период или оборудование";
|
|
display: block;
|
|
width: 100%;
|
|
margin-top: 0.35rem;
|
|
font-size: 0.78rem;
|
|
font-weight: 500;
|
|
color: var(--primary-color, #2196f3);
|
|
line-height: 1.35;
|
|
}
|
|
|
|
/* --- Transfer drag: show hidden dashboard columns as overlay --- */
|
|
body.recipe-transfer-session #recipesMobileNav {
|
|
display: none !important;
|
|
}
|
|
|
|
body.recipe-transfer-session #dispensersCol,
|
|
body.recipe-transfer-session #periodsCol {
|
|
display: block !important;
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 1250;
|
|
margin: 0 !important;
|
|
padding: 0 0.5rem;
|
|
max-height: 42vh;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
background: var(--surface-page, #f5f7fa);
|
|
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
|
|
}
|
|
|
|
body.recipe-transfer-session #dispensersCol {
|
|
top: 0;
|
|
}
|
|
|
|
body.recipe-transfer-session #periodsCol {
|
|
top: 42vh;
|
|
max-height: 38vh;
|
|
}
|
|
|
|
body.recipe-transfer-session #recipesCol {
|
|
display: block !important;
|
|
margin-top: 80vh;
|
|
}
|
|
|
|
body.recipe-transfer-session #recipesCol .card-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 2;
|
|
}
|
|
|
|
#recipesList .recipe-card-meta {
|
|
flex-wrap: wrap;
|
|
gap: 0.35rem 0.75rem;
|
|
justify-content: flex-start !important;
|
|
}
|
|
|
|
#recipesList .recipe-card-meta > * {
|
|
flex: 0 1 auto;
|
|
}
|
|
|
|
/* --- Fullscreen recipe editor --- */
|
|
body.recipe-edit-mobile-open {
|
|
overflow: hidden;
|
|
touch-action: pan-x pan-y;
|
|
}
|
|
|
|
body.recipe-edit-mobile-open .mobile-navbar,
|
|
body.recipe-edit-mobile-open .mobile-menu-overlay,
|
|
body.recipe-edit-mobile-open .app-footer,
|
|
body.recipe-edit-mobile-open .page-content,
|
|
body.recipe-edit-mobile-open .wesp-zt-notify-fab,
|
|
body.ingredient-mobile-sheet-open .wesp-zt-notify-fab,
|
|
body.unloading-group-mobile-sheet-open .wesp-zt-notify-fab,
|
|
body.recipe-help-modal-open .wesp-zt-notify-fab {
|
|
display: none !important;
|
|
}
|
|
|
|
body.recipe-edit-mobile-open #recipesDashboard,
|
|
body.recipe-edit-mobile-open #recipesMobileNav {
|
|
display: none !important;
|
|
}
|
|
|
|
body.recipe-edit-mobile-open #recipeEdit,
|
|
#recipeEdit.recipe-edit--mobile-active {
|
|
display: flex !important;
|
|
flex-direction: column;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
max-width: none;
|
|
height: 100%;
|
|
height: 100dvh;
|
|
z-index: 1200;
|
|
margin: 0 !important;
|
|
overflow: hidden !important;
|
|
background: var(--surface-page, #f5f7fa);
|
|
padding-bottom: 0;
|
|
touch-action: pan-x pan-y;
|
|
}
|
|
|
|
body.recipe-edit-mobile-open #recipeEdit .recipe-edit-panel,
|
|
#recipeEdit.recipe-edit--mobile-active .recipe-edit-panel {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
border: none;
|
|
overflow: hidden !important;
|
|
touch-action: pan-x pan-y;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
body.recipe-edit-mobile-open #recipeEdit #recipeForm,
|
|
#recipeEdit.recipe-edit--mobile-active #recipeForm {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
body.recipe-edit-mobile-open #recipeEdit #recipeForm > .card-body,
|
|
#recipeEdit.recipe-edit--mobile-active #recipeForm > .card-body {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
overscroll-behavior-y: contain;
|
|
touch-action: pan-y;
|
|
padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
|
|
}
|
|
|
|
/* Nested section cards inherit global .card { height: 100% } and stretch to fill the scroll viewport */
|
|
body.recipe-edit-mobile-open #recipeEdit .recipe-section-card,
|
|
#recipeEdit.recipe-edit--mobile-active .recipe-section-card {
|
|
height: auto !important;
|
|
flex-grow: 0;
|
|
}
|
|
|
|
body.recipe-edit-mobile-open #recipeEdit #recipeForm > .card-header,
|
|
#recipeEdit.recipe-edit--mobile-active #recipeForm > .card-header {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
body.recipe-edit-mobile-open #recipeEdit .card-body,
|
|
#recipeEdit.recipe-edit--mobile-active .card-body {
|
|
padding-left: 0.85rem;
|
|
padding-right: 0.85rem;
|
|
}
|
|
|
|
/* --- Compact recipe edit header --- */
|
|
body.recipe-edit-mobile-open #recipeEdit .recipe-edit-header,
|
|
#recipeEdit.recipe-edit--mobile-active .recipe-edit-header {
|
|
padding: 0.4rem 0.85rem;
|
|
padding-top: calc(0.4rem + env(safe-area-inset-top, 0px));
|
|
background: var(--surface-card, #fff);
|
|
border-bottom: 1px solid var(--border-subtle, #e2e8f0);
|
|
}
|
|
|
|
body.recipe-edit-mobile-open #recipeEdit .recipe-edit-header-text,
|
|
#recipeEdit.recipe-edit--mobile-active .recipe-edit-header-text {
|
|
display: none !important;
|
|
}
|
|
|
|
body.recipe-edit-mobile-open #recipeEdit .recipe-edit-header-inner,
|
|
#recipeEdit.recipe-edit--mobile-active .recipe-edit-header-inner {
|
|
justify-content: flex-end;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
body.recipe-edit-mobile-open #recipeEdit .recipe-edit-header-actions,
|
|
#recipeEdit.recipe-edit--mobile-active .recipe-edit-header-actions {
|
|
flex: 1 1 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
body.recipe-edit-mobile-open #recipeEdit .recipe-edit-header-actions .d-flex,
|
|
#recipeEdit.recipe-edit--mobile-active .recipe-edit-header-actions .d-flex {
|
|
justify-content: flex-end;
|
|
gap: 0.35rem;
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
body.recipe-edit-mobile-open #recipeEdit .recipe-edit-header-icon-btn,
|
|
#recipeEdit.recipe-edit--mobile-active .recipe-edit-header-icon-btn {
|
|
min-width: 36px;
|
|
min-height: 36px;
|
|
padding: 0.28rem 0.38rem;
|
|
}
|
|
|
|
#recipeEdit .recipe-section-toolbar > .btn-primary,
|
|
#recipeEdit .recipe-section-toolbar .recipe-section-toggle-btn {
|
|
min-height: 36px;
|
|
padding: 0.32rem 0.7rem;
|
|
font-size: 0.875rem;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
#recipeEdit .recipe-section-card > .card-header {
|
|
padding: 0.65rem 0.85rem;
|
|
}
|
|
|
|
#recipeEdit .recipe-section-card > .card-body {
|
|
padding: 0.75rem 1rem 1rem;
|
|
}
|
|
|
|
#recipeEdit .recipe-section-toolbar {
|
|
margin-bottom: 0.75rem;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
#recipeEdit .recipe-section-toolbar-title {
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
body.recipe-edit-mobile-open #recipeEdit #recipeForm > .card-body > .row,
|
|
#recipeEdit.recipe-edit--mobile-active #recipeForm > .card-body > .row {
|
|
margin-bottom: 0.65rem !important;
|
|
}
|
|
|
|
body.recipe-edit-mobile-open #recipeEdit #recipeForm > .card-body > .row .form-group,
|
|
#recipeEdit.recipe-edit--mobile-active #recipeForm > .card-body > .row .form-group {
|
|
margin-bottom: 0.55rem;
|
|
}
|
|
|
|
/* --- Card layout for edit data grids --- */
|
|
/* !important: wesp-recipes-editor.css loads later and sets display:grid on __head/__row */
|
|
#recipeEdit .zt-data-grid__scroll {
|
|
overflow: visible !important;
|
|
}
|
|
|
|
#recipeEdit .zt-data-grid {
|
|
gap: 0 !important;
|
|
min-width: 0 !important;
|
|
}
|
|
|
|
#recipeEdit .zt-data-grid__head {
|
|
display: none !important;
|
|
}
|
|
|
|
#recipeEdit #ingredientsTableBody .ingredient-row,
|
|
#recipeEdit #unloadingGroupsTableBody .unloading-group-row {
|
|
min-width: 0 !important;
|
|
}
|
|
|
|
#recipeEdit #ingredientsTable.ingredients-table--dm-unlocked .ingredient-detail-cell.dry-matter-per-head {
|
|
display: none;
|
|
}
|
|
|
|
/* --- Compact ingredient list (mobile) --- */
|
|
#recipeEdit #ingredientsTableBody .ingredient-row {
|
|
display: block;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
border-bottom: 1px solid var(--border-subtle, #e2e8f0);
|
|
}
|
|
|
|
#recipeEdit #ingredientsTableBody .ingredient-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
#recipeEdit #ingredientsTableBody .ingredient-row .zt-data-grid__cell {
|
|
border-bottom: none;
|
|
padding: 0;
|
|
background: transparent;
|
|
}
|
|
|
|
#recipeEdit #ingredientsTableBody .ingredient-row .ingredient-mobile-summary {
|
|
display: block;
|
|
padding: 0;
|
|
}
|
|
|
|
#recipeEdit #ingredientsTableBody .ingredient-row .ingredient-detail-cell {
|
|
display: none !important;
|
|
}
|
|
|
|
/* --- Compact unloading groups list (mobile) --- */
|
|
#recipeEdit #unloadingGroupsTableBody .unloading-group-row {
|
|
display: block;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
border-bottom: 1px solid var(--border-subtle, #e2e8f0);
|
|
}
|
|
|
|
#recipeEdit #unloadingGroupsTableBody .unloading-group-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
#recipeEdit #unloadingGroupsTableBody .unloading-group-row .zt-data-grid__cell {
|
|
border-bottom: none;
|
|
padding: 0;
|
|
background: transparent;
|
|
}
|
|
|
|
#recipeEdit #unloadingGroupsTableBody .unloading-group-row .unloading-group-mobile-summary {
|
|
display: block;
|
|
padding: 0;
|
|
}
|
|
|
|
#recipeEdit #unloadingGroupsTableBody .unloading-group-row .unloading-group-detail-cell {
|
|
display: none !important;
|
|
}
|
|
|
|
#recipeEdit #unloadingGroupsTable .zt-data-grid__foot,
|
|
#recipeEdit #ingredientsTable .zt-data-grid__foot {
|
|
display: none !important;
|
|
}
|
|
|
|
#recipeEdit .recipe-table-row-actions {
|
|
justify-content: flex-start !important;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem !important;
|
|
}
|
|
|
|
#recipeEdit .recipe-table-move-group .btn,
|
|
#recipeEdit .recipe-table-delete-btn {
|
|
min-height: 44px;
|
|
min-width: 44px;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.recipe-mobile-row-summary-btn,
|
|
.ingredient-mobile-summary-btn,
|
|
.unloading-group-mobile-summary-btn {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: 0.75rem 0.85rem;
|
|
border: none;
|
|
background: transparent;
|
|
text-align: left;
|
|
gap: 0.55rem;
|
|
touch-action: manipulation;
|
|
cursor: pointer;
|
|
color: inherit;
|
|
}
|
|
|
|
.ingredient-mobile-name,
|
|
.unloading-group-mobile-name {
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
color: var(--text-primary, #0f172a);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ingredient-mobile-trip,
|
|
.unloading-group-mobile-meta {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary, #64748b);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.recipe-mobile-row-summary-chevron,
|
|
.ingredient-mobile-summary-chevron {
|
|
flex-shrink: 0;
|
|
color: var(--text-secondary, #64748b);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Hide desktop totals block — values are in edit sheet or recalculated */
|
|
|
|
/* --- Mobile edit bottom sheets --- */
|
|
.recipe-mobile-edit-sheet[hidden],
|
|
.ingredient-mobile-sheet[hidden],
|
|
.unloading-group-mobile-sheet[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.recipe-mobile-edit-sheet:not([hidden]),
|
|
.ingredient-mobile-sheet:not([hidden]),
|
|
.unloading-group-mobile-sheet:not([hidden]) {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1400;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
body.ingredient-mobile-sheet-open,
|
|
body.unloading-group-mobile-sheet-open,
|
|
body.recipe-help-modal-open {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.recipe-mobile-edit-sheet-backdrop,
|
|
.ingredient-mobile-sheet-backdrop {
|
|
position: absolute;
|
|
inset: 0;
|
|
border: none;
|
|
padding: 0;
|
|
background: rgba(15, 23, 42, 0.45);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.recipe-mobile-edit-sheet-panel,
|
|
.ingredient-mobile-sheet-panel {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-height: min(82dvh, 620px);
|
|
min-height: 0;
|
|
background: var(--surface-card, #fff);
|
|
border-radius: 16px 16px 0 0;
|
|
overflow: hidden;
|
|
box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.15);
|
|
touch-action: pan-y;
|
|
will-change: transform;
|
|
}
|
|
|
|
.recipe-mobile-edit-sheet-grab {
|
|
flex-shrink: 0;
|
|
width: 2.75rem;
|
|
height: 0.28rem;
|
|
margin: 0.55rem auto 0.15rem;
|
|
border-radius: 999px;
|
|
background: var(--border-subtle, rgba(148, 163, 184, 0.55));
|
|
touch-action: none;
|
|
cursor: grab;
|
|
}
|
|
|
|
.recipe-mobile-edit-sheet--dragging .recipe-mobile-edit-sheet-grab {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.recipe-mobile-edit-sheet--dragging .recipe-mobile-edit-sheet-body,
|
|
.recipe-mobile-edit-sheet--dragging .ingredient-mobile-sheet-body {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.recipe-mobile-edit-sheet-header,
|
|
.ingredient-mobile-sheet-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.65rem;
|
|
padding: 0.85rem 1.1rem 0.75rem;
|
|
border-bottom: 1px solid var(--border-subtle, #e2e8f0);
|
|
flex-shrink: 0;
|
|
touch-action: none;
|
|
cursor: grab;
|
|
}
|
|
|
|
.recipe-mobile-edit-sheet-done,
|
|
.ingredient-mobile-sheet-done {
|
|
min-height: 36px;
|
|
min-width: 5.5rem;
|
|
padding-left: 0.85rem;
|
|
padding-right: 0.85rem;
|
|
font-size: 0.875rem;
|
|
flex-shrink: 0;
|
|
touch-action: manipulation;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.recipe-mobile-edit-sheet-title,
|
|
.ingredient-mobile-sheet-title {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
line-height: 1.25;
|
|
padding-right: 0.35rem;
|
|
}
|
|
|
|
.recipe-mobile-edit-sheet-body,
|
|
.ingredient-mobile-sheet-body {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
padding: 1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
|
|
-webkit-overflow-scrolling: touch;
|
|
overscroll-behavior-y: contain;
|
|
}
|
|
|
|
.ingredient-mobile-sheet-field,
|
|
.unloading-group-mobile-sheet-field {
|
|
margin-bottom: 1rem;
|
|
padding-bottom: 1rem;
|
|
border-bottom: 1px solid var(--border-subtle, #e2e8f0);
|
|
}
|
|
|
|
.ingredient-mobile-sheet-field:last-child,
|
|
.unloading-group-mobile-sheet-field:last-child {
|
|
margin-bottom: 0;
|
|
padding-bottom: 0;
|
|
border-bottom: none;
|
|
}
|
|
|
|
.ingredient-mobile-sheet-label,
|
|
.unloading-group-mobile-sheet-label {
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
color: var(--text-secondary, #64748b);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.ingredient-mobile-sheet-field .form-control,
|
|
.ingredient-mobile-sheet-field .form-select,
|
|
.unloading-group-mobile-sheet-field .form-control,
|
|
.unloading-group-mobile-sheet-field .form-select {
|
|
width: 100%;
|
|
font-size: 16px;
|
|
min-height: 44px;
|
|
}
|
|
|
|
.ingredient-mobile-sheet-field.ingredient-mobile-sheet-actions,
|
|
.unloading-group-mobile-sheet-field.unloading-group-mobile-sheet-actions {
|
|
padding-top: 0.75rem;
|
|
margin-top: 0.25rem;
|
|
margin-bottom: 0;
|
|
border-top: 1px solid var(--border-color, rgba(148, 163, 184, 0.2));
|
|
border-bottom: none;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.ingredient-mobile-sheet-actions .recipe-table-row-actions,
|
|
.unloading-group-mobile-sheet-actions .recipe-table-row-actions {
|
|
display: grid !important;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 0.5rem;
|
|
width: 100%;
|
|
justify-content: stretch !important;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.ingredient-mobile-sheet-actions .recipe-table-move-group,
|
|
.unloading-group-mobile-sheet-actions .recipe-table-move-group {
|
|
display: contents;
|
|
}
|
|
|
|
.ingredient-mobile-sheet-actions .recipe-table-move-group .btn,
|
|
.unloading-group-mobile-sheet-actions .recipe-table-move-group .btn,
|
|
.ingredient-mobile-sheet-actions .recipe-table-delete-btn,
|
|
.unloading-group-mobile-sheet-actions .recipe-table-delete-btn {
|
|
width: 100%;
|
|
min-height: 48px;
|
|
min-width: 0;
|
|
padding: 0.55rem 0.75rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.05rem;
|
|
border-radius: 0.5rem !important;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.ingredient-mobile-sheet-actions .recipe-table-delete-btn,
|
|
.unloading-group-mobile-sheet-actions .recipe-table-delete-btn {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.ingredient-mobile-sheet.ingredients-table--dm-unlocked .ingredient-mobile-sheet-field.dry-matter-per-head {
|
|
display: none;
|
|
}
|
|
|
|
#recipeEdit .recipe-help-icon-btn {
|
|
width: 2rem;
|
|
height: 2rem;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.recipe-help-modal-body {
|
|
padding: 0 1rem 1.25rem;
|
|
}
|
|
|
|
.recipe-help-modal-body .zt-notice--static {
|
|
margin: 0;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* Footer actions: hidden on mobile — use header icons (save / print / close) */
|
|
body.recipe-edit-mobile-open #recipeEdit .recipe-form-footer-actions,
|
|
#recipeEdit.recipe-edit--mobile-active .recipe-form-footer-actions {
|
|
display: none !important;
|
|
}
|
|
|
|
/* iOS zoom prevention for top-level form fields */
|
|
#recipeEdit .form-control,
|
|
#recipeEdit .form-select {
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 400px) {
|
|
#recipesList .recipe-card-meta {
|
|
flex-direction: column;
|
|
align-items: flex-start !important;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
html[data-theme="dark"] .recipes-mobile-nav {
|
|
background: var(--dm-surface, #1a2228);
|
|
border-color: var(--dm-border, rgba(255, 255, 255, 0.12));
|
|
}
|
|
|
|
html[data-theme="dark"] .recipes-mobile-nav-title {
|
|
color: var(--dm-text, #e9ecef);
|
|
}
|
|
|
|
html[data-theme="dark"] #recipeEdit #ingredientsTableBody .ingredient-row,
|
|
html[data-theme="dark"] #recipeEdit #unloadingGroupsTableBody .unloading-group-row {
|
|
border-color: var(--dm-border, rgba(255, 255, 255, 0.12));
|
|
}
|
|
|
|
html[data-theme="dark"] #recipeEdit .zt-data-grid__foot .zt-data-grid__row {
|
|
border-color: var(--dm-border, rgba(255, 255, 255, 0.12));
|
|
}
|
|
|
|
html[data-theme="dark"] body.recipe-edit-mobile-open #recipeEdit,
|
|
html[data-theme="dark"] #recipeEdit.recipe-edit--mobile-active {
|
|
background: var(--dm-bg, #12181b);
|
|
}
|
|
|
|
html[data-theme="dark"] body.recipe-transfer-session #dispensersCol,
|
|
html[data-theme="dark"] body.recipe-transfer-session #periodsCol {
|
|
background: var(--dm-bg, #12181b);
|
|
}
|
|
|
|
html[data-theme="dark"] body.recipe-edit-mobile-open #recipeEdit .recipe-edit-header,
|
|
html[data-theme="dark"] #recipeEdit.recipe-edit--mobile-active .recipe-edit-header {
|
|
background: var(--dm-surface, #1a2228);
|
|
border-color: var(--dm-border, rgba(255, 255, 255, 0.12));
|
|
}
|
|
|
|
html[data-theme="dark"] .recipe-help-modal-panel,
|
|
html[data-theme="dark"] .recipe-mobile-edit-sheet-panel,
|
|
html[data-theme="dark"] .ingredient-mobile-sheet-panel {
|
|
background: var(--dm-surface, #1a2228);
|
|
}
|
|
|
|
html[data-theme="dark"] .recipe-mobile-edit-sheet-header,
|
|
html[data-theme="dark"] .ingredient-mobile-sheet-header {
|
|
border-color: var(--dm-border, rgba(255, 255, 255, 0.12));
|
|
}
|
|
|
|
html[data-theme="dark"] .recipe-mobile-edit-sheet-grab {
|
|
background: rgba(255, 255, 255, 0.28);
|
|
}
|
|
|
|
html[data-theme="dark"] .ingredient-mobile-sheet-field,
|
|
html[data-theme="dark"] .unloading-group-mobile-sheet-field {
|
|
border-color: var(--dm-border, rgba(255, 255, 255, 0.12));
|
|
}
|
|
|
|
html[data-theme="dark"] .ingredient-mobile-name,
|
|
html[data-theme="dark"] .unloading-group-mobile-name {
|
|
color: var(--dm-text, #e9ecef);
|
|
}
|
|
|
|
html[data-theme="dark"] #recipeEdit #ingredientsTableBody .ingredient-row,
|
|
html[data-theme="dark"] #recipeEdit #unloadingGroupsTableBody .unloading-group-row {
|
|
border-color: var(--dm-border, rgba(255, 255, 255, 0.12));
|
|
}
|
|
|
|
html[data-theme="dark"] #recipesList .recipe-card-insert-indicator {
|
|
box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.22);
|
|
}
|
|
|
|
html[data-theme="dark"] .recipe-card-drag-ghost--card-clone {
|
|
box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
|
|
}
|
|
|
|
html[data-theme="dark"] .recipe-list-scroll-zone-label {
|
|
background: rgba(26, 34, 40, 0.94);
|
|
color: #64b5f6;
|
|
}
|
|
|
|
html[data-theme="dark"] .recipe-reorder-hint {
|
|
background: rgba(100, 181, 246, 0.1);
|
|
border-color: rgba(100, 181, 246, 0.24);
|
|
color: #64b5f6;
|
|
}
|
|
}
|