:root {
  --hec-ink: #17212b;
  --hec-muted: #687786;
  --hec-line: #dce3e8;
  --hec-bg: #f3f6f7;
  --hec-panel: #ffffff;
  --hec-green: #138a63;
  --hec-green-dark: #0d684b;
  --hec-blue: #2563a7;
  --hec-amber: #c78317;
}

html, body { letter-spacing: 0; }
body { color: var(--hec-ink); background: var(--hec-bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }

.main-header .logo { background: #102c25 !important; border-right: 1px solid rgba(255,255,255,.08); font-size: 16px; text-align: left; padding-left: 20px; }
.main-header .navbar { background: #fff !important; border-bottom: 1px solid var(--hec-line); box-shadow: 0 1px 3px rgba(23,33,43,.05); }
.main-header .navbar .nav > li > a, .main-header .navbar .sidebar-toggle { color: #43515e !important; }
.main-header .navbar .nav > li > a:hover, .main-header .navbar .sidebar-toggle:hover { background: #edf5f2 !important; color: var(--hec-green) !important; }
.main-sidebar { background: #14362e !important; }
.sidebar-menu > li.header { color: #82a69a; background: transparent; font-size: 11px; text-transform: uppercase; padding-top: 18px; }
.sidebar-menu > li > a { color: #d5e2de !important; border-left: 3px solid transparent !important; padding: 11px 15px; }
.sidebar-menu > li:hover > a, .sidebar-menu > li.active > a { background: #1d4b40 !important; color: #fff !important; border-left-color: #4fd1a1 !important; }
.sidebar-menu .treeview-menu { background: #102f28 !important; padding: 5px 0 7px; }
.sidebar-menu .treeview-menu > li > a { color: #a9c4bb; padding: 8px 15px 8px 42px; }
.sidebar-menu .treeview-menu > li.active > a, .sidebar-menu .treeview-menu > li > a:hover { color: #fff; }
.sidebar-form { border: 0 !important; margin: 12px !important; }
.sidebar-form input, .sidebar-form .btn { background: #20483e !important; color: #dbe9e5 !important; border: 0 !important; height: 36px; }
.user-panel { padding: 16px 14px 10px; }

.content-wrapper { background: var(--hec-bg); }
.content { padding: 16px; }
#ribbon { padding: 12px 16px 0; }
.panel, .box { border: 1px solid var(--hec-line); border-radius: 6px; box-shadow: 0 1px 2px rgba(23,33,43,.04); }
.panel-intro > .panel-heading { background: #fff; border-bottom: 1px solid var(--hec-line); padding: 14px 16px 0; }
.panel-intro > .panel-heading .nav-tabs > li > a { background: transparent; border: 0; color: var(--hec-muted); padding: 10px 14px; }
.panel-intro > .panel-heading .nav-tabs > li.active > a { color: var(--hec-green); border-bottom: 2px solid var(--hec-green); }
.panel-body { padding: 16px; }

.btn { border-radius: 5px; font-weight: 500; }
.btn-success { background: var(--hec-green); border-color: var(--hec-green); }
.btn-success:hover, .btn-success:focus { background: var(--hec-green-dark); border-color: var(--hec-green-dark); }
.btn-primary { background: var(--hec-blue); border-color: var(--hec-blue); }
.btn-info { background: #287f91; border-color: #287f91; }
.btn-warning { background: var(--hec-amber); border-color: var(--hec-amber); }
.form-control { border-color: #cfd8de; border-radius: 5px; box-shadow: none; }
.form-control:focus { border-color: var(--hec-green); box-shadow: 0 0 0 2px rgba(19,138,99,.12); }
.fixed-table-container { border-color: var(--hec-line); border-radius: 5px; }
.bootstrap-table .table > thead > tr > th { background: #eef3f4; color: #43515e; border-color: var(--hec-line); font-weight: 600; }
.bootstrap-table .table > tbody > tr > td { border-color: #e6ebee; vertical-align: middle; }
.bootstrap-table .table > tbody > tr:hover { background: #f3faf7; }
.pagination > .active > a, .pagination > .active > span { background: var(--hec-green); border-color: var(--hec-green); }
.modal-content { border: 0; border-radius: 7px; box-shadow: 0 12px 32px rgba(23,33,43,.2); }

.hec-login-page { min-height: 100%; margin: 0; background: #eef3f1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.hec-login-page:before { content: ""; position: fixed; inset: 0; background: linear-gradient(120deg, #102f28 0 42%, transparent 42%); z-index: 0; }
.hec-login-shell { position: relative; z-index: 1; width: min(920px, 100%); min-height: 540px; display: grid; grid-template-columns: 1.08fr .92fr; background: #fff; border: 1px solid rgba(16,47,40,.12); border-radius: 8px; overflow: hidden; box-shadow: 0 22px 55px rgba(16,47,40,.18); }
.hec-login-brand { background: #14362e; color: #fff; padding: 58px 52px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.hec-brand-mark { width: 64px; height: 64px; display: grid; place-items: center; background: #fff; border-radius: 8px; margin-bottom: 36px; }
.hec-brand-mark img { width: 46px; height: 46px; object-fit: contain; }
.hec-login-kicker { color: #76cdb0; font-size: 11px; font-weight: 700; letter-spacing: 2px; }
.hec-login-brand h1 { margin: 14px 0 14px; font-size: 34px; font-weight: 650; letter-spacing: 0; }
.hec-login-brand p { max-width: 340px; color: #b9cec7; font-size: 15px; line-height: 1.8; }
.hec-login-status { position: absolute; left: 52px; bottom: 42px; color: #a8c7bd; font-size: 12px; }
.hec-login-status span { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #4fd1a1; box-shadow: 0 0 0 4px rgba(79,209,161,.12); }
.hec-login-panel { padding: 64px 52px 42px; display: flex; flex-direction: column; justify-content: center; }
.hec-login-heading h2 { margin: 0 0 8px; color: var(--hec-ink); font-size: 25px; font-weight: 650; }
.hec-login-heading p { margin-bottom: 32px; color: var(--hec-muted); }
.hec-field { margin-bottom: 20px; }
.hec-field label { display: block; margin-bottom: 8px; color: #43515e; font-size: 13px; font-weight: 600; }
.hec-input-wrap { height: 46px; display: flex; align-items: center; border: 1px solid #cdd7dc; border-radius: 6px; background: #fff; transition: .15s ease; }
.hec-input-wrap:focus-within { border-color: var(--hec-green); box-shadow: 0 0 0 3px rgba(19,138,99,.1); }
.hec-input-wrap i { width: 44px; color: #82909c; text-align: center; }
.hec-input-wrap input { min-width: 0; flex: 1; height: 44px; border: 0; outline: 0; padding: 0 14px 0 0; background: transparent; color: var(--hec-ink); }
.hec-captcha-row { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.hec-captcha-row img { width: 110px; height: 46px; border: 1px solid #cdd7dc; border-radius: 6px; cursor: pointer; }
.hec-remember { display: flex; align-items: center; gap: 8px; margin: 2px 0 22px; color: var(--hec-muted); font-size: 13px; font-weight: 400; cursor: pointer; }
.hec-login-submit { width: 100%; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border: 0; border-radius: 6px; background: var(--hec-green); color: #fff; font-size: 14px; font-weight: 600; transition: .15s ease; }
.hec-login-submit:hover { background: var(--hec-green-dark); }
.hec-login-footnote { margin: 22px 0 0; color: #98a4ad; font-size: 12px; text-align: center; }
.hec-login-page #errtips { margin-bottom: 16px; padding: 10px 12px; border-radius: 5px; }

@media (max-width: 767px) {
  .hec-login-page { padding: 0; align-items: stretch; }
  .hec-login-page:before { display: none; }
  .hec-login-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .hec-login-brand { min-height: 210px; padding: 30px 28px; justify-content: flex-start; }
  .hec-brand-mark { width: 48px; height: 48px; margin-bottom: 18px; }
  .hec-brand-mark img { width: 34px; height: 34px; }
  .hec-login-brand h1 { margin: 8px 0; font-size: 26px; }
  .hec-login-brand p { margin: 0; font-size: 13px; }
  .hec-login-status { display: none; }
  .hec-login-panel { padding: 34px 28px; justify-content: flex-start; }
}
