/* Card management follows the supplier's table workspace, without changing other views. */
body.tabler-workbench[data-view="cards"] { --header-height:84px; --cards-page-gutter:clamp(24px,5.4vw,96px); color:#303947; }
body.tabler-workbench[data-view="cards"] .app-layout { padding:calc(var(--header-height) + 20px) var(--cards-page-gutter) 48px; }
body.tabler-workbench[data-view="cards"] .main-content { max-width:1474px; }
body.tabler-workbench[data-view="cards"] .topbar { justify-content:flex-end; padding:0 var(--cards-page-gutter); border-bottom:0; }
body.tabler-workbench[data-view="cards"] .topbar-location,body.tabler-workbench[data-view="cards"] .top-search { display:none; }
body.tabler-workbench[data-view="cards"] .sidebar { border-right:0; }
body.tabler-workbench[data-view="cards"] [data-view-panel="cards"]>.page-titlebar { display:none; }
/* Type tabs own a normal flow row. Fixed page offsets let the scrolling
   balance summary pass underneath them and depend on unrelated header height. */
body.tabler-workbench[data-view="cards"] .cards-subnav { position:relative; z-index:auto; inset:auto; display:flex; gap:6px; width:100%; max-width:100%; margin:0 0 18px; padding:0; border:0; border-radius:0; background:transparent; }
body.tabler-workbench[data-view="cards"] .cards-subnav-item { min-height:42px; padding:9px 15px; color:#626a74; font-size:14px; line-height:24px; font-weight:600; border-radius:8px; }
body.tabler-workbench[data-view="cards"] .cards-subnav-item.is-active { color:#263923; background:#edf7e7; box-shadow:none; }
body.tabler-workbench[data-view="cards"] .cards-subnav-item:disabled { color:#838993; opacity:.75; }
body.tabler-workbench[data-view="cards"] .cards-subnav-item>span { display:inline; margin-left:5px; font-size:10px; font-weight:400; white-space:nowrap; }
body.tabler-workbench[data-view="cards"] .cards-summary-bar { grid-template-columns:repeat(3,minmax(0,1fr)) auto; min-height:80px; margin:0 0 19px; padding:0 18px; border:0; border-radius:0; box-shadow:none; background:transparent; }
body.tabler-workbench[data-view="cards"] .cards-summary-bar>div { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:3px; min-height:62px; padding:0 20px; font-size:12px; line-height:20px; }
body.tabler-workbench[data-view="cards"] .cards-summary-bar>div:first-child { padding-left:0; }
body.tabler-workbench[data-view="cards"] .cards-summary-bar>div+div { border-left:1px solid #f0f2f5; }
body.tabler-workbench[data-view="cards"] .cards-summary-bar>div>span { color:#818a98; }
body.tabler-workbench[data-view="cards"] .cards-summary-bar strong { color:#283341; font-size:22px; line-height:30px; font-weight:600; }
body.tabler-workbench[data-view="cards"] .cards-summary-bar small { display:none; }
body.tabler-workbench[data-view="cards"] .cards-summary-bar .cards-summary-action { align-items:flex-end; padding-right:0; border-left:0; }
body.tabler-workbench[data-view="cards"] .cards-summary-bar .cards-summary-action .button { min-height:40px; padding:8px 18px; font-size:13px; }
body.tabler-workbench[data-view="cards"] .cards-main { margin:0; padding:24px; border:1px solid #edf0f4; border-radius:14px; box-shadow:0 4px 18px rgb(24 39 57 / 2%); }
body.tabler-workbench[data-view="cards"] .cards-list-heading { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); margin:0; padding:0; }
body.tabler-workbench[data-view="cards"] .cards-filters { display:grid; grid-template-columns:minmax(270px,1.25fr) minmax(270px,1.2fr) minmax(180px,.8fr) auto; align-items:end; column-gap:12px; row-gap:12px; padding:0; border:0; background:transparent; }
body.tabler-workbench[data-view="cards"] .cards-filters label { min-width:0; margin:0; gap:7px; color:#778396; font-size:12px; line-height:18px; }
body.tabler-workbench[data-view="cards"] .cards-search-group { display:grid; grid-template-columns:110px minmax(0,1fr); align-items:end; gap:0; min-width:0; }
body.tabler-workbench[data-view="cards"] .cards-filters .filter-search-field select { border-radius:7px 0 0 7px; }
body.tabler-workbench[data-view="cards"] .cards-filters .filter-search-value input { border-radius:7px; margin-left:-1px; width:calc(100% + 1px); }
body.tabler-workbench[data-view="cards"] .cards-filters :is(input,select,.button),body.tabler-workbench[data-view="cards"] :is(#cardsStatusToggle,#cardsDateRangeToggle) { height:38px; min-height:38px; border-color:#dfe5ec; font-size:12px; }
body.tabler-workbench[data-view="cards"] .cards-filters :is(input,select) { background:#fff; color:#576274; }
body.tabler-workbench[data-view="cards"] .cards-filters input::placeholder { color:#a3adbb; }
body.tabler-workbench[data-view="cards"] .cards-filters .legacy-filter-field { display:none; }
body.tabler-workbench[data-view="cards"] .cards-filters .filter-actions { display:flex; height:38px; align-items:center; justify-content:flex-start; gap:12px; }
body.tabler-workbench[data-view="cards"] .cards-filters .filter-actions .button { flex:none; padding:7px 14px; white-space:nowrap; }
body.tabler-workbench[data-view="cards"] .cards-filters .filter-actions .button.ghost { padding:7px 1px; border:0; background:transparent; color:#778496; }
body.tabler-workbench[data-view="cards"] .cards-filters .button .ui-icon { width:15px; height:15px; }
body.tabler-workbench[data-view="cards"] .cards-filter-label { display:block; margin:0 0 7px; color:#778396; font-size:12px; line-height:18px; }
body.tabler-workbench[data-view="cards"] .cards-status-control,body.tabler-workbench[data-view="cards"] .cards-date-control { position:relative; min-width:0; }
body.tabler-workbench[data-view="cards"] #cardsDateRangeToggle[hidden] { display:none; }
body.tabler-workbench[data-view="cards"] .cards-date-control .date-range-trigger { min-height:38px; height:38px; font-size:12px; }
@media(max-width:640px){body.tabler-workbench[data-view="cards"] .cards-date-control .date-range-trigger { min-height:44px; height:44px; }}
body.tabler-workbench[data-view="cards"] :is(#cardsStatusToggle,#cardsDateRangeToggle) { width:100%; display:flex; align-items:center; justify-content:flex-start; gap:9px; padding:0 12px; border:1px solid #dfe5ec; border-radius:7px; background:#fff; color:#7e8999; text-align:left; box-shadow:none; cursor:pointer; font:inherit; font-size:12px; }
body.tabler-workbench[data-view="cards"] #cardsStatusToggle>span:last-child { margin-left:auto; }
body.tabler-workbench[data-view="cards"] :is(#cardsStatusToggle,#cardsDateRangeToggle)[aria-expanded="true"] { border-color:#8fbd72; box-shadow:0 0 0 2px rgb(117 176 70 / 10%); }
body.tabler-workbench[data-view="cards"] :is(#cardsStatusToggle,#cardsDateRangeToggle) .ui-icon { width:16px; height:16px; color:#98a2b0; }
body.tabler-workbench[data-view="cards"] .cards-status-chip { display:inline-flex; align-items:center; gap:5px; padding:2px 7px; border-radius:4px; background:#f1f4f6; color:#697786; font-size:12px; }
body.tabler-workbench[data-view="cards"] #cardsStatusPopup { position:absolute; top:calc(100% + 8px); left:0; right:0; z-index:55; display:grid; gap:2px; padding:6px; max-height:340px; overflow:auto; border:1px solid #e4e8ee; border-radius:8px; background:#fff; box-shadow:0 8px 24px rgb(22 37 54 / 12%); }
body.tabler-workbench[data-view="cards"] .cards-status-option { display:flex; align-items:center; gap:9px; min-height:36px; padding:7px 9px; border-radius:5px; color:#5e6a79; cursor:pointer; }
body.tabler-workbench[data-view="cards"] .cards-status-option:hover { background:#f5f8f2; }
body.tabler-workbench[data-view="cards"] .cards-status-option input { margin:0; min-height:16px; height:16px; width:16px; }
body.tabler-workbench[data-view="cards"] .applied-filters { gap:7px; padding:13px 0 0; min-height:34px; }
body.tabler-workbench[data-view="cards"] .applied-filter { min-height:28px; padding:3px 8px; border:1px solid #e0e6ed; border-radius:5px; background:#fff; color:#7c8998; font-size:11px; line-height:20px; }
body.tabler-workbench[data-view="cards"] .cards-result-count { margin:20px 0 25px; color:#8590a0; font-size:12px; line-height:20px; }
body.tabler-workbench[data-view="cards"] .cards-selection-bar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:16px 0; padding:11px 14px; border:1px solid #e4ecde; border-radius:8px; background:#f6faf2; color:#637453; font-size:12px; }
body.tabler-workbench[data-view="cards"] .cards-selection-bar .button { min-height:32px; padding:4px 10px; font-size:12px; background:#fff; }
body.tabler-workbench[data-view="cards"] .cards-selection-bar>span { margin-right:6px; }
body.tabler-workbench[data-view="cards"] .cards-main .table-wrap { overflow:visible; }
body.tabler-workbench[data-view="cards"] #cardsTable { width:100%; min-width:920px; margin:0; table-layout:fixed; border-collapse:collapse; font-variant-numeric:tabular-nums; }
body.tabler-workbench[data-view="cards"] #cardsTable :is(th,td) { text-align:left; min-width:0; border:0; }
body.tabler-workbench[data-view="cards"] #cardsTable th { height:50px; padding:13px 14px; background:#f4f6f9; color:#8691a2; font-size:11px; line-height:20px; font-weight:400; }
body.tabler-workbench[data-view="cards"] #cardsTable td { height:74px; padding:18px 14px; border-bottom:1px solid #f0f3f5; color:#5c6776; font-size:12px; line-height:20px; vertical-align:middle; overflow-wrap:anywhere; }
body.tabler-workbench[data-view="cards"] #cardsTable tbody tr:hover { background:#fafcf8; }
body.tabler-workbench[data-view="cards"] #cardsTable .cards-select-cell { width:44px; padding-left:14px; padding-right:8px; }
body.tabler-workbench[data-view="cards"] #cardsTable input[type="checkbox"] { width:16px; height:16px; min-height:16px; margin:0; border-color:#dfe5ec; vertical-align:middle; cursor:pointer; }
body.tabler-workbench[data-view="cards"] #cardsTable th:nth-child(2) { width:24%; }
body.tabler-workbench[data-view="cards"] #cardsTable th:nth-child(3) { width:19%; }
body.tabler-workbench[data-view="cards"] #cardsTable th:nth-child(4) { width:17%; }
body.tabler-workbench[data-view="cards"] #cardsTable th:nth-child(5) { width:14%; }
body.tabler-workbench[data-view="cards"] #cardsTable th:nth-child(6) { width:11%; }
body.tabler-workbench[data-view="cards"] #cardsTable :is(th,td):last-child { position:static; width:100px; min-width:100px; padding-right:14px; text-align:right; background:transparent; box-shadow:none; }
body.tabler-workbench[data-view="cards"] #cardsTable th:last-child { background:#f4f6f9; }
body.tabler-workbench[data-view="cards"] #cardsTable .card-identity { gap:8px; align-items:center; }
body.tabler-workbench[data-view="cards"] #cardsTable .card-chip { display:none; }
body.tabler-workbench[data-view="cards"] .cards-card-number { display:inline-flex; align-items:center; min-height:28px; gap:9px; margin:0; padding:0; border:0; border-radius:4px; background:transparent; color:#374553; font-family:inherit; font-size:12px; line-height:20px; font-weight:500; letter-spacing:.1px; text-align:left; box-shadow:none; cursor:pointer; }
body.tabler-workbench[data-view="cards"] .cards-card-number:hover { color:#3c6a2f; background:transparent; }
body.tabler-workbench[data-view="cards"] #cardsTable .card-sub { color:#a0a9b4; font-size:10px; line-height:16px; }
body.tabler-workbench[data-view="cards"] .cards-network-mark { display:inline-flex; align-items:center; flex:none; width:22px; height:16px; vertical-align:middle; font:italic 800 9px/1 Arial,sans-serif; letter-spacing:-.5px; color:#466aa2; }
body.tabler-workbench[data-view="cards"] .cards-network-mark.mastercard { position:relative; width:20px; }
body.tabler-workbench[data-view="cards"] .cards-network-mark.mastercard::before,body.tabler-workbench[data-view="cards"] .cards-network-mark.mastercard::after { content:""; position:absolute; top:3px; width:11px; height:11px; border-radius:50%; background:#ed3939; }
body.tabler-workbench[data-view="cards"] .cards-network-mark.mastercard::before { left:0; }
body.tabler-workbench[data-view="cards"] .cards-network-mark.mastercard::after { right:0; background:#ffab26; opacity:.9; }
body.tabler-workbench[data-view="cards"] :is(.cards-remark-button,.cards-balance-refresh) { display:inline-flex; align-items:center; justify-content:center; flex:none; width:25px; height:25px; min-height:25px; padding:0; border:0; border-radius:4px; background:transparent; color:#9aaa98; opacity:0; cursor:pointer; }
body.tabler-workbench[data-view="cards"] #cardsTable tr:hover :is(.cards-remark-button,.cards-balance-refresh),body.tabler-workbench[data-view="cards"] :is(.cards-remark-button,.cards-balance-refresh):focus-visible { opacity:1; }
body.tabler-workbench[data-view="cards"] :is(.cards-remark-button,.cards-balance-refresh) .ui-icon { width:14px; height:14px; }
body.tabler-workbench[data-view="cards"] #cardsTable .card-holder,body.tabler-workbench[data-view="cards"] #cardsTable .card-date { color:#5d6978; font-size:12px; }
body.tabler-workbench[data-view="cards"] #cardsTable td strong { color:#303d4d; font-size:12px; font-weight:600; }
body.tabler-workbench[data-view="cards"] #cardsTable td:nth-child(5)>.card-sub { display:none; }
body.tabler-workbench[data-view="cards"] #cardsTable .status { border:1px solid #cbded5; border-radius:5px; padding:1px 6px; background:#eff6f3; color:#4b7460; font-size:10px; line-height:16px; }
body.tabler-workbench[data-view="cards"] #cardsTable .status.paused { color:#8b7237; background:#fbf7eb; border-color:#ede2bc; }
body.tabler-workbench[data-view="cards"] #cardsTable :is(.status.disabled,.status.retired) { color:#a26d74; background:#fcf1f3; border-color:#efdbdf; }
body.tabler-workbench[data-view="cards"] #cardsBalanceSort { display:inline-flex; align-items:center; gap:6px; padding:0; min-height:24px; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; }
body.tabler-workbench[data-view="cards"] #cardsBalanceSort .ui-icon { width:11px; height:14px; color:#a8b0bb; }
body.tabler-workbench[data-view="cards"] #cardsTable .row-actions { justify-content:flex-end; flex-wrap:nowrap; gap:8px; }
body.tabler-workbench[data-view="cards"] #cardsTable .row-actions>.button { min-height:28px; padding:3px 2px; border:0; background:transparent; color:#3c6a2f; font-size:12px; font-weight:600; }
body.tabler-workbench[data-view="cards"] .cards-row-more { position:relative; flex:none; }
body.tabler-workbench[data-view="cards"] .cards-row-more>summary { display:flex; align-items:center; justify-content:center; width:28px; min-height:28px; padding:0; border-radius:5px; list-style:none; cursor:pointer; color:#3c6a2f; font-size:20px; line-height:20px; }
body.tabler-workbench[data-view="cards"] .cards-row-more>summary::-webkit-details-marker { display:none; }
body.tabler-workbench[data-view="cards"] .cards-row-more>summary:hover,body.tabler-workbench[data-view="cards"] .cards-row-more[open]>summary { background:#f0f5ec; }
body.tabler-workbench[data-view="cards"] .cards-row-menu { position:absolute; z-index:60; right:0; top:calc(100% + 7px); min-width:140px; padding:6px; margin:0; border:1px solid #e6eaf0; border-radius:7px; background:#fff; box-shadow:0 8px 22px rgb(27 40 56 / 12%); text-align:left; }
body.tabler-workbench[data-view="cards"] .cards-row-more:not([open])>.cards-row-menu { display:none; }
body.tabler-workbench[data-view="cards"] .cards-row-menu button { display:block; width:100%; min-height:34px; margin:0; padding:7px 11px; border:0; border-radius:4px; background:transparent; color:#596577; font-family:inherit; font-size:12px; line-height:20px; font-weight:400; text-align:left; box-shadow:none; cursor:pointer; }
body.tabler-workbench[data-view="cards"] .cards-row-menu button:hover:not(:disabled) { background:#f3f8ed; color:#3c6a2f; }
body.tabler-workbench[data-view="cards"] .cards-row-menu button:disabled { color:#bbc2ca; cursor:not-allowed; }
body.tabler-workbench[data-view="cards"] .table-pagination { justify-content:flex-end; margin:20px 0 0; padding:17px 0 0; border-top:1px solid #f1f3f6; border-radius:0; background:transparent; }
body.tabler-workbench[data-view="cards"] #cardsPageInfo { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); }
body.tabler-workbench[data-view="cards"] #cardsPageNumbers { display:inline-flex; align-items:center; gap:7px; }
body.tabler-workbench[data-view="cards"] .table-pagination>div { display:flex; align-items:center; gap:7px; }
body.tabler-workbench[data-view="cards"] .page-size-control { font-size:0; }
body.tabler-workbench[data-view="cards"] .page-size-control select { min-height:32px; height:32px; min-width:128px; margin-right:9px; padding:4px 10px; border-color:#dfe5ec; border-radius:6px; color:#6d7887; font-size:12px; }
body.tabler-workbench[data-view="cards"] :is(#cardsPrevPage,#cardsNextPage,.cards-page-number) { display:inline-flex; align-items:center; justify-content:center; min-width:32px; width:32px; min-height:32px; height:32px; padding:0; border:0; border-radius:4px; background:#f5f7fa; color:#818d9d; font-size:13px; box-shadow:none; }
body.tabler-workbench[data-view="cards"] :is(#cardsPrevPage,#cardsNextPage):disabled { opacity:.45; }
body.tabler-workbench[data-view="cards"] .cards-page-number[aria-current="page"] { color:white; background:#3d7730; }
body.tabler-workbench[data-view="cards"] :is(#cardsLoading,#cardsEmpty) { margin-top:18px; }

/* Date selection retains one compact control and opens a two-month range calendar. */
body.tabler-workbench[data-view="cards"] .cards-date-popover { position:absolute; z-index:65; top:calc(100% + 10px); left:0; display:grid; grid-template-columns:112px repeat(2,minmax(0,1fr)); width:690px; max-width:calc(100vw - 48px); padding:0; border:1px solid #e3e8ed; border-radius:8px; background:#fff; box-shadow:0 10px 32px rgb(27 40 56 / 14%); color:#5c6878; }
body.tabler-workbench[data-view="cards"] .cards-date-shortcuts { display:flex; flex-direction:column; gap:3px; padding:12px 8px; border-right:1px solid #eef1f4; }
body.tabler-workbench[data-view="cards"] .cards-date-shortcuts button { min-height:33px; padding:6px 8px; border:0; border-radius:4px; background:transparent; color:#6c7888; font-family:inherit; font-size:12px; line-height:20px; font-weight:400; text-align:left; cursor:pointer; }
body.tabler-workbench[data-view="cards"] .cards-date-shortcuts button:hover { color:#3c6a2f; background:#f0f7e9; }
body.tabler-workbench[data-view="cards"] .cards-calendar-month { min-width:0; padding:14px 13px 17px; }
body.tabler-workbench[data-view="cards"] .cards-calendar-month+.cards-calendar-month { border-left:1px solid #eef1f4; }
body.tabler-workbench[data-view="cards"] .cards-calendar-header { display:flex; align-items:center; justify-content:space-between; gap:5px; margin:0 0 15px; min-height:28px; color:#4e5c6e; font-size:13px; }
body.tabler-workbench[data-view="cards"] .cards-calendar-header button { min-width:27px; min-height:28px; padding:0 3px; border:0; border-radius:4px; background:transparent; color:#8b97a8; cursor:pointer; }
body.tabler-workbench[data-view="cards"] .cards-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:2px 0; }
body.tabler-workbench[data-view="cards"] .cards-calendar-grid>span { display:flex; align-items:center; justify-content:center; height:27px; color:#8c97a7; font-size:11px; }
body.tabler-workbench[data-view="cards"] .cards-calendar-grid button { position:relative; width:100%; height:31px; min-height:31px; padding:0; border:0; border-radius:0; background:transparent; color:#596879; font-family:inherit; font-size:11px; line-height:31px; font-weight:400; cursor:pointer; }
body.tabler-workbench[data-view="cards"] .cards-calendar-grid button:hover { color:#397225; background:#f1f7eb; }
body.tabler-workbench[data-view="cards"] .cards-calendar-grid :is(.is-muted,[data-other-month="true"]) { color:#bbc3ce; }
body.tabler-workbench[data-view="cards"] .cards-calendar-grid :is(.is-in-range,.in-range) { background:#edf7e5; }
body.tabler-workbench[data-view="cards"] .cards-calendar-grid :is([aria-pressed="true"],.is-selected,.is-start,.is-end) { border-radius:50%; color:#fff; background:#75b046; }
body.tabler-workbench[data-view="cards"] .cards-calendar-grid button:disabled { color:#d5dbe3; cursor:not-allowed; background:transparent; }
body.tabler-workbench[data-view="cards"] .cards-date-popover-footer { grid-column:1/-1; display:flex; align-items:center; justify-content:flex-end; gap:10px; padding:10px 14px; border-top:1px solid #eef1f4; }

/* Operations are confirmed in a focused dialog; the list remains visible behind it. */
body.tabler-workbench[data-view="cards"] .cards-action-dialog { width:min(520px,calc(100vw - 40px)); max-height:calc(100dvh - 40px); padding:0; overflow:auto; border:1px solid #e3e8ed; border-radius:12px; background:#fff; color:#4e5b6e; box-shadow:0 22px 70px rgb(28 39 57 / 16%); }
body.tabler-workbench[data-view="cards"] .cards-action-dialog::backdrop { background:rgb(31 43 57 / 35%); }
body.tabler-workbench[data-view="cards"] .cards-action-dialog:not([open]) { display:none; }
body.tabler-workbench[data-view="cards"] .cards-action-dialog :is(header,.cards-action-head) { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:20px 24px; border-bottom:1px solid #edf0f4; }
body.tabler-workbench[data-view="cards"] .cards-action-dialog :is(h2,h3) { margin:0; font-size:17px; font-weight:600; color:#344052; }
body.tabler-workbench[data-view="cards"] .cards-action-dialog form { margin:0; }
body.tabler-workbench[data-view="cards"] .cards-action-dialog :is(.cards-action-body,.cards-action-content) { padding:22px 24px; }
body.tabler-workbench[data-view="cards"] .cards-action-dialog form>label { display:grid; gap:8px; padding:0 24px; margin:18px 0; font-size:13px; color:#738093; }
body.tabler-workbench[data-view="cards"] .cards-action-dialog :is(input,textarea,select) { width:100%; border-color:#dfe5ec; font:inherit; }
body.tabler-workbench[data-view="cards"] .cards-action-dialog textarea { min-height:100px; padding:10px 12px; }
body.tabler-workbench[data-view="cards"] .cards-action-dialog :is(footer,.cards-action-footer) { display:flex; align-items:center; justify-content:flex-end; gap:10px; padding:16px 24px 20px; border-top:1px solid #edf0f4; }
body.tabler-workbench[data-view="cards"] .cards-action-dialog .cards-info-list { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
body.tabler-workbench[data-view="cards"] .cards-action-dialog .cards-info-list>li { display:flex; justify-content:space-between; gap:14px; padding:11px 0; border-bottom:1px solid #edf0f4; font-size:12px; }
body.tabler-workbench[data-view="cards"] .cards-action-dialog .cards-action-feedback { margin:16px 24px; color:#748093; font-size:12px; line-height:1.8; overflow-wrap:anywhere; }

@media (max-width:1400px) and (min-width:992px) {
  body.tabler-workbench[data-view="cards"] { --cards-page-gutter:32px; }
  body.tabler-workbench[data-view="cards"] .cards-filters { grid-template-columns:minmax(230px,1.2fr) minmax(240px,1.15fr) minmax(145px,.7fr) auto; gap:10px; }
  body.tabler-workbench[data-view="cards"] .cards-search-group { grid-template-columns:98px minmax(0,1fr); }
  body.tabler-workbench[data-view="cards"] .cards-filters .filter-actions { gap:8px; }
  body.tabler-workbench[data-view="cards"] .cards-date-popover { left:auto; right:-100px; }
}
@media (max-width:1199px) and (min-width:992px) {
  body.tabler-workbench[data-view="cards"] .cards-filters { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); }
  body.tabler-workbench[data-view="cards"] .cards-filters .filter-actions { justify-content:flex-end; }
  body.tabler-workbench[data-view="cards"] .cards-main .table-wrap { overflow:auto; }
}
@media (max-width:991px) {
  body.tabler-workbench[data-view="cards"] { --header-height:68px; --cards-page-gutter:24px; }
  body.tabler-workbench[data-view="cards"] .app-layout { margin-left:0; padding:calc(var(--header-height) + 20px) 24px 32px; }
  body.tabler-workbench[data-view="cards"] .topbar { left:0; justify-content:space-between; padding:0 24px; border-bottom:1px solid #edf0f3; }
  body.tabler-workbench[data-view="cards"] .topbar-location { display:flex; }
  body.tabler-workbench[data-view="cards"] .topbar-location>.breadcrumb-root,body.tabler-workbench[data-view="cards"] .topbar-location>.breadcrumb-divider { display:none; }
  body.tabler-workbench[data-view="cards"] .cards-subnav { padding:0; margin-bottom:18px; }
  body.tabler-workbench[data-view="cards"] .cards-subnav-item { min-height:42px; padding:8px 14px; font-size:13px; }
  body.tabler-workbench[data-view="cards"] .cards-summary-bar { margin-bottom:16px; padding:0; grid-template-columns:repeat(3,minmax(0,1fr)); row-gap:16px; }
  body.tabler-workbench[data-view="cards"] .cards-summary-bar>div { padding:0 15px; }
  body.tabler-workbench[data-view="cards"] .cards-summary-bar strong { font-size:18px; }
  body.tabler-workbench[data-view="cards"] .cards-summary-bar .cards-summary-action { grid-column:1/-1; justify-content:flex-end; min-height:44px; padding:0; }
  body.tabler-workbench[data-view="cards"] .cards-main { padding:20px; }
  body.tabler-workbench[data-view="cards"] .cards-filters { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px 12px; }
  body.tabler-workbench[data-view="cards"] .cards-main .table-wrap { overflow:auto; overscroll-behavior-x:contain; }
  body.tabler-workbench[data-view="cards"] .cards-row-menu { position:fixed; top:auto; bottom:24px; right:24px; width:200px; z-index:80; padding:8px; box-shadow:0 10px 40px rgb(27 40 56 / 20%); }
  body.tabler-workbench[data-view="cards"] .cards-date-popover { left:auto; right:0; width:min(690px,calc(100vw - 48px)); }
  body.tabler-workbench[data-view="cards"] .cards-filters :is(input,select,.button),body.tabler-workbench[data-view="cards"] :is(#cardsStatusToggle,#cardsDateRangeToggle) { min-height:44px; height:44px; }
  body.tabler-workbench[data-view="cards"] .cards-filters .filter-actions { height:44px; }
  body.tabler-workbench[data-view="cards"] .cards-row-menu button { min-height:44px; padding:10px 12px; }
  body.tabler-workbench[data-view="cards"] :is(.cards-card-number,.cards-remark-button,.cards-balance-refresh) { min-height:44px; }
  body.tabler-workbench[data-view="cards"] :is(.cards-remark-button,.cards-balance-refresh) { opacity:1; width:30px; }
  body.tabler-workbench[data-view="cards"] .cards-row-more>summary { min-width:44px; min-height:44px; }
  body.tabler-workbench[data-view="cards"] .cards-calendar-grid button { min-height:38px; height:38px; }
  body.tabler-workbench[data-view="cards"] .cards-action-dialog .button { min-height:44px; }
}
@media (max-width:640px) {
  body.tabler-workbench[data-view="cards"] { --cards-page-gutter:16px; }
  body.tabler-workbench[data-view="cards"] .app-layout { padding:calc(var(--header-height) + 20px) 16px 28px; }
  body.tabler-workbench[data-view="cards"] .topbar { padding:0 16px; }
  body.tabler-workbench[data-view="cards"] .cards-subnav { gap:2px; }
  body.tabler-workbench[data-view="cards"] .cards-subnav-item { flex:none; padding:8px 12px; font-size:12px; }
  body.tabler-workbench[data-view="cards"] .cards-summary-bar { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:10px; }
  body.tabler-workbench[data-view="cards"] .cards-summary-bar>div { padding:0 12px; min-height:58px; font-size:10px; }
  body.tabler-workbench[data-view="cards"] .cards-summary-bar>div:nth-child(3) { padding-left:0; border-left:0; }
  body.tabler-workbench[data-view="cards"] .cards-summary-bar .cards-summary-action { grid-column:auto; align-items:flex-end; justify-content:center; }
  body.tabler-workbench[data-view="cards"] .cards-summary-bar strong { font-size:18px; }
  body.tabler-workbench[data-view="cards"] .cards-summary-bar .cards-summary-action .button { min-height:44px; padding:8px 12px; font-size:12px; }
  body.tabler-workbench[data-view="cards"] .cards-main { padding:16px; border-radius:12px; }
  body.tabler-workbench[data-view="cards"] .cards-filters { display:flex; flex-direction:column; align-items:stretch; gap:14px; }
  body.tabler-workbench[data-view="cards"] .cards-filters>*,body.tabler-workbench[data-view="cards"] .cards-filters label { width:100%; }
  body.tabler-workbench[data-view="cards"] .cards-search-group { grid-template-columns:104px minmax(0,1fr); }
  body.tabler-workbench[data-view="cards"] .cards-filters .filter-actions { justify-content:flex-start; gap:18px; }
  body.tabler-workbench[data-view="cards"] .cards-result-count { margin:18px 0; }
  body.tabler-workbench[data-view="cards"] .cards-main .table-wrap { margin:0 -16px; padding:0 16px; max-width:calc(100% + 32px); }
  body.tabler-workbench[data-view="cards"] .cards-selection-bar { gap:7px; padding:10px; }
  body.tabler-workbench[data-view="cards"] .cards-selection-bar .button { min-height:44px; padding:8px 10px; }
  body.tabler-workbench[data-view="cards"] .table-pagination { margin-top:14px; padding-top:14px; }
  body.tabler-workbench[data-view="cards"] .table-pagination>div { flex-wrap:nowrap; gap:5px; }
  body.tabler-workbench[data-view="cards"] .page-size-control select { min-width:105px; min-height:44px; height:44px; margin-right:4px; }
  body.tabler-workbench[data-view="cards"] :is(#cardsPrevPage,#cardsNextPage,.cards-page-number) { min-width:36px; width:36px; min-height:44px; height:44px; }
  body.tabler-workbench[data-view="cards"] .cards-date-popover { position:fixed; top:auto; bottom:12px; left:12px; right:12px; width:auto; max-width:none; max-height:calc(100dvh - 80px); overflow:auto; grid-template-columns:1fr; }
  body.tabler-workbench[data-view="cards"] .cards-date-shortcuts { flex-direction:row; flex-wrap:wrap; padding:10px; border-right:0; border-bottom:1px solid #eef1f4; }
  body.tabler-workbench[data-view="cards"] .cards-date-shortcuts button { flex:1 1 25%; min-height:44px; padding:8px; text-align:center; }
  body.tabler-workbench[data-view="cards"] .cards-calendar-month { padding:12px 16px; }
  body.tabler-workbench[data-view="cards"] .cards-calendar-month+.cards-calendar-month { display:none; }
  body.tabler-workbench[data-view="cards"] .cards-calendar-header button { min-width:44px; min-height:44px; }
  body.tabler-workbench[data-view="cards"] .cards-calendar-grid button { min-height:40px; height:40px; line-height:40px; font-size:12px; }
  body.tabler-workbench[data-view="cards"] #cardsStatusPopup { max-height:290px; }
  body.tabler-workbench[data-view="cards"] .cards-status-option { min-height:44px; }
  body.tabler-workbench[data-view="cards"] .cards-status-option input { height:16px; min-height:16px; }
  body.tabler-workbench[data-view="cards"] .cards-action-dialog { max-height:calc(100dvh - 24px); width:calc(100vw - 24px); border-radius:10px; }
  body.tabler-workbench[data-view="cards"] .cards-action-dialog :is(header,.cards-action-head) { padding:18px; }
  body.tabler-workbench[data-view="cards"] .cards-action-dialog :is(.cards-action-body,.cards-action-content) { padding:18px; }
  body.tabler-workbench[data-view="cards"] .cards-action-dialog :is(footer,.cards-action-footer) { padding:14px 18px 18px; }
}
@media (prefers-reduced-motion:reduce) { body.tabler-workbench[data-view="cards"] :is(.cards-card-number,.cards-row-menu,.cards-subnav-item) { transition:none; } }

/* The page controller supplies semantic controls; these styles complete their visual states. */
body.tabler-workbench[data-view="cards"] .cards-status-token { display:inline-flex; align-items:center; padding:2px 7px; border-radius:4px; background:#f1f4f6; color:#687685; line-height:20px; }
body.tabler-workbench[data-view="cards"] #cardsStatusText { display:flex; align-items:center; flex-wrap:wrap; gap:4px; min-width:0; overflow:hidden; }
body.tabler-workbench[data-view="cards"] .cards-card-remark { display:block; max-width:100%; color:#98a4b2; font-size:10px; line-height:17px; font-weight:400; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body.tabler-workbench[data-view="cards"] .cards-network-mark { position:relative; width:20px; height:16px; margin:0 7px; }
body.tabler-workbench[data-view="cards"] .cards-network-mark>i { position:absolute; top:3px; width:11px; height:11px; border-radius:50%; background:#ed3939; }
body.tabler-workbench[data-view="cards"] .cards-network-mark>i:first-child { left:0; }
body.tabler-workbench[data-view="cards"] .cards-network-mark>i:last-child { right:0; background:#ffab26; opacity:.9; }
body.tabler-workbench[data-view="cards"] .cards-network-visa { display:inline-block; margin:0 6px; color:#44699d; font:italic 800 10px/16px Arial,sans-serif; letter-spacing:-.5px; }
body.tabler-workbench[data-view="cards"] .cards-row-balance { display:inline-flex; align-items:center; gap:4px; color:#303d4d; font-weight:500; font-variant-numeric:tabular-nums; }
body.tabler-workbench[data-view="cards"] #cardsBalanceSort>span { color:#adb7c5; font-size:12px; }
body.tabler-workbench[data-view="cards"] #preview-note-cardsTable { display:none!important; }
body.tabler-workbench[data-view="cards"] .cards-calendar-header select { min-height:30px; height:30px; margin:0; padding:3px 20px 3px 7px; border:1px solid transparent; border-radius:5px; background-color:#fff; color:#5c697b; font-size:12px; line-height:22px; }
body.tabler-workbench[data-view="cards"] .cards-calendar-header select:hover { background-color:#f5f8f2; border-color:#e5ebdf; }
body.tabler-workbench[data-view="cards"] .cards-calendar-header select:focus { border-color:#a6c98b; box-shadow:0 0 0 2px rgb(117 176 70 / 10%); }
body.tabler-workbench[data-view="cards"] .cards-calendar-header select[data-calendar-year] { width:78px; }
body.tabler-workbench[data-view="cards"] .cards-calendar-header select[data-calendar-month] { width:72px; }
body.tabler-workbench[data-view="cards"] .cards-calendar-grid .is-outside { color:#c0c7d0; }
body.tabler-workbench[data-view="cards"] .cards-action-header { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:20px 24px; border-bottom:1px solid #edf0f4; }
body.tabler-workbench[data-view="cards"] #cardsActionClose { width:28px; min-width:28px; height:28px; min-height:28px; padding:0; border:0; background:transparent; color:#8995a4; font-size:22px; font-weight:400; }
body.tabler-workbench[data-view="cards"] #cardsActionClose:hover { color:#566375; background:#f4f7fa; }
body.tabler-workbench[data-view="cards"] #cardsActionBody { padding:22px 24px 16px; }
body.tabler-workbench[data-view="cards"] #cardsActionBody>.muted-text { margin:14px 0 0; color:#8792a2; font-size:12px; line-height:1.8; }
body.tabler-workbench[data-view="cards"] #cardsActionBody>.error { margin:16px 0 0; padding:12px 14px; font-size:12px; line-height:1.8; }
body.tabler-workbench[data-view="cards"] .cards-action-card-preview { display:grid; gap:13px; padding:20px; border:1px solid #e5e9ef; border-radius:10px; background:#f8fafc; }
body.tabler-workbench[data-view="cards"] .cards-action-card-preview>span { color:#8c97a6; font-size:11px; line-height:18px; font-weight:500; letter-spacing:.04em; }
body.tabler-workbench[data-view="cards"] .cards-action-card-preview>strong { color:#4c596d; font-size:15px; font-weight:600; line-height:22px; letter-spacing:.04em; }
body.tabler-workbench[data-view="cards"] .cards-action-card-preview>label { display:flex; align-items:center; gap:12px; margin:2px 0 0; padding:0 14px; border:1px solid #dce3eb; border-radius:7px; background:#fff; color:#7f8b9d; font-size:12px; font-weight:500; }
body.tabler-workbench[data-view="cards"] .cards-action-card-preview input { min-height:52px; height:52px; min-width:0; padding:8px 0; border:0; border-radius:0; background:transparent; box-shadow:none; color:#374556; font-size:27px; line-height:36px; font-weight:600; font-variant-numeric:tabular-nums; }
body.tabler-workbench[data-view="cards"] .cards-action-card-preview>label:focus-within { border-color:#9dbf83; box-shadow:0 0 0 2px rgb(117 176 70 / 10%); }
body.tabler-workbench[data-view="cards"] .cards-action-card-preview input:focus { border:0; box-shadow:none; }
body.tabler-workbench[data-view="cards"] .cards-action-card-preview input::placeholder { color:#b9c1cb; font-weight:400; }
body.tabler-workbench[data-view="cards"] .cards-action-quick-amounts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
body.tabler-workbench[data-view="cards"] .cards-action-quick-amounts button { min-height:34px; padding:5px 8px; border:1px solid #e0e6ed; border-radius:6px; background:#fff; color:#7b8797; font-family:inherit; font-size:12px; cursor:pointer; }
body.tabler-workbench[data-view="cards"] .cards-action-quick-amounts button:hover { border-color:#a2c787; background:#f1f8e9; color:#46722e; }
body.tabler-workbench[data-view="cards"] .cards-action-field { display:grid; gap:9px; margin:20px 0 0; color:#6d7a8d; font-size:12px; }
body.tabler-workbench[data-view="cards"] .cards-action-field textarea { min-height:110px; padding:11px 12px; color:#5d6c7f; font-size:13px; resize:vertical; }
body.tabler-workbench[data-view="cards"] .cards-action-quote { display:grid; gap:0; margin:18px 0 0; }
body.tabler-workbench[data-view="cards"] .cards-action-quote>div { display:flex; align-items:baseline; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid #eff2f5; }
body.tabler-workbench[data-view="cards"] .cards-action-quote>div:last-child { border-bottom:0; }
body.tabler-workbench[data-view="cards"] .cards-action-quote dt { margin:0; color:#8792a1; font-size:12px; font-weight:400; }
body.tabler-workbench[data-view="cards"] .cards-action-quote dd { margin:0; color:#4a596c; font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; }
body.tabler-workbench[data-view="cards"] :is(.cards-action-card-list,.cards-action-results) { display:grid; max-height:260px; overflow:auto; overscroll-behavior:contain; padding:0; margin:0; border:1px solid #e7ecf1; border-radius:8px; }
body.tabler-workbench[data-view="cards"] :is(.cards-action-card-list,.cards-action-results)>div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px 12px; align-items:center; padding:12px 14px; border-bottom:1px solid #eef1f5; font-size:12px; line-height:20px; }
body.tabler-workbench[data-view="cards"] :is(.cards-action-card-list,.cards-action-results)>div:last-child { border-bottom:0; }
body.tabler-workbench[data-view="cards"] :is(.cards-action-card-list,.cards-action-results) strong { color:#4c5b6e; font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; }
body.tabler-workbench[data-view="cards"] :is(.cards-action-card-list,.cards-action-results) :is(span,small) { color:#8d98a8; font-size:11px; overflow-wrap:anywhere; }
body.tabler-workbench[data-view="cards"] :is(.cards-action-card-list,.cards-action-results) button { grid-column:2; grid-row:1/span 2; min-height:32px; padding:4px 10px; font-size:11px; }
body.tabler-workbench[data-view="cards"] .cards-action-card-preview+.cards-action-card-list { margin-top:16px; }
body.tabler-workbench[data-view="cards"] #cardsActionFeedback { margin:0 24px 16px; color:#8a95a4; font-size:12px; line-height:1.8; }
body.tabler-workbench[data-view="cards"] #cardsActionFeedback:empty { display:none; }
@media (max-width:991px) {
  body.tabler-workbench[data-view="cards"] .cards-action-quick-amounts button { min-height:44px; }
  body.tabler-workbench[data-view="cards"] .cards-calendar-header select { min-height:44px; height:44px; }
  body.tabler-workbench[data-view="cards"] .cards-action-field textarea { min-height:120px; }
  body.tabler-workbench[data-view="cards"] :is(.cards-action-card-list,.cards-action-results) button { min-height:44px; }
  body.tabler-workbench[data-view="cards"] #cardsActionClose { min-width:44px; min-height:44px; }
}
@media (max-width:640px) {
  body.tabler-workbench[data-view="cards"] .cards-action-header { padding:14px 18px; }
  body.tabler-workbench[data-view="cards"] #cardsActionBody { padding:18px; }
  body.tabler-workbench[data-view="cards"] .cards-action-card-preview { padding:16px; }
  body.tabler-workbench[data-view="cards"] #cardsActionFeedback { margin:0 18px 16px; }
}

/* Legacy filter placement must not move the keyword onto a second grid row. */
body.tabler-workbench[data-view="cards"] .cards-search-group>label { grid-column:auto; grid-row:auto; width:100%; }
@media(max-width:640px) {
  body.tabler-workbench[data-view="cards"] .cards-summary-bar .cards-summary-action { margin:0; padding:0; border:0; }
}
/* Labels inside the status popup do not inherit the legacy filter grid placement. */
body.tabler-workbench[data-view="cards"] #cardsStatusPopup { display:flex; flex-direction:column; align-items:stretch; }
body.tabler-workbench[data-view="cards"] #cardsStatusPopup label.cards-status-option { display:flex; flex:none; grid-column:auto; grid-row:auto; align-items:center; justify-content:flex-start; width:100%; gap:9px; }
body.tabler-workbench[data-view="cards"] #cardsStatusPopup label.cards-status-option input { flex:none; width:16px; height:16px; min-height:16px; margin:0; }
body.tabler-workbench[data-view="cards"] #cardsPageNumbers .cards-page-number[aria-current="page"] { color:#fff; background:#3d7730; }
body.tabler-workbench[data-view="cards"] #cardsTable input[type="checkbox"] { appearance:none; display:inline-grid; place-items:center; border:1px solid #dfe5ec; border-radius:4px; background:#fff; box-shadow:none; }
body.tabler-workbench[data-view="cards"] #cardsTable input[type="checkbox"]:checked,body.tabler-workbench[data-view="cards"] #cardsTable input[type="checkbox"]:indeterminate { border-color:#82b757; background:#8cc65c; }
body.tabler-workbench[data-view="cards"] #cardsTable input[type="checkbox"]:checked::after { content:""; display:block; width:4px; height:8px; border:solid #2c4b1b; border-width:0 1.5px 1.5px 0; transform:translateY(-1px) rotate(45deg); }
body.tabler-workbench[data-view="cards"] #cardsTable input[type="checkbox"]:indeterminate::after { content:""; display:block; width:8px; height:1.5px; background:#2c4b1b; }
body.tabler-workbench[data-view="cards"] #cardsTable input[type="checkbox"] { box-sizing:border-box; min-width:16px; max-width:16px; padding:0; }

/* Main card table follows the supplier's 12px header / 14px body rhythm. */
body.tabler-workbench[data-view="cards"] #cardsTable th {
  height:52px;
  padding:14px 14px;
  color:#65717e;
  font-size:12px;
  line-height:19.2px;
  font-weight:500;
}
body.tabler-workbench[data-view="cards"] #cardsTable td {
  height:78px;
  padding:16px 14px;
  color:#3e4a42;
  font-size:14px;
  line-height:22.4px;
}
body.tabler-workbench[data-view="cards"] #cardsTable td strong,
body.tabler-workbench[data-view="cards"] #cardsTable .card-holder,
body.tabler-workbench[data-view="cards"] #cardsTable .card-date {
  color:#3e4a42;
  font-size:14px;
  line-height:22.4px;
}
body.tabler-workbench[data-view="cards"] .cards-card-number {
  min-height:28px;
  font-size:14px;
  line-height:22.4px;
}
body.tabler-workbench[data-view="cards"] #cardsTable .status {
  font-size:12px;
  line-height:19.2px;
}
body.tabler-workbench[data-view="cards"] #cardsTable .row-actions>.button {
  min-height:40px;
  padding:9px 12px;
  font-family:Arial,sans-serif;
  font-size:14px;
  line-height:14px;
}
/* Unknown provider results can expose two independent actions. */
body.tabler-workbench[data-view="cards"] .cards-action-result-actions {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  grid-column:2;
  grid-row:1 / span 2;
  min-width:0;
}
body.tabler-workbench[data-view="cards"] .cards-action-result-actions button {
  grid-column:auto;
  grid-row:auto;
  min-width:0;
}
/* Fallback for older result markup before the wrapper is present. */
body.tabler-workbench[data-view="cards"] .cards-action-results > div > button + button {
  grid-column:2;
  grid-row:2;
}
/* Hover is a desktop affordance only; touch/keyboard users always get the actions. */
@media (hover:none), (pointer:coarse) {
  body.tabler-workbench[data-view="cards"] :is(.cards-remark-button,.cards-balance-refresh) { opacity:1; }
}
@media(max-width:991px) {
  body.tabler-workbench[data-view="cards"] #cardsTable td { padding-top:18px; padding-bottom:18px; }
  body.tabler-workbench[data-view="cards"] #cardsTable th { padding-top:14px; padding-bottom:14px; }
}
body.tabler-workbench[data-view="cards"] #cardsTable .card-sub {
  color:#7a867e;
  font-size:12px;
  line-height:19.2px;
}
