* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: "Microsoft YaHei", sans-serif; background: #ecf0f5; color: #333; }
a { color: #3c8dbc; text-decoration: none; }
.login-wrap { min-height: 100%; display: flex; align-items: center; justify-content: center; background: #d2d6de; }
.login-box { width: 360px; background: #fff; padding: 24px; border-top: 3px solid #3c8dbc; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.login-box h3 { margin: 0 0 16px; }
.login-box input { width: 100%; height: 38px; margin: 0 0 12px; padding: 0 10px; border: 1px solid #d2d6de; }
.captcha-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.captcha-row input { flex: 1; width: auto; margin: 0; }
.captcha-row img { width: 150px; height: 44px; border: 1px solid #d2d6de; cursor: pointer; }
.login-box button, .btn { height: 34px; padding: 0 14px; border: 0; border-radius: 3px; background: #3c8dbc; color: #fff; cursor: pointer; }
.btn-danger { background: #dd4b39; }
.btn-default { background: #f4f4f4; color: #444; border: 1px solid #ddd; }
.wrapper { min-height: 100%; }
.main-header { height: 50px; background: #3c8dbc; color: #fff; display: flex; align-items: center; padding: 0 16px; position: fixed; left: 0; right: 0; top: 0; z-index: 10; }
.main-header .logo { width: 230px; font-weight: 700; }
.user-menu { margin-left: auto; position: relative; }
.user-menu summary { cursor: pointer; list-style: none; padding: 8px 12px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu-panel { position: absolute; right: 0; top: 36px; min-width: 130px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.user-menu-panel a { display: block; color: #333; padding: 10px 14px; white-space: nowrap; }
.user-menu-panel a:hover { background: #f4f4f4; }
.main-sidebar { position: fixed; top: 50px; left: 0; bottom: 0; width: 230px; background: #222d32; overflow: auto; }
.main-sidebar a { display: block; color: #b8c7ce; padding: 12px 16px; }
.main-sidebar a:hover, .main-sidebar a.active { background: #1e282c; color: #fff; }
.content-wrapper { margin: 50px 0 0 230px; padding: 16px; }
.box { background: #fff; border-top: 3px solid #d2d6de; box-shadow: 0 1px 1px rgba(0,0,0,.1); padding: 12px 16px 16px; }
.box h4 { margin: 0 0 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border: 1px solid #f4f4f4; padding: 8px; font-size: 13px; text-align: left; }
th { background: #f9f9f9; }
.form-inline input, .form-inline select { height: 32px; padding: 0 8px; border: 1px solid #d2d6de; margin: 0 8px 8px 0; }
.msg { margin: 0 0 12px; color: #00a65a; }
.err { margin: 0 0 12px; color: #dd4b39; }
.tag { padding: 2px 6px; border-radius: 2px; font-size: 12px; }
.tag-unused { background: #00a65a; color: #fff; }
.tag-used { background: #3c8dbc; color: #fff; }
.tag-revoked { background: #777; color: #fff; }
.ops form { display: inline-block; margin: 0 6px 6px 0; vertical-align: middle; }
.ops select, .ops input[type=date] { height: 28px; margin: 0 4px 0 0; }
.btn-ok { background: #00a65a; }
