@media (max-width: 767.98px) {
    body { overflow-x: hidden; }
    main.py-4 { padding-top: 1rem !important; }
    main .container { padding-left: 16px; padding-right: 16px; }
    main h2 { font-size: 1.45rem; overflow-wrap: anywhere; }
    main .d-flex.justify-content-between.align-items-center { align-items: flex-start !important; flex-wrap: wrap; gap: 12px; }
    main .d-flex.justify-content-between.align-items-center > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
    main .card { max-width: 100%; }
    main .card-body { padding: 1rem; min-width: 0; }
    main .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    main .form-control, main .form-select { min-height: 44px; font-size: 16px; }
    main textarea.form-control { min-height: 110px; }
    main .position-row { background: #fff; border-color: #d5dde5 !important; }
    main .position-row .row > [class*="col-"] { min-width: 0; }
    main .position-row .remove-position { margin-top: 8px; }
    main #add-position { width: 100%; }
    main .mobile-stack-table, main .mobile-stack-table tbody,
    main .mobile-stack-table tr, main .mobile-stack-table td { display: block; width: 100%; }
    main .mobile-stack-table { border: 0; margin: 0; }
    main .mobile-stack-table thead { display: none; }
    main .mobile-stack-table tbody tr { border: 1px solid #d7dfe6; border-radius: 8px; margin-bottom: 12px; padding: 10px 12px; background: #fff; }
    main .mobile-stack-table.table-striped > tbody > tr:nth-of-type(odd) > * { background: transparent; }
    main .mobile-stack-table td { border: 0; padding: 6px 0; overflow-wrap: anywhere; }
    main .mobile-stack-table td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 700; color: #64748b; margin-bottom: 2px; }
    main .mobile-stack-table td img { max-width: min(180px, 100%); max-height: 56px; object-fit: contain; }
    main .mobile-stack-table td form { display: inline-block !important; margin: 4px 4px 4px 0; }
    main .mobile-stack-table td .btn { margin: 4px 4px 4px 0; }
    main .mobile-stack-table td[colspan]::before { content: none; }
    main .input-group { flex-wrap: nowrap; }
    main .company-list-panel { border: 0; background: transparent; }
    main .company-list-panel > .card-body { padding: 0; }
    .mobile-company-list { display: grid; gap: 12px; }
    .mobile-company { border: 1px solid #d7dfe6; border-radius: 8px; padding: 14px; background: #fff; }
    .mobile-company-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .mobile-company-logo { width: 58px; height: 48px; flex: none; object-fit: contain; }
    .mobile-company-title { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
    .mobile-company-title strong { font-size: 1.1rem; }
    .mobile-company-title .text-muted { font-size: .8rem; }
    .mobile-company-actions { display: flex; gap: 8px; margin-top: 12px; }
    .mobile-company-actions .btn { flex: 1; min-width: 0; }
    .mobile-company-more { border-top: 1px solid #e5e9ed; padding-top: 10px; margin-top: 12px; }
    .mobile-company-more summary { color: #495665; cursor: pointer; }
    .mobile-company-more form { margin: 0; }
}
.catalog-suggestions { width: 100%; max-height: 220px; overflow-y: auto; }
.catalog-suggestions .list-group-item { min-height: 44px; text-align: left; }
@media (max-width: 767.98px) {
    .catalog-suggestions { max-height: 180px; }
    .catalog-suggestions .list-group-item { flex-wrap: wrap; gap: 2px 8px !important; }
}
