/* Module 3.2 styles — all selectors are namespaced under .rev-page. */
.rev-page{--rnavy:#142b3b;--rteal:#0f8b8d;--rline:#e2e9ed;--rmuted:#71818c;--rred:#c34444;direction:rtl;color:#223542;max-width:1500px;margin:0 auto;font-size:13px}
.rev-page *{box-sizing:border-box}.rev-page button,.rev-page input,.rev-page textarea,.rev-page select{font:inherit}.rev-page button{cursor:pointer}.rev-page button:disabled{opacity:.52;cursor:not-allowed}
.rev-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:19px}.rev-heading small{display:block;font-size:11px;color:var(--rteal);font-weight:700;margin-bottom:8px}.rev-heading h1{font-size:24px;margin:0 0 9px}.rev-heading p{color:var(--rmuted);line-height:1.9;margin:0}.rev-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.rev-btn{white-space:nowrap;border:1px solid var(--rline);border-radius:9px;background:#fff;color:#223542;padding:10px 13px;font-weight:600}.rev-btn:hover:enabled{filter:brightness(.97)}.rev-btn.rev-primary{color:#fff;background:var(--rteal);border-color:var(--rteal)}.rev-btn.rev-dark{background:#1d3c50;border-color:#1d3c50;color:white}.rev-btn.rev-small{padding:6px 9px;font-size:11px}
.rev-callout{border:1px solid #cfe9e7;background:#f2fbfa;border-radius:11px;padding:13px 16px;color:#366976;line-height:2;margin-bottom:20px;font-size:12px}.rev-callout.rev-warning{background:#fff7e9;border-color:#f1d5aa;color:#926016;margin:14px 0}.rev-alert{border:1px solid;border-radius:9px;padding:12px 14px;margin-bottom:13px}.rev-error{background:#fff3f3;border-color:#edcaca;color:#a73d3d}.rev-success{background:#ebf8f0;border-color:#bfe1cf;color:#176c49}
.rev-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.rev-stat{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid var(--rline);border-radius:14px;padding:18px}.rev-stat small{font-size:11px;color:var(--rmuted);display:block}.rev-stat strong{display:block;color:var(--rnavy);font-size:26px;margin-top:9px}.rev-stat span{width:42px;height:42px;border-radius:11px;background:#e7f5f4;color:var(--rteal);display:grid;place-items:center;font-size:20px}
.rev-panel{background:#fff;border-radius:14px;border:1px solid var(--rline);overflow:hidden;box-shadow:0 8px 24px rgba(25,48,62,.06)}.rev-panel-head{padding:18px 20px;border-bottom:1px solid var(--rline);display:flex;align-items:center;justify-content:space-between;gap:15px}.rev-panel-head h2{font-size:14px;margin:0 0 8px}.rev-panel-head p{color:var(--rmuted);font-size:11px;margin:0}.rev-pill{background:#eef4f5;border-radius:7px;color:#647b88;padding:5px 9px;margin-right:7px;font-size:10px;font-weight:400}
.rev-filters{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(2,minmax(130px,1fr)) auto;align-items:end;gap:10px;padding:15px 20px}.rev-field{display:flex;flex-direction:column;gap:7px;min-width:0}.rev-field label{font-size:11px;font-weight:600;color:#526571}.rev-field input,.rev-field textarea,.rev-field select{border-radius:8px;border:1px solid #dbe4e9;background:#fff;color:#223542;padding:10px 11px;outline:none;width:100%;min-width:0}.rev-field input:focus,.rev-field textarea:focus,.rev-field select:focus{border-color:var(--rteal);box-shadow:0 0 0 3px #0f8b8d16}.rev-field .validation-message{color:var(--rred);font-size:10px}.rev-inline{display:flex;gap:8px}.rev-inline input{flex:1}
.rev-table-wrap{overflow-x:auto}.rev-table{width:100%;border-collapse:collapse;text-align:right;white-space:nowrap}.rev-table thead{background:#f8fafb}.rev-table th{padding:13px 16px;font-size:10px;color:#71818c;text-align:right;border-top:1px solid var(--rline);border-bottom:1px solid var(--rline)}.rev-table td{padding:13px 16px;font-size:12px;border-bottom:1px solid #edf1f3}.rev-table tr:hover{background:#fbfdfd}.rev-main-cell b{display:block;font:600 12px Consolas,monospace;color:#426474;text-align:right}.rev-main-cell span{display:block;color:var(--rmuted);font-size:11px;margin-top:6px}.rev-status{font-size:10px;font-weight:700;border-radius:18px;padding:6px 10px;display:inline-block}.rev-status.rev-approved{color:#168257;background:#e6f6ed}.rev-status.rev-rejected{color:#b54747;background:#fff0f0}.rev-status.rev-revise{color:#a96d0b;background:#fff4df}.rev-status.rev-suspended{color:#6c7180;background:#eef0f5}.rev-status.rev-progress{color:#356fc0;background:#edf3fd}.rev-status.rev-new{color:#507d8a;background:#ebf4f6}
.rev-empty{text-align:center;padding:34px;color:var(--rmuted)}.rev-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 20px;border-top:1px solid var(--rline);font-size:11px;color:var(--rmuted)}.rev-footer b{background:var(--rteal);color:#fff;padding:8px 12px;border-radius:7px}
.rev-overlay{position:fixed;inset:0;z-index:1100;background:#10243288;display:flex;align-items:center;justify-content:center;padding:20px}.rev-modal{max-height:94vh;overflow-y:auto;width:min(970px,100%);background:#fff;border-radius:16px;box-shadow:0 25px 80px #00111d40}.rev-modal.rev-compact{width:min(600px,100%)}.rev-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;position:sticky;top:0;background:#fff;z-index:1;padding:20px 24px;border-bottom:1px solid var(--rline)}.rev-modal-head h2{font-size:17px;margin:0 0 8px}.rev-modal-head p{font-size:11px;color:var(--rmuted);margin:0}.rev-close{border:0;background:#f0f4f6;color:#627782;font-size:20px;border-radius:8px;width:34px;height:34px}.rev-modal-body{padding:22px 24px}.rev-modal-body h3{font-size:12px;border-right:3px solid var(--rteal);padding-right:9px;margin:10px 0 17px}.rev-modal-body .validation-summary-errors{color:#b74444;font-size:11px}.rev-modal-foot{position:sticky;bottom:0;background:#fafcfc;padding:16px 24px;border-top:1px solid var(--rline);display:flex;align-items:center;gap:9px;justify-content:flex-end}.rev-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:24px}.rev-wide{grid-column:1/-1}.rev-hint{font-size:11px;color:var(--rmuted);line-height:1.9}.rev-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rev-detail-grid>div{padding:12px 13px;border-radius:9px;border:1px solid var(--rline);background:#f8fafb}.rev-detail-grid small{display:block;color:var(--rmuted);font-size:10px;margin-bottom:8px}.rev-detail-grid strong{font-size:12px}.rev-detail-grid p{white-space:pre-wrap;line-height:1.9;margin:0}.rev-timeline{display:grid;gap:10px;border-right:2px solid #b9dfdd;margin-right:7px;padding:5px 17px 5px 0}.rev-timeline article{position:relative;background:#fbfdfd;border:1px solid var(--rline);border-radius:9px;padding:13px}.rev-timeline article:before{content:"";position:absolute;right:-23px;top:17px;width:9px;height:9px;border-radius:50%;background:var(--rteal)}.rev-timeline-top{display:flex;justify-content:space-between;gap:15px}.rev-timeline-top time,.rev-timeline article small{color:var(--rmuted);font-size:10px}.rev-timeline article p{white-space:pre-wrap;line-height:1.9;margin:10px 0}.rev-checkbox{display:flex;align-items:center;gap:9px;line-height:1.7;margin-top:12px}
@media(max-width:1100px){.rev-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.rev-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.rev-heading,.rev-panel-head,.rev-footer{flex-direction:column;align-items:stretch}.rev-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rev-modal-head,.rev-modal-body,.rev-modal-foot{padding:16px}.rev-stats{gap:8px}.rev-stat{padding:13px}.rev-stat span{display:none}}
@media(max-width:440px){.rev-grid,.rev-filters,.rev-stats,.rev-detail-grid{grid-template-columns:1fr}.rev-heading h1{font-size:20px}.rev-inline{flex-direction:column}}
