body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #050608;
    color: #f5f5f5;
}

a {
    color: #a5b4fc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #111827;
    border-bottom: 1px solid #1f2937;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.user-label {
    margin-right: 0.75rem;
    font-size: 0.85rem;
    color: #d1d5db;
}

.btn {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: #4f46e5;
    color: white;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #6366f1;
}

.btn-small,
.btn-sm {
    font-size: 0.78rem;
    padding: 0.25rem 0.55rem;
}

.btn-secondary {
    background: #374151 !important;
    color: #e5e7eb;
}

.btn-secondary:hover {
    background: #4b5563 !important;
}

.main-content {
    padding: 1rem;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    background: #111827;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #1f2937;
}

.card h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.input-group {
    margin-bottom: 0.75rem;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #374151;
    background: #020617;
    color: #f9fafb;
    font-size: 0.9rem;
}

.text-muted {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ============================================================
   ADDED STYLES FOR NEW CHECK-IN + POS FUNCTIONALITY
   ============================================================ */

/* RESULTS TABLE */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.88rem;
}

.results-table th {
    text-align: left;
    font-weight: 600;
    color: #9ca3af;
    padding: 0.4rem 0.3rem;
    border-bottom: 1px solid #1f2937;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.results-table td {
    padding: 0.45rem 0.3rem;
    border-bottom: 1px solid #1f2937;
}

.results-table tr:hover {
    background: #1f2937;
}

/* INLINE MEMBER EDITOR (Option 2) */
.member-editor-wrapper {
    border-top: 1px solid #4b5563;
    padding-top: 0.9rem;
    margin-top: 0.9rem;
}

.member-editor-heading {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.member-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.member-editor-grid .field {
    display: flex;
    flex-direction: column;
}

.member-editor-grid .field label {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

.member-editor-grid .field input,
.member-editor-grid .field select,
.member-editor-grid .field textarea {
    border-radius: 0.6rem;
    border: 1px solid #374151;
    background: #020617;
    color: #f5f5f5;
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
}

.member-editor-grid textarea {
    min-height: 60px;
    resize: vertical;
}

.field-notes {
    grid-column: 1 / -1;
}

.member-editor-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* POS MEMBER NAME (orange + larger) */
.dash-pos-member-name {
    color: #f97316; /* Manifest orange */
    font-size: 1.25rem;
    font-weight: 600;
}

/* POS panel adjustments for readability */
.dash-pos-row-label {
    min-width: 110px;
    color: #9ca3af;
}

/* Make the POS input + select match dashboard styling */
.dash-pos-input,
.dash-pos-select {
    background: #020617 !important;
    border: 1px solid #374151 !important;
    color: #e5e7eb !important;
}

/* Improve large total styling */
.dash-pos-total {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Buttons in results table */
.results-table .btn-sm {
    margin-right: 0.25rem;
}
/* -----------------------------------------
   Improved Results Table Readability
----------------------------------------- */

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px; /* row spacing */
    margin-top: 0.75rem;
}

.results-table thead th {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #d1d5db;
    padding-bottom: 0.4rem;
    text-transform: uppercase;
}

.results-table tbody tr {
    background: #0d1220; /* slightly lighter than card */
    border-radius: 8px;
}

.results-table tbody tr:hover {
    background: #1a2236; /* soft hover effect */
}

.results-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.92rem;
    color: #f5f5f5;
}

/* Round corners for first and last cells */
.results-table tbody tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.results-table tbody tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Actions column tweaks */
.results-table .btn-sm {
    display: block;
    width: 110px;
    margin-bottom: 4px;
    text-align: center;
    padding: 6px 8px;
    font-size: 0.8rem;
}

.results-table .btn-sm:last-child {
    margin-bottom: 0;
}

