/* Shared styling for the traditional Enomy staff interface. */
:root {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background: #eef0f2;
  --navy: #243b50;
  --teal: #287d79;
  --border: #ccc;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #245a85; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid #aaa;
  border-radius: 3px;
  background: #f4f4f4;
  color: #333;
  cursor: pointer;
  font-weight: normal;
  line-height: 1.5;
}
button:hover, .button:hover { background: #e5e5e5; text-decoration: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #2673a9;
  outline-offset: 3px;
}
button.primary, .button.primary { background: #337ab7; border-color: #2e6da4; color: white; }
button.primary:hover, .button.primary:hover { background: #286090; }
.secondary, .light { background: #fff; border-color: #aaa; color: #333; }
.danger-button { background: #b3433e; border-color: #94332e; color: white; }
.danger-button:hover { background: #94332e; }
.text-button { background: transparent; border: 0; padding: 3px 5px; color: #245a85; }
.text-button:hover { text-decoration: underline; background: transparent; }
.danger { color: #a23430; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 25px; font-weight: normal; line-height: 1.3; margin-bottom: 5px; color: #333; }
h2 { font-size: 17px; font-weight: bold; margin-bottom: 14px; color: #333; }
h3 { font-size: 14px; }
p { margin-bottom: 14px; }
.subtle { color: #666; }
.fine { font-size: 12px; color: #666; line-height: 1.6; }
.eyebrow { display: block; font-size: 12px; font-weight: bold; color: #52616b; margin-bottom: 10px; }
/* Fixed navigation, similar to a conventional internal administration system. */
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
  background: var(--navy);
  color: #d8e0e6;
  display: flex;
  flex-direction: column;
  z-index: 10;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: white; font-size: 17px; font-weight: bold; line-height: 1.25; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #8193a1; color: #fff; font-size: 14px; flex-shrink: 0; }
.brand-trend { stroke: #a9d7cf; }
.brand-sub { display: block; color: #c1cbd3; font-size: 11px; font-weight: normal; margin-top: 4px; }
aside .brand { padding: 20px 14px; border-bottom: 1px solid #3b5063; }
.nav-label { padding: 17px 17px 9px; color: #b4c1cc; font-size: 11px; font-weight: bold; }
nav { display: grid; }
nav a { display: flex; align-items: center; gap: 11px; color: #e0e6eb; padding: 12px 16px; border-bottom: 1px solid #31485c; font-size: 13px; }
nav a:hover { text-decoration: none; background: #304c64; }
nav a.active { background: #3b5a73; border-left: 4px solid #8fc2c1; padding-left: 12px; color: white; }
.nav-icon { display: inline-flex; align-items: center; width: 19px; }
.nav-icon svg { width: 17px; height: 17px; }
.sidebar-bottom { margin-top: auto; padding: 20px 16px 10px; }
.demo-pill { font-size: 12px; color: #d7e0e7; }
.demo-pill span { display: inline-block; width: 6px; height: 6px; background: #9bc49a; margin-right: 5px; }
.sidebar-bottom p { font-size: 11px; color: #b4c1cc; margin: 5px 0 16px; }
.logout { background: transparent; border: 0; border-top: 1px solid #4a5d6d; border-radius: 0; color: white; width: 100%; justify-content: flex-start; padding: 11px 0; }
.logout:hover { background: transparent; text-decoration: underline; }
.workspace { margin-left: 235px; }
header { min-height: 61px; background: white; border-bottom: 1px solid #ccc; display: flex; align-items: center; justify-content: space-between; padding: 10px 25px; font-size: 13px; color: #555; gap: 15px; }
.breadcrumb { color: #777; margin-left: 10px; }
.profile { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.profile small { display: block; font-size: 11px; color: #777; }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #ccd3d8; background: #eff2f5; color: #456075; font-size: 11px; }
#menu { display: none; }
main { max-width: 1500px; margin: auto; padding: 24px 25px 32px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ccc; padding-bottom: 14px; margin-bottom: 19px; gap: 15px; }
.page-heading p { font-size: 13px; margin: 0; }
.academic { font-size: 11px; border: 1px solid #bbb; background: #fafafa; color: #666; padding: 3px 7px; white-space: nowrap; }
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 15px; background: #fff; border: 1px solid #ccc; margin-bottom: 18px; }
.welcome h2 { font-size: 15px; margin-bottom: 3px; }
.welcome p { margin: 0; color: #666; font-size: 13px; }
.welcome .button { white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { position: relative; display: flex; flex-direction: column; background: white; border: 1px solid #c8cdd2; border-top: 3px solid #4b6c86; padding: 13px 15px 0; color: #333; }
.stat:hover { text-decoration: none; border-color: #7f9bb0; }
.stat-icon { position: absolute; right: 14px; top: 17px; color: #6c8192; }
.stat-icon svg { width: 23px; height: 23px; }
.stat > .subtle { font-size: 13px; padding-right: 25px; }
.stat strong { font-size: 29px; font-weight: normal; margin: 4px 0 9px; }
.stat small { font-size: 11px; color: #245a85; background: #f7f7f7; padding: 7px 15px; border-top: 1px solid #ddd; margin: 0 -15px; }
.card { background: white; border: 1px solid #ccc; border-radius: 3px; padding: 18px; margin-bottom: 20px; min-width: 0; }
.card > h2:first-child, .card-heading { padding: 9px 14px; margin: -18px -18px 17px; background: #f5f5f5; border-bottom: 1px solid #ccc; font-size: 15px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-heading h2 { font-size: 15px; margin: 0; }
.card-heading a, .card-heading > .subtle { font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.overview { display: flex; align-items: center; justify-content: space-around; gap: 25px; padding: 6px 0; }
.donut { width: 130px; height: 130px; flex-shrink: 0; border-radius: 50%; background: conic-gradient(#477e96 0 var(--portion), #c0ccd5 var(--portion) 100%); padding: 20px; }
.donut > div { border-radius: 50%; background: white; height: 100%; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.donut strong { font-size: 25px; font-weight: normal; }
.donut span { font-size: 11px; color: #666; }
.overview-key { flex: 1; max-width: 275px; }
.overview-key p { display: flex; align-items: center; gap: 7px; font-size: 12px; padding: 8px 0; margin: 0; border-bottom: 1px solid #ddd; }
.overview-key strong { margin-left: auto; }
.overview-key i, .legend i { display: inline-block; width: 9px; height: 9px; background: #477e96; }
.overview-key p:nth-child(2) i { background: #c0ccd5; }
.overview-key small { display: block; font-size: 11px; margin-top: 10px; }
.quick > p { font-size: 12px; margin-bottom: 4px; }
.quick > a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ddd; font-size: 13px; }
.quick > a:last-child { border: 0; }
.quick > a > span { font-size: 23px; color: #607d92; width: 30px; text-align: center; }
.quick > a > div { flex: 1; }
.quick strong { font-weight: normal; }
.quick small { display: block; color: #777; font-size: 12px; margin-top: 2px; }
/* Bordered, compact tables and conventional form controls. */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th { background: #eceff1; color: #444; font-size: 12px; font-weight: bold; padding: 9px 10px; border: 1px solid #ccc; white-space: nowrap; }
td { padding: 9px 10px; border: 1px solid #ddd; vertical-align: middle; }
tbody tr:nth-child(even) { background: #fafafa; }
tbody tr:hover { background: #f1f6fa; }
td strong { font-weight: normal; }
td small { display: block; font-size: 11px; color: #777; margin-top: 2px; }
.badge { display: inline-block; font-size: 11px; background: #edf4eb; border: 1px solid #c4d8bc; color: #43683b; padding: 1px 6px; border-radius: 2px; text-transform: capitalize; white-space: nowrap; }
.badge.muted { background: #f7eded; border-color: #dfc2c2; color: #a03a36; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.investment-layout { grid-template-columns: .7fr 1.3fr; }
.info { border: 1px solid #b9cdd9; border-left: 4px solid #5884a0; padding: 10px 13px; background: #edf4f8; color: #38596e; font-size: 12px; margin-bottom: 18px; }
label { display: block; font-size: 13px; font-weight: bold; margin-bottom: 15px; color: #444; }
input, select { display: block; width: 100%; padding: 7px 9px; min-height: 35px; border: 1px solid #aaa; border-radius: 2px; background: white; color: #333; margin-top: 5px; }
input::placeholder { color: #888; }
input[type=checkbox] { width: 15px; min-height: 15px; margin: 0; }
.check { display: flex; align-items: center; gap: 8px; font-weight: normal; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result-panel { background: white; }
.result-symbol { display: none; }
.result-number { font-size: 29px; font-weight: normal; color: #2c637b; margin: 14px 0; }
dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 15px 0; }
dt { color: #666; }
dd { margin: 0; text-align: right; font-weight: bold; }
.save-box { border-top: 1px solid #ddd; padding-top: 15px; margin-top: 17px; }
.save-box label { margin-bottom: 10px; }
.section-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.section-toolbar label { margin: 0; flex: 1; }
.search { width: 350px; }
.filters > * { flex: 1; }
.chart { width: 100%; max-height: 265px; margin-top: 10px; }
.legend { display: flex; justify-content: center; gap: 18px; font-size: 12px; margin-bottom: 17px; color: #666; }
.legend i { margin-right: 5px; }
.assumptions p { font-size: 13px; color: #555; }
.notice { border: 1px solid #b9d0b2; border-radius: 2px; padding: 10px 13px; margin-bottom: 17px; font-size: 13px; }
.error { background: #f9eded; color: #a13d36; border-color: #e0bab5; }
.success { background: #edf5e9; color: #436c36; }
.empty { padding: 28px; color: #666; text-align: center; }
hr { border: 0; border-top: 1px solid #ddd; margin: 20px 0; }
footer { display: flex; justify-content: space-between; gap: 15px; margin: 0 25px; padding: 12px 0; border-top: 1px solid #ccc; color: #777; font-size: 11px; }
dialog { width: min(820px, 92vw); max-height: 88vh; border: 1px solid #999; border-radius: 3px; padding: 22px; color: #333; }
dialog::backdrop { background: #0006; }
dialog button { margin-right: 8px; }
pre { white-space: pre-wrap; word-break: break-word; padding: 12px; border: 1px solid #ddd; background: #f5f5f5; font-size: 11px; }
/* A single login form beneath the company header. */
.login { min-height: 100vh; padding-bottom: 30px; }
.login-masthead { background: var(--navy); border-bottom: 4px solid #6d8e9a; padding: 18px 30px; }
.login-masthead .brand { max-width: 1040px; margin: auto; }
.login-panel { width: calc(100% - 32px); max-width: 440px; margin: 50px auto 20px; background: white; border: 1px solid #bbb; border-top: 3px solid #59768c; padding: 25px 28px; }
.login-panel h1 { font-size: 23px; }
.login-panel > .subtle { font-size: 13px; }
.login-panel form { padding-top: 8px; }
.login-panel form > button { min-width: 100px; }
#auth-state { display: inline-block; font-size: 12px; margin: 0 0 0 12px; }
.demo-box { border: 1px solid #d3d3d3; background: #f7f7f7; padding: 12px 14px; font-size: 12px; margin: 22px 0 14px; }
.demo-box p { margin: 9px 0 0; }
.login-panel .fine { font-size: 11px; margin-bottom: 0; }
.login-credit { text-align: center; font-size: 11px; color: #777; }
.skip { position: fixed; top: -80px; left: 10px; padding: 10px; background: white; z-index: 30; }
.skip:focus { top: 10px; }
.recovery { max-width: 700px; margin: 70px auto; }
