/* Çek Takibi — standalone read-only monitoring surface. Finance operations stay
   in the shared cheque detail and the existing server-side workflow. */
.cheque-monitor{display:flex;flex-direction:column;gap:14px;min-width:0}
.cheque-monitor-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.cheque-monitor-stat{background:#fff;border:1px solid #e0e7ef;border-radius:15px;padding:17px 18px;min-width:0;display:flex;flex-direction:column;gap:7px;box-shadow:0 6px 24px #1b33400b}
.cheque-monitor-stat>span{color:#627993;font-size:.77rem;font-weight:750}
.cheque-monitor-stat strong{color:#162f4d;font-size:clamp(1.12rem,1.6vw,1.57rem);font-variant-numeric:tabular-nums;white-space:nowrap}
.cheque-monitor-stat small{color:#8290a2;font-size:.69rem;line-height:1.35}
.cheque-monitor-stat.cheque-monitor-alert strong{color:#bb4a4a}
.cheque-monitor-panel{display:flex;flex-direction:column;min-width:0;overflow:hidden}
.cheque-monitor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px}
.cheque-monitor-heading .btn{white-space:nowrap}
.cheque-monitor-scopes{display:flex;gap:6px;overflow-x:auto;padding:0 17px 12px;scrollbar-width:thin;overscroll-behavior-x:contain}
.cheque-monitor-scope{appearance:none;flex:0 0 auto;border:1px solid #dfe5ec;background:#f6f8fb;color:#536980;border-radius:9px;padding:9px 12px;font-size:.74rem;font-weight:790;cursor:pointer;min-height:35px}
.cheque-monitor-scope.active,.cheque-monitor-scope[aria-pressed=true]{background:#172d46;color:#fff;border-color:#172d46;box-shadow:0 3px 9px #1f3b5d23}
.cheque-monitor-scope:hover:not(.active){background:#eaf0f6}
.cheque-monitor-filters{display:grid;grid-template-columns:minmax(220px,1fr) minmax(135px,180px) minmax(143px,195px);gap:8px;padding:0 17px 12px}
.cheque-monitor-filters select,.cheque-monitor-filters input,.cheque-monitor-page-actions select{background:#fff;border:1px solid #dce4ee;border-radius:9px;padding:0 11px;color:#283d56;min-height:39px;font-size:.79rem;min-width:0;width:100%;outline-offset:2px}
.cheque-monitor-search{display:flex;align-items:center;position:relative;min-width:0}
.cheque-monitor-search .icon{position:absolute;left:11px;width:17px;height:17px;color:#8b9aab;pointer-events:none}
.cheque-monitor-search input{padding-left:35px}
.cheque-monitor-scroll{overflow:auto;min-width:0;max-height:clamp(260px,51dvh,550px);border-block:1px solid #e6ebf2;overscroll-behavior:contain}
.cheque-monitor-table{border-collapse:collapse;width:100%;table-layout:fixed;min-width:945px;font-size:.76rem;color:#324761}
.cheque-monitor-table th{position:sticky;top:0;background:#f4f7fa;color:#62768f;font-size:.68rem;font-weight:850;z-index:2;text-align:left;padding:12px 11px;white-space:nowrap;border-bottom:1px solid #e4e9f0}
.cheque-monitor-table td{padding:11px 11px;border-bottom:1px solid #e9eef3;vertical-align:middle;overflow-wrap:anywhere}
.cheque-monitor-table tbody tr:nth-child(even){background:#fbfcfe}
.cheque-monitor-table tbody tr:hover{background:#f5f8fc}
.cheque-monitor-table th:nth-child(1){width:15%}
.cheque-monitor-table th:nth-child(2){width:22%}
.cheque-monitor-table th:nth-child(3){width:11%}
.cheque-monitor-table th:nth-child(4){width:13%;text-align:right}
.cheque-monitor-table th:nth-child(5){width:13%}
.cheque-monitor-table th:nth-child(6){width:17%}
.cheque-monitor-table th:nth-child(7){width:9%;text-align:right}
.cheque-monitor-table td:nth-child(4),.cheque-monitor-table td:last-child{text-align:right}
.cheque-monitor-identity,.cheque-monitor-contact{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.cheque-monitor-open{border:0;background:none;padding:0;color:#183b64;font-weight:900;font-size:.81rem;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.cheque-monitor-open:hover{text-decoration:underline}
.cheque-monitor-identity span,.cheque-monitor-contact small,.cheque-monitor-event{color:#8492a5;font-size:.7rem;line-height:1.5}
.cheque-monitor-contact strong{color:#253e59;font-size:.77rem;font-weight:800}
.cheque-monitor-amount{font-weight:900;color:#1d3655;white-space:nowrap;font-variant-numeric:tabular-nums}
.cheque-monitor-date{white-space:nowrap;color:#445b74;font-weight:750}
.cheque-monitor-date small{display:block;font-size:.67rem;color:#c04949;margin-top:2px}
.cheque-monitor-view{min-width:54px;padding:7px 11px!important}
.cheque-monitor-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:210px;text-align:center;color:#627894}
.cheque-monitor-empty .icon{width:32px;height:32px;color:#bea171}
.cheque-monitor-empty strong{color:#294362;font-size:.9rem}
.cheque-monitor-empty p{font-size:.76rem;max-width:350px;line-height:1.5}
.cheque-monitor-pager{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 17px;font-size:.73rem;color:#768aa1;background:#fff}
.cheque-monitor-page-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.cheque-monitor-page-actions select{min-height:35px;width:73px;padding:0 8px}
.cheque-monitor-page-actions .btn{min-height:35px}
.cheque-monitor-footnote{font-size:.72rem;color:#8090a4;line-height:1.55;margin:0 2px}
.cheque-monitor-table .pill{display:inline-block;white-space:normal;line-height:1.3}
@media (max-width:1180px){.cheque-monitor-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.cheque-monitor-stat{padding:14px 16px}.cheque-monitor-scroll{max-height:clamp(240px,43dvh,530px)}}
@media (max-width:720px){
 .cheque-monitor{gap:10px}
 .cheque-monitor-stats{gap:8px}
 .cheque-monitor-stat{padding:12px;gap:5px;border-radius:12px}
 .cheque-monitor-stat>span{font-size:.71rem}
 .cheque-monitor-stat strong{font-size:clamp(.94rem,3.5vw,1.25rem);white-space:normal;overflow-wrap:anywhere}
 .cheque-monitor-stat small{font-size:.65rem}
 .cheque-monitor-heading{align-items:flex-start;padding:14px 13px 10px}
 .cheque-monitor-heading h2{font-size:.91rem}
 .cheque-monitor-heading p{font-size:.69rem;max-width:240px}
 .cheque-monitor-scopes{padding:0 12px 10px;gap:5px}
 .cheque-monitor-scope{padding:8px 10px;font-size:.71rem}
 .cheque-monitor-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 12px 10px}
 .cheque-monitor-filters .cheque-monitor-search{grid-column:1 / -1}
 .cheque-monitor-filters select{font-size:.74rem}
 .cheque-monitor-scroll{padding:9px 9px;max-height:min(52dvh,530px);overflow-y:auto;overflow-x:hidden}
 .cheque-monitor-table,.cheque-monitor-table tbody{display:block;width:100%;min-width:0}
 .cheque-monitor-table thead{display:none}
 .cheque-monitor-table tbody{display:grid;gap:8px}
 .cheque-monitor-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:'identity status' 'contact contact' 'date amount' 'last last' 'action action';column-gap:12px;row-gap:4px;border:1px solid #e0e7ee;border-radius:12px;overflow:hidden;padding:10px 12px;background:#fff!important}
 .cheque-monitor-table tbody tr:hover{background:#f9fafc!important}
 .cheque-monitor-table td{padding:4px 0!important;border:0!important;text-align:left!important;min-width:0}
 .cheque-monitor-table td::before{content:attr(data-label);display:block;font-size:.64rem;color:#8899ad;margin-bottom:2px;font-weight:650}
 .cheque-monitor-table td:nth-child(1){grid-area:identity}
 .cheque-monitor-table td:nth-child(2){grid-area:contact}
 .cheque-monitor-table td:nth-child(3){grid-area:date}
 .cheque-monitor-table td:nth-child(4){grid-area:amount;text-align:right!important}
 .cheque-monitor-table td:nth-child(5){grid-area:status;text-align:right!important}
 .cheque-monitor-table td:nth-child(6){grid-area:last}
 .cheque-monitor-table td:nth-child(7){grid-area:action;text-align:right!important;border-top:1px solid #eef1f5!important;padding-top:9px!important}
 .cheque-monitor-table td:nth-child(4)::before,.cheque-monitor-table td:nth-child(5)::before{width:100%}
 .cheque-monitor-table .cheque-monitor-contact strong{font-size:.8rem}
 .cheque-monitor-table .cheque-monitor-event{font-size:.72rem}
 .cheque-monitor-table .cheque-monitor-view{width:100%;min-height:37px}
 .cheque-monitor-table tbody tr:has(td[colspan]){display:block;padding:0}
 .cheque-monitor-table td[colspan]{display:block!important}
 .cheque-monitor-pager{align-items:flex-start;flex-direction:column;gap:8px;padding:10px 12px}
 .cheque-monitor-page-actions{width:100%}
 .cheque-monitor-page-actions .btn{flex:1;min-width:0}
 .cheque-monitor-footnote{font-size:.69rem}
}
@media(max-width:360px){
 .cheque-monitor-stat strong{font-size:.93rem}
 .cheque-monitor-table tbody tr{padding:9px 10px;column-gap:8px}
 .cheque-monitor-page-actions{gap:5px}
 .cheque-monitor-page-actions label{font-size:.68rem}
 .cheque-monitor-page-actions select{width:61px}
}
