/* ===== Advanced Search V2 — Premium UI ===== */
:root {
    --as-primary: #2c8a94;
    --as-primary-dark: #24727b;
    --as-primary-light: #e0f3f5;
    --as-primary-glow: rgba(44,138,148,.15);
    --as-bg: #f0f4f8;
    --as-card: #ffffff;
    --as-border: #e2e8f0;
    --as-text: #1e293b;
    --as-muted: #64748b;
    --as-success: #10b981;
    --as-radius: 12px;
    --as-shadow: 0 2px 12px rgba(0,0,0,.05);
    --as-shadow-lg: 0 4px 20px rgba(0,0,0,.07);
}

/* ── Standard Page Header Integration + Intentional Overlap ── */
.as-header-container {
    padding-bottom: 44px !important;
    position: relative;
    z-index: 5;
}

/* Page */
.as-page {
    background: var(--as-bg);
    min-height: 80vh;
    padding: 0 0 60px;
    position: relative;
}

.as-main-container {
    padding-top: 0 !important;
}

/* ===== COMPACT SEARCH PANEL WRAPPER ===== */
.as-panel-wrapper {
    position: relative;
    z-index: 20;
    margin-top: -30px;
    margin-bottom: 16px;
}

/* ===== COLLAPSE / EXPAND ===== */
.as-toggle-icon {
    font-size: 13px;
    transition: transform .25s ease;
}
.as-toggled .as-toggle-icon { transform: rotate(180deg); }
.as-panel-body { transition: max-height .4s ease, opacity .3s ease; overflow: hidden; }
.as-panel-body.as-collapsed { max-height: 0 !important; opacity: 0; padding-top: 0; padding-bottom: 0; }

/* Panel — Clean white surface */
.as-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: box-shadow .2s ease;
    overflow: hidden;
}
.as-panel:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1); }

/* Compact Search Panel Header */
.as-panel-header {
    padding: 12px 18px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.as-panel-header-start {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.as-panel-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f0fdfa;
    color: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    border: 1px solid rgba(13,148,136,.18);
}
.as-panel-header-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.as-panel-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -.2px !important;
    border: none !important;
    background: none !important;
}
.as-panel-subtitle {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.as-toggle-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all .2s ease;
    flex-shrink: 0;
}
.as-toggle-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}
.as-toggle-btn:focus-visible {
    outline: 2px solid var(--as-primary, #378B95);
    outline-offset: 1px;
}

/* Idle / dormant state — soft gray on first load */
.as-panel.as-panel-idle {
    opacity: .75;
    filter: saturate(.35) brightness(1.02);
    position: relative;
}
.as-panel.as-panel-idle::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(226,232,240,.25);
    border-radius: var(--as-radius);
    pointer-events: none;
    transition: opacity .4s ease;
}
/* Fully awake — class removed by JS */
.as-panel:not(.as-panel-idle)::after { display: none; }

/* Grid — compact responsive */
.as-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; }
.as-col-2 { flex: 1 1 calc(50% - 4px); min-width: 180px; }
.as-col-3 { flex: 1 1 0; min-width: 0; }
.as-col-4 { flex: 1 1 calc(25% - 6px); min-width: 160px; }
.as-col-full { flex: 1 1 100%; }
.as-row-nowrap { flex-wrap: nowrap; }

/* Combined pills row — both groups on one line on desktop */
.as-row-pills {
    display: flex; flex-wrap: nowrap; gap: 24px;
    align-items: flex-start; margin-bottom: 0;
}
.as-pills-group { flex: 0 1 auto; min-width: 0; }

/* Panel body internal padding */
.as-panel-body { padding: 12px 20px 2px; }

