/* HACCP business controls intentionally opt out of the legacy global button theme. */
.h-main .h-btn.tool-button-plain {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #155eef;
    border-radius: 9px;
    background: #155eef;
    box-shadow: 0 2px 6px rgba(21, 94, 239, .14);
    color: #fff;
    line-height: 1.25;
    transform: none;
}

.h-main .h-btn.tool-button-plain:hover {
    border-color: #004eeb;
    background: #004eeb;
    box-shadow: 0 3px 8px rgba(21, 94, 239, .18);
    transform: none;
}

.h-main .h-btn.tool-button-plain:active {
    transform: translateY(1px);
}

.h-main .h-btn.tool-button-plain.secondary {
    border-color: #cfd8e6;
    background: #fff;
    box-shadow: none;
    color: #344054;
}

.h-main .h-btn.tool-button-plain.secondary:hover {
    border-color: #98a8bf;
    background: #f8fafc;
    color: #182230;
}

.h-main .h-btn.tool-button-plain.danger {
    border-color: #f1b5ad;
    background: #fff;
    box-shadow: none;
    color: #b42318;
}

.h-main .h-btn.tool-button-plain.danger:hover {
    border-color: #e7857a;
    background: #fff4f2;
    color: #912018;
}

.h-main .h-btn.tool-button-plain.small {
    min-height: 34px;
    padding: 6px 10px;
}

.h-main td.h-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.h-main .h-btn.tool-button-plain:disabled {
    border-color: #e4e7ec;
    background: #f2f4f7;
    box-shadow: none;
    color: #98a2b3;
    cursor: not-allowed;
    opacity: 1;
}

.h-main .h-step-item.tool-button-plain {
    position: relative;
    display: block;
    width: 100%;
    min-height: 54px;
    margin: 2px 0;
    padding: 9px 11px 9px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: #344054;
    font-size: .84rem;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
}

.h-main .h-step-item.tool-button-plain::before {
    content: "";
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 3px;
    border-radius: 2px;
    background: transparent;
}

.h-main .h-step-item.tool-button-plain:hover {
    border-color: #e2e8f0;
    background: #f8fafc;
    box-shadow: none;
    color: #182230;
}

.h-main .h-step-item.tool-button-plain.active {
    border-color: #c9d8f5;
    background: #eef4ff;
    box-shadow: none;
    color: #164a9d;
}

.h-main .h-step-item.tool-button-plain.active::before {
    background: #155eef;
}

.h-main .h-step-item.tool-button-plain small {
    margin-top: 3px;
    color: #7c8aa0;
    font-size: .74rem;
    font-weight: 500;
}

.h-main .h-step-item.tool-button-plain.active small {
    color: #5274ad;
}

.h-main .h-custom-select {
    width: 100%;
    min-width: 116px;
}

.h-main .h-field input,
.h-main .h-field textarea,
.h-main input.h-cell,
.h-main textarea.h-cell {
    border: 1px solid #c7d2e3 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

.h-main .h-field input:focus,
.h-main .h-field textarea:focus,
.h-main input.h-cell:focus,
.h-main textarea.h-cell:focus {
    border-color: #155eef !important;
    outline: 3px solid rgba(21, 94, 239, .14) !important;
}

.h-main .h-sidebar {
    box-shadow: 0 4px 16px rgba(39, 72, 130, .06);
}

.h-main .h-side-title {
    padding: 16px 16px 11px;
    border-bottom: 1px solid #edf0f5;
}

.h-main .h-step-list {
    padding: 8px 9px 11px;
}

@media (max-width: 900px) {
    .h-main .h-step-item.tool-button-plain {
        min-width: 176px;
        min-height: 58px;
        margin: 0;
    }
}
