html { zoom: .8; }
.recipes-shell { min-height: 125vh; }
.side-menu .recipe-active-menu-image {
    filter: brightness(0) saturate(100%) invert(22.4%) sepia(97.1%)
        saturate(1312%) hue-rotate(126deg) brightness(129%) contrast(94.5%);
}
.recipes-page {
    grid-column: 2;
    grid-row: 3;
    min-width: 0;
    padding: 29px 22px 24px;
    position: relative;
    overflow-x: auto;
}

.recipe-period {
    min-width: 90px;
    height: 35px;
    display: grid;
    place-items: center;
    margin-left: 14px;
    border-radius: 20px;
    background: #173c78;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.recipe-period.day { background: #ffd000; color: #222; }

.recipes-canvas {
    min-width: 920px;
    min-height: 190px;
    max-height: 520px;
    display: grid;
    grid-template-rows: auto minmax(112px, 1fr);
    border: 1px solid #1f3c26;
    background: #e8ffe8;
    overflow: hidden;
    transition: min-height .2s ease, max-height .2s ease;
}
.recipes-canvas.expanded {
    min-height: calc(125vh - 192px);
    max-height: calc(125vh - 192px);
}

.recipe-panel-header {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 7px 12px 7px 18px;
    border-bottom: 1px solid #aed4b4;
    background: rgba(255, 255, 255, .44);
}
.recipe-panel-header h1 { margin: 0; font-size: 19px; }
.recipe-panel-header p { margin: 4px 0 0; color: #4c6851; font-size: 12px; }
.recipe-panel-actions { display: flex; align-items: center; gap: 12px; }
.recipe-count { color: #345d3d; font-size: 13px; font-weight: 700; }
.recipe-delete {
    min-width: 122px;
    height: 33px;
    padding: 0 15px;
    border: 1px solid #a9131d;
    border-radius: 5px;
    background: #e7232f;
    color: #fff;
    box-shadow: inset 0 -3px rgba(0, 0, 0, .14);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.recipe-delete:hover:not(:disabled) { background: #c81722; }
.recipe-delete:focus-visible { outline: 2px solid #82111a; outline-offset: 2px; }
.recipe-delete:disabled { border-color: #aab4ac; background: #c8cfca; cursor: not-allowed; opacity: .8; }
.recipe-expand {
    width: 47px;
    height: 33px;
    border: 1px solid #9aaa9c;
    border-radius: 5px;
    background: #a9bba9;
    color: white;
    box-shadow: inset 0 -3px rgba(0, 0, 0, .1);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
.recipe-expand:hover { background: #7f9e84; }

.recipe-table-wrap { min-width: 0; overflow: auto; }
.recipe-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, .62);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.recipe-table th,
.recipe-table td {
    min-width: 110px;
    padding: 10px 13px;
    border-right: 1px solid #c5dfc9;
    border-bottom: 1px solid #c5dfc9;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}
.recipe-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #bff4c5;
    color: #174920;
    font-size: 13px;
}
.recipe-table .recipe-primary-column {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #d9f8dd;
    font-weight: 700;
}
.recipe-table th.recipe-primary-column {
    z-index: 3;
    background: #9be9a7;
}
.recipe-table tbody tr:nth-child(even) { background: rgba(220, 248, 224, .65); }
.recipe-table tbody tr[data-recipe-selectable="true"] { cursor: pointer; }
.recipe-table tbody tr:hover { background: #cdf5d3; }
.recipe-table tbody tr.recipe-row-selected,
.recipe-table tbody tr.recipe-row-selected:hover { background: #7fdc91; }
.recipe-table tbody tr.recipe-row-selected .recipe-primary-column { background: #63cd79; }
.recipe-table tbody tr:focus-visible { outline: 3px solid #248b3b; outline-offset: -3px; }
.recipe-cell-json { max-width: 340px; white-space: pre-wrap !important; word-break: break-word; }
.recipe-empty {
    min-height: 126px;
    display: grid;
    place-items: center;
    padding: 22px;
    color: #48644e;
    font-size: 16px;
    text-align: center;
}
.recipe-empty.error { color: #9b1f1f; }

.recipe-create-panel {
    min-width: 920px;
    margin-top: 22px;
    padding: 17px 20px 19px;
    border: 1px solid #6c9873;
    background: #f1fff2;
}
.recipe-create-panel > header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 15px;
}
.recipe-create-panel h2 { margin: 0; color: #174920; font-size: 20px; }
.recipe-create-panel p { margin: 0; color: #607564; font-size: 12px; }
.recipe-create-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    align-items: end;
    gap: 15px;
}
.recipe-create-form label { display: grid; gap: 6px; }
.recipe-create-form label span { color: #234e2a; font-size: 13px; font-weight: 700; }
.recipe-create-form input {
    width: 100%;
    height: 38px;
    padding: 5px 9px;
    border: 1px solid #83a889;
    background: white;
    font: inherit;
    font-variant-numeric: tabular-nums;
}
.recipe-create-form input:focus {
    outline: 2px solid #70c72c;
    outline-offset: 1px;
}
.recipe-create-form button {
    height: 38px;
    border: 1px solid #4b901e;
    border-radius: 4px;
    background: #7ed321;
    color: #102b0f;
    box-shadow: inset 0 -4px rgba(0, 0, 0, .13);
    font-weight: 700;
    cursor: pointer;
}
.recipe-create-form button:disabled { cursor: wait; opacity: .55; }
.recipe-form-status {
    min-height: 18px;
    display: block;
    margin-top: 11px;
    color: #49624d;
    font-size: 13px;
}
.recipe-form-status.success { color: #1a7a2a; font-weight: 700; }
.recipe-form-status.error { color: #a91f1f; font-weight: 700; }

.recipe-data-status {
    position: fixed;
    right: 18px;
    bottom: 14px;
    z-index: 10;
    padding: 7px 12px;
    border-radius: 13px;
    font-size: 11px;
    font-weight: 700;
}
.recipe-data-status.waiting { background: #fff1bd; color: #815a00; }
.recipe-data-status.online { background: #d9f7d2; color: #18702a; }
.recipe-data-status.offline { background: #ffe0e0; color: #a41d1d; }

@media (max-width: 900px) {
    .recipes-page { padding: 16px; }
    .recipe-period { display: none; }
    .recipes-canvas { min-width: 860px; }
    .recipe-create-panel { min-width: 860px; }
    .recipe-create-form { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}
