/* Classinar finance v1.9: scoped account order-history redesign */
.clfo-history{--clfo-blue:#175bc5;--clfo-border:#dce6f5;--clfo-muted:#7182a1;color:#132d57}
.clfo-history .clfo-hero{border:1px solid var(--clfo-border);background:linear-gradient(112deg,#f6f9ff,#fff 78%);align-items:center;flex-wrap:wrap}
.clfo-history .clfo-count{display:inline-flex;align-items:center;gap:8px;border-radius:999px;background:#eaf3ff;color:#175ac2;font-weight:700;padding:9px 15px;font-size:12px;white-space:nowrap}
.clfo-history .clfo-finance-hint{display:flex;align-items:center;gap:15px;justify-content:space-between;background:#fff9ee;border:1px solid #f1d8a3;border-radius:13px;padding:16px 20px;margin:18px 0}
.clfo-history .clfo-finance-hint strong{font-size:13px}.clfo-history .clfo-finance-hint p{margin:5px 0 0;font-size:12px;color:#66728b}
.clfo-history .clfo-filter-panel{background:#fff;border:1px solid var(--clfo-border);border-radius:15px;padding:17px;margin:18px 0;box-shadow:0 8px 30px rgba(20,50,100,.035)}
.clfo-history .clfo-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:end}
.clfo-history .clfo-filters label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#304870;font-weight:650;min-width:0}
.clfo-history .clfo-filters input,.clfo-history .clfo-filters select{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;height:43px;border:1px solid #d4e1f3;border-radius:10px;background:#f8faff;color:#192d52;padding:8px 11px;box-shadow:none;font-family:inherit}
.clfo-history .clfo-filter-buttons{display:flex;gap:8px;justify-content:flex-start;align-items:center;grid-column:1/-1}
.clfo-history .clfo-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;border:1px solid transparent;border-radius:10px;font-size:12px;padding:11px 17px;font-weight:700;font-family:inherit;cursor:pointer;white-space:nowrap}
.clfo-history .clfo-primary{background:var(--clfo-blue);color:#fff!important}
.clfo-history .clfo-secondary{background:#edf3fd;border-color:#d7e3f5;color:#254e8d}
.clfo-history .clfo-panel{overflow:hidden;border:1px solid var(--clfo-border);padding:18px}
.clfo-history .cui-orders-table{background:#fff;border-collapse:separate;border-spacing:0}
.clfo-history .cui-orders-table th{background:#f0f5fd;color:#24446f;text-align:right;padding:15px 12px;font-size:12px}
.clfo-history .cui-orders-table td{padding:13px 12px;border-bottom:1px solid #e7edf7;vertical-align:middle}
.clfo-history .cui-orders-table tbody tr:hover{background:#f9fbff}
.clfo-history .cui-order-status{font-size:11px;border-radius:999px;font-weight:700;padding:6px 10px;display:inline-flex;justify-content:center}
.clfo-history .cui-order-status.is-pending,.clfo-history .cui-order-status.is-on-hold{background:#fff0d5;color:#905800}
.clfo-history .cui-order-status.is-cancelled,.clfo-history .cui-order-status.is-failed{background:#ffe9ee;color:#aa2840}
.clfo-history .cui-order-status.is-refunded{background:#e7eefc;color:#445b86}
.clfo-history .cui-order-status.is-processing{background:#e9f4ff;color:#1b66ab}
.clfo-history .cui-order-status.is-completed{background:#e5f8ef;color:#087a50}
.clfo-history .clfo-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.clfo-history .clfo-action{font-size:11px;line-height:1.5;padding:8px 10px!important;border-radius:8px;text-decoration:none;white-space:normal}
.clfo-history .clfo-finance-link{background:#fff5dd;color:#8a5b13;border:1px solid #f0d5a0}
.clfo-history .clfo-tax-state{font-size:11px;color:#46668c;margin-top:8px}
@media(max-width:1100px){.clfo-history .clfo-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.clfo-history .clfo-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.clfo-history .clfo-panel{padding:12px}.clfo-history .cui-orders-table tr.cui-order-row{border:1px solid var(--clfo-border);border-radius:13px;margin:0 0 12px;padding:11px}.clfo-history .cui-orders-table td{border-bottom:1px dashed #e7edf7;padding:10px 5px}.clfo-history .cui-orders-table td:last-child{border-bottom:0}.clfo-history .clfo-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.clfo-history .clfo-action{width:100%;justify-content:center;text-align:center}.clfo-history .clfo-finance-hint{flex-direction:column;align-items:stretch}.clfo-history .clfo-finance-hint .clfo-btn{width:100%}}
@media(max-width:430px){.clfo-history .clfo-filters{grid-template-columns:1fr}.clfo-history .clfo-filter-buttons{width:100%}.clfo-history .clfo-filter-buttons>*{flex:1}.clfo-history .clfo-hero{padding:14px}.clfo-history .clfo-actions{grid-template-columns:1fr}}
