html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
  --siamigo-primary: #f47435;
  --siamigo-secondary: #1f2937;
  --siamigo-background: #f8fafc;
  --siamigo-sidebar: #ffffff;
  --siamigo-topbar: #ffffff;
  --siamigo-card-accent: #f47435;
  --siamigo-success: #16a34a;
  --siamigo-warning: #f59e0b;
  --siamigo-danger: #dc2626;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  background: var(--siamigo-background);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(244, 116, 53, 0.35);
}

.btn-primary,
.text-bg-primary {
  background-color: var(--siamigo-primary) !important;
  border-color: var(--siamigo-primary) !important;
}

.btn-outline-primary {
  color: var(--siamigo-primary) !important;
  border-color: var(--siamigo-primary) !important;
}

.btn-outline-primary:hover {
  color: #fff !important;
  background-color: var(--siamigo-primary) !important;
  border-color: var(--siamigo-primary) !important;
}

.text-primary {
  color: var(--siamigo-primary) !important;
}

.amigo-landing-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(244, 116, 53, 0.16), transparent 36%),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 48%, #fff2e8 100%);
}

.amigo-landing-hero,
.amigo-login-wrap {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.amigo-landing-card,
.amigo-login-card {
  width: min(100%, 680px);
  background: #fff;
  border-radius: 1.25rem;
  padding: 2.25rem;
  text-align: center;
  border-top: 5px solid var(--siamigo-card-accent);
}

.amigo-landing-card-wide {
  width: min(100%, 920px);
}

.amigo-login-card {
  max-width: 460px;
  text-align: left;
}

.amigo-logo-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.amigo-logo-placeholder-orange {
  background: rgba(244, 116, 53, 0.12);
  color: var(--siamigo-primary);
}

.amigo-landing-feature-grid .rounded-4 {
  border: 1px solid rgba(244, 116, 53, 0.10);
}

.amigo-app-body {
  background: var(--siamigo-background);
}

.amigo-topbar {
  background: var(--siamigo-topbar);
}

.amigo-topbar .navbar-brand {
  color: var(--siamigo-primary) !important;
}

.amigo-shell {
  display: flex;
  min-height: calc(100vh - 57px - 41px);
}

.amigo-sidenav {
  width: 260px;
  flex: 0 0 260px;
  background: var(--siamigo-sidebar);
}

.amigo-brand-panel {
  background: rgba(244, 116, 53, 0.04);
}

.amigo-main {
  flex: 1;
  min-width: 0;
}

.amigo-sidenav .nav-link {
  color: #334155;
  margin-bottom: 0.25rem;
}

.amigo-sidenav .nav-link:hover {
  background: rgba(244, 116, 53, 0.08);
  color: var(--siamigo-primary);
}

.amigo-sidenav .nav-link.active {
  background: rgba(244, 116, 53, 0.13);
  color: var(--siamigo-primary);
}

.amigo-dashboard-hero {
  color: #fff;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(135deg, var(--siamigo-primary), #d75a1f);
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.78);
}

.amigo-stat-card {
  border-top: 4px solid var(--siamigo-card-accent) !important;
}

.amigo-stat-card .h4 {
  color: var(--siamigo-primary);
}

.form-control-color {
  max-width: 56px;
  padding: .25rem;
}

@media (max-width: 991.98px) {
  .amigo-shell {
    display: block;
  }

  .amigo-sidenav {
    width: 100%;
    border-bottom: 1px solid #dee2e6;
  }
}

.amigo-landing-logo {
    width: min(420px, 90%);
    height: auto;
    /*max-height: 140px;*/
    object-fit: contain;
    display: block;
}

.table td code {
  white-space: nowrap;
}

.amigo-navbar-logo {
    height: 46px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: inline-block;
}