Bulk and single SMS from Users, row selection with overflow summary, persistent large import toasts, and business SMS sender in Super Admin. Co-authored-by: Cursor <cursoragent@cursor.com>
390 lines
6.2 KiB
CSS
390 lines
6.2 KiB
CSS
.tablePanel {
|
|
margin-top: 12px;
|
|
padding: 0;
|
|
background: transparent;
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.selectionBar {
|
|
margin-top: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-height: 40px;
|
|
padding: 8px 14px;
|
|
background: var(--glass-bg);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--glass-shadow);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.selectionLabel {
|
|
flex-shrink: 0;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.selectionNames {
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
font-family: var(--font-ui);
|
|
}
|
|
|
|
.selectionNameItem {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.selectionName,
|
|
.selectionMore {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.selectionMore {
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.selectionSep {
|
|
display: inline-block;
|
|
width: 1px;
|
|
height: 12px;
|
|
margin-inline: 8px;
|
|
background: rgba(148, 163, 184, 0.45);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.selectionTotal {
|
|
flex-shrink: 0;
|
|
margin-inline-start: auto;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
white-space: nowrap;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.tableWrap {
|
|
background: var(--glass-bg);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--glass-shadow);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tableHeader {
|
|
padding: 12px 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
border-bottom: 1px solid rgba(148, 163, 184, 0.2);
|
|
}
|
|
|
|
.tableHeaderTitle {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.meta {
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
table-layout: fixed;
|
|
}
|
|
|
|
.colCheck {
|
|
width: 44px;
|
|
}
|
|
|
|
.colName {
|
|
width: 22%;
|
|
}
|
|
|
|
.colCell {
|
|
width: 16%;
|
|
}
|
|
|
|
.colOrders {
|
|
width: 12%;
|
|
}
|
|
|
|
.colTransactions {
|
|
width: 14%;
|
|
}
|
|
|
|
.colDate {
|
|
width: 12%;
|
|
}
|
|
|
|
.colActions {
|
|
width: 220px;
|
|
}
|
|
|
|
.th,
|
|
.td {
|
|
padding: 14px 14px;
|
|
text-align: start;
|
|
border-bottom: 1px solid rgba(148, 163, 184, 0.16);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.th {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
background: var(--table-header-bg);
|
|
}
|
|
|
|
.td {
|
|
font-size: 13px;
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.subText {
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.customerName {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.customerName[dir='rtl'] {
|
|
font-weight: 400;
|
|
}
|
|
|
|
.nameAlignFa {
|
|
text-align: right;
|
|
}
|
|
|
|
.dateCell {
|
|
white-space: nowrap;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.filterCellNarrow {
|
|
grid-column: span 2;
|
|
max-width: 168px;
|
|
}
|
|
|
|
.thActions {
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.thCheck,
|
|
.tdCheck {
|
|
width: 44px;
|
|
text-align: center;
|
|
padding-inline: 8px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.rowCheck {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin: 0;
|
|
accent-color: var(--primary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tdActions {
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
padding-inline-end: 14px;
|
|
}
|
|
|
|
.rowActions {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 4px;
|
|
}
|
|
|
|
/* FA: عملیات column is on the physical left. */
|
|
.tableFa .thActions,
|
|
.tableFa .tdActions {
|
|
text-align: left;
|
|
padding-left: 14px;
|
|
padding-right: 14px;
|
|
}
|
|
|
|
.toggleInActions {
|
|
margin-inline-end: 8px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
height: 30px;
|
|
}
|
|
|
|
.actionBtn {
|
|
width: 30px;
|
|
height: 30px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 8px;
|
|
color: var(--text-secondary);
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.actionBtn:hover:not(:disabled) {
|
|
background: rgba(var(--primary-rgb) / 0.1);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.actionBtnDanger:hover:not(:disabled) {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
color: #ef4444;
|
|
}
|
|
|
|
.actionBtn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.inactiveRow {
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.statusDisabled {
|
|
color: #b45309;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.pagination {
|
|
padding: 12px 16px;
|
|
display: grid;
|
|
grid-template-columns: 1fr auto 1fr;
|
|
align-items: center;
|
|
min-height: 38px;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
font-size: 12px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.pagination > div:first-child {
|
|
grid-column: 1;
|
|
justify-self: start;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
height: 38px;
|
|
margin: 0;
|
|
padding: 0;
|
|
line-height: 38px;
|
|
font-family: var(--font-ui);
|
|
transform: translateY(2px);
|
|
}
|
|
|
|
.pagination > nav {
|
|
grid-column: 2;
|
|
justify-self: center;
|
|
height: 38px;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.pagerBtns {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.pageBtn {
|
|
padding: 6px 10px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid rgba(148, 163, 184, 0.25);
|
|
background: rgba(255, 255, 255, 0.35);
|
|
color: var(--text-secondary);
|
|
font-weight: 700;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.pageBtn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.pageBtnActive {
|
|
border-color: rgba(var(--primary-dark-rgb) / 0.35);
|
|
color: var(--primary);
|
|
background: rgba(var(--primary-dark-rgb) / 0.08);
|
|
}
|
|
|
|
.errorBanner {
|
|
padding: 16px;
|
|
color: #b91c1c;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.fab {
|
|
position: fixed;
|
|
inset-inline-end: 32px;
|
|
inset-inline-start: auto;
|
|
bottom: 32px;
|
|
z-index: 110;
|
|
width: 56px;
|
|
height: 56px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
color: white;
|
|
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
|
|
box-shadow: 0 8px 24px rgba(var(--primary-rgb) / 0.4);
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.fab:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 12px 28px rgba(var(--primary-rgb) / 0.45);
|
|
}
|
|
|
|
.spin {
|
|
animation: customersSpin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes customersSpin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.fab {
|
|
inset-inline-end: 20px;
|
|
inset-inline-start: auto;
|
|
bottom: 20px;
|
|
width: 52px;
|
|
height: 52px;
|
|
}
|
|
}
|