/* Fields */
.as-field label {
    display: flex; align-items: center; gap: 5px;
    font-size: 10.5px; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px;
}
.as-field label i { font-size: 11px; color: var(--as-primary); opacity: .7; }
.as-field input[type="text"],
.as-field input[type="number"] {
    width: 100%; height: 38px; padding: 0 12px;
    border: 1.5px solid #e2e8f0; border-radius: 8px;
    font-size: 13px; color: var(--as-text);
    background: #f8fafc; transition: all .2s ease; box-sizing: border-box;
}
.as-field input:focus {
    border-color: var(--as-primary); outline: none;
    box-shadow: 0 0 0 2px rgba(44,138,148,.08); background: #fff;
}
.as-field input::placeholder { color: #b0bec5; font-size: 12.5px; }

/* Section divider */
.as-divider {
    height: 1px; background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
    margin: 4px 0;
}

/* Status Pills — segmented connected buttons */
.as-pills { display: inline-flex; flex-wrap: nowrap; gap: 0; border-radius: 8px; overflow: hidden; border: 1.5px solid #e2e8f0; }
.as-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 0 10px; height: 34px; cursor: pointer;
    border: none; border-right: 1px solid #e2e8f0;
    background: #fff;
    font-size: 11.5px; font-weight: 600; color: #64748b;
    transition: all .15s ease; user-select: none;
    position: relative; overflow: hidden; white-space: nowrap;
}
[dir="rtl"] .as-pill { border-right: none; border-left: 1px solid #e2e8f0; }
.as-pill:last-child { border-right: none; border-left: none; }
.as-pill::before {
    content: ''; position: absolute; inset: 0;
    background: var(--as-primary);
    opacity: 0; transition: opacity .15s ease;
}
.as-pill:hover { background: #f0fafb; color: var(--as-primary); }
.as-pill.active {
    color: #fff;
    box-shadow: inset 0 0 0 1px var(--as-primary);
}
.as-pill.active::before { opacity: 1; }
.as-pill.active i { color: #fff !important; }
.as-pill i, .as-pill > span { position: relative; z-index: 1; }
.as-pill input { display: none; }

/* Segmented Control — radio status filter */
.as-seg {
    display: inline-flex; flex-wrap: nowrap; gap: 0;
    border-radius: 8px; overflow: hidden;
    border: 1.5px solid #e2e8f0;
    background: #F1F5F9;
    padding: 3px;
    height: 38px; box-sizing: border-box;
    align-items: stretch;
}
.as-seg__item {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 0 12px; cursor: pointer;
    border-radius: 6px;
    background: transparent;
    font-size: 11.5px; font-weight: 700; color: #64748b;
    transition: all .15s ease; user-select: none;
    white-space: nowrap;
}
.as-seg__item:hover { color: var(--as-primary, #378B95); }
.as-seg__item.active {
    background: var(--as-primary, #378B95);
    color: #fff;
    box-shadow: 0 1px 4px rgba(55,139,149,.2);
}
.as-seg__item.active i { color: #fff !important; }
.as-seg__item input { display: none; }

/* Actions: Compact, Search + Reset on same row */
.as-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 18px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
}
[dir="rtl"] .as-actions,
html[dir="rtl"] .as-actions {
    justify-content: flex-start;
}
.as-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .15s ease;
    height: 38px;
    box-sizing: border-box;
    user-select: none;
    flex: 0 0 auto;
}
.as-btn-primary {
    padding: 0 22px;
    font-size: 13.5px;
    background: linear-gradient(135deg, #f5833d, #ea580c);
    color: #fff;
    box-shadow: 0 1px 3px rgba(234, 88, 12, 0.2);
    min-width: 125px;
}
.as-btn-primary:hover {
    filter: brightness(1.04);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}
.as-btn-primary:active {
    transform: translateY(1px);
}
.as-btn-secondary {
    padding: 0 18px;
    font-size: 13px;
    background: #fff;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    min-width: 95px;
}
.as-btn-secondary:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}
.as-btn-secondary:active {
    transform: translateY(1px);
}
@media (max-width: 520px) {
    .as-actions {
        padding: 10px 14px;
        gap: 8px;
    }
    .as-btn {
        flex: 1 1 50%;
        min-width: 0;
        padding: 0 12px;
        font-size: 12.5px;
    }
}

/* (Old collapse bar removed — using side toggle now) */

/* Search button loading state */
.as-btn-primary.as-btn-searching {
    opacity: .7; pointer-events: none;
    background: linear-gradient(135deg, #c0a070, #a88a5a);
    box-shadow: none; cursor: not-allowed;
}
.as-btn-primary.as-btn-searching .as-btn-icon,
.as-btn-primary.as-btn-searching .as-btn-text { display: none; }
.as-btn-primary.as-btn-searching .as-btn-loading { display: inline-flex !important; align-items: center; gap: 6px; }

/* Results */
.as-results-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; background: var(--as-card);
    border-radius: var(--as-radius) var(--as-radius) 0 0;
    border: 1px solid var(--as-border); border-bottom: 2px solid var(--as-primary-light);
}
.as-results-count {
    font-size: 15px; font-weight: 700; color: var(--as-text);
    display: flex; align-items: center; gap: 8px;
}
.as-results-count i { color: var(--as-primary); }
.as-results-count span {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--as-primary), #3ba3ae);
    color: #fff; padding: 3px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 700; min-width: 36px;
    box-shadow: 0 2px 8px rgba(44,138,148,.25);
}
.as-active-filters { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.as-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 16px; font-size: 11.5px;
    background: var(--as-primary-light); color: var(--as-primary-dark);
    font-weight: 600; border: 1px solid rgba(44,138,148,.15);
}

/* Save Search Button */
.as-btn-save {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 18px; border-radius: 8px; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--as-primary), var(--as-primary-dark));
    color: #fff; font-size: 13px; font-weight: 700;
    box-shadow: 0 3px 10px rgba(44,138,148,.25);
    transition: all .25s ease; white-space: nowrap;
}
.as-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(44,138,148,.35);
}
.as-btn-save:active { transform: translateY(0); }
.as-btn-save i { font-size: 14px; }
.as-btn-save.saved {
    background: linear-gradient(135deg, var(--as-success), #059669);
    pointer-events: none;
}

/* Cards — Premium V2 */
#asResultsList {
    border: 1px solid var(--as-border); border-top: none;
    border-radius: 0 0 var(--as-radius) var(--as-radius); overflow: hidden;
}
.as-tender-card {
    display: flex; gap: 0; background: var(--as-card);
    border-bottom: 1px solid var(--as-border);
    transition: all .25s cubic-bezier(.4,0,.2,1);
    position: relative; overflow: hidden;
}
.as-tender-card:hover {
    background: linear-gradient(90deg, #f0fafb 0%, #fff 100%);
    box-shadow: inset 0 0 0 1px rgba(44,138,148,.1);
    transform: translateY(-1px);
    z-index: 1;
}
.as-tender-card:last-child { border-bottom: none; }

/* Accent strip */
.as-card-accent {
    width: 4px; flex-shrink: 0;
    background: linear-gradient(180deg, var(--as-primary), #3ba3ae);
    opacity: 0; transition: opacity .25s ease;
}
.as-tender-card:hover .as-card-accent { opacity: 1; }

/* Flag column — square, centered, small */
.as-card-flag-col {
    flex-shrink: 0; width: 50px; display: flex;
    align-items: center; justify-content: center; padding: 0 2px 0 12px;
}
.as-card-flag-img {
    width: 28px; height: 28px; border-radius: 3px; object-fit: cover;
    border: 1.5px solid #d0d0d0;
}

/* Body */
.as-card-body { flex: 1; min-width: 0; padding: 14px 8px 14px 0; }

/* Buyer name — teal box with icon */
.as-card-buyer {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 8px; padding: 5px 10px;
    background: linear-gradient(135deg, #f0f9fa, #e8f4f5);
    border-radius: 6px; border-inline-start: 3px solid var(--as-primary);
}
.as-card-buyer i {
    color: var(--as-primary); font-size: 13px; flex-shrink: 0;
}
.as-card-buyer a {
    color: #1a6e78; font-size: 13px; font-weight: 700;
    text-decoration: none; transition: color .15s;
    overflow: hidden; text-overflow: ellipsis;
}
.as-card-buyer a:hover { color: var(--as-primary); text-decoration: underline; }

/* Title */
.as-card-title {
    font-size: 14.5px; font-weight: 700; color: var(--as-text);
    margin-bottom: 8px; line-height: 1.6;
}
.as-card-title a {
    color: inherit; text-decoration: none;
    transition: color .15s;
    background-image: linear-gradient(var(--as-primary), var(--as-primary));
    background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat;
    transition: background-size .3s ease, color .15s;
}
.as-card-title a:hover {
    color: var(--as-primary);
    background-size: 100% 2px;
}

/* Meta — dates more prominent */
.as-card-meta {
    display: flex; flex-wrap: wrap;
    gap: 4px 18px; margin-bottom: 8px;
}
.as-card-meta span {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12.5px; color: #475569; padding: 2px 0; font-weight: 500;
}
.as-card-meta i {
    width: 14px; height: 14px; display: flex; align-items: center; justify-content: center;
    color: var(--as-primary); font-size: 12px;
}

/* Badges */
.as-card-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.as-badge {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 10px; border-radius: 6px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .2px;
    text-transform: uppercase;
}
.as-badge-type { background: linear-gradient(135deg, #e0f3f5, #d0eef1); color: #1a6e78; }
.as-badge-status { background: linear-gradient(135deg, #fef3cd, #fde8a0); color: #7c3a0e; }
.as-badge-free { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #044d3a; }
.as-badge-cat { background: linear-gradient(135deg, #e8eaf6, #dde0f7); color: #2e3a8c; }

/* Right side — TGID compact */
.as-card-right {
    flex-shrink: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-width: 80px; padding: 14px 12px 14px 6px; gap: 6px;
}
.as-card-id {
    background: linear-gradient(135deg, #f0f9fa, #e8f4f5);
    border: 1px solid rgba(44,138,148,.12);
    border-radius: 8px; padding: 4px 10px; text-align: center;
    min-width: 58px;
}
.as-card-id small {
    font-size: 8px; color: var(--as-muted); text-transform: uppercase;
    letter-spacing: .8px; font-weight: 700; display: block; margin-bottom: 1px;
}
.as-card-id strong {
    font-size: 13px; color: var(--as-primary); display: block;
    font-weight: 800; font-feature-settings: 'tnum';
}
.as-card-countdown {
    font-size: 10px; font-weight: 700; padding: 3px 10px;
    border-radius: 20px; display: inline-flex; align-items: center; gap: 3px;
    white-space: nowrap;
}
.as-card-countdown i { font-size: 9px; }

/* Category + icons footer row — icons on opposite side */
.as-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 8px; padding-top: 8px;
    border-top: 1px dashed var(--as-border);
    gap: 8px;
}
.as-card-category {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #64748b;
    flex: 1; min-width: 0;
}
.as-card-category > .fa { color: var(--as-primary); font-size: 13px; }
.as-cat-parent { font-weight: 600; color: #475569; }
.as-cat-name { color: var(--as-primary); font-weight: 500; }

/* Action icons — inline row in footer */
.as-card-footer .action-icons-wrapper-p3m7 {
    display: flex; flex-wrap: nowrap; gap: 2px;
    flex-shrink: 0;
}
.as-card-footer .icon-badge-q2z6 { padding: 2px; }
.as-card-footer .icon-badge-q2z6 img { width: 26px; height: 26px; }

/* Empty */
.as-empty { text-align: center; padding: 70px 24px; color: var(--as-muted); }
.as-empty i { font-size: 52px; margin-bottom: 18px; display: block; color: #cbd5e1; }
.as-empty p { font-size: 15px; font-weight: 500; }

/* Load More */
.as-loadmore {
    text-align: center; padding: 22px 16px 10px; background: var(--as-card);
    border: 1px solid var(--as-border); border-top: none;
    border-radius: 0 0 var(--as-radius) var(--as-radius);
}
.as-loadmore-progress {
    height: 4px; background: #e2e8f0; border-radius: 2px;
    margin: 0 auto 10px; max-width: 320px; overflow: hidden;
}
.as-loadmore-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--as-primary), #3ba3ae, var(--as-success));
    border-radius: 2px; transition: width .5s ease; width: 0;
    position: relative;
}
.as-loadmore-fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
    animation: asShimmer 1.5s infinite;
}
@keyframes asShimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.as-loadmore-counter { font-size: 12.5px; color: var(--as-muted); margin-bottom: 10px; }
.as-loadmore-counter strong { color: var(--as-text); font-weight: 700; }
.as-loadmore-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 28px;
    background: #fff; border: 2px solid var(--as-primary); color: var(--as-primary);
    border-radius: 8px; font-size: 13.5px; font-weight: 700; cursor: pointer;
    transition: all .2s ease;
}
.as-loadmore-btn:hover {
    background: var(--as-primary); color: #fff; transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(44,138,148,.25);
}
.as-loadmore-btn .as-loadmore-spinner {
    display: none; width: 14px; height: 14px; border: 2px solid;
    border-top-color: transparent; border-radius: 50%; animation: asSpin .6s linear infinite;
}
.as-loadmore-btn.loading .as-loadmore-spinner { display: inline-block; }
.as-loadmore-btn.loading .as-loadmore-icon { display: none; }
.as-loadmore-done {
    padding: 10px; color: var(--as-success); font-size: 13px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}

/* Spinner */
.as-spinner {
    display: inline-block; width: 22px; height: 22px;
    border: 3px solid var(--as-border); border-top-color: var(--as-primary);
    border-radius: 50%; animation: asSpin .6s linear infinite;
}
@keyframes asSpin { to { transform: rotate(360deg); } }

/* Select2 Overrides */
.as-panel .select2-container .select2-selection--single,
.as-panel .select2-container .select2-selection--multiple {
    border: 1.5px solid #e2e8f0 !important; border-radius: 8px !important;
    min-height: 38px !important; background: #f8fafc !important;
    transition: all .15s ease !important;
}
.as-panel .select2-container--default .select2-selection--single:hover,
.as-panel .select2-container--default .select2-selection--multiple:hover {
    border-color: var(--as-primary) !important;
}
.as-panel .select2-container--default.select2-container--focus .select2-selection,
.as-panel .select2-container--default.select2-container--open .select2-selection {
    border-color: var(--as-primary) !important;
    box-shadow: 0 0 0 2px rgba(44,138,148,.08) !important; background: #fff !important;
}
.as-panel .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important; padding: 0 12px !important;
    color: var(--as-text) !important; font-size: 13px !important;
}
.as-panel .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}
.as-panel .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(135deg, #e0f3f5, #d5eef1) !important;
    border: 1px solid rgba(44,138,148,.18) !important;
    color: #1a6e78 !important; border-radius: 8px !important;
    padding: 3px 8px !important; font-size: 11.5px !important; font-weight: 700 !important;
    margin-top: 4px !important;
}
.as-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #2c8a94 !important; font-weight: 700 !important;
}
/* Hide clear button on single-select dropdowns */
.as-panel .select2-container--default .select2-selection--single .select2-selection__clear {
    display: none !important;
}

/* Responsive — Mobile */
@media (max-width: 768px) {
    .as-header-container { padding-bottom: 14px !important; }
    .as-panel-wrapper { margin-top: 10px !important; }
    .as-hero { padding: 8px 0; }
    .as-page .as-hero .as-hero-text h1, .as-page .as-hero .as-hero-text h2,
    .as-page .as-hero .as-hero-text h3, .as-page .as-hero .as-hero-text h4 { font-size: 18px !important; }
    .as-hero-stats { gap: 6px; }
    .as-hero-stat { font-size: 10px; padding: 4px 8px; }
    .as-panel { padding: 0; }
    .as-panel-body { padding: 10px 14px 2px !important; }

    /* Force ALL rows to wrap vertically */
    .as-row,
    .as-row.as-row-nowrap {
        flex-wrap: wrap !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    /* Pills row — stack on mobile */
    .as-row-pills {
        flex-wrap: wrap !important;
        flex-direction: column !important;
        gap: 4px !important;
    }
    .as-pills-group {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        width: 100% !important;
    }

    /* Force ALL children of rows to full width — override inline styles */
    .as-row > .as-field,
    .as-row > .as-col-2,
    .as-row > .as-col-3,
    .as-row > .as-col-4,
    .as-row > .as-col-full,
    .as-row > [class*="as-field"],
    .as-row > [class*="as-col"],
    .as-row > div {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Segmented control — full width */
    .as-seg { width: 100%; justify-content: stretch; height: 36px; }
    .as-seg__item { flex: 1 1 0; text-align: center; justify-content: center; font-size: 11px; padding: 0 6px; }

    /* Pills — compact wrap on mobile, no horizontal scroll */
    .as-pills { flex-wrap: wrap !important; gap: 4px; border: none; border-radius: 0; overflow: visible; }
    .as-pill {
        font-size: 10.5px; padding: 0 8px; height: 30px; white-space: nowrap;
        border: 1.5px solid #e2e8f0; border-radius: 6px;
    }
    [dir="rtl"] .as-pill { border-left: 1.5px solid #e2e8f0; border-right: 1.5px solid #e2e8f0; }
    .as-pill:last-child { border: 1.5px solid #e2e8f0; }
    .as-pill.active { border-color: var(--as-primary); }

    /* Actions — MUST stay horizontal on mobile */
    .as-actions { flex-direction: row !important; padding: 8px 14px; gap: 8px; }
    .as-btn { height: 38px; }
    .as-btn-primary { font-size: 13px; padding: 0 16px; flex: 1 1 auto; min-width: 0; }
    .as-btn-secondary { font-size: 12.5px; padding: 0 14px; flex: 0 0 auto; }

    /* Cards & Results */
    .as-tender-card { flex-direction: column; gap: 8px; padding: 12px 14px; }
    .as-card-right { text-align: right; min-width: 0; }
    .as-results-header { flex-direction: column; gap: 6px; padding: 10px 14px; }

    /* Collapse bar compact */
    .as-collapse-bar--top { padding: 8px 14px; }
}

