/* Shared admin touch layouts. Desktop controls and business logic are unchanged. */
.admin-mobile-toggle { display: none; }
@media (max-width: 720px) {
    .admin-navigation-shell { position: sticky; top: 0; z-index: 30; background: #23282d; color: #fff; box-shadow: 0 2px 10px #10182020; }
    .admin-mobile-toggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); cursor: pointer; font-size: 15px; font-weight: 600; list-style: none; }
    .admin-mobile-toggle::-webkit-details-marker { display: none; }
    .admin-mobile-close-label, .admin-navigation-shell[open] .admin-mobile-menu-label { display: none; }
    .admin-navigation-shell[open] .admin-mobile-close-label { display: inline; }
    .admin-navigation-shell:not([open]) > .admin-sidebar { display: none; }
    .admin-navigation-shell .admin-sidebar { position: static; max-height: calc(100dvh - 76px); width: 100%; overflow-y: auto; overscroll-behavior: contain; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
    .admin-sidebar .admin-brand { display: none; }
    .admin-sidebar nav { display: flex; }
    .admin-sidebar nav a, .admin-sidebar summary { min-height: 46px; font-size: 15px; }
    .admin-main:not(.login-main) { margin: 0; padding: 16px 12px 24px; min-width: 0; }
    .admin-top { padding: 16px; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
    .admin-top h1 { font-size: 24px; line-height: 1.35; margin: 4px 0 0; }
    .admin-top small { font-size: 10px; }
    .admin-main input:not([type=checkbox]):not([type=radio]), .admin-main select, .admin-main textarea, dialog input:not([type=checkbox]):not([type=radio]), dialog select, dialog textarea { font-size: 16px; max-width: 100%; min-height: 44px; }
    .admin-main .btn, dialog .btn, .bulk-close, .order-line-remove, .order-dialog-close { min-height: 44px; min-width: 44px; white-space: normal; }
    .admin-main input[type=checkbox], .admin-main input[type=radio], dialog input[type=checkbox] { width: 22px; height: 22px; flex-shrink: 0; }
    .admin-main .admin-row { flex-wrap: wrap; gap: 12px; }
    .admin-main .admin-row > .form-label { flex: 1 1 100%; min-width: 0; }
    .admin-main .card-body { padding: 16px; }
    .admin-main .admin-form-grid { grid-template-columns: minmax(0,1fr); }
    .admin-main .admin-form-grid > *, .admin-main .admin-grid > *, .admin-main .admin-row > * { min-width: 0; }
    .orders-toolbar { gap: 12px; }
    .orders-search { flex-basis: 100%; min-width: 0; }
    .orders-tabs, .admin-content-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
    .orders-tabs > *, .admin-content-tabs > * { flex-shrink: 0; }
    .table-responsive:has(> .orders-table), .table-responsive:has(> .admin-products-table) { overflow: visible; }
    .orders-table, .admin-products-table { display: block; width: 100%; }
    .orders-table thead, .admin-products-table thead { display: block; }
    .orders-table thead tr, .admin-products-table thead tr { display: flex; align-items: center; padding: 6px 14px; }
    .orders-table thead th:not(:first-child), .admin-products-table thead th:not(:first-child) { display: none; }
    .orders-table thead th:first-child, .admin-products-table thead th:first-child { display: flex; width: auto !important; gap: 12px; align-items: center; border: 0; padding: 8px 0; }
    .orders-table thead th:first-child::after, .admin-products-table thead th:first-child::after { content: 'בחירת כל הפריטים בעמוד'; font-size: 13px; font-weight: 400; letter-spacing: 0; }
    .orders-table tbody, .admin-products-table tbody { display: grid; gap: 12px; padding: 0 10px 12px; }
    .orders-table tbody tr, .admin-products-table tbody tr { display: grid; grid-template-columns: 36px minmax(0,1fr); background: #fff; border: 1px solid #e2e5e8; border-radius: 10px; padding: 10px; }
    .orders-table tbody td, .admin-products-table tbody td { display: block; grid-column: 2; min-width: 0; padding: 7px 4px; border: 0; font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
    .orders-table tbody td:first-child, .admin-products-table tbody td:first-child { grid-column: 1; grid-row: 1; width: auto !important; }
    .orders-table tbody td:nth-child(2), .admin-products-table tbody td:nth-child(2) { grid-column: 2; grid-row: 1; }
    td[data-mobile-label]::before { content: attr(data-mobile-label); display: block; color: #697380; font-size: 12px; margin-bottom: 3px; font-weight: 400; }
    .orders-table tbody td:last-child, .admin-products-table tbody td:last-child { border-top: 1px solid #eef0f2; margin-top: 6px; }
    .orders-table td:last-child a, .admin-products-table td:last-child a { display: flex; align-items: center; min-height: 44px; font-weight: 600; }
    .orders-table td[colspan], .admin-products-table td[colspan] { grid-column: 1 / -1 !important; }
    .product-cell { align-items: flex-start; gap: 10px; min-width: 0; }
    .product-cell img { flex-shrink: 0; }
    .product-cell strong { font-size: 14px; line-height: 1.6; }
    .products-pagination .page-link { min-width: 44px; min-height: 44px; }
    .order-dialog { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
    .order-dialog-heading { padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); gap: 10px; }
    .order-dialog-heading h2 { font-size: 20px; }
    .order-edit-body { padding: 12px; }
    .order-edit-footer, .bulk-dialog-footer, .content-bottom-save { padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .order-edit-actions { gap: 8px; }
    .order-edit-actions > .btn { flex: 1; }
    .order-edit-actions > span { font-size: 12px; }
    .order-meta-bar { flex-wrap: wrap; gap: 8px; }
    .order-section-heading { flex-wrap: wrap; gap: 10px; }
    .wp-order-main .order-edit-line { grid-template-columns: 44px minmax(0,1fr) 44px; }
    .wp-order-main .order-edit-line > label:nth-of-type(1) { grid-column: 1 / 3; width: auto; justify-self: stretch; padding-inline-end: 48%; }
    .wp-order-main .order-edit-line > label:nth-of-type(2) { grid-column: 2 / 4; width: auto; justify-self: stretch; padding-inline-start: 48%; }
    .wp-order-columns .form-label { font-size: 14px; }
    .supplement-dialog, .bulk-price-dialog { width: calc(100% - 16px); max-width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
    .supplement-dialog-header { gap: 10px; padding: 14px; }
    .supplement-dialog-header h3 { font-size: 18px; line-height: 1.5; }
    .supplement-dialog-body { padding: 14px; }
    [data-shipping-change-form] .admin-form-grid { grid-template-columns: minmax(0,1fr); }
    [data-supplement-panel] button, [data-supplement-panel] .btn { white-space: normal; }
    .wp-product-editor input[name=name] { font-size: 18px; }
    .wp-product-editor .content-bottom-save { flex-wrap: wrap; gap: 10px; }
    .bulk-dialog-content { min-height: 0; }
    .bulk-dialog-footer .btn { flex: 1; }
    .admin-service-filter { flex-wrap: wrap; }
    .admin-service-filter label { min-width: 0; width: 100%; }
}
@media (max-width: 720px) {
    .order-quantity-control { min-height: 46px; height: auto; }
    .order-quantity-control button { width: 44px; min-height: 44px; }
    .order-quantity-control input { flex: 1; width: 32px; min-width: 24px; }
    .admin-mobile-toggle:focus-visible { outline: 3px solid #8ed9dc; outline-offset: -4px; }
}
