/* Approved filter rail + large register. Scoped to transaction master pages only. */
#workspaceView .master-workspace{padding-bottom:0!important;}
#workspaceView .master-workspace .mw-workspace{display:grid;grid-template-columns:210px minmax(0,1fr);gap:10px;height:var(--mw-height,600px);min-height:340px;}
#workspaceView .master-workspace .mw-main{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid #dde2f1;border-radius:12px;background:#fff;overflow:hidden;}
.mw-rail{min-width:0;min-height:0;border:1px solid #dde2f1;border-radius:12px;background:linear-gradient(130deg,#fff,#f6f3ff);display:flex;flex-direction:column;overflow:hidden;}
.mw-rail-head{display:flex;align-items:center;justify-content:space-between;padding:13px 12px 10px;gap:8px;}
.mw-rail-head>strong{font-size:16px;color:#14213c;}
.mw-toggle{display:flex;align-items:center;justify-content:center;min-width:28px!important;width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border:1px solid #dedff1;border-radius:7px;background:white;color:#6540df;font-size:22px;box-shadow:none;}
.mw-rail-body{overflow:auto;min-height:0;padding:0 12px 12px;display:flex;flex-direction:column;gap:10px;}
#workspaceView .master-workspace .mw-rail .history-filters,.mw-draft-dialog .mw-rail-body{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;margin:0!important;padding:0!important;grid-template-columns:none!important;}
#workspaceView .master-workspace .mw-rail .history-filters{width:100%!important;min-width:0!important;}
#workspaceView .master-workspace .mw-rail label,.mw-draft-dialog label{display:flex!important;flex-direction:column!important;gap:4px!important;font-size:11px!important;min-width:0!important;}
#workspaceView .master-workspace .mw-rail .input,.mw-draft-dialog .input{width:100%!important;min-width:0!important;height:33px!important;min-height:33px!important;font-size:11px!important;padding:6px 8px!important;border-radius:7px!important;}
.mw-apply{height:33px!important;min-height:33px!important;font-size:11px!important;padding:6px 9px!important;min-width:0!important;width:100%!important;display:flex!important;align-items:center;justify-content:center;gap:6px!important;}
.mw-apply .icon{width:15px;height:15px;}
.mw-reset{border:0!important;background:transparent!important;box-shadow:none!important;color:#5c2fe4!important;text-decoration:underline;height:27px!important;min-height:27px!important;font-size:11px!important;padding:3px!important;}
#workspaceView .master-workspace .mw-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:0!important;padding:12px!important;margin:0!important;border:0!important;border-bottom:1px solid #e8ebf4!important;border-radius:0!important;box-shadow:none!important;background:linear-gradient(120deg,#faf8ff,#fff)!important;flex:0 0 auto;}
#workspaceView .master-workspace .mw-header h1{font-size:19px!important;line-height:1.2!important;margin:0!important;}
#workspaceView .master-workspace .mw-header p{font-size:10px!important;line-height:1.35!important;margin:4px 0 0!important;max-width:620px;}
#workspaceView .master-workspace .mw-header>.action-cluster{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px!important;margin:0!important;}
#workspaceView .master-workspace .mw-header button{height:31px!important;min-height:31px!important;font-size:10px!important;padding:5px 8px!important;margin:0!important;gap:5px!important;white-space:nowrap;box-shadow:none!important;}
#workspaceView .master-workspace .mw-header button .icon{width:15px!important;height:15px!important;}
#workspaceView .master-workspace .mw-metrics{display:flex!important;flex-direction:column!important;gap:0!important;padding:8px 0 0!important;margin:0!important;border-top:1px solid #dfe3f1!important;}
#workspaceView .master-workspace .mw-metrics article{display:flex!important;align-items:center;justify-content:space-between;gap:7px!important;min-height:0!important;padding:9px 0!important;border:0!important;border-bottom:1px solid #e5e8f2!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;}
#workspaceView .master-workspace .mw-metrics article small{font-size:10px!important;line-height:1.3;}
#workspaceView .master-workspace .mw-metrics article b{font-size:11px!important;white-space:nowrap;}
.mw-filter-summary{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:9px 12px;font-size:10px;color:#60708e;min-width:0;}
.mw-filter-summary>strong{white-space:nowrap;}
.mw-chips{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#efe9ff;color:#5632bd;border-radius:6px;padding:4px 7px;min-width:0;}
.mw-count{margin-left:auto;color:#1f2d49;}
#workspaceView .master-workspace .mw-table-panel{display:flex!important;flex-direction:column!important;flex:1!important;min-width:0!important;min-height:0!important;padding:0 10px 8px!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;gap:0!important;}
#workspaceView .master-workspace .mw-table-panel>.panel-title{font-size:10px;min-height:0;padding:0 0 5px;margin:0;}
#workspaceView .master-workspace .mw-table-panel>.panel-title h2{font-size:11px;margin:0;}
#workspaceView .master-workspace .mw-table-panel>.panel-title small{font-size:9px;}
#workspaceView .master-workspace .mw-grid{flex:1!important;min-height:0!important;max-height:none!important;height:auto!important;overflow:auto!important;padding:0!important;margin:0!important;border:1px solid #e1e6f3!important;border-radius:8px!important;scrollbar-gutter:auto!important;}
#workspaceView .master-workspace .mw-grid table{width:100%!important;min-width:700px!important;border-collapse:collapse!important;table-layout:auto!important;margin:0!important;}
#workspaceView .master-workspace .mw-grid th{position:sticky!important;top:0!important;z-index:1;background:#f1effb!important;font-size:10px!important;padding:8px!important;white-space:nowrap!important;}
#workspaceView .master-workspace .mw-grid td{font-size:11px!important;line-height:1.3!important;padding:5px 8px!important;height:35px!important;vertical-align:middle!important;}
#workspaceView .master-workspace .mw-grid :is(th,td){width:auto!important;}
#workspaceView .master-workspace .mw-grid .icon-button{width:27px!important;min-width:27px!important;height:27px!important;min-height:27px!important;padding:5px!important;border-radius:6px!important;}
#workspaceView .master-workspace .mw-grid .icon-button .icon{width:15px!important;height:15px!important;}
#workspaceView .master-workspace :is(.history-pagination,.import-draft-pager){display:flex!important;align-items:center;justify-content:space-between;gap:8px!important;flex:0 0 auto;padding:8px 0 0!important;margin:0!important;min-height:0!important;font-size:10px!important;}
#workspaceView .master-workspace :is(.history-pagination,.import-draft-pager) button{height:30px!important;min-height:30px!important;font-size:10px!important;padding:5px 9px!important;}
#workspaceView .master-workspace .history-page-buttons{display:flex;gap:6px;}
#workspaceView .master-workspace .mw-workspace.mw-collapsed,.mw-draft-workspace.mw-collapsed{grid-template-columns:46px minmax(0,1fr)!important;}
.mw-collapsed>.mw-rail .mw-rail-body,.mw-collapsed>.mw-rail .mw-rail-head>strong{display:none!important;}
.mw-collapsed>.mw-rail .mw-rail-head{padding:9px 7px;}
.mw-note{font-size:11px;color:#687793;line-height:1.45;margin:0;}
.mw-draft-dialog{width:min(1180px,calc(100vw - 30px))!important;max-width:none!important;height:min(760px,calc(100dvh - 30px))!important;max-height:calc(100dvh - 30px)!important;padding:15px!important;overflow:auto!important;}
.mw-draft-heading h2{font-size:20px;margin:0 0 5px;}.mw-draft-heading p{font-size:11px;margin:0 0 12px;color:#687793;}
.mw-draft-workspace{display:grid;grid-template-columns:200px minmax(0,1fr);gap:10px;height:calc(100% - 110px);min-height:220px;}
.mw-draft-dialog .mw-rail-body{padding:0 12px 12px!important;}
.mw-draft-grid{min-width:0;min-height:0;overflow:auto!important;border:1px solid #e1e6f3;border-radius:8px;}
.mw-draft-grid table{min-width:520px!important;width:100%;border-collapse:collapse;}
.mw-draft-grid th{position:sticky;top:0;background:#f1effb;font-size:11px;padding:9px;}.mw-draft-grid td{font-size:11px;padding:6px 9px;}
.mw-draft-grid tr[hidden]{display:none!important;}
@media(max-width:950px){#workspaceView .master-workspace .mw-workspace{height:auto!important;grid-template-columns:1fr!important;}.mw-rail-body{max-height:340px;}#workspaceView .master-workspace .mw-grid{min-height:320px!important;max-height:65vh!important;flex:none!important;}#workspaceView .master-workspace .mw-header{align-items:start!important;flex-direction:column;}#workspaceView .master-workspace .mw-header>.action-cluster{justify-content:flex-start;}#workspaceView .master-workspace .mw-workspace.mw-collapsed,.mw-draft-workspace.mw-collapsed{grid-template-columns:1fr!important;}.mw-filter-summary{flex-wrap:wrap;}.mw-chips{max-width:100%;}.mw-draft-workspace{grid-template-columns:1fr;height:auto;}.mw-draft-grid{max-height:55vh;}.mw-collapsed>.mw-rail .mw-rail-head{justify-content:flex-end;}#workspaceView .master-workspace .mw-grid .icon-button{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;}}
