/* PSM Contracts Cloud 0.44 — contract execution control */
.psm-traffic{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;font-size:10.5px;font-weight:750;white-space:nowrap}.psm-traffic i{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px rgba(255,255,255,.6)}.psm-traffic.green{background:#e8f8f0;color:#16845a}.psm-traffic.yellow{background:#fff5d9;color:#9a6800}.psm-traffic.red{background:#ffebeb;color:#c82f2f}.page-title>.psm-traffic{margin-top:8px}
.psm-contract-control{margin:0 0 16px;padding:17px;background:#fff;border:1px solid var(--line,#dce5ef);border-radius:13px;box-shadow:0 3px 12px rgba(21,52,82,.035)}.psm-control-head,.psm-retention-head,.psm-analytics-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.psm-control-head h2,.psm-retention-head h3,.psm-analytics-title h2{margin:0;color:#17314e}.psm-control-head h2,.psm-analytics-title h2{font-size:18px}.psm-retention-head h3{font-size:15px}.psm-control-head p,.psm-retention-head p,.psm-analytics-title p{margin:5px 0 0;color:#7b8da2;font-size:11.5px;line-height:1.4}.psm-control-actions{display:flex;align-items:center;gap:9px}.psm-control-actions .btn,.psm-retention-head .btn{padding:8px 11px;font-size:11px;min-height:35px}
.psm-control-kpis,.psm-retention-summary,.psm-overview-kpis{display:grid;gap:9px}.psm-control-kpis{grid-template-columns:repeat(6,minmax(0,1fr));margin:15px 0}.psm-retention-summary{grid-template-columns:repeat(4,minmax(0,1fr));margin:12px 0}.psm-overview-kpis{grid-template-columns:repeat(5,minmax(0,1fr));margin:15px 0}.psm-fact{min-width:0;padding:10px 11px;border:1px solid #e1e9f1;border-radius:9px;background:#f9fbfd}.psm-fact span{display:block;margin-bottom:5px;color:#7d8fa3;font-size:9.5px;text-transform:uppercase;letter-spacing:.32px;line-height:1.3}.psm-fact b{display:block;color:#23415f;font-size:12px;line-height:1.35;overflow-wrap:anywhere}.psm-fact.wide{grid-column:1/-1}.psm-empty-value{display:inline!important;margin:0!important;color:#9aabba!important;font-size:inherit!important;text-transform:none!important;letter-spacing:0!important;font-weight:500}
.psm-control-columns{display:grid;grid-template-columns:1.12fr .88fr .88fr;gap:10px}.psm-control-box{padding:13px;border:1px solid #e1e9f1;border-radius:10px;background:#fff}.psm-control-box h3{margin:0 0 10px;font-size:13px;color:#28445f}.psm-control-box .psm-fact{margin-top:7px;padding:8px 9px;border:0;background:#f6f9fc}.psm-control-box .psm-fact:first-of-type{margin-top:0}.psm-info-note{display:flex;flex-direction:column;gap:5px;padding:12px;border:1px solid #b8d9f5;border-radius:9px;background:#eff7ff;color:#41627e}.psm-info-note b{font-size:13px;color:#146fbf}.psm-info-note span{font-size:11.5px;line-height:1.45}
.psm-retention-head{align-items:center;margin-top:16px;padding-top:15px;border-top:1px solid #e8eef4}.psm-retention-list{border:1px solid #e0e8f0;border-radius:10px;overflow:hidden}.psm-retention-row{display:grid;grid-template-columns:minmax(180px,1fr) 145px auto;align-items:center;gap:12px;padding:11px 12px;border-top:1px solid #edf2f6}.psm-retention-row:first-child{border-top:0}.psm-retention-row>div:first-child b,.psm-retention-money>b{display:block;color:#28445f;font-size:11.5px}.psm-retention-row>div:first-child span,.psm-retention-money span{display:block;margin-top:4px;color:#7e90a3;font-size:10px}.psm-retention-money{text-align:right}.psm-retention-status.returned{color:#16845a}.psm-retention-status.overdue{color:#c82f2f}.psm-retention-status.soon{color:#9a6800}.psm-row-actions{display:flex;gap:5px}.psm-row-actions button{border:1px solid #d4e2ef;border-radius:7px;padding:5px 7px;background:#fff;color:#176fc5;font-size:9.5px;font-weight:650;cursor:pointer}.psm-row-actions button.danger{border-color:#efd2d2;color:#b93434}.psm-control-empty{padding:18px;text-align:center;color:#7e90a4;font-size:11.5px;border:1px dashed #dbe5ef;border-radius:9px;background:#fbfdff}
.psm-change-pill{display:inline-flex;margin:5px 0 0 6px;padding:3px 6px;border-radius:5px;background:#fff4dc;color:#94620c;font-size:9px;font-weight:700;vertical-align:middle}.psm-badge-final{background:#e8f0ff!important;color:#325fa8!important}.psm-list-status{display:inline-flex;margin-left:7px;padding:2px 6px;border-radius:999px;font-size:8.5px;font-weight:750;vertical-align:middle}.psm-list-status.green{background:#e8f8f0;color:#16845a}.psm-list-status.yellow{background:#fff5d9;color:#9a6800}.psm-list-status.red{background:#ffebeb;color:#c82f2f}
.psm-modal-overlay{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(7,28,48,.58);backdrop-filter:blur(2px)}.psm-modal{width:min(880px,100%);max-height:calc(100vh - 36px);overflow:auto;background:#fff;border-radius:14px;box-shadow:0 22px 60px rgba(4,24,43,.28)}.psm-modal-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;border-bottom:1px solid #e4ebf2;background:#fff}.psm-modal-head h2{margin:0;font-size:18px}.psm-modal-close{width:34px;height:34px;border:0;border-radius:8px;background:#eef3f7;color:#526b83;font-size:24px;line-height:1;cursor:pointer}.psm-modal-body{padding:17px 18px}.psm-modal-section{margin:17px 0 11px;padding-top:14px;border-top:1px solid #e8eef4;color:#28445f;font-size:13px;font-weight:750}.psm-modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px;padding-top:14px;border-top:1px solid #e8eef4}
.psm-analytics-control{margin-bottom:17px;padding:17px;background:#fff;border:1px solid var(--line,#dce5ef);border-radius:13px;box-shadow:0 3px 12px rgba(21,52,82,.035)}.psm-overview-filters{display:flex;gap:8px}.psm-overview-filters input,.psm-overview-filters select{height:39px;padding:8px 10px;border:1px solid #cfdbe8;border-radius:8px;background:#fff;color:#29445f;font-size:11.5px;outline:none}.psm-overview-filters input{width:230px}.psm-overview-filters input:focus,.psm-overview-filters select:focus{border-color:#5aa5ec;box-shadow:0 0 0 3px rgba(26,125,223,.08)}.psm-overview-table{overflow:auto;border:1px solid #e0e8f0;border-radius:10px}.psm-overview-table table{min-width:1040px;font-size:10.5px}.psm-overview-table th{padding:9px 10px;font-size:9px}.psm-overview-table td{padding:10px}.psm-overview-table td:first-child{min-width:190px}.psm-overview-table td>a b{color:#234867}.psm-overview-table td>span{display:block;margin-top:4px;color:#8192a5;font-size:9.5px}.psm-overview-table td:last-child span{display:inline-flex;margin-top:0}.psm-returns{margin-top:13px;border:1px solid #e2e9f1;border-radius:10px;background:#fbfdff}.psm-returns>summary{cursor:pointer;padding:12px 13px;color:#28445f;font-size:12px;font-weight:750}.psm-return-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 12px 12px}.psm-return-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border:1px solid #e2e9f1;border-radius:8px;background:#fff;color:#28445f}.psm-return-card>div{min-width:0}.psm-return-card>div:last-child{text-align:right}.psm-return-card b{display:block;font-size:10.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.psm-return-card span{display:block;margin-top:4px;color:#8091a4;font-size:9px}.psm-return-card span.overdue{color:#c82f2f}.psm-return-card span.soon{color:#9a6800}.psm-return-card span.returned{color:#16845a}
@media(max-width:1260px){.psm-control-kpis{grid-template-columns:repeat(3,1fr)}.psm-control-columns{grid-template-columns:1fr 1fr}.psm-control-box:first-child{grid-column:1/-1}.psm-overview-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.psm-control-head,.psm-retention-head,.psm-analytics-title{flex-direction:column}.psm-control-actions{width:100%;justify-content:space-between}.psm-control-columns{grid-template-columns:1fr}.psm-control-box:first-child{grid-column:auto}.psm-overview-filters{width:100%}.psm-overview-filters input{flex:1}.psm-return-grid{grid-template-columns:1fr}}
@media(max-width:820px){.psm-contract-control,.psm-analytics-control{padding:13px;border-radius:12px}.psm-control-actions{display:grid;grid-template-columns:1fr;width:100%}.psm-control-actions .btn,.psm-retention-head .btn{width:100%;min-height:42px}.psm-control-kpis,.psm-retention-summary,.psm-overview-kpis{grid-template-columns:1fr 1fr}.psm-retention-row{grid-template-columns:1fr 105px}.psm-row-actions{grid-column:1/-1}.psm-row-actions button{flex:1;min-height:34px}.psm-overview-filters{display:grid;grid-template-columns:1fr}.psm-overview-filters input,.psm-overview-filters select{width:100%;height:45px;font-size:16px}.psm-modal-overlay{padding:0;align-items:flex-end}.psm-modal{width:100%;max-height:94vh;border-radius:15px 15px 0 0}.psm-modal-head{padding:14px}.psm-modal-body{padding:14px}.psm-modal-actions{position:sticky;bottom:0;margin:18px -14px -14px;padding:11px 14px;background:#fff}.psm-modal-actions .btn{flex:1}.psm-return-card{align-items:flex-start}}
@media(max-width:480px){.psm-control-kpis,.psm-retention-summary,.psm-overview-kpis{grid-template-columns:1fr 1fr}.psm-retention-row{grid-template-columns:1fr}.psm-retention-money{text-align:left}.psm-return-card{display:block}.psm-return-card>div:last-child{text-align:left;margin-top:8px}}
