body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background-color: #1c1c1c;
    color: #f5f5f5;
    padding-top: 50px;    /* Same as nav height */
}

/* Navigation Bar */
nav {
    background-color: #000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.6);
    position: fixed;      /* Keep it stuck to the top */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;        /* Ensure it’s above other elements */

    /* Added to align menu and user info */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu li {
    position: relative;
}

.menu a {
    display: block;
    padding: 14px 20px;
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

/* Top-level hover */
.menu > li > a:hover {
    background-color: #b30000;
    color: white;
}

/* Dropdown styling */
.menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2b2b2b;
    min-width: 180px;
    padding: 0;
    list-style: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    z-index: 1000;
}

.menu li:hover ul {
    display: block;
}

.menu li ul li a {
    padding: 12px 16px;
    border-bottom: 1px solid #444;
}

.menu li ul li a:hover {
    background-color: #e60000;
}

/* User info on the right */
.user-info {
    font-size: 14px;
    color: #f5f5f5;
    white-space: nowrap; /* Prevent wrapping */
}

.user-info strong {
    color: #ffcc00;
}

/* Main content */
main {
    padding: 20px;
    background-color: #262626;
    min-height: calc(100vh - 60px);
}

/* Headings & Links */
h1, h2, h3 {
    color: #ff4d4d;
}

a {
    color: #ff4d4d;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
button {
    background-color: #b30000;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #e60000;
}
.form-vertical label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.form-vertical input {
    display: block;
    width: 300px;
    padding: 8px;
    margin-top: 5px;
}

.form-vertical button {
    margin-top: 10px;
}
/* General button link styling */
.btn-link {
    display: inline-block;
    background-color: #b30000; /* dark red */
    color: white;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
	margin-bottom: 10px; /* 👈 small gap below button */
}

/* Hover effect like the menu */
.btn-link:hover {
    background-color: #e60000; /* lighter red */
    color: white;
}

/* Optional: make Delete button a different color */
.btn-danger {
    background-color: #660000;
}

.btn-danger:hover {
    background-color: #990000;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* two equal columns */
    gap: 15px 20px; /* row gap, column gap */
    align-items: center;
}

.form-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-group label {
    flex: 0 0 45%; /* label width */
    font-weight: bold;
}

.form-group input {
    flex: 1;
    padding: 6px;
}

.form-full {
    grid-column: span 2; /* make button span both columns */
    text-align: right;
}
/* Add this to your styles.css */

.form-inline {
    display: flex;
    gap: 20px; /* space between fields */
    flex-wrap: wrap; /* wrap if too narrow */
    align-items: flex-end; /* align button with inputs */
}

.form-detail-field {
    display: flex;
    flex-direction: column;
}

.form-detail-field label {
    font-weight: bold;
    margin-bottom: 4px;
}

.form-detail-field input, 
.form-detail-field button {
    padding: 6px;
}
.error-message {
    background: #ffdddd;
    border: 1px solid #cc0000;
    padding: 10px;
    color: #cc0000;
    margin-bottom: 15px;
    border-radius: 4px;
}
.filters input {
    width: 100%;
    padding: 3px;
    box-sizing: border-box;
    font-size: 0.85rem;
}
/* Scrollable table wrapper */
.table-wrapper {
    margin-top: 0;
}

/* Ensure fixed header background matches */
table.dataTable thead th,
table.dataTable thead td {
    background-color: #1c1c1c;
    color: #f5f5f5;
}

/* Filters row styling */
.filters input {
    width: 100%;
    padding: 3px;
    box-sizing: border-box;
    font-size: 0.85rem;
}
.table-header-container {
    position: fixed;
    top: 0px; /* Height of nav bar */
    background-color: #1c1c1c;
    z-index: 1001;
    padding-bottom: 8px;
    padding-top: 0px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}
.page-wrapper {
    padding: 20px;
    max-width: 100%;
}
/* Your groups should already use grid; keep this consistent */
.form-group {
  display: grid;
  grid-template-columns: 220px 1fr; /* match your other screens */
  align-items: center;
  gap: 10px;
}

.form-group label {
  text-align: right; /* label right-aligned on the left column */
  font-weight: 600;
}

/* Right-hand cell wrapper for checkbox */
.form-group .control {
  display: flex;
  align-items: center;
}

/* Make checkbox sit flush like text inputs start */
.form-group .control input[type="checkbox"] {
  margin: 0;
  inline-size: auto;
  block-size: 18px; /* optional: visually matches ~38px input height with line-height */
}

/* If you still have the old wrapper style from before, neutralize it */
.form-group label.checkbox { 
  display: contents; /* or just remove that old rule/block entirely */
}
/* Adjust if you already have a fixed site header/nav height */
:root { --header-offset: 0px; } /* e.g., 56px if your top nav is fixed and 56px tall */

.sticky-header {
  position: sticky;
  top: var(--header-offset);
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e6e7ee;
}

/* Tighten up the title area so it feels like one bar */
.sticky-header h1 {
  margin: 0;
  padding: 10px 0;
}

/* Optional: subtle shadow only when stuck */
.sticky-header.is-stuck {
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

/* Your existing picker-bar styles are fine; keep them */
