/* Small layout overrides kept separate so the main dashboard styles stay reusable. */
.alerts-area{display:flex;align-items:center;gap:8px;min-width:0;max-width:390px;margin-left:auto}
.topbar-alert{display:flex;align-items:center;gap:7px;min-width:0;padding:6px 8px 6px 10px;border:1px solid #8ed3a5;border-radius:7px;background:#e8f8ed;color:#14532d;font-size:12px;line-height:1.2}
.topbar-alert.error{border-color:#f0abab;background:#fff0f0;color:#9b1c1c}
.topbar-alert span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.flash-close{flex:0 0 auto;width:20px;height:20px;padding:0;border:0;border-radius:4px;background:transparent;color:inherit;font-size:17px;line-height:18px;cursor:pointer}
.flash-close:hover{background:rgba(20,83,45,.12)}
.inline-action{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.test-result{font-size:13px;font-weight:600}.test-result.success{color:#16773a}.test-result.error{color:#b42318}
.add-user-form>button{width:auto;justify-self:start;align-self:end}
.users-page{min-height:calc(100vh - var(--header-h) - var(--footer-h) - 36px);display:flex;flex-direction:column}
.users-page .pagination{margin-top:auto}
.users-page .pagination form{margin-left:0}
.pagination-counter{margin-left:auto}
.add-user-form{grid-template-columns:170px 220px 240px 210px 120px auto}
.required{color:var(--danger)}.add-user-form button:disabled{cursor:not-allowed;opacity:.52}
.user-actions{flex-wrap:wrap}.user-actions button{min-width:auto}
.compact-dialog{width:min(460px,100%)}
.confirm-dialog{position:relative;padding:18px 22px 17px}.confirm-dialog .dialog-close{position:absolute;top:9px;right:10px;width:32px;height:32px;padding:0;line-height:26px}.confirm-dialog h2{padding-right:38px}.confirm-countdown{margin:8px 0 12px}.confirm-actions{justify-content:center}.confirm-actions button{width:78px}
.logs-page{height:calc(100vh - var(--header-h) - var(--footer-h) - 50px);display:flex;flex-direction:column;min-height:0;overflow:hidden}
.logs-page-head{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px;flex:0 0 auto;margin-bottom:10px}
.logs-page-head h1{margin:0}.logs-toolbar{justify-self:center;align-items:center;flex-wrap:nowrap}.logs-day-control{min-width:0!important;display:flex!important;align-items:center;gap:7px;white-space:nowrap}.logs-day-control input{width:150px}
.logs-panel{flex:1 1 auto;min-height:0;max-height:none;padding:0;overflow:auto}.log-text{width:max-content;min-width:100%;min-height:100%;margin:0;padding:10px;white-space:pre;overflow:visible}
@media(max-width:1050px){.alerts-area{max-width:250px}.topbar-alert{padding:5px 7px}.users-page{min-height:auto}.users-page .pagination{margin-top:14px}}
@media(max-width:840px){.add-user-form{grid-template-columns:1fr}.logs-page{height:auto;min-height:calc(100vh - var(--header-h) - var(--footer-h));overflow:visible}.logs-page-head{grid-template-columns:1fr}.logs-page-head>span{display:none}.logs-toolbar{width:100%;justify-self:stretch;flex-wrap:wrap}.logs-panel{min-height:65vh}}
@media(max-width:720px){.alerts-area{display:none}.pagination-counter{margin-left:0}}
