*{box-sizing:border-box}body{margin:0;background:#f3f6fa;color:#172b44;font:15px system-ui,sans-serif}button,input,select{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border:0;border-radius:9px;padding:10px 16px;background:#087f8c;color:#fff;cursor:pointer;text-decoration:none}button:hover,.button:hover{filter:brightness(.94)}button:disabled{opacity:.5;cursor:wait}button.secondary{background:#e6eff3;color:#254659}button.danger{background:#a93146}input,select{width:100%;padding:11px;border:1px solid #ced8e3;border-radius:8px;background:white}label{display:grid;gap:7px;font-size:13px;color:#52647a}aside{position:fixed;width:245px;height:100dvh;background:#112940;color:#c8d7e6;padding:24px 15px;overflow:auto}aside h2{font-size:21px;color:white;margin:0 8px}aside p{font-size:12px;margin:7px 8px 25px}nav{display:grid;gap:5px}nav button{text-align:left;justify-content:flex-start;background:none;color:#c8d7e6}nav button.active{background:#087f8c;color:white}main{margin-left:245px;padding:32px;max-width:1800px}header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}h1{margin:7px 0;font-size:27px}h3{margin-top:0}.muted{color:#6c7e90}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.card,.panel{border:1px solid #e1e8ef;background:white;border-radius:14px;padding:22px}.card strong{display:block;font-size:30px;margin-top:10px}.panel{margin-bottom:20px;overflow:auto}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.panel-title h3{margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px;white-space:nowrap}th,td{padding:14px 10px;text-align:left;border-bottom:1px solid #e7edf3}th{font-size:12px;color:#62778e}td.actions{display:flex;gap:7px}td.actions button,td.actions a{min-height:36px;padding:7px 11px;font-size:12px}.badge{display:inline-block;border-radius:7px;padding:5px 9px;font-size:12px;background:#e3f3f1;color:#057365}.badge.bad{background:#ffe9ed;color:#a93146}.badge.warn{background:#fff3d8;color:#8c6200}.login{max-width:430px;margin:12vh auto;padding:32px;background:white;border-radius:18px;border:1px solid #dce5ee}.login form{display:grid;gap:18px}.error{color:#b12839}.empty{padding:30px;text-align:center;color:#6c7e90}.form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form .full{grid-column:1/-1}.form label.check{display:flex;align-items:center}.check input{width:auto}dialog{width:min(780px,calc(100vw - 24px));max-height:90dvh;border:0;border-radius:18px;padding:26px;color:#172b44}dialog::backdrop{background:#11294080}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.dialog-heading h3{margin:0}.form-actions{display:flex;gap:10px;grid-column:1/-1;margin-top:8px}dl{display:grid;grid-template-columns:1fr 1fr;gap:15px}dt{font-size:12px;color:#6c7e90}dd{margin:5px 0;overflow-wrap:anywhere}#toast{position:fixed;right:20px;bottom:20px;background:#112940;color:white;padding:16px;border-radius:12px;z-index:9999;max-width:90vw}.notice{background:#e8f7f7;border:1px solid #bee4e6;border-radius:12px;padding:16px;line-height:1.6}.tenant-logo{width:42px;height:42px;object-fit:contain;margin-right:10px;vertical-align:middle}.toolbar{display:flex;gap:12px;margin-bottom:16px}.toolbar input{max-width:360px}a{color:#087f8c}.status-message{white-space:normal;max-width:230px}code{font-size:13px}@media(max-width:900px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){aside{position:static;width:auto;height:auto;padding:18px}aside p{margin-bottom:15px}nav{display:flex;overflow:auto}nav button{white-space:nowrap;flex-shrink:0}main{margin:0;padding:18px}header{align-items:flex-start;flex-wrap:wrap}.form,dl{grid-template-columns:1fr}.card,.panel{padding:16px}.cards{gap:10px}h1{font-size:24px}dialog{padding:18px}.form-actions button{flex:1}}

textarea{font:inherit;width:100%;padding:11px;border:1px solid #ced8e3;border-radius:8px;resize:vertical}.badge:empty{display:none}

.password-field{position:relative;display:block;width:100%;min-width:0}
.password-field input{width:100%;box-sizing:border-box;padding-right:52px}
.password-field button.password-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:42px;height:38px;padding:8px;margin:0;background:transparent;color:#52647a;border:0;border-radius:6px;cursor:pointer}
.password-field button.password-toggle:hover{background:#edf3f7}
.password-field button.password-toggle:focus-visible{outline:2px solid #087f8c;outline-offset:1px}
.password-toggle svg{width:22px;height:22px;pointer-events:none}

.license-proof-image{display:block;max-width:100%;max-height:72dvh;margin:auto;object-fit:contain}.license-proof-pdf{display:block;width:100%;height:70dvh;border:0}
