/* M081 - tenant operational services, history, filters and reports. */
.m081-workday,.m081-finance{display:flex;flex-direction:column;gap:15px}
.m081-filter-panel{padding:16px;border:1px solid #b8dce2;border-radius:18px;background:linear-gradient(145deg,#fff,#eefaf8);box-shadow:0 6px 18px #084f5610}
.m081-filter-grid{display:grid;grid-template-columns:170px 185px minmax(180px,1fr);gap:12px;align-items:end}
.m081-filter-grid label{font-size:13px;color:#244d58;font-weight:750;display:flex;flex-direction:column;gap:5px}
.m081-filter-grid input,.m081-filter-grid select{width:100%;min-height:42px;padding:10px 11px;border:1px solid #bad8da;border-radius:12px;background:white;color:#133d47;font:inherit}
.m081-filter-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
.m081-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.m081-summary-card{border-radius:17px;background:linear-gradient(135deg,#e8f8fe,#d2ebf4);border:1px solid #b3d8e8;padding:14px 11px;display:flex;flex-direction:column;gap:3px;box-shadow:0 4px 12px #174d6910}
.m081-summary-card b{font-size:25px;color:#0b476d;overflow-wrap:anywhere}.m081-summary-card span{font-size:12px;color:#42657a;font-weight:750}
.m081-service-group{display:flex;flex-direction:column;gap:10px}
.m081-service-group h2{display:flex;gap:10px;align-items:center;font-size:18px;margin:4px 0;color:#124954}
.m081-service-group h2 small{font-size:13px;padding:4px 9px;background:#e2f4f5;border-radius:999px}
.m081-service-list{display:grid;gap:13px}
.m081-service-card{border:1px solid #c1dfe6;border-radius:19px;background:linear-gradient(125deg,white,#f4fbff);padding:15px;box-shadow:0 4px 15px #133f5820}
.m081-service-top{display:flex;align-items:start;gap:12px}
.m081-service-icon{display:flex;align-items:center;justify-content:center;border-radius:14px;background:#d9f4fb;color:#087da3;padding:10px;flex:0 0 45px;height:45px}
.m081-service-text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.m081-service-text b{font-size:16px;color:#103a5b;overflow-wrap:anywhere}
.m081-service-text span{font-size:14px;color:#426174;overflow-wrap:anywhere}
.m081-service-text small{font-size:12px;color:#657f8d}
.m081-service-meta{display:flex;gap:7px 14px;flex-wrap:wrap;color:#395b6a;font-size:12px;margin:12px 0;padding-top:10px;border-top:1px solid #dceaf0}
.m081-item-actions{display:flex;gap:7px;flex-wrap:wrap}
.m081-item-actions .btn{font-size:12px;padding:9px 12px}
.m081-day-close{border:1px solid #83beca;border-radius:16px;background:#e4f6f8;padding:13px;display:flex;gap:12px;justify-content:space-between;align-items:center}
.m081-day-close div{display:flex;flex-direction:column}.m081-day-close b{color:#115263}.m081-day-close small{color:#547b87;font-size:12px}
.m081-finance-ledger{background:white;padding:15px;border-radius:16px;border:1px solid #c7e5ea}
.m081-ledger-row{display:flex;flex-wrap:wrap;gap:8px 18px;padding:10px;border-bottom:1px solid #dce7ed;font-size:13px}
.m081-ledger-row b{min-width:100px}
.m081-finance-output{display:flex;flex-direction:column;gap:14px}
.m081-footer-actions{display:flex;gap:10px;flex-wrap:wrap}
.m081-report-screen .report-sheet{max-width:880px;margin:12px auto;border:2px solid #b7d5ec;border-radius:16px;background:#fff;box-shadow:0 6px 24px #1e508815;padding:22px}
.m081-report-screen .report-head{padding:12px;border-bottom:2px solid #1862a4}
.m081-report-screen .report-toolbar{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:720px){
 .m081-filter-grid{grid-template-columns:1fr 1fr}
 .m081-search-label{grid-column:span 2}
 .m081-summary-card b{font-size:22px}
 .m081-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .m081-service-top{flex-wrap:wrap}.m081-service-text{flex:1 1 130px}
 .m081-day-close{flex-wrap:wrap}
 .m081-report-screen .report-sheet{padding:12px}
}
@media print{.m081-report-screen .report-sheet{box-shadow:none;border:none}.m081-report-screen .report-toolbar{display:none}}

.m081-home-actions{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}
.m081-closing-preview{padding:15px 18px;border:1.5px solid #b3d3e8;background:linear-gradient(120deg,#fff,#f2faff);border-radius:16px}
.m081-closing-preview p{line-height:1.8}
.m081-closing-seller{display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px;padding:8px 0;border-bottom:1px solid #d8e9f0}
.m081-warning{padding:12px;border-radius:12px;background:#fff4dc;border:1px solid #e6c779;color:#754911}

/* M082: home cards and close-day entry follow Aleph's existing rounded teal design. */
.m082-today-heading{margin-top:20px}
.m082-day-summary{border-radius:22px;padding:18px 20px;background:linear-gradient(125deg,#fff,#e9f9f5);border-color:#bae4de}
.m082-home-closing{display:flex;align-items:center;justify-content:space-between;gap:13px;margin:14px 0 22px;border-radius:19px;padding:15px 17px;background:linear-gradient(120deg,#e5f8f6,#d5efed);border:1px solid #9fd7ce;box-shadow:0 5px 15px #09655a14}
.m082-closing-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.m082-closing-copy b{color:#14535b;font-size:16px}
.m082-closing-copy small{font-size:12px;color:#42717a;line-height:1.4}
.m082-closing-button{border:0;border-radius:13px;min-height:46px;padding:10px 16px;white-space:normal;text-align:center;background:linear-gradient(115deg,#048f81,#007467);color:white;font-weight:800;font-size:13px;box-shadow:0 5px 13px #007d7029;cursor:pointer}
.m082-closing-button:hover,.m082-closing-button:focus-visible{background:#00665e}
.m082-home-services,.m082-completed-drawer{margin:16px 0}
.m082-home-group-title{display:flex;align-items:center;gap:10px;margin:0 3px 11px}
.m082-home-group-title h2{font-size:16px;color:#16414d;margin:0}
.m082-home-group-title>span,.m082-completed-drawer summary b{font-size:13px;font-weight:800;background:#d8f3ec;color:#087369;border-radius:999px;min-width:28px;padding:5px 9px;text-align:center}
.m082-service-stack{display:flex;flex-direction:column;gap:11px}
.m082-service-card{width:100%;box-sizing:border-box;border-radius:21px;overflow:hidden;border:1px solid #b9e1dc;background:linear-gradient(120deg,#fff,#f2fcfa);box-shadow:0 5px 14px #174d4815;padding:13px 15px 12px;color:#173e49}
.m082-state-completed{border-color:#b8d6e9;background:linear-gradient(125deg,#fff,#f1f8ff)}
.m082-state-cancelled{border-color:#d3dcdf;background:linear-gradient(125deg,#fff,#f6f9fa)}
.m082-service-row{display:flex;align-items:center;gap:11px;min-width:0}
.m082-service-icon{display:flex;align-items:center;justify-content:center;flex:0 0 47px;width:47px;height:47px;background:linear-gradient(130deg,#17b5a3,#007b75);color:white;border-radius:15px;box-shadow:0 4px 10px #007e7330}
.m082-state-completed .m082-service-icon{background:linear-gradient(125deg,#189ee7,#086cb6)}
.m082-state-cancelled .m082-service-icon{background:linear-gradient(125deg,#91a4ae,#5f7985)}
.m082-service-icon .ui-icon{width:25px;height:25px;color:white}
.m082-service-detail{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.m082-service-detail strong{font-size:15px;font-weight:850;color:#113c4a;line-height:1.25;overflow-wrap:anywhere}
.m082-service-detail span{font-size:12px;color:#55747c;line-height:1.4;overflow-wrap:anywhere}
.m082-service-detail small{font-size:11px;color:#67848a;overflow-wrap:anywhere}
.m082-service-status{font-size:11px;font-weight:800;padding:7px 10px;border-radius:999px;background:#e0f8e8;color:#14744d;text-align:center;max-width:108px;overflow-wrap:anywhere}
.m082-state-pending .m082-service-status{background:#fff3da;color:#9a630b}
.m082-state-completed .m082-service-status{background:#e0f1ff;color:#0f659c}
.m082-state-cancelled .m082-service-status{background:#e8ecee;color:#627883}
.m082-service-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:11px;padding-top:11px;border-top:1px solid #dbe9e7}
.m082-action{appearance:none;border:1px solid #a9d6cf;border-radius:11px;background:white;padding:9px 13px;min-height:42px;font-size:12px;font-weight:800;color:#086f65;cursor:pointer}
.m082-action-primary{border-color:#007e76;background:#057f75;color:#fff}
.m082-action:hover,.m082-action:focus-visible{box-shadow:0 3px 10px #1e595c2a;filter:brightness(.98)}
.m082-empty{margin:0;border:1px dashed #b9dcda;border-radius:15px;padding:14px 16px;background:#f7fcfa;color:#65828a;font-size:13px}
.m082-completed-drawer{border:1px solid #bed9e8;border-radius:20px;background:linear-gradient(125deg,#eff8ff,#f8fcff);overflow:hidden}
.m082-completed-drawer>summary{list-style:none;display:flex;align-items:center;gap:11px;cursor:pointer;padding:13px 17px;font-size:15px;color:#174760;font-weight:850}
.m082-completed-drawer>summary::-webkit-details-marker{display:none}
.m082-completed-drawer>summary:before{content:"?";display:inline-block;color:#14779c;font-size:18px;transition:transform .15s}
.m082-completed-drawer[open]>summary:before{transform:rotate(90deg)}
.m082-completed-drawer>summary span{flex:1}
.m082-completed-drawer>summary small{font-size:10px;color:#64859a;font-weight:500}
.m082-completed-drawer .m082-service-stack{padding:0 12px 13px}
.m082-cancelled-drawer{border-color:#dae3e6;background:#f8fbfc}
.m082-cancelled-drawer>summary{color:#5c7280}
.m082-home-services+.m082-completed-drawer{margin-top:9px}
@media(max-width:540px){
 .m082-day-summary{padding:15px}
 .m082-home-closing{flex-wrap:wrap;padding:13px 14px}
 .m082-closing-button{width:100%}
 .m082-service-card{padding:12px}
 .m082-service-row{align-items:flex-start;flex-wrap:wrap}
 .m082-service-icon{flex-basis:43px;width:43px;height:43px}
 .m082-service-detail{flex:1 1 135px}
 .m082-service-status{max-width:100%;margin-left:54px}
 .m082-completed-drawer>summary small{display:none}
 .m082-action{flex:1 0 auto}
}

.m082-jump-completed{appearance:none;border:0;cursor:pointer;min-height:34px;font:inherit;font-size:11px;font-weight:800}
.m082-jump-completed:hover,.m082-jump-completed:focus-visible{background:#d8eefc;color:#085d98;box-shadow:0 0 0 2px #b5d5ee}
.m082-completed-drawer{scroll-margin-top:80px}

/* M083: practical daily movement beside the service agenda. */
.m083-today-movement{border-radius:23px;background:linear-gradient(132deg,#f8fffb,#e7f8f0);border:1px solid #a6dac6;box-shadow:0 6px 18px #0e725c17;padding:16px;margin:15px 0;overflow:hidden}
.m083-movement-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.m083-movement-heading>div{flex:1;min-width:0}
.m083-movement-heading h2{margin:0 0 5px;color:#075347;font-size:17px;font-weight:850}
.m083-movement-heading small{color:#587c71;font-size:12px;line-height:1.4;display:block}
.m083-primary-expense{appearance:none;border:0;border-radius:13px;background:linear-gradient(125deg,#078e71,#006c5a);color:#fff;font-size:13px;font-weight:850;min-height:46px;padding:11px 17px;cursor:pointer;box-shadow:0 4px 12px #087d632e}
.m083-movement-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:15px}
.m083-movement-totals>div{min-width:0;border:1px solid #b1ddca;border-radius:14px;padding:12px;background:#fff;display:flex;flex-direction:column;gap:8px}
.m083-movement-totals>div:last-child{background:#dcf7e9;border-color:#89d4af}
.m083-movement-totals span{font-size:12px;color:#51766a;font-weight:750}
.m083-movement-totals strong{font-size:18px;color:#074f40;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.m083-recent-expenses{display:flex;flex-direction:column;gap:6px;margin-top:12px}
.m083-recent-title{font-size:12px;font-weight:800;color:#375e54}
.m083-expense-line{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #cce9da;padding:6px 2px;color:#365e53;font-size:12px}
.m083-expense-line span{flex:1;min-width:0;overflow-wrap:anywhere}
.m083-expense-line b{flex:none;color:#9a5942;font-variant-numeric:tabular-nums}
.m083-movement-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:11px}
.m083-movement-foot small{font-size:11px;color:#638577;flex:1}
.m083-finance-link{border:1px solid #a3d6bf;border-radius:10px;color:#08735b;font-size:12px;font-weight:800;padding:9px 11px;background:#fff;cursor:pointer}
.m083-expense-form{display:flex;flex-direction:column;gap:8px}
.m083-expense-form label{font-size:14px;font-weight:750}
.m083-expense-form select,.m083-expense-form textarea{width:100%;border:1px solid #bdded1;border-radius:11px;padding:12px;background:#fff;color:#19463e;font:inherit;min-height:45px}
.m083-expense-form textarea{min-height:85px;resize:vertical}
.m083-expense-error{color:#a7492e;min-height:16px;font-size:12px}
@media(max-width:640px){
 .m083-movement-heading{flex-wrap:wrap;align-items:flex-start}
 .m083-primary-expense{width:100%;text-align:center}
 .m083-movement-totals{gap:6px}
 .m083-movement-totals>div{padding:10px 8px;gap:5px}
 .m083-movement-totals span{font-size:10px}
 .m083-movement-totals strong{font-size:14px;line-height:1.35}
}

/* M083: the whole commercial UI uses green shades, not the reference company's blues. */
.ui-pill.blue{background:#e1f6e9!important;color:#187550!important}
.ui-pill.neutral{background:#e6f2eb!important;color:#477763!important}
.m082-state-completed{background:linear-gradient(125deg,#fff,#edf9f1)!important;border-color:#a9d8b9!important}
.m082-state-completed .m082-service-icon{background:linear-gradient(130deg,#24b58b,#0b7961)!important;box-shadow:0 4px 10px #0a725b2c!important}
.m082-state-completed .m082-service-status{background:#d8f3e1!important;color:#0b7157!important}
.m082-completed-drawer{background:linear-gradient(120deg,#ecf8f0,#f7fcf8)!important;border-color:#b8dfc3!important}
.m082-completed-drawer>summary{color:#1d614b!important}
.m082-completed-drawer>summary:before{color:#128763!important}
.m082-completed-drawer>summary b{background:#c6eeda!important;color:#0a704e!important}
.m081-service-icon{background:#d7f4e4!important;color:#0f8365!important}
.m081-summary-card{background:linear-gradient(135deg,#eaf9ee,#d7efe0)!important;border-color:#b9ddc3!important;box-shadow:0 4px 12px #216c4612!important}
.m081-summary-card b{color:#0d6048!important}
.m081-summary-card span{color:#4e785f!important}
.m081-service-card{background:linear-gradient(125deg,#fff,#f5fcf7)!important;border-color:#b9ddc8!important;box-shadow:0 4px 15px #1c6b4817!important}
.m081-service-text b{color:#174a38!important}
.m081-service-text span,.m081-service-meta{color:#4e6e5a!important}
.m081-service-meta{border-top-color:#d8eadd!important}
.m081-day-close{background:#e5f7eb!important;border-color:#93cead!important}
.m081-day-close b{color:#125f47!important}
.m081-day-close small{color:#59816b!important}
.m081-filter-panel{background:linear-gradient(145deg,#fff,#eef9f1)!important;border-color:#b5dfc6!important}
.m081-filter-grid label{color:#245341!important}
.m081-filter-grid input,.m081-filter-grid select{border-color:#b5dac5!important;color:#164a3b!important}
.m081-finance-ledger{border-color:#b5dfc6!important}
.m081-ledger-row{border-color:#d4e9da!important}
.m15-bar{background:linear-gradient(110deg,#0da77a,#08705b)!important}
.m15-bar.expense{background:linear-gradient(110deg,#ab8b53,#7f6443)!important}
.m082-service-actions{border-color:#d5ecdc!important}
.m082-state-cancelled .m082-service-status{background:#e1eee5!important;color:#5e7363!important}

.saas-sync-warning{background:#fff9e5;border:1px solid #e7cc7b;border-radius:10px;color:#694e16;padding:10px 14px;margin:8px 15px;font-size:12px}
