/* MAssist Admin Hub v0.1 - fully scoped frontend interface */
.mah-shell{--mah-ink:#45342f;--mah-muted:#8b7a73;--mah-line:#eee6df;--mah-gold:#bc9a68;--mah-cream:#fffaf7;--mah-pink:#f7e4e7;--mah-paper:#fff;--mah-bg:#f8f6f4;font:14px/1.48 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--mah-ink);width:100vw!important;max-width:none!important;min-height:100vh;margin-left:calc(50% - 50vw)!important;margin-right:0!important;background:var(--mah-bg);letter-spacing:0}
.mah-shell *, .mah-shell *:before,.mah-shell *:after{box-sizing:border-box}.mah-shell a{text-decoration:none;color:inherit}.mah-shell h1,.mah-shell h2,.mah-shell h3,.mah-shell p{margin:0}.mah-shell h1,.mah-shell h2{letter-spacing:-.035em}.mah-shell h1{font-size:clamp(26px,2.5vw,34px);font-weight:750}.mah-shell h2{font-size:17px;font-weight:740}.mah-shell img{max-width:100%}.mah-shell button{cursor:pointer}.mah-shell button,.mah-shell input,.mah-shell select,.mah-shell textarea{font:inherit}.mah-shell button:focus-visible,.mah-shell a:focus-visible,.mah-shell input:focus-visible,.mah-shell textarea:focus-visible,.mah-shell select:focus-visible{outline:2px solid var(--mah-gold);outline-offset:2px}.mah-ico{flex-shrink:0;display:inline-block;vertical-align:middle}.mah-screen{min-height:100vh;display:flex;align-items:stretch}.mah-sidebar{position:relative;z-index:30;flex:0 0 244px;width:244px;min-height:100vh;padding:28px 15px 19px;background:#fff;display:flex;flex-direction:column;border-right:1px solid #f0e8e3}.mah-logo{padding:8px 15px 34px;display:flex;flex-direction:column;gap:5px;align-items:flex-start}.mah-logo img{width:155px;height:54px;object-fit:contain;object-position:left center}.mah-logo span{font-size:8.5px;letter-spacing:.29em;color:#c0a690;font-weight:800}.mah-nav{display:flex;flex-direction:column;gap:6px}.mah-nav-label{font-size:10px;font-weight:780;letter-spacing:.14em;color:#a8a2a0;margin:25px 15px 9px}.mah-nav-item{border-radius:11px;padding:11px 13px;display:flex;align-items:center;gap:13px;color:#81756e!important;font-weight:590;font-size:13px;transition:background .15s,color .15s}.mah-nav-item:hover{background:#f9f3f0;color:#4b3a36!important}.mah-nav-item.is-active{background:#f9e9e7;color:#63463c!important;font-weight:760;position:relative}.mah-nav-item.is-active:before{content:'';position:absolute;left:0;top:10px;bottom:10px;width:3px;background:#bd986d;border-radius:3px}.mah-nav-item.is-active .mah-ico{color:#b08b64}.mah-sidebar-bottom{margin-top:auto;border-top:1px solid var(--mah-line);padding:20px 7px 3px;display:flex;gap:10px;align-items:center;overflow:hidden}.mah-avatar,.mah-client-initial{width:36px;height:36px;min-width:36px;background:#f2d6d9;border-radius:12px;display:grid;place-items:center;font-size:14px;font-weight:800;color:#754d4b}.mah-sidebar-bottom strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.mah-sidebar-bottom small{display:block;font-size:10px;color:#9a8b84}.mah-content{min-width:0;flex:1;display:flex;flex-direction:column}.mah-topbar{height:72px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--mah-line);padding:0 39px;gap:15px}.mah-topbar-label{font-size:12px;font-weight:740;letter-spacing:.01em}.mah-topbar-label span{color:#cabdb5;margin:0 8px}.mah-topbar-right{display:flex;align-items:center;gap:9px;color:#897e79;font-size:11px;font-weight:700}.mah-online-dot{display:inline-block;width:7px;height:7px;background:#56aa8c;border-radius:99px}.mah-icon-link{margin-left:12px;color:#9c8273!important}.mah-main{flex:1;padding:39px clamp(20px,3.4vw,52px) 54px;max-width:1740px;width:100%;margin:0 auto}.mah-footer{padding:16px clamp(20px,3.4vw,52px);font-size:10px;color:#a79c97}.mah-footer span{margin:0 9px}.mah-section-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.mah-section-top p{font-size:12px;color:var(--mah-muted);margin-top:8px;max-width:600px}.mah-heading-actions{display:flex;align-items:center;gap:8px}.mah-overline{font-size:10px;color:var(--mah-gold);font-weight:850;letter-spacing:.16em;display:block;margin-bottom:7px}.mah-btn{border:1px solid transparent;background:#fff;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 17px;border-radius:11px;font-weight:720;font-size:12px!important;line-height:1.2!important;min-height:40px;text-align:center;box-shadow:none!important}.mah-btn-primary{background:#4f3a35!important;color:#fff!important;border-color:#4f3a35!important}.mah-btn-primary:hover{background:#6a4e45!important}.mah-btn-light{background:#fff!important;color:#5a4640!important;border-color:#e9e0db!important}.mah-btn-light:hover{border-color:#c6ac92!important;background:#fffaf6!important}.mah-btn-outline{color:#5d473b!important;border-color:#c6ac92!important}.mah-btn-small{padding:8px 12px;min-height:33px}.mah-wide{width:100%;margin-top:17px}.mah-btn .mah-ico{width:15px;height:15px}.mah-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:26px}.mah-stat{background:#fff;border:1px solid var(--mah-line);border-radius:17px;padding:21px 20px 18px;min-height:147px;box-shadow:0 5px 25px #56423305}.mah-stat-row{display:flex;justify-content:space-between;align-items:center;color:#887b75;font-size:11px;font-weight:680;gap:10px}.mah-stat-row svg{color:#b99a80}.mah-stat strong{font-size:clamp(20px,2vw,29px);font-weight:820;display:block;letter-spacing:-.04em;margin-top:16px;white-space:nowrap}.mah-stat small{color:#a0958d;display:block;margin-top:3px;font-size:11px}.mah-two-col{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:20px;margin-bottom:24px}.mah-panel{background:#fff;border:1px solid var(--mah-line);border-radius:17px;padding:23px 23px 24px;min-width:0;box-shadow:0 3px 30px #6f524408}.mah-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.mah-panel-head a{color:#b18f70;font-size:11px;font-weight:730}.mah-list-row{display:flex;align-items:center;gap:11px;padding:13px 3px;border-top:1px solid #f4efec;min-width:0;transition:background .15s}.mah-list-row:hover{background:#fffbf8}.mah-list-icon{display:grid;place-items:center;border-radius:11px;background:#f7ebea;color:#b08b76;width:36px;height:36px;flex-shrink:0}.mah-list-title{min-width:0;flex:1}.mah-list-title strong,.mah-list-title small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mah-list-title strong{font-size:12px}.mah-list-title small{font-size:10px;color:#a3958d;margin-top:3px}.mah-list-amount{font-size:11px;font-weight:750;white-space:nowrap}.mah-tag{display:inline-flex;justify-content:center;align-items:center;min-height:24px;padding:4px 9px;border-radius:7px;background:#f5f1ed;color:#8e817b;font-size:10px;letter-spacing:.02em;font-weight:740;white-space:nowrap}.mah-tag-active,.mah-tag-paid,.mah-tag-accepted{background:#e7f4ea;color:#36775b}.mah-tag-sent,.mah-tag-partial{background:#eef2ff;color:#5776ad}.mah-tag-overdue,.mah-tag-rejected,.mah-tag-void,.mah-tag-cancelled{background:#fff0ed;color:#b65b57}.mah-tag-draft,.mah-tag-paused,.mah-tag-expired{background:#fff4df;color:#ad8546}.mah-muted{color:#948681;font-size:12px}.mah-renewals .mah-panel-head{margin-bottom:11px}.mah-table-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:19px}.mah-table-top strong{font-size:13px}.mah-table-scroll{overflow-x:auto;max-width:100%}.mah-table{width:100%;border-collapse:collapse;min-width:650px;font-size:12px}.mah-table th{text-align:left;font-size:10px;color:#94877e;font-weight:780;letter-spacing:.08em;text-transform:uppercase;background:#fcfaf8;padding:13px 14px;white-space:nowrap}.mah-table th:first-child{border-radius:8px 0 0 8px}.mah-table th:last-child{border-radius:0 8px 8px 0}.mah-table td{border-bottom:1px solid #f3eeeb;padding:15px 14px;vertical-align:middle}.mah-table tr:last-child td{border-bottom:none}.mah-table td strong{font-size:12px}.mah-table td small{display:block;font-size:10px;color:#a4938b;margin-top:4px}.mah-text-link{color:#ad876b!important;font-weight:760;white-space:nowrap;font-size:11px}.mah-empty{text-align:center;padding:45px 18px;display:flex;flex-direction:column;align-items:center;gap:5px;color:#8b7971}.mah-empty-mark{font-size:30px;color:#bb956e;margin-bottom:5px}.mah-empty strong{color:var(--mah-ink);font-size:14px}.mah-empty p{font-size:12px;color:#a39891}.mah-form-panel{max-width:1060px;padding:27px 30px}.mah-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}.mah-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;font-weight:700;color:#605149}.mah-full{grid-column:1/-1}.mah-field>span{display:block}.mah-field input,.mah-field select,.mah-field textarea,.mah-line input,.mah-template-row select{width:100%;border:1px solid #e9dfd8!important;border-radius:9px!important;background:#fff!important;color:#4b3a36!important;min-height:41px;padding:10px 12px!important;box-shadow:none!important;outline:0;font-size:12px!important;line-height:1.45!important}.mah-field textarea{min-height:90px;resize:vertical}.mah-field input::placeholder,.mah-line input::placeholder{color:#b7aaa3}.mah-form-actions{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid #f0e8e3;margin-top:28px;padding-top:20px}.mah-form-separator{display:flex;align-items:center;gap:10px;color:#6e5749;grid-column:1/-1;border-bottom:1px solid #efe7e1;padding:16px 0 13px;margin:9px 0 0;font-size:13px}.mah-form-separator:first-child{padding-top:0;margin:0}.mah-form-separator svg{color:#bd9c75}.mah-form-separator span{margin-left:auto;font-size:10px;color:#ac9f98}.mah-template-row{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:15px 0}.mah-template-row label{font-size:11px;font-weight:700;color:#6e5e54;display:flex;align-items:center;gap:9px}.mah-template-row select{width:240px}.mah-template-row span{font-size:10px;color:#ad9e94}.mah-line-head,.mah-line{display:grid;grid-template-columns:minmax(220px,1fr) 70px 115px 115px 26px;align-items:center;gap:10px}.mah-line-head{background:#fbf8f6;border-radius:8px;padding:10px 8px;font-size:9px;letter-spacing:.08em;color:#a08d81;font-weight:770;text-transform:uppercase}.mah-lines{display:flex;flex-direction:column}.mah-line{padding:11px 3px;border-bottom:1px solid #f0ebe7}.mah-line-main{display:flex;flex-direction:column;gap:5px}.mah-line-main input:first-child{font-weight:650}.mah-line-main input:nth-child(2){font-size:11px!important}.mah-line-amount{font-weight:760;font-size:12px;white-space:nowrap;text-align:right}.mah-remove-line{border:none;background:transparent;color:#ac8f8e;font-size:22px;font-weight:300;line-height:1;min-height:35px}.mah-remove-line:hover{color:#c43f4a}.mah-add-line{margin-top:14px;border:1px dashed #ceb79f;background:#fffaf8;color:#a27b58;border-radius:8px;font-weight:730;font-size:12px;padding:10px 14px;display:flex;align-items:center;gap:6px}.mah-add-line svg{width:16px;height:16px}.mah-summary-edit{display:grid;grid-template-columns:1fr 270px;gap:20px;margin-top:23px}.mah-summary-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}.mah-summary-controls .mah-field:first-child{grid-column:1/-1}.mah-live-totals{background:#fcf8f4;border:1px solid #f0e5df;border-radius:12px;padding:15px 17px;display:flex;flex-direction:column;gap:9px}.mah-live-totals>div{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px}.mah-live-totals span{color:#9a8b82}.mah-live-grand{padding-top:13px;border-top:1px solid #e7dcd5;margin-top:3px}.mah-live-grand strong{font-size:18px}.mah-notice{border-radius:10px;background:#eff7ee;border:1px solid #d2e7d0;padding:12px 15px;margin-bottom:20px;color:#42744a;font-weight:620;font-size:12px}.mah-notice-error{background:#fff0ed;border-color:#f0c8be;color:#a9534e}.mah-document-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:24px;flex-wrap:wrap}.mah-toolbar-left,.mah-toolbar-right{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.mah-toolbar-left>span:nth-child(2){font-weight:800;margin-left:9px}.mah-toolbar-right form{display:inline-flex}.mah-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}.mah-detail-grid .mah-panel{align-self:start}.mah-detail-grid form{margin-top:6px}.mah-detail-grid .mah-form-grid{gap:12px}.mah-inline-form{display:flex;align-items:end;gap:10px}.mah-inline-form .mah-field{flex:1}.mah-payment-summary{display:flex;justify-content:space-between;align-items:center;gap:15px;border-radius:10px;background:#fcf8f5;padding:14px 16px;margin:10px 0 14px;font-size:12px}.mah-payment-summary strong{font-size:14px}.mah-payment-history{border-top:1px solid #eee5e0;padding-top:12px;margin-top:15px}.mah-payment-history>strong{font-size:12px}.mah-payment-history>div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;font-size:11px}.mah-payment-history small{color:#a19188}.mah-caution{border:1px solid #f0dfbf;background:#fffaf0;padding:16px 19px;border-radius:12px;margin-top:22px;color:#886e4a;font-size:12px;line-height:1.6}.mah-access{padding:30px;border:1px solid #eadbc8;border-radius:14px;background:#fff9f6;max-width:600px;margin:30px auto;font:14px Arial;color:#4b3a36}.mah-access a{display:inline-block;margin-top:12px;text-decoration:underline}.mah-menu-toggle,.mah-sidebar-overlay{display:none}
/* printable commercial document */
.mah-print-area{background:#fff;max-width:940px;margin:0 auto;border:1px solid #eadfd6;box-shadow:0 10px 40px #4b3a3610;padding:clamp(25px,4.2vw,58px);font-size:12px;color:#463833;line-height:1.65;letter-spacing:0;overflow-wrap:anywhere}.mah-doc-head{display:flex;justify-content:space-between;gap:25px;align-items:flex-start;padding-bottom:28px;border-bottom:2px solid #bda27e}.mah-doc-brand{display:flex;flex-direction:column;align-items:flex-start;gap:5px;max-width:50%}.mah-doc-brand .mah-doc-logo{max-width:175px;max-height:65px;object-fit:contain;object-position:left}.mah-doc-brand strong{display:block;font-size:12px}.mah-doc-brand small{font-size:10px;color:#96867c}.mah-doc-title{text-align:right}.mah-doc-title>span{letter-spacing:.16em;color:#ba9873;font-size:10px;font-weight:850}.mah-doc-title h2{font-size:22px;line-height:1.25;margin-top:5px;letter-spacing:-.025em}.mah-doc-meta{display:flex;justify-content:space-between;gap:24px;margin:32px 0 32px;font-size:11px}.mah-doc-meta>div:first-child{max-width:52%}.mah-doc-meta>div:first-child strong{font-size:14px;display:block;margin-bottom:5px}.mah-label{font-size:9px!important;font-weight:870;color:#b49673!important;letter-spacing:.12em;display:block;margin-bottom:9px}.mah-doc-date{min-width:210px;display:flex;flex-direction:column;gap:7px}.mah-doc-date>div{display:flex;gap:15px;justify-content:space-between}.mah-doc-date span{color:#9d8d84}.mah-doc-date strong{font-size:11px;text-align:right}.mah-doc-subject{font-size:15px!important;margin:0 0 14px!important}.mah-doc-items{border-collapse:collapse;width:100%;font-size:11px;table-layout:fixed}.mah-doc-items th{text-align:left;background:#faf4ef;padding:12px 10px;color:#8f735b;font-size:9px;letter-spacing:.08em}.mah-doc-items th:nth-child(1){width:54%}.mah-doc-items th:nth-child(2){width:10%}.mah-doc-items th:nth-child(3){width:18%}.mah-doc-items th:nth-child(4){width:18%}.mah-doc-items td{padding:16px 10px;border-bottom:1px solid #f0e9e5;vertical-align:top}.mah-doc-items td:nth-child(n+2),.mah-doc-items th:nth-child(n+2){text-align:right}.mah-doc-items td strong{display:block;line-height:1.4}.mah-doc-items small{display:block;color:#9a8c83;margin-top:4px;font-size:10px}.mah-doc-bottom{display:grid;grid-template-columns:1fr 260px;gap:32px;padding-top:33px}.mah-doc-left{font-size:11px}.mah-doc-left p{white-space:normal;margin:0 0 20px!important;color:#827067}.mah-doc-totals{display:flex;flex-direction:column;gap:9px}.mah-doc-totals>div{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:11px}.mah-doc-totals span{color:#9c8a80}.mah-doc-totals strong{font-weight:780;white-space:nowrap}.mah-doc-totals .mah-doc-total{margin-top:8px;padding:15px 0;border-top:2px solid #bfa58b;align-items:flex-end}.mah-doc-total strong{font-size:20px}.mah-doc-total span{font-size:10px;font-weight:800;color:#6c5547}.mah-doc-footer{margin-top:38px;padding-top:18px;border-top:1px solid #f0e6df;display:flex;justify-content:space-between;gap:10px;color:#aa9687;font-size:10px}.mah-print-actions{display:flex;justify-content:center;gap:12px;margin:22px 0}.mah-print-mode .mah-screen{display:block;background:#f8f6f4;min-height:100vh;padding:25px}.mah-print-mode .mah-print-area{max-width:850px}
@media(max-width:1190px){.mah-sidebar{width:211px;flex-basis:211px}.mah-topbar{padding:0 27px}.mah-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.mah-two-col{grid-template-columns:1fr}.mah-stat strong{font-size:27px}.mah-stat{min-height:130px}}
@media(max-width:800px){.mah-shell{overflow-x:clip}.mah-sidebar{position:fixed;top:0;left:0;bottom:0;min-height:0;width:255px;transform:translateX(-105%);transition:transform .22s;box-shadow:8px 0 40px #45342f1f}.mah-shell.mah-open .mah-sidebar{transform:translateX(0)}.mah-menu-toggle{display:inline-block;border:1px solid var(--mah-line);background:white;border-radius:9px;padding:7px 11px;margin-right:3px;color:#5d4940}.mah-sidebar-overlay{position:fixed;inset:0;background:#2c21198a;border:0;z-index:24;width:100vw;height:100vh}.mah-shell.mah-open .mah-sidebar-overlay{display:block}.mah-topbar{height:62px;padding:0 17px}.mah-main{padding:25px 16px 38px}.mah-section-top{flex-wrap:wrap;margin-bottom:22px}.mah-form-panel{padding:23px 18px}.mah-detail-grid{grid-template-columns:1fr}.mah-print-area{padding:25px}}
@media(max-width:560px){.mah-topbar-right span:not(.mah-online-dot){display:none}.mah-stats{gap:10px}.mah-stat{padding:17px 14px;min-height:119px}.mah-stat strong{font-size:clamp(17px,5vw,23px)}.mah-stat-row{font-size:10px}.mah-stat-row svg{width:16px}.mah-two-col{gap:14px}.mah-panel{padding:17px 14px;border-radius:14px}.mah-list-row .mah-tag{display:none}.mah-heading-actions{width:100%}.mah-heading-actions .mah-btn{width:100%}.mah-form-grid{grid-template-columns:1fr;gap:13px}.mah-form-separator{grid-column:1}.mah-summary-edit{grid-template-columns:1fr}.mah-summary-controls{grid-template-columns:1fr 1fr}.mah-line-head{display:none}.mah-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 28px;gap:9px}.mah-line-main{grid-column:1/-1}.mah-line input[data-mah-qty]{grid-column:1}.mah-line input[data-mah-price]{grid-column:2}.mah-line-amount{grid-column:1/3;text-align:left}.mah-remove-line{grid-column:3;grid-row:2/4}.mah-template-row{align-items:start;flex-direction:column}.mah-template-row label{width:100%;display:flex;flex-direction:column;align-items:start}.mah-template-row select{width:100%}.mah-template-row span{font-size:10px}.mah-form-actions{flex-wrap:wrap}.mah-form-actions .mah-btn{flex:1}.mah-doc-head{gap:8px}.mah-doc-title h2{font-size:17px}.mah-doc-meta{gap:10px}.mah-doc-date{min-width:115px}.mah-doc-bottom{grid-template-columns:1fr}.mah-doc-items{font-size:10px}.mah-doc-items th,.mah-doc-items td{padding:9px 4px}.mah-doc-footer{flex-direction:column}.mah-payment-summary{flex-direction:column;align-items:start}.mah-inline-form{align-items:stretch;flex-direction:column}.mah-inline-form .mah-btn{width:100%}.mah-print-mode .mah-screen{padding:0}.mah-print-mode .mah-print-area{padding:20px}}
@media print{body.mah-print-mode{background:#fff!important}body.mah-print-mode *{visibility:hidden!important}body.mah-print-mode .mah-print-area,body.mah-print-mode .mah-print-area *{visibility:visible!important}body.mah-print-mode .mah-print-area{position:absolute;top:0;left:0;width:100%!important;max-width:100%!important;box-shadow:none!important;border:0!important;margin:0!important;padding:12mm!important}body.mah-print-mode .mah-print-actions{display:none!important}body.mah-print-mode .mah-screen{padding:0!important}body.mah-print-mode .mah-doc-items tr{break-inside:avoid}body.mah-print-mode .mah-doc-bottom{break-inside:avoid}@page{size:A4;margin:8mm}}
/* Ensure third-party/Elementor SVG and demo navigation icons never expand sidebar. */
.mah-shell .mah-nav-item .mah-ico{width:18px!important;height:18px!important;min-width:18px;max-width:18px;max-height:18px;overflow:hidden}
