/* Global component styles — Tailwind-free */

/* Layout */
.page-centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.card {
  width: 100%;
  background: white;
}

.card-narrow {
  max-width: 28rem;
}

/* Logo */
.logo-centered {
  display: block;
  margin: 0 auto;
  height: 3rem;
  width: auto;
}

/* Headings */
.heading-centered {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1.875rem;
  font-weight: 800;
  color: #111827;
}

/* Forms */
.form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.input {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  color: #111827;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.input::placeholder {
  color: #6b7280;
}

.input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 1px #6366f1;
  z-index: 10;
}

.input-top {
  border-radius: 0.375rem 0.375rem 0 0;
}

.input-bottom {
  border-radius: 0 0 0.375rem 0.375rem;
  margin-top: -1px;
}

/* Form rows */
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Checkboxes */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #111827;
}

.checkbox {
  width: 1rem;
  height: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  color: #4f46e5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: #4f46e5;
  color: white;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-primary:hover {
  background-color: #4338ca;
}

.btn-full {
  width: 100%;
}

/* Site header */
.site-header {
  background: white;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.site-header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 3.5rem;
}

.site-logo img {
  height: 2rem;
  width: auto;
  display: block;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-icon {
  padding: 0.25rem;
  border-radius: 9999px;
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  text-decoration: none;
}

.header-icon:hover {
  color: #6b7280;
}

.header-icon--active {
  color: #4f46e5;
}

.header-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.header-icon-badge {
  position: relative;
  display: inline-flex;
}

.badge-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  height: 1rem;
  min-width: 1rem;
  padding: 0 0.2rem;
  box-sizing: border-box;
  border-radius: 9999px;
  background-color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 500;
  color: white;
}

.header-dropdown > .header-icon {
  position: relative;
}

.header-announcements {
  width: 22rem;
  max-height: 26rem;
  overflow-y: auto;
  padding: 0;
}

.header-announcements-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #e5e7eb;
}

.header-announcements-markread {
  font-size: 0.75rem;
  color: #4f46e5;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header-announcements-empty {
  padding: 1rem 0.9rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.header-announcements-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-announcement {
  display: block;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  color: #374151;
}

.header-announcement:hover {
  background-color: #f9fafb;
}

.header-announcement.is-unread {
  background-color: #eef2ff;
}

.header-announcement.is-unread:hover {
  background-color: #e0e7ff;
}

.header-announcement-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.header-announcement-title {
  font-weight: 600;
  font-size: 0.875rem;
}

.header-announcement-badge {
  flex-shrink: 0;
  border-radius: 9999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  background: #e5e7eb;
  color: #374151;
}

.header-announcement-badge.cat-feature {
  background: #e0e7ff;
  color: #4338ca;
}

.header-announcement-badge.cat-maintenance {
  background: #fef3c7;
  color: #b45309;
}

.header-announcement-body {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.15rem;
}

.header-announcement-date {
  display: block;
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 0.2rem;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin-left: 0.5rem;
}

.header-action:hover {
  color: #111827;
}

.header-action .icon {
  width: 1rem;
  height: 1rem;
}

/* Avatar */
.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Header dropdown */
.client-print-menu {
  width: 15rem;
  padding: 0.5rem;
}

.client-print-menu-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.25rem 0.5rem;
}

.client-print-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.25rem;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}

.client-print-option:hover {
  background: #f9fafb;
  border-radius: 0.375rem;
}

.staging-banner {
  background: #b45309;
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 1rem;
}

.staging-banner-meta {
  font-weight: 500;
  opacity: 0.85;
}

.header-search {
  position: relative;
  flex: 1 1 auto;
  max-width: 26rem;
  margin: 0 1rem;
}

.header-search-input {
  width: 100%;
  padding: 0.4rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: #fff;
}

.header-search-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 1px #6366f1;
}

.header-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 200;
  max-height: 24rem;
  overflow-y: auto;
}

.header-dropdown {
  position: relative;
  margin-left: 0.5rem;
}

.header-avatar {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header-dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  min-width: 10rem;
  background: white;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  border: 1px solid #e5e7eb;
  padding: 0.25rem 0;
  z-index: 50;
}

.header-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.header-dropdown-item:hover {
  background-color: #f3f4f6;
}

.header-dropdown-item .icon {
  width: 1rem;
  height: 1rem;
}

.header-dropdown-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0.25rem 0;
}

.hidden {
  display: none;
}

.crouton-container {
  top: 4.5rem;
}
