html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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 #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* =========================
   Direct Mail Line Manager
   Clean + slightly branded
   ========================= */

:root {
    --brand-red: #d52b1e;
    --brand-red-hover: #b82217;
    --bg: #f5f6f8;
    --text: #1f2937;
    --muted: #6b7280;
    --card: #ffffff;
    --border: #e5e7eb;
}

body {
    background-color: var(--bg);
    color: var(--text);
}

.navbar {
    background-color: #fff !important;
}

.brand-accent-bar {
    height: 4px;
    background: var(--brand-red);
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

h1, h2, h3, h4, h5 {
    color: var(--text);
}

.text-muted {
    color: var(--muted) !important;
}

/* Primary actions = brand red */
.btn-primary {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: var(--brand-red-hover);
        border-color: var(--brand-red-hover);
    }

/* Make big buttons a little nicer */
.btn-lg {
    border-radius: 12px;
}

/* Soft footer */
.footer {
    background: transparent;
}

footer.footer {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Small pill for line color chip (optional) */
.line-chip {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.15);
    vertical-align: middle;
    margin-right: 8px;
}
.btn-primary {
    font-weight: 600;
    letter-spacing: 0.2px;
}
.card {
    border-radius: 14px;
}

.btn {
    border-radius: 10px;
}


/* Tablet tile grid */
.tile-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .tile-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .tile-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.select-tile {
    position: relative;
    display: block;
    background: #fff;
    border-radius: 14px;
    padding: 18px 18px 18px 22px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
    text-decoration: none;
    color: inherit;
    min-height: 96px;
}

    .select-tile:hover,
    .select-tile:focus {
        border-color: rgba(0,0,0,.18);
        box-shadow: 0 6px 22px rgba(0,0,0,.10);
        text-decoration: none;
        color: inherit;
    }

.select-tile-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

.select-tile-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
}

.select-tile-sub {
    margin-top: 6px;
    color: rgba(0,0,0,.55);
    font-size: 0.95rem;
}

.select-tile-code {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,.06);
}