/* Searchable, paged RTL contract registry. */
.contract-registry { padding: 24px; margin: 18px 0 30px; border: 1px solid #dce2e7; border-top: 4px solid #b89554; scroll-margin-top: 24px; }
.contract-registry-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.contract-registry-heading h2 { color: #183746; margin: 3px 0 8px; font-size: 24px; }
.contract-registry-heading p { color: #697782; margin: 5px 0; }
.contract-registry-toolbar { display: flex; gap: 16px; margin-top: 20px; }
.contract-registry-toolbar > .field:first-child { flex: 1; }
.contract-registry-toolbar > .field:last-child { min-width: 180px; }
.contract-registry-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #e0e6ea; border-radius: 12px; }
.contract-registry-scroll:focus-visible { outline: 3px solid #b89554; outline-offset: 3px; }
.contract-registry-table { width: 100%; min-width: 840px; border-collapse: collapse; text-align: right; font-size: 13px; }
.contract-registry-table th { background: #183746; color: #fff; font-size: 12px; padding: 14px 16px; font-weight: 600; white-space: nowrap; }
.contract-registry-table td { padding: 16px; border-bottom: 1px solid #e5eaed; vertical-align: middle; }
.contract-registry-table tbody tr:last-child td { border: 0; }
.contract-registry-table tbody tr:nth-child(even) { background: #f8fafb; }
.contract-registry-table tbody tr:hover { background: #f5f2eb; }
.contract-registry-table td strong { display: block; color: #183746; line-height: 1.7; }
.contract-registry-table td small { display: block; color: #74818a; max-width: 240px; margin-top: 4px; }
.contract-registry-table .contract-registry-number { color: #8b692f; font-family: inherit; text-align: right; white-space: nowrap; }
.contract-registry-table .contract-status { font-size: 11px; max-width: 145px; padding: 5px 9px; }
.contract-registry-actions { display: flex; gap: 5px; }
.contract-registry-action { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 49px; min-height: 53px; padding: 7px 6px; border: 1px solid #dce3e7; border-radius: 8px; background: white; color: #304b5a; font: inherit; font-size: 10px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.contract-registry-action .icon { width: 19px; height: 19px; }
.contract-registry-action:hover:not(:disabled) { border-color: #b89554; background: #fbf7ef; }
.contract-registry-action:focus-visible { outline: 2px solid #b89554; outline-offset: 3px; }
.contract-registry-action:disabled { opacity: .45; cursor: not-allowed; }
.contract-registry-action.danger-text { color: #a5423d; }
.contract-registry-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 16px; font-size: 12px; color: #64727e; }
.contract-registry-pagination .button { padding: 8px 18px; min-height: 40px; }
.contract-registry-note { padding-top: 12px; border-top: 1px solid #e7ebed; color: #6e7981; font-size: 12px; line-height: 1.9; margin-bottom: 0; }
.contract-registry-empty { padding: 32px 20px; background: #f7f9fa; border: 1px dashed #d6dfe5; border-radius: 12px; color: #6e7b85; text-align: center; }
.contract-history-dialog { width: min(1100px, calc(100vw - 24px)); max-width: 1100px; }
.contract-history-dialog .contract-registry-table { min-width: 840px; }
.contract-registry-table .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 640px) { .contract-registry { padding: 18px 12px; } .contract-registry-heading { align-items: flex-start; gap: 10px; } .contract-registry-heading h2 { font-size: 21px; } .contract-registry-heading .button { padding: 8px; font-size: 11px; } .contract-registry-toolbar { flex-direction: column; gap: 8px; } .contract-registry-pagination { justify-content: center; gap: 10px; } }
@media print { .contracts-page .contract-registry { display: none !important; } }
