/* src/assets/scss/d4hr-theme.scss */
:root {
  --primary-rgb:
    0,
    94,
    173;
  --body-bg-rgb:
    255,
    255,
    255;
  --default-body-bg-color: rgb(var(--body-bg-rgb));
  --d4hr-sand: #f2e3cf;
  --d4hr-sand-soft: #faf5ec;
  --d4hr-radius: 0.75rem;
  --d4hr-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);
  --d4hr-shadow-lift: 0 2px 4px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.10);
}
body {
  background-color: rgb(var(--body-bg-rgb));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.page-title {
  font-weight: 600 !important;
  font-size: 1.25rem !important;
  letter-spacing: -0.01em;
  color: #1c2733;
}
.breadcrumb {
  font-size: 0.8rem;
}
h1,
h2,
h3,
h4,
h5,
h6,
.card-title {
  letter-spacing: -0.01em;
  color: #1c2733;
}
.card.custom-card {
  border: 1px solid rgba(16, 24, 40, 0.09);
  border-radius: var(--d4hr-radius);
  box-shadow: var(--d4hr-shadow);
  transition: box-shadow 0.18s ease;
}
.card.custom-card .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
}
.card.custom-card .card-title {
  font-weight: 600;
}
.btn {
  border-radius: 0.55rem;
  font-weight: 500;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.05s ease;
}
.btn-primary {
  --bs-btn-bg: rgb(var(--primary-rgb));
  --bs-btn-border-color: rgb(var(--primary-rgb));
  --bs-btn-hover-bg: rgb(0, 78, 144);
  --bs-btn-hover-border-color: rgb(0, 78, 144);
  --bs-btn-active-bg: rgb(0, 68, 126);
  --bs-btn-active-border-color: rgb(0, 68, 126);
  box-shadow: 0 1px 2px rgba(0, 94, 173, 0.25);
}
.btn-primary:focus-visible,
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.18) !important;
  border-color: rgba(var(--primary-rgb), 0.6) !important;
  outline: none;
}
.btn:active {
  transform: translateY(0.5px);
}
.form-control,
.form-select {
  border-radius: 0.55rem;
  border-color: rgba(16, 24, 40, 0.14);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-label {
  font-weight: 500;
  color: #35404c;
  margin-bottom: 0.3rem;
}
.form-check-input:checked {
  background-color: rgb(var(--primary-rgb));
  border-color: rgb(var(--primary-rgb));
}
.table {
  --bs-table-hover-bg: rgba(var(--primary-rgb), 0.035);
}
.table thead th {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5c6a78;
  background: #f8f9fb;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08) !important;
}
.table > :not(caption) > * > * {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  vertical-align: middle;
}
.app-sidebar {
  border-inline-end: 1px solid rgba(16, 24, 40, 0.06);
  box-shadow: none;
}
.app-sidebar .side-menu__item {
  border-radius: 0.5rem;
  margin: 0.1rem 0.6rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.app-sidebar .side-menu__item:hover {
  background: rgba(var(--primary-rgb), 0.06);
}
.app-sidebar .side-menu__item.active {
  background: rgba(var(--primary-rgb), 0.1);
  color: rgb(var(--primary-rgb)) !important;
  font-weight: 600;
}
.app-sidebar .side-menu__item.active .side-menu__icon {
  color: rgb(var(--primary-rgb)) !important;
}
.app-header {
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
  -webkit-backdrop-filter: saturate(1.1);
  backdrop-filter: saturate(1.1);
}
.badge {
  font-weight: 500;
  border-radius: 0.45rem;
}
.avatar {
  border-radius: 0.6rem;
}
.modal-content {
  border: none;
  border-radius: var(--d4hr-radius);
  box-shadow: var(--d4hr-shadow-lift);
}
.dropdown-menu {
  border: 1px solid rgba(16, 24, 40, 0.06);
  border-radius: 0.6rem;
  box-shadow: var(--d4hr-shadow-lift);
}
.authentication-background {
  background:
    radial-gradient(
      60rem 30rem at 110% -10%,
      rgba(var(--primary-rgb), 0.07),
      transparent 60%),
    radial-gradient(
      50rem 26rem at -10% 110%,
      rgba(226, 189, 138, 0.12),
      transparent 60%),
    #ffffff !important;
}
.authentication .card.custom-card {
  border: 1px solid rgba(16, 24, 40, 0.05);
  box-shadow: var(--d4hr-shadow-lift);
  border-radius: 1rem;
}
.authentication .form-control {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.authentication .btn-primary {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  font-weight: 600;
}
#twofa-code {
  letter-spacing: 0.4em;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.kiosk-mode .app-sidebar,
.kiosk-mode .app-header .header-element:not(:last-child) {
  opacity: 0.999;
}
#loader {
  transition: opacity 0.18s ease;
}
#loader.d-none {
  display: flex !important;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}
#loader {
  background-color: #ffffff !important;
}
.avatar {
  flex: 0 0 auto;
}
.folder-card .avatar {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.folder-card .flex-fill {
  min-width: 0;
}
.folder-card .fw-medium {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.folder-card:hover {
  box-shadow: var(--d4hr-shadow-lift);
}
.tpe-sidebar {
  width: 280px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.tpe-palette-scroll {
  overflow-y: auto;
  flex: 1 1 auto;
}
.tpe-palette-group {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5c6a78;
  padding: 0.6rem 0.5rem 0.25rem;
}
.tpe-palette-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(16, 24, 40, 0.1);
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  color: #35404c;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.tpe-palette-item:hover {
  background: rgba(var(--primary-rgb), 0.06);
  border-color: rgba(var(--primary-rgb), 0.35);
}
.tpe-stage-wrap {
  overflow: auto;
  background: #eceef1;
  display: flex;
  justify-content: center;
  padding: 1rem;
}
.tpe-stage {
  position: relative;
  flex: 0 0 auto;
  box-shadow: 0 2px 12px rgba(16, 24, 40, 0.18);
  background: #fff;
  align-self: flex-start;
}
.tpe-stage canvas {
  display: block;
}
.tpe-overlay {
  position: absolute;
  inset: 0;
}
.tpe-field {
  position: absolute;
  padding: 0 2px;
  background: rgba(var(--primary-rgb), 0.12);
  border: 1px solid rgba(var(--primary-rgb), 0.55);
  border-radius: 2px;
  color: rgb(0, 60, 112);
  cursor: grab;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1.25;
  touch-action: none;
}
.tpe-field:hover {
  background: rgba(var(--primary-rgb), 0.18);
}
.tpe-field.tpe-selected {
  border-color: rgb(var(--primary-rgb));
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.25);
  z-index: 2;
}
.tpe-field.tpe-dragging {
  cursor: grabbing;
  opacity: 0.85;
}
.tpe-field-signature {
  border-style: dashed;
  background: rgba(244, 167, 66, 0.1);
  border-color: rgba(200, 120, 20, 0.6);
  color: #8a5a10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tpe-field-signature .tpe-field-label {
  font-size: 0.7rem;
  font-weight: 500;
}
#tpe-props.tpe-props-empty input,
#tpe-props.tpe-props-empty select,
#tpe-props.tpe-props-empty button {
  pointer-events: none;
  opacity: 0.45;
}
