:root{font-family:Inter,system-ui,sans-serif;color:#172b3a;background:#f6f8fa}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.shell{display:grid;grid-template-columns:224px 1fr;min-height:100vh}.sidebar{background:#152b3a;color:#fff;padding:24px 12px;display:flex;flex-direction:column;gap:6px}.brand{font-weight:700;font-size:20px;padding:4px 12px}.sub{color:#b5c4cf;font-size:12px;padding:0 12px 32px}.nav{border:0;background:transparent;color:#e4edf3;text-align:left;border-radius:8px;padding:12px 16px}.nav.active{background:#0f766e;color:white}.profile{margin-top:auto;padding:20px 12px;font-size:14px}.main{min-width:0}.top{background:white;padding:26px 32px;color:#526577;font-size:14px}.content{padding:32px;max-width:1500px}h1{font-size:28px;margin:0 0 10px}h2{font-size:20px;margin:0 0 20px}.muted{color:#526577}.row{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:32px 0}.card,.panel{background:white;border-radius:12px;padding:24px}.card strong{display:block;font-size:27px;margin:8px 0}.panel{margin-top:24px}.primary{background:#0f766e;color:white;border:0;border-radius:8px;padding:12px 18px}.secondary{background:white;color:#172b3a;border:1px solid #d7dfe7;border-radius:8px;padding:11px 18px}.danger{background:#b42318;color:white;border:0;border-radius:8px;padding:12px 18px}input,select{border:1px solid #d7dfe7;border-radius:8px;padding:11px;background:white;min-width:0}label{display:grid;gap:8px;color:#526577;font-size:14px}form{display:grid;gap:16px}.form-row{display:flex;gap:12px;flex-wrap:wrap}.form-row input,.form-row select{flex:1}.timer{font:500 32px ui-monospace,monospace}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}th{background:#edf2f5;color:#526577;font-weight:500}th,td{padding:16px;border-bottom:1px solid #edf2f5;white-space:nowrap}.notice{background:#e6f5f2;border-radius:12px;padding:24px;margin-top:32px}.error{color:#b42318}.login{max-width:420px;margin:10vh auto;background:white;padding:32px;border-radius:12px}.tag{background:#e6f5f2;color:#0f766e;border-radius:20px;padding:5px 10px;font-size:12px}@media(max-width:850px){.shell{display:block}.sidebar{position:static}.sub,.profile{display:none}.sidebar nav{display:flex;overflow:auto}.nav{white-space:nowrap}.cards{grid-template-columns:repeat(2,1fr)}.content{padding:20px}.top{padding:18px 20px}}@media(max-width:480px){.cards{grid-template-columns:1fr}.form-row{display:grid}.login{margin:24px}}
:root .edit-dialog{border:0;border-radius:12px;padding:28px;width:min(640px,calc(100% - 32px));max-height:calc(100vh - 48px);overflow:auto;color:#172b3a;box-shadow:0 20px 60px #172b3a40}.edit-dialog::backdrop{background:rgba(15,30,42,.55)}.edit-dialog h2{margin-top:0}.edit-dialog input:not([type=checkbox]),.edit-dialog select{width:100%}
:root button[data-period][aria-pressed="true"]{background:#e6f5f2;color:#0f766e;border-color:#0f766e}
.billing-fields:not([hidden]){display:grid;gap:16px}
:root .edit-dialog.invoice-dialog{width:min(980px,calc(100% - 32px))}
.edit-dialog textarea{font:inherit;border:1px solid #d7dfe7;border-radius:8px;padding:11px;min-height:65px;width:100%;resize:vertical}
.import-preview-rows{max-height:50vh;overflow:auto}.import-preview-rows td{white-space:normal;vertical-align:top;min-width:90px;overflow-wrap:anywhere}.import-preview-rows td:nth-child(2){min-width:240px;max-width:360px}.import-preview-rows dd{margin:4px 0 10px}.import-preview-rows dt{font-weight:600}
