/* LMF v3.1 lane U-R: the Pārlūks deal filter and Darījums column (workspace-catalogue-deals.js).
   Loaded by the module only for users who see deals, so the Browser of everyone else is untouched.
   Tokens only (GATE-ZERO rule 2): no colour values, weights or font sizes outside the kit's tokens, spacing in
   multiples of 4, no !important. Kit controls keep the kit's look; rules that must beat the app's id selectors
   repeat the kit guard. */

/* The filter (M9, lane UF-R): inside an existing toolbar a new control takes that toolbar's control size. The select is
   built like Reģions, Novads and Pagasts (a labelled select in a .catalogue-location-filters box), so the app's own
   rules size it: the same height, type, border, radius and label position, and the row keeps its height. Only the box's
   width is set here, so it does not stretch like the three-filter box on a wide screen; at 1000 px and below it takes a
   full row like the location filters. The wrapper adds no box, so the status line can take a row of its own. */
.v31-bdeal-filter{display:contents}
@media (min-width:1001px){
  #land-filters .catalogue-location-filters.v31-bdeal-box{flex:0 0 160px;max-width:160px}
}

/* A failed read: one slim line under the filter row (STATES 4), the row itself does not move. */
.v31-bdeal-status{order:99;flex:1 1 100%;min-width:0}
.v31-bdeal-status:empty{display:none}
.v31-bdeal-notice:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:inline-flex;align-items:center;gap:var(--v31-s-2);margin:0;padding:var(--v31-s-1) var(--v31-s-2) var(--v31-s-1) var(--v31-s-3)}

/* The column (G1 4.1, lane UF-R): one look for the deal tag on rows, as on Šodien: flat (no fill, no border), the
   service icon of the deal's name in lake, the name in lake ink, 13 px bold; "+n" quiet after it. A refusal: the ban
   sign and "Atteikums" in the quiet text colour. It fits the table's densest row (rule 6: never changes the row height). */
td[data-table-column="deal"]:not(#v31-kit#v31-kit#v31-kit#v31-kit){text-align:left}
.v31-bdeal:not(#v31-kit#v31-kit#v31-kit#v31-kit){display:inline-flex;align-items:center;gap:var(--v31-s-1);max-width:100%;min-width:0;margin:0;padding:0;border:0;background:transparent;
  color:var(--v31-crm-ink);font:var(--v31-fw-bold) var(--v31-fs-sm)/16px var(--v31-font);letter-spacing:0;vertical-align:middle;white-space:nowrap}
.v31-bdeal .v31-i{flex:none;color:var(--v31-crm)}
.v31-bdeal-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v31-bdeal--refused:not(#v31-kit#v31-kit#v31-kit#v31-kit){color:var(--v31-text-2);font-weight:var(--v31-fw)}
.v31-bdeal--refused .v31-i{color:var(--v31-text-2)}
.v31-bdeal-more{flex:none;font-size:var(--v31-fs-xs);font-weight:var(--v31-fw);color:var(--v31-text-2)}

/* Phone (lane rule 24): the app's location-filter rules apply to the deal box as to Reģions (44 px controls). */
