
/* Application tables fit their container, including wide desktop screens. */
.content:has(table){max-width:none}
.main,.content,.panel,.tablewrap{min-width:0}
table.fluid-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;box-sizing:border-box}
.fluid-table:not(.journal-fit):not(.numbering-table) th:nth-child(n),.fluid-table:not(.journal-fit):not(.numbering-table) td:nth-child(n){min-width:0!important;max-width:none!important;width:auto!important;box-sizing:border-box}
.fluid-table th,.fluid-table td:not([colspan]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal}
.fluid-table td:not([colspan])>a:not(.btn):not(.mini),.fluid-table td:not([colspan])>b,.fluid-table td:not([colspan])>strong,.fluid-table td:not([colspan])>.badge{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important;vertical-align:middle}
.fluid-table td:not([colspan])>a:not(.btn):not(.mini),.fluid-table td:not([colspan])>b,.fluid-table td:not([colspan])>strong{display:block}
.fluid-table .badge{display:inline-block}
.fluid-table input:not([type=checkbox]),.fluid-table select,.fluid-table textarea{min-width:0;max-width:100%;box-sizing:border-box}
.fluid-table td:has(form),.fluid-table td:has(button),.fluid-table td:has(.mini){white-space:normal!important}
.fluid-table td[colspan]{white-space:normal;overflow-wrap:normal}
.fluid-table td[colspan] .form-grid{grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr))}
.fluid-table .column-header-line{min-width:0;max-width:100%}
.fluid-table .status-pill{display:inline-block;vertical-align:middle;max-width:100%;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:18px;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:600;background:#e9eef4;color:#41566d}
.fluid-table .status-pill::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px;background:currentColor;vertical-align:1px}
.fluid-table .status-pill[data-tone=waiting]{background:#fff1d1;color:#805700}
.fluid-table .status-pill[data-tone=working]{background:#e1efff;color:#225d9f}
.fluid-table .status-pill[data-tone=approval]{background:#efe6fb;color:#714399}
.fluid-table .status-pill[data-tone=revision]{background:#fde8e8;color:#a33232}
.fluid-table .status-pill[data-tone=sending]{background:#daf3f1;color:#216b69}
.fluid-table .status-pill[data-tone=done]{background:#e2f2e5;color:#326941}
.fluid-table td.status-overdue{color:#b42318!important;font-weight:700}
@media print{
table.fluid-table{table-layout:auto!important}
.fluid-table th,.fluid-table td{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
}

/* A constant marker slot keeps dates aligned without changing sortable text. */
.fluid-table .table-date-text{display:inline-grid;grid-template-columns:7px auto;column-gap:7px;align-items:center;white-space:nowrap;font-variant-numeric:tabular-nums}
.fluid-table .table-date-text::before{content:'';width:7px;height:7px;border-radius:50%;background:transparent}
.fluid-table td.table-date-cell.deadline-overdue::before,.fluid-table td.table-date-cell.deadline-today::before,.fluid-table td.table-date-cell.deadline-soon::before{content:none!important}
.fluid-table .deadline-overdue>.table-date-text::before{background:#d95159}
.fluid-table .deadline-today>.table-date-text::before{background:#e4933d}
.fluid-table .deadline-soon>.table-date-text::before{background:#d9b944}

/* Reserve room for row actions, including a safe inset from the table edge. */
.fluid-table .journal-actions-cell{box-sizing:border-box!important;padding-left:6px!important;padding-right:12px!important;white-space:nowrap!important;text-align:right!important}
.fluid-table .journal-actions-cell>.journal-preview-btn,.fluid-table .journal-actions-cell>.journal-more-btn{display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:28px!important;min-width:28px!important;height:28px;padding:0!important;margin:0!important;vertical-align:middle}
.fluid-table .journal-actions-cell>.journal-more-btn{margin-left:4px!important}
.fluid-table .directory-actions-cell{padding-left:6px!important;padding-right:12px!important}

/* Keep row action buttons clear of the vertical scrollbar. */
.fluid-table .journal-actions-cell{padding-right:32px!important}

.app-table-scroll table.fluid-table.journal-fit td.journal-actions-cell{padding-right:32px!important}

/* Incoming journal: two independently controlled fields in each combined column. */
.journal-paired-header .column-header-line{min-height:25px}
.journal-paired-cell .journal-pair-line{min-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.journal-paired-cell .journal-pair-line+.journal-pair-line{margin-top:3px}
.journal-paired-cell .journal-pair-line[hidden],.journal-paired-header .column-header-line[hidden]{display:none!important}

/* Task links and document preview buttons share the same action appearance. */
.fluid-table .journal-actions-cell>.journal-preview-btn{background:var(--green)!important;color:#fff!important;border:0!important;border-radius:8px;transition:background .15s ease}
.fluid-table .journal-actions-cell>.journal-preview-btn:hover{background:var(--green-dark)!important}
.fluid-table .journal-actions-cell>.journal-preview-btn:focus-visible{outline:2px solid var(--green-dark);outline-offset:2px}
.fluid-table .journal-actions-cell>.journal-preview-btn,.fluid-table .journal-actions-cell>.journal-more-btn{min-height:28px!important}
.journal-preview-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}

/* Approved incoming paired-column typography and centering. */
table[data-column-pairs] .journal-paired-cell,table[data-column-pairs] .journal-paired-header{text-align:center!important;vertical-align:middle}
table[data-column-pairs] .journal-paired-cell .journal-pair-line:first-child{font-size:14px;font-weight:700}
table[data-column-pairs] .journal-paired-cell .journal-pair-line:nth-child(2),table[data-column-pairs] .journal-paired-cell .journal-pair-line:nth-child(2) *{font-size:12px;font-weight:400!important}
table[data-column-pairs] .journal-paired-header .column-header-line{justify-content:center;text-align:center}
table[data-column-pairs] .journal-paired-header .column-title{flex:0 1 auto;text-align:center}
table[data-column-pairs] .journal-paired-header .column-header-line:first-child .column-title{font-weight:700}
table[data-column-pairs] .journal-paired-header .column-header-line:nth-of-type(2) .column-title{font-size:12px;font-weight:400}
table[data-column-pairs] .journal-paired-cell .table-date-text{grid-template-columns:7px auto 7px}
table[data-column-pairs] .journal-paired-cell .table-date-text::after{content:'';width:7px}
table[data-column-pairs] .journal-paired-cell.deadline-overdue::before,table[data-column-pairs] .journal-paired-cell.deadline-today::before,table[data-column-pairs] .journal-paired-cell.deadline-soon::before{content:none!important}
table[data-column-pairs] .journal-pair-line .badge::before,table[data-column-pairs] .journal-pair-line .badge::after{content:none!important;display:none!important}
table[data-column-pairs] .journal-pair-line .status-pill::before{content:none!important;display:none!important}
