/* File purpose (v27.08.11.5.241): Documents styles for the styles page/module. CSS has no application functions; selectors and responsive rules control presentation only. Documentation only; selector behavior and values are unchanged. */
:root {
  color-scheme: light;
  --bg: #f3f6f8;
  --surface: #ffffff;
  --ink: #16212a;
  --muted: #60707c;
  --line: #d7e0e5;
  --primary: #075c69;
  --primary-dark: #03444e;
  --success: #146c43;
  --warning: #8a5a00;
  --danger: #9f2525;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; }
a { color: var(--primary); }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; background: #0c3840; color: white; }
.brand { color: white; font-weight: 750; text-decoration: none; font-size: 1.2rem; }
.site-header nav { display: flex; gap: 1rem; }
.site-header nav a { color: white; text-decoration: none; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 2rem auto; }
.site-footer { padding: 1.5rem; text-align: center; color: var(--muted); font-size: .85rem; }
.auth-card { width: min(460px, 100%); margin: 5vh auto; background: var(--surface); padding: 2rem; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 35px rgba(0,0,0,.06); }
.auth-card h1 { margin-bottom: .25rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; box-shadow: 0 3px 12px rgba(0,0,0,.03); }
.page-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.page-heading { margin-bottom: 1rem; }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 1.15rem; }
.muted, .security-note { color: var(--muted); }
.security-note { font-size: .9rem; margin-top: 1.5rem; }
label { display: grid; gap: .35rem; margin-bottom: 1rem; font-weight: 650; }
input, textarea, select { width: 100%; border: 1px solid #aab8c0; border-radius: 7px; padding: .7rem .8rem; font: inherit; background: white; color: var(--ink); }
input:focus, textarea:focus, select:focus, button:focus, a:focus { outline: 3px solid rgba(7,92,105,.25); outline-offset: 2px; }
button { border: 0; border-radius: 7px; padding: .72rem 1rem; font: inherit; font-weight: 700; background: var(--primary); color: white; cursor: pointer; }
button:hover { background: var(--primary-dark); }
button:disabled { opacity: .55; cursor: not-allowed; }
button.secondary { background: #e4ecef; color: var(--ink); }
button.small { padding: .42rem .65rem; font-size: .88rem; }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.form-grid label { margin: 0; }
.form-grid .full { grid-column: 1 / -1; }
.checkbox { display: flex; align-items: center; gap: .5rem; }
.checkbox input { width: auto; }
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert { padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; }

.alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.alert .alert-message {
  flex: 1 1 auto;
  min-width: 0;
}

.alert .alert-close {
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  opacity: .85;
}

.alert .alert-close:hover,
.alert .alert-close:focus-visible {
  background: rgba(0, 0, 0, .08);
  opacity: 1;
}

.alert.error { background: #fff0f0; border-color: #e3a3a3; color: var(--danger); }
.alert.success { background: #edf9f2; border-color: #9fd2b6; color: var(--success); }
.alert.warning { background: #fff7e3; border-color: #dfc27d; color: var(--warning); }
.hidden { display: none !important; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.badge { display: inline-block; border-radius: 999px; padding: .2rem .5rem; background: #e5eff1; font-size: .78rem; }
.badge.warning { background: #fff0bd; color: #6c4800; }
.badge.danger { background: #ffdada; color: var(--danger); }
.record-detail { margin-top: 1rem; border-left: 4px solid var(--primary); padding: 1rem; background: #f7fbfc; }
dl { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: .5rem 1rem; }
dt { font-weight: 700; }
dd { margin: 0; white-space: pre-wrap; }
code, pre { overflow-wrap: anywhere; white-space: pre-wrap; background: #eef3f5; border-radius: 6px; padding: .2rem .35rem; }
pre { padding: 1rem; }

@media (max-width: 800px) {
  .form-grid, .grid.two { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; }
  .site-header { padding: 1rem; }
  dl { grid-template-columns: 1fr; }
}

.button-link {
  display: inline-block;
  padding: .45rem .7rem;
  border-radius: .4rem;
  background: #194f7a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.danger-button {
  background: #8b1e2d;
}

.auth-action {
  margin: 1rem 0 0;
  text-align: center;
}

/* BEGIN Notification Messages UI Refresh v27.08.11.5.162 */
#global-alert.alert,
.security-inline-message {
  position: relative;
  display: block;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 0;
  border: 1px solid #d5e2f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow: 0 12px 32px rgba(29, 61, 95, 0.08);
  overflow: hidden;
}

#global-alert.alert.hidden,
.security-inline-message.hidden {
  display: none !important;
}

.notification-message {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
}

.notification-message__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.notification-message__body {
  flex: 1 1 auto;
  min-width: 0;
}

.notification-message__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: #1f3352;
}

.notification-message__text,
.notification-message__body .alert-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #536781;
  overflow-wrap: anywhere;
}

#global-alert.alert .alert-close,
.security-inline-message .alert-close,
.notification-message__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid #d7e4f0;
  border-radius: 12px;
  background: #ffffff;
  color: #4e6580;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  opacity: 1;
}

#global-alert.alert .alert-close:hover,
#global-alert.alert .alert-close:focus-visible,
.security-inline-message .alert-close:hover,
.security-inline-message .alert-close:focus-visible,
.notification-message__close:hover,
.notification-message__close:focus-visible {
  background: #eef4fb;
  border-color: #bfd1e2;
  color: #1f3352;
  transform: translateY(-1px);
  outline: none;
}

#global-alert.alert.success,
.security-inline-message.is-success,
.security-inline-message.success {
  border-color: #abd8bb;
  background: linear-gradient(180deg, #f6fdf8 0%, #ffffff 100%);
}

#global-alert.alert.success .notification-message__icon,
.security-inline-message.is-success .notification-message__icon,
.security-inline-message.success .notification-message__icon {
  background: #e6f7ed;
  color: #16814d;
}

#global-alert.alert.success .notification-message__title,
.security-inline-message.is-success .notification-message__title,
.security-inline-message.success .notification-message__title {
  color: #157245;
}

#global-alert.alert.error,
.security-inline-message.is-error,
.security-inline-message.error {
  border-color: #f0b7bc;
  background: linear-gradient(180deg, #fff8f8 0%, #ffffff 100%);
}

#global-alert.alert.error .notification-message__icon,
.security-inline-message.is-error .notification-message__icon,
.security-inline-message.error .notification-message__icon {
  background: #feeaec;
  color: #c53442;
}

#global-alert.alert.error .notification-message__title,
.security-inline-message.is-error .notification-message__title,
.security-inline-message.error .notification-message__title {
  color: #b62d39;
}

#global-alert.alert.warning,
.security-inline-message.is-warning,
.security-inline-message.warning {
  border-color: #efcf96;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

#global-alert.alert.warning .notification-message__icon,
.security-inline-message.is-warning .notification-message__icon,
.security-inline-message.warning .notification-message__icon {
  background: #fff1d5;
  color: #b87400;
}

#global-alert.alert.warning .notification-message__title,
.security-inline-message.is-warning .notification-message__title,
.security-inline-message.warning .notification-message__title {
  color: #9c6700;
}

#global-alert.alert.info,
.security-inline-message.is-info,
.security-inline-message.info {
  border-color: #b7d4ef;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

#global-alert.alert.info .notification-message__icon,
.security-inline-message.is-info .notification-message__icon,
.security-inline-message.info .notification-message__icon {
  background: #e8f2ff;
  color: #226dd4;
}

#global-alert.alert.info .notification-message__title,
.security-inline-message.is-info .notification-message__title,
.security-inline-message.info .notification-message__title {
  color: #1f61bc;
}

@media (max-width: 640px) {
  .notification-message {
    padding: 14px;
    gap: 12px;
  }

  .notification-message__icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
    font-size: 20px;
  }

  .notification-message__title {
    font-size: 14px;
  }

  .notification-message__text {
    font-size: 13px;
  }

  #global-alert.alert .alert-close,
  .security-inline-message .alert-close,
  .notification-message__close {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 17px;
  }
}
/* END Notification Messages UI Refresh v27.08.11.5.162 */

