:root{--ink:#182c3a;--muted:#546978;--nav:#142e40;--teal:#087d72;--bg:#f2f6f8;--line:#dbe5ea;--white:#fff;--error:#a42419}*{box-sizing:border-box}body{margin:0;color:var(--ink);font:14px/1.5 system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg)}a{color:#08695f}button,input,select,textarea{font:inherit}button,.button{cursor:pointer;background:white;border:1px solid #b9cad2;border-radius:7px;padding:9px 13px;display:inline-block;font-weight:650;text-decoration:none;color:var(--ink);white-space:nowrap}button:hover,.button:hover{background:#eef5f4}.primary{background:var(--teal);border-color:var(--teal);color:white}.primary:hover{background:#05675e}.button.primary{color:white}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #24a593;outline-offset:2px}h1,h2,p{margin:0 0 12px}h1{font-size:27px;line-height:1.2;letter-spacing:-.02em}h2{font-size:17px}small,.muted{color:var(--muted);font-size:12px}td small{display:block;margin-top:4px}.app{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;overflow:auto;background:var(--nav);padding:20px 14px;color:white;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;padding:3px 6px 23px;border-bottom:1px solid #ffffff20}.brand b{letter-spacing:.1em}.brand small{display:block;color:#b6cbd5;font-size:10px}.logo{width:45px;height:45px;background:#087d72;color:#fff;border-radius:11px;display:grid;place-items:center;font-size:21px;font-weight:800}.navtitle{font-size:10px;letter-spacing:.1em;color:#b6cbd5;margin:22px 10px 8px}.nav{color:#d0e0e7;text-decoration:none;border-radius:7px;padding:10px 12px;font-weight:550}.nav:hover,.nav.active{background:#28535b;color:white}.nav.active{box-shadow:inset 3px 0 #73dac8}.foot{margin-top:auto;padding-top:20px;color:#b6cbd5}.top{height:65px;background:#fff;border-bottom:1px solid var(--line);padding:0 25px;display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;top:0;z-index:4}.top form{margin:0}.top button{padding:6px 10px}.top .actions{justify-content:flex-end}#menu-toggle{display:none}.content{max-width:1500px;padding:22px 27px 40px;margin:auto}.heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:10px 0 20px;flex-wrap:wrap}.heading p{color:var(--muted);margin:6px 0}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px;margin-bottom:17px;box-shadow:0 3px 16px #152c3810;min-width:0}.panel h2{border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:16px}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:12px;margin-bottom:19px}.metric{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px;display:flex;gap:7px;flex-direction:column;min-width:0}.metric span{font-size:12px;color:var(--muted);font-weight:650}.metric strong{font-size:23px;line-height:1.25;overflow-wrap:anywhere}.metric small{font-size:11px}.notice{padding:12px 14px;border:1px solid #c7dfdf;background:#e9f4f1;border-radius:8px;margin-bottom:15px;color:#24534e}.notice.error{color:#8b2117;background:#fff0eb;border-color:#f2c6bb}.notice.success{color:#145b49}.gridform{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;align-items:start}.gridform label, label{display:flex;flex-direction:column;gap:5px;font-weight:600;color:var(--ink);font-size:13px}.gridform input:not([type=checkbox]),.gridform select,.gridform textarea,label input[type=search]{width:100%;min-width:0;padding:10px 11px;border:1px solid #aebfc8;border-radius:7px;background:white;color:var(--ink);font-weight:400}.gridform textarea{resize:vertical;min-height:110px}.wide{grid-column:1/-1}.check{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;grid-column:1/-1}.check input{width:18px;height:18px}fieldset{border:1px solid var(--line);border-radius:8px;min-width:0}.actions,.inline{display:inline-flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0}.inline .wide{display:inline}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}th{color:#415864;background:#edf3f6;font-size:11px;letter-spacing:.02em;white-space:nowrap;text-transform:uppercase}td,th{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}td{min-width:90px}td .button,td button{padding:5px 8px;font-size:12px;margin:2px}.tag{display:inline-block;padding:4px 9px;background:#e5edf2;border-radius:20px;font-size:11px;font-weight:700;color:#345264;white-space:nowrap}.tag.active,.tag.good,.tag.approved,.tag.paid,.tag.completed,.tag.verified{background:#dcf4ea;color:#126343}.tag.risk,.tag.overdue,.tag.reversed,.tag.rejected,.tag.terminated,.tag.missed{background:#fde8e3;color:#9c251b}.tag.pending,.tag.partial,.tag.signing,.tag.grace{background:#fff2d2;color:#784800}.textlink{font-weight:650;color:#096c62}.kv{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:8px;font-size:13px}.kv dt{color:var(--muted)}.kv dd{margin:0;font-weight:550;overflow-wrap:anywhere}.hash{font-family:monospace;word-break:break-all}.clauses{background:#f6f9fa;padding:17px;border:1px solid var(--line);border-radius:8px;font-size:14px;white-space:normal}.signature{width:160px;max-width:100%;border:1px solid var(--line)}#signature-pad{width:100%;max-width:720px;height:auto;background:white;touch-action:none;cursor:crosshair;border:2px dashed #7c929f;border-radius:8px}#signature-preview{max-width:300px;width:100%;border:1px solid var(--line)}.receipt{width:300px;max-width:100%;margin:0 auto;padding:17px;border:1px solid #b9c6cc;background:white;color:#111;text-align:center}.receipt h2{border:0}.receipt dl{text-align:left;border-block:1px dashed #aaa;padding:12px 0}.receipt svg{width:100%;height:auto}.auth{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:40px;padding:30px;background:linear-gradient(125deg,#142e40 0%,#142e40 40%,#f2f6f8 40%,#f2f6f8 100%)}.auth-cover{width:32%;color:white;max-width:350px}.auth-cover h1{font-size:40px;letter-spacing:.05em;margin-top:18px}.auth-card{max-width:650px;width:100%;background:#fff;padding:28px;border-radius:14px;border:1px solid var(--line);box-shadow:0 12px 40px #0b253344}.auth-card .gridform{grid-template-columns:1fr 1fr}.auth-card .gridform label:only-of-type{grid-column:1/-1}.auth-card p{margin-top:14px}.auth-card .notice{font-size:13px}label[hidden],div[hidden],img[hidden]{display:none!important}@media(max-width:850px){.app{grid-template-columns:1fr}.sidebar{display:none;position:fixed;top:0;left:0;width:240px;z-index:8}.sidebar.open{display:flex}#menu-toggle{display:block}.top{height:auto;min-height:60px;padding:12px}.content{padding:15px}.auth{flex-direction:column;background:#f2f6f8;padding:15px;gap:15px}.auth-cover{width:100%;max-width:650px;background:#142e40;padding:20px;border-radius:10px}.auth-cover h1{font-size:26px}.auth-cover p{margin:5px 0}.auth-card{padding:18px}}@media(max-width:540px){.gridform,.auth-card .gridform{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:10px}.metric strong{font-size:19px}.panel{padding:12px}.top .muted{display:none}.heading h1{font-size:22px}}

.brand-image,.brand-preview,.receipt-logo{object-fit:contain;background:#fff;border-radius:5px;display:block}.sidebar-image{width:54px;height:45px;flex:none}.auth-image{width:100%;height:auto;max-height:128px;padding:7px}.brand-preview{max-width:300px;width:100%;margin:8px 0;border:1px solid var(--line)}.receipt-logo{width:100%;max-height:85px;margin:0 auto 10px}.sidebar-image{background:white}.receipt-logo{object-fit:contain}
/* MUTAMARK official visual identity */
:root{--nav:#19385b;--teal:#087c59;--ink:#18344f;--bg:#f4f7f8;--line:#dbe4e8}a,.textlink{color:#08734f}.primary:hover{background:#066647}.nav.active{background:#285572;box-shadow:inset 3px 0 #25c48a}.auth-image{background:#fff;padding:18px;max-height:135px}.sidebar-image{width:54px;height:48px;padding:5px}.installer{min-height:100vh;background:#f4f7f8;padding:26px 14px}.install-wrap{max-width:950px;margin:auto}.install-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:19px 22px;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:22px}.install-head img{width:280px;max-width:55%;height:auto}.install-head small{display:block}.setup-form>.primary{padding:14px 25px;font-size:16px}.record-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.record-toolbar .button.active{background:#19385b;color:white}.tag.archived,.tag.suspended,.tag.hidden{background:#e7eaf1;color:#485565}details.control{margin-top:10px;border-top:1px solid var(--line);padding-top:10px}details.control summary{cursor:pointer;font-weight:650;color:#08734f}details.control .gridform{margin-top:10px}.brand .sidebar-image{object-fit:contain}

/* V3.2 direct record actions */
.row-controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:210px;max-width:420px}.row-controls .button{font-size:12px;line-height:1.25;padding:6px 9px;white-space:nowrap}.button.danger-outline{color:#a12622;border-color:#e8b2ad;background:#fff5f4}.button.danger-outline:hover{background:#fce2df}.danger-form button.primary{background:#a12622;border-color:#a12622;color:#fff}.tablewrap td:last-child{white-space:normal}.record-toolbar{flex-wrap:wrap}.row-controls .button.primary{color:white}

.notice.warning{background:#fff3da;color:#74430a;border-color:#f0d5a0}
