/* Recurring Payments - Layout 4 */
.spm-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.spm-page-title{display:flex;align-items:center;gap:12px}.spm-title-icon{width:50px;height:50px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eef9f8,#f9f6f5);color:#4ac2b6;font-size:27px}.spm-page-head h4{font-size:26px;font-weight:800;margin:0;color:#1a3835}.spm-page-head p{margin:3px 0 0;color:#78927d}.spm-layout-badge{padding:8px 14px;border-radius:10px;background:linear-gradient(135deg,#5ecabf,#5ec9be);color:#fff;font-weight:800;font-size:12px}.spm-card{border:1px solid #e9f4f3;border-radius:14px;box-shadow:0 5px 18px rgba(31,72,58,.045);height:100%}.spm-card .card-body{padding:16px}.spm-card-title{font-size:15px;font-weight:800;color:#234642;margin:0}.spm-muted{font-size:11px;color:#89a08e}.spm-summary-card{border:1px solid #e8f4f3;border-radius:14px;box-shadow:none;overflow:hidden;height:100%}.spm-summary-card .card-body{padding:16px;display:flex;align-items:center;gap:13px}.spm-summary-blue{background:linear-gradient(110deg,#f2fbfa,#fafefd)}.spm-summary-green{background:linear-gradient(110deg,#f0faf2,#fbfffc)}.spm-summary-orange{background:linear-gradient(110deg,#fcf0ed,#fefbf9)}.spm-summary-red{background:linear-gradient(110deg,#f9f7f6,#fefbfb)}.spm-summary-icon{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:23px;background:rgba(255,255,255,.75);color:#5ecabf;flex:0 0 48px}.spm-summary-green .spm-summary-icon{color:#318c43}.spm-summary-orange .spm-summary-icon{color:#d04720}.spm-summary-red .spm-summary-icon{color:#da6746}.spm-summary-copy{min-width:0;flex:1}.spm-summary-copy>span{display:block;font-size:11px;color:#5d7963;margin-bottom:3px}.spm-summary-copy strong{display:block;font-size:21px;color:#193936;font-weight:850;line-height:1.05}.spm-summary-copy small{font-size:10.5px;color:#7f9895}.spm-ring{width:48px;height:48px;border:6px solid #eb9880;border-top-color:#2e833f;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;color:#4c7571;flex:0 0 48px}.spm-ring-red{border-color:#f5d4ca;border-top-color:#da6746}.spm-control-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.spm-tabs{display:flex;gap:7px;flex-wrap:wrap}.spm-tab{border:0;background:#f1fafa;color:#567572;border-radius:9px;padding:8px 13px;font-size:11.5px;font-weight:750}.spm-tab span{margin-left:5px;background:rgba(255,255,255,.8);padding:1px 6px;border-radius:999px;font-size:9px}.spm-tab.active{background:#4ac2b6;color:#fff}.spm-tab-green:not(.active){background:#e9f7ec;color:#297438}.spm-tab-purple:not(.active){background:#effaf9;color:#56c7bb}.spm-tab-red:not(.active){background:#fdf2ef;color:#cf5f3f}.spm-tab-gray:not(.active){background:#eef5f2;color:#6d8683}.spm-inline-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.spm-inline-filters .form-select,.spm-inline-filters .form-control{height:36px;border-radius:9px;font-size:11px;min-width:130px}.spm-search-wrap{position:relative;min-width:230px}.spm-search-wrap i{position:absolute;left:11px;top:10px;color:#97adab}.spm-search-wrap input{padding-left:32px}.spm-filter-reset{height:36px;border-radius:9px}.spm-date-filter-row{display:flex;align-items:center;gap:7px;margin-top:8px;font-size:10.5px;color:#89a08e}.spm-date-filter-row .form-control{width:140px;height:32px;font-size:10.5px;border-radius:8px}.spm-chart,.spm-category-chart{min-height:250px}.spm-category-bars{min-height:250px}.spm-mini-toggle{display:flex;background:#f2f9f6;border-radius:8px;padding:2px}.spm-mini-toggle button{border:0;background:transparent;font-size:9.5px;padding:5px 7px;border-radius:6px;color:#7a947f}.spm-mini-toggle button.active{background:#fff;color:#4ac2b6;box-shadow:0 1px 4px rgba(34,86,68,.1);font-weight:700}.spm-quick-grid{display:grid;grid-template-columns:1fr;gap:8px}.spm-quick-btn{border:0;border-radius:9px;padding:9px 12px;color:#fff;font-size:11px;font-weight:750;text-align:center}.spm-quick-btn i{font-size:15px;margin-right:5px;vertical-align:-2px}.spm-quick-green{background:linear-gradient(135deg,#3aa650,#41b959)}.spm-quick-purple{background:linear-gradient(135deg,#63cbc0,#76d1c8)}.spm-quick-blue{background:linear-gradient(135deg,#3cb2a6,#32988d)}.spm-quick-teal{background:linear-gradient(135deg,#319389,#2b8279)}.spm-upcoming-list{display:flex;flex-direction:column;margin-top:8px}.spm-upcoming-item{display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #eef5f2}.spm-upcoming-item:last-child{border-bottom:0}.spm-date-tile{width:36px;height:36px;border-radius:9px;background:#f9f7f6;color:#d96c4d;display:flex;align-items:center;justify-content:center;font-size:10px;flex:0 0 36px}.spm-upcoming-main{min-width:0;flex:1}.spm-upcoming-main strong{display:block;font-size:11px;color:#254744;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.spm-upcoming-main small{font-size:9.5px;color:#8da291}.spm-upcoming-side{text-align:right;white-space:nowrap}.spm-upcoming-side strong{display:block;font-size:11px;color:#22423f}.spm-upcoming-side small{font-size:9px}.spm-small-link{font-size:10px;color:#4ac2b6}.spm-reminder-panel{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #edf4f1;margin-top:8px;padding-top:11px}.spm-reminder-panel>div{display:flex;align-items:center;gap:8px}.spm-reminder-panel i{width:32px;height:32px;border-radius:9px;background:#f2fbfa;color:#4ac2b6;display:flex;align-items:center;justify-content:center}.spm-reminder-panel span{display:flex;flex-direction:column}.spm-reminder-panel strong{font-size:10.5px}.spm-reminder-panel small{font-size:9px;color:#8ca2a0}.spm-table-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.spm-table-card{border:1px solid #e9f3f2;border-radius:12px;overflow:auto}.spm-table-card .table{margin:0;font-size:10.5px;min-width:1200px}.spm-table-card thead th{background:#f4fbf8;color:#627c67;text-transform:uppercase;letter-spacing:.02em;font-size:8.8px;font-weight:800;border-bottom:1px solid #e5f1f0;padding:9px 8px;white-space:nowrap}.spm-table-card tbody td{padding:9px 8px;vertical-align:middle;border-color:#eef5f2;color:#365552;white-space:nowrap}.spm-name{font-weight:750;color:#254744}.spm-frequency-pill{display:inline-flex;padding:4px 8px;border-radius:999px;background:#f8f6f5;color:#45bfb3;font-size:9px;font-weight:700}.spm-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:750}.spm-status.due{background:#fbe9e3;color:#c7441f}.spm-status.overdue{background:#fbece8;color:#c1583a}.spm-status.upcoming{background:#eef9f8;color:#43c0b3}.spm-status.paused{background:#eff2f1;color:#68807e}.spm-status.completed{background:#e6f6e9;color:#2a7639}.spm-auto{display:inline-flex;align-items:center;gap:4px;font-size:9.5px;font-weight:650}.spm-auto.yes{color:#2a7639}.spm-auto.no{color:#8ca09e}.spm-actions{display:flex;align-items:center;gap:5px}.spm-action-btn{border-radius:7px;font-size:10px;padding:5px 8px}.spm-table-footer{display:flex;justify-content:space-between;align-items:center;padding:9px 10px;border-top:1px solid #edf4f1;background:#fbfefd;font-size:10px;color:#809492}.spm-history-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.spm-history-head h5{margin:0;font-size:15px;font-weight:800;color:#294a47}.spm-history-table{font-size:10.5px}.spm-history-table thead th{background:#f6fbf9;font-size:9px;text-transform:uppercase;color:#68817e}.spm-history-table td,.spm-history-table th{padding:8px}.spm-history-badge{font-size:9px;border-radius:999px;padding:3px 7px;background:#e6f6e9;color:#2a7639;font-weight:750}.spm-modal .modal-content{border:0;border-radius:16px;box-shadow:0 24px 70px rgba(25,53,43,.22)}.spm-modal .modal-header{border-bottom:1px solid #edf4f1;padding:16px 20px}.spm-modal .modal-body{padding:18px 20px}.spm-modal .modal-footer{border-top:1px solid #edf4f1;padding:12px 20px}.spm-modal .form-label{font-size:11px;font-weight:700;color:#4b6966;margin-bottom:5px}.spm-modal .form-control,.spm-modal .form-select{border-radius:9px;min-height:39px;font-size:12px}.spm-payment-total{border-radius:11px;background:#f7fefc;border:1px solid #e9f8f6;padding:12px 14px;display:flex;justify-content:space-between;align-items:center}.spm-payment-total strong{font-size:18px;color:#274946}.spm-empty{text-align:center;padding:25px 10px;color:#8ca190}.spm-empty i{font-size:28px;display:block;margin-bottom:6px}.spm-split-hint{font-size:10px;color:#7f9483}.spm-plan-menu .dropdown-menu{min-width:160px}.spm-plan-menu .dropdown-item{font-size:11px;padding:7px 10px}.spm-plan-menu .dropdown-item i{width:18px}
@media(max-width:1399.98px){.spm-inline-filters{flex:1}.spm-search-wrap{min-width:190px}.spm-table-card .table{min-width:1120px}}
@media(max-width:1199.98px){.spm-control-row{align-items:flex-start}.spm-inline-filters{width:100%}.spm-date-filter-row{flex-wrap:wrap}.spm-chart,.spm-category-chart,.spm-category-bars{min-height:225px}}
@media(max-width:767.98px){.spm-page-head{align-items:flex-start;flex-direction:column}.spm-page-head>div:last-child{width:100%}.spm-page-head .btn{flex:1}.spm-layout-badge{display:none}.spm-summary-copy strong{font-size:18px}.spm-inline-filters{display:grid;grid-template-columns:1fr 1fr}.spm-search-wrap{grid-column:1/-1;min-width:0}.spm-tabs{width:100%}.spm-tab{flex:1}.spm-date-filter-row .form-control{flex:1;width:auto}.spm-table-head,.spm-history-head{align-items:flex-start;flex-direction:column}.spm-card .card-body{padding:13px}.spm-quick-grid{grid-template-columns:1fr 1fr}}
@media(max-width:575.98px){.spm-inline-filters{grid-template-columns:1fr}.spm-search-wrap{grid-column:auto}.spm-quick-grid{grid-template-columns:1fr}.spm-summary-card .card-body{padding:13px}.spm-ring{width:42px;height:42px;flex-basis:42px}.spm-modal .modal-dialog{margin:8px}}

/* Compact one-line controls + equal analytics cards */
@media (min-width:1200px){
  .spm-controls-one-line{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding-bottom:2px;scrollbar-width:thin}
  .spm-controls-one-line .spm-status-tabs{flex-wrap:nowrap;flex:0 0 auto}
  .spm-controls-one-line .spm-inline-filters{flex-wrap:nowrap;flex:1 0 auto;justify-content:flex-end;min-width:max-content}
  .spm-controls-one-line .spm-inline-filters .form-select{min-width:118px;width:118px}
  .spm-controls-one-line .spm-search-wrap{min-width:200px;width:200px}
  .spm-date-inline{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:10px;color:#829896}
  .spm-date-inline .form-control{width:128px;min-width:128px}
}
.spm-date-inline{display:flex;align-items:center;gap:6px;font-size:10.5px;color:#89a08e}
.spm-date-inline .form-control{height:36px;border-radius:9px;font-size:10.5px}
.spm-analytics-row>.col-xl-4{display:flex}
.spm-analytics-row .spm-card{width:100%}
.spm-upcoming-wide .spm-upcoming-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0 16px}
.spm-upcoming-wide .spm-upcoming-item{min-width:0}
@media(max-width:1199.98px){.spm-date-inline{width:100%;flex-wrap:wrap}.spm-date-inline .form-control{flex:1;min-width:140px}.spm-upcoming-wide .spm-upcoming-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767.98px){.spm-upcoming-wide .spm-upcoming-list{grid-template-columns:1fr}}

.spm-table-controls{margin:14px 0 16px;padding:12px 0;border-top:1px solid #edf5f2;border-bottom:1px solid #edf5f2;}

/* Advanced recurring payments: cash forecast, auto-post split and overdue controls */
.spm-cash-requirement-card .card-body{padding:15px 16px}.spm-cash-window{border:1px solid #e8f4f3;border-radius:12px;padding:13px 14px;background:linear-gradient(115deg,#fbfdff,#f8fefc);display:flex;align-items:center;justify-content:space-between;gap:16px;height:100%}.spm-cash-window>div:first-child span{display:block;font-size:10.5px;color:#698683}.spm-cash-window>div:first-child strong{display:block;font-size:20px;line-height:1.1;color:#1a3835;margin:4px 0}.spm-cash-window>div:first-child small{font-size:9.5px;color:#8ca2a0}.spm-cash-split{min-width:135px;border-left:1px solid #e8f4f3;padding-left:13px;display:grid;gap:6px}.spm-cash-split span{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:9.5px;color:#78927d}.spm-cash-split b{font-size:10px;color:#294c48}.spm-split-box{border:1px solid #e7f3f2;border-radius:11px;background:#f9fefc;padding:12px}.spm-split-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.spm-split-title strong{font-size:11px;color:#365552}.spm-split-title span{font-size:9.5px;color:#8aa18f}.spm-action-overdue{border-color:#f2cec4!important}.spm-dropdown-danger{color:#bf5c40!important}.spm-overdue-hint{display:block;font-size:8.8px;color:#bf5c40;margin-top:2px}.spm-mode-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:700;background:#f8f6f5;color:#4bc0b4}.spm-mode-badge.cash{background:#e9f7ec;color:#297438}.spm-mode-badge.split{background:#effaf9;color:#56c7bb}.spm-mode-badge.account{background:#f8f6f5;color:#4bc0b4}
@media(max-width:767.98px){.spm-cash-window{align-items:flex-start;flex-direction:column}.spm-cash-split{width:100%;border-left:0;border-top:1px solid #e8f4f3;padding-left:0;padding-top:9px}.spm-split-title{align-items:flex-start;flex-direction:column}}
