/* Titles and supporting text share a structure across module lists. */
:is(.erp-workspace,.day-action-panel) .day-record-stack{display:grid;gap:3px;min-width:0;align-content:start;text-align:start}
:is(.erp-workspace,.day-action-panel) .day-record-title{font-size:14px;font-weight:600;line-height:1.8;white-space:normal;word-break:normal;overflow-wrap:break-word}
:is(.erp-workspace,.day-action-panel) .day-record-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin:0;font-size:12px;line-height:1.75;color:var(--day-text-muted,#526780);white-space:normal;word-break:normal;overflow-wrap:break-word}
.day-record-meta:empty{display:none}
.day-record-meta>span{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%}
.day-record-meta>span>span{min-width:0}
.day-record-meta svg{width:15px;height:15px;flex:none}

/* Do not concatenate a table's primary value with its description. Status
   chips and percentages inside price comparisons keep their inline layout. */
:is(.erp-workspace,.day-action-panel) .module-table td>small:not(.module-status,.cf-status,.hr-leave-mode-tag,.cf-overdue){display:block;margin-block:3px 0;font-size:12px;line-height:1.75;white-space:normal;word-break:normal;overflow-wrap:break-word}
:is(.erp-workspace,.day-action-panel) .module-table td>small:empty{display:none}
.erp-workspace .module-table td .wf-table-sub{display:block;font-size:12px;line-height:1.75;white-space:normal;word-break:normal;overflow-wrap:break-word}
.erp-workspace .module-table td.table-description .inventory-meta{display:block;margin-block-start:3px;margin-inline:0;font-size:12px;line-height:1.75}
[data-master-rows] .inventory-master-line{justify-content:flex-start;min-width:0}
[data-master-rows] .inventory-master-line>.day-record-stack{flex:1 1 0}
[data-master-rows] .inventory-master-line .day-record-title{color:var(--day-text,#24364c)}
[data-master-rows] tr.is-inactive .day-record-title{color:#526174}

/* Existing card columns retain their grid; text blocks get distinct lines. */
.erp-workspace :is(.learning-review-row,.learning-exam-card)>:is(span,div):has(>strong+small){display:grid;gap:4px;min-width:0;align-content:start}
.erp-workspace :is(.learning-review-row,.learning-exam-card)>:is(span,div)>strong{white-space:normal;word-break:normal;overflow-wrap:break-word;line-height:1.8}
.erp-workspace :is(.learning-review-row,.learning-exam-card)>:is(span,div)>small{line-height:1.75;white-space:normal;word-break:normal;overflow-wrap:break-word}
.erp-workspace .procurement-row>small{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;line-height:1.75}
.erp-workspace .quote-card small{display:block;font-size:12px;line-height:1.75;white-space:normal;word-break:normal;overflow-wrap:break-word}
.erp-workspace :is(.workflow-task small,.wf-person-chip small,.wf-history-item small,.wf-timeline-title small,.wf-step-title small,.wf-subsection-head small){font-size:12px;line-height:1.75}
.erp-workspace :is(.module-toolbar,.workflow-toolbar,.day-section-head) :is(h1,h2,h3,p,b,small){word-break:normal;overflow-wrap:break-word}
:is(.erp-workspace,.day-action-panel) label>small{display:block;max-width:100%;font-size:12px;line-height:1.75;white-space:normal;word-break:normal;overflow-wrap:break-word}
:is(.person-option,.manager-option,.mail-recipient-results-v2 button,.production-report-results button) small{font-size:12px;line-height:1.75}

/* Older module styles still contain ۸–۱۱px metadata. Raise only supporting
   text, leaving status counters, chart labels and primary values alone. */
:is(#appSection .erp-workspace,.day-action-panel,dialog.day-project-dialog) :is(.dc-file small,.dc-member-choice small,.dc-forward-target small,.crm-unified-result small,.crm-customer-report-table .crm-record-link small,.crm-search-more>small,.hr-workspace-card small,.hr-quick-card small,.contract-manager-results small,.contract-national-results small,.mail-document-person>div>small,.mail-file-chip small,.notification-sound-modes small,.task-report-card-head small,.pending-file-chip small,.storage-file small,.system-tool-file small,.report-row small,.my-task-row small,.mention-option small,.person-option small,.manager-option small,.module-toolbar small,.workflow-task-foot small,.wf-steps-head small,.wf-contract-dialog [data-finance-code-form] small){font-size:12px;line-height:1.75}
.erp-workspace :is(.hr-workspace-card,.hr-quick-card,.system-tool-file)>div:has(>b+small){display:grid;gap:4px;min-width:0}
.erp-workspace .module-table td>small.cf-overdue{display:block;margin-block-start:3px;line-height:1.75}

/* In a Persian pager, previous is on the right and points right. Numeric
   ratios are isolated separately so ۱ / ۱۱ does not appear reversed. */
:is(.catalog-pager,.crm-pagination,.crm-customer-pagination,.contract-pagination,.module-pagination){direction:rtl;flex-direction:row;align-items:center;gap:12px}
.day-page-control{flex:0 0 auto}
.day-page-control svg{transform:none!important}
:is(.catalog-pager,.crm-pagination,.crm-customer-pagination,.contract-pagination,.module-pagination)>:is(span,output){unicode-bidi:isolate;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1.75}
.day-page-ratio{direction:ltr;unicode-bidi:isolate}
@media(max-width:600px){:is(.catalog-pager,.crm-pagination,.crm-customer-pagination,.contract-pagination,.module-pagination){gap:10px}.day-page-control{min-width:40px;min-height:40px}}
