/* LelangPet V11.5.1 — Growth + global table spacing refinement */

/* Vertical rhythm between controls, tables, and paginators. */
.filter-tabs + .lp-table-toolbar,
.lp-table-toolbar + .listing-table-card,
.lp-table-toolbar + .lp-table-wrap,
.dash-card > form + .lp-table-wrap,
.dash-card > form + .table-wrap,
.dash-card > .lp-rule-list + .lp-table-wrap,
.dash-card > .lp-table-wrap + .pagination-wrap,
.dash-card > .table-wrap + .pagination-wrap,
.listing-table-card + .pagination-wrap {
  margin-top:18px!important;
}

.page-head{margin-bottom:24px}
.filter-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:18px}
.filter-tabs>a{margin:0!important}

.lp-table-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-bottom:18px}
.lp-table-toolbar .lp-table-search{flex:1 1 520px;min-width:240px}
.lp-table-toolbar .lp-table-size{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.lp-table-toolbar .lp-table-submit,.lp-table-toolbar .lp-table-clear{min-height:46px}

/* Table system: roomier rows and enough width for multi-column operational pages. */
.table-wrap,.lp-table-wrap{overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch}
.table-wrap table,.lp-table-wrap table,.lp-ops-table{width:100%!important;min-width:900px!important;table-layout:auto!important;border-collapse:separate!important;border-spacing:0!important}
.table-wrap thead th,.lp-table-wrap thead th,.lp-ops-table thead th{padding:16px 18px!important;vertical-align:middle!important;white-space:nowrap!important}
.table-wrap tbody td,.lp-table-wrap tbody td,.lp-ops-table tbody td{padding:20px 18px!important;vertical-align:middle!important;line-height:1.55!important;word-break:normal!important;overflow-wrap:normal!important}
.table-wrap tbody tr+tr td,.lp-table-wrap tbody tr+tr td,.lp-ops-table tbody tr+tr td{border-top:1px solid rgba(31,47,105,.06)}

.table-pet,.lp-table-pet-wide{display:flex!important;align-items:center!important;gap:14px!important;min-width:260px}
.table-pet img,.lp-table-pet-wide img{width:56px!important;height:56px!important;flex:0 0 56px!important;border-radius:16px!important;object-fit:cover!important}
.table-pet>div,.lp-table-pet-wide>div{min-width:0}
.table-pet strong,.lp-table-pet-wide strong{display:block;max-width:28ch;line-height:1.45!important;word-break:normal!important;overflow-wrap:anywhere!important;hyphens:none!important}
.table-pet small,.lp-table-pet-wide small{display:block;margin-top:4px!important;line-height:1.45!important}
.bad-text{margin-top:6px!important}

.lp-admin-transactions-table{min-width:1240px!important}
.lp-admin-transactions-table td:first-child{min-width:300px}
.lp-admin-transactions-table th:nth-child(2),.lp-admin-transactions-table td:nth-child(2),
.lp-admin-transactions-table th:nth-child(3),.lp-admin-transactions-table td:nth-child(3){min-width:120px}
.lp-admin-transactions-table th:nth-child(5),.lp-admin-transactions-table td:nth-child(5),
.lp-admin-transactions-table th:nth-child(6),.lp-admin-transactions-table td:nth-child(6),
.lp-admin-transactions-table th:nth-child(7),.lp-admin-transactions-table td:nth-child(7){min-width:155px}
.lp-admin-transactions-table td:last-child{white-space:nowrap}

.pagination-wrap{display:flex;justify-content:flex-end;align-items:center;margin-top:18px!important;margin-bottom:4px}

/* Growth form and sales status UX. */
.lp-ops-card{padding:24px!important}
.lp-ops-card+.lp-ops-card{margin-top:22px}
.lp-admin-note{display:grid;gap:6px;padding:16px 18px;margin:16px 0 18px;border:1px solid rgba(31,47,105,.08);border-radius:18px;background:rgba(31,47,105,.035)}
.lp-admin-note p{margin:0;line-height:1.55}
.lp-growth-rule-form,.lp-growth-sales-form,.lp-ux-form{display:grid;gap:18px}
.lp-growth-rule-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.lp-form-field{display:grid;gap:8px;grid-column:span 3;align-content:start}
.lp-form-field>span{font-weight:750;color:#26345f}
.lp-form-field small{color:#74809f;line-height:1.45}
.lp-form-field--span-2{grid-column:span 2}.lp-form-field--span-3{grid-column:span 3}.lp-form-field--span-4{grid-column:span 4}.lp-form-field--span-6{grid-column:span 6}.lp-form-field--span-12{grid-column:1/-1}
.lp-form-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:2px}
.lp-form-actions--inline{justify-content:flex-start;margin-top:0}.lp-check-inline{margin:0}

.lp-rule-list{display:grid;gap:14px;margin-top:20px}
.lp-rule-card{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 20px;border:1px solid rgba(31,47,105,.09);border-radius:20px;background:#fff}
.lp-rule-copy{flex:1 1 420px;min-width:0}.lp-rule-copy>strong{display:block;margin-bottom:8px}.lp-rule-copy>small{display:block;line-height:1.55}
.lp-rule-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.lp-meta-pill,.lp-status-badge{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border-radius:999px;font-size:12px;font-weight:800;line-height:1}
.lp-meta-pill{background:rgba(31,47,105,.08);color:#1f2f69}.lp-status-badge.is-active{background:rgba(46,184,114,.14);color:#1c7c54}.lp-status-badge.is-inactive{background:rgba(244,162,97,.18);color:#8a4b14}
.lp-rule-actions{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap}.lp-inline-form{margin:0!important}.lp-inline-form .btn,.lp-rule-actions .btn{min-height:44px}

.lp-admin-table-wrap{margin-top:18px!important}.lp-growth-sales-table td:last-child{white-space:nowrap}

@media(max-width:1100px){.lp-form-field,.lp-form-field--span-2,.lp-form-field--span-3,.lp-form-field--span-4,.lp-form-field--span-6{grid-column:span 6}}
@media(max-width:760px){
  .lp-form-field,.lp-form-field--span-2,.lp-form-field--span-3,.lp-form-field--span-4,.lp-form-field--span-6,.lp-form-field--span-12{grid-column:1/-1}
  .lp-table-toolbar{align-items:stretch}.lp-table-toolbar .lp-table-search,.lp-table-toolbar .lp-table-size,.lp-table-toolbar .lp-table-submit,.lp-table-toolbar .lp-table-clear{width:100%}
  .lp-form-actions{flex-direction:column;align-items:stretch}.lp-rule-actions{width:100%;justify-content:space-between}
  .pagination-wrap{justify-content:flex-start}
}
