/* actionEvent.css */
/* General styles for the main page container */
.main-page-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto; /* Centers the container */
  box-sizing: border-box; /* Ensures padding is included in the width */
}

/* Style for the action button (three dots) */
.action-btn {
  background: none;
  border: none;
  font-size: 18px; /* Larger font size for better tap target on mobile */
  cursor: pointer;
  color: #000; /* Black text color */
  padding: 5px; /* Default padding for larger screens */
  border-radius: 5px; /* Optional: rounded edges for the dots button */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease; /* Smooth transition for hover effect */
}

.action-btn:hover {
  color: #000; /* Darker color on hover */
  background-color: #f0f0f0; /* Light background on hover for visibility */
  border-radius: 5px;
}

/* For the parent container of the dropdown (the <td>) */
.action-cell {
  position: relative; /* This is crucial for positioning the absolute dropdown */
  text-align: center; /* Center the ellipsis button */
  white-space: nowrap; /* Ensures the content within the cell doesn't wrap unnecessarily */

  /* *** KEY ADDITIONS FOR STABILITY *** */
  width: 60px; /* Fixed width for the action cell to prevent table distortion */
  overflow: visible; /* Ensure dropdown can render outside this cell without being clipped */
  vertical-align: middle; /* Align content vertically in the middle */
}

/* Base style for the dropdown container */
.dropdown-overlay {
  position: absolute;
  left: 50%; /* Centers it horizontally relative to the parent .action-cell */
  transform: translateX(-50%); /* Adjusts for the left: 50% to truly center */

  background-color: #ffffff; /* Your chosen background color */
  color: #000; /* Black text color for the buttons inside */
  border: 1px solid #ccc; /* Border will still be visible */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /* Shadow will still be visible */
  padding: 10px;
  border-radius: 5px; /* Rounded corners for dropdown */
  z-index: 1000; /* Ensure it's on top of other elements, higher than pagination dropdown */

  min-width: 150px; /* Minimum width for better spacing of dropdown items */
  display: flex; /* Use flexbox for vertical layout of buttons */
  flex-direction: column;

  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Class to position the dropdown BELOW the button (default/preferred) */
.dropdown-overlay.bottom-aligned {
  top: 100%; /* Positions the top of the dropdown just below the button */
  bottom: auto; /* Reset bottom */
  margin-top: 5px; /* Small gap below the button */
  margin-bottom: auto; /* Reset margin-bottom */
}

/* Class to position the dropdown ABOVE the button (when space is limited below) */
.dropdown-overlay.top-aligned {
  bottom: 100%; /* Positions the bottom of the dropdown just above the button */
  top: auto; /* Reset top */
  margin-bottom: 5px; /* Small gap above the button */
  margin-top: auto; /* Reset margin-top */
}

/* Style for the buttons inside the dropdown */
.dropdown-overlay button {
  background: transparent; /* Keep background transparent for individual buttons */
  border: none;
  padding: 8px; /* Default padding for dropdown buttons */
  cursor: pointer;
  font-size: 13.5px;
  display: block; /* Make buttons take full width */
  width: 100%; /* This width ensures it takes full available width in dropdown */
  color: #000; /* Black text color for the dropdown buttons */
  text-align: left; /* Align text to the left */
  border-radius: 3px; /* Slightly rounded corners for internal buttons */
  transition: background-color 0.2s ease; /* Smooth transition for hover effect */
}

/* Hover effect for buttons inside the dropdown */
.dropdown-overlay button:hover {
  background-color: #f0f0f0; /* Light background on hover */
}

/* --- Styles for the Pagination "Items per page" Dropdown --- */

/* General dropdown container style for pagination */
.per-page-dropdown {
  position: relative; /* Essential for positioning the dropdown content */
  display: inline-block;
}

/* Styles for the pagination dropdown content (the list of options) */
.per-page-dropdown-content {
  position: absolute;
  bottom: calc(100% + 5px); /* Position above the button, with a small gap */
  left: 0; /* Align to the left of the pagination button */
  background-color: #fff;
  min-width: 120px; /* Adjust as needed */
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  z-index: 100; /* Ensure it appears above other content, lower than action dropdown */
  overflow: hidden; /* For rounded corners on items */
  display: flex;
  flex-direction: column;
}

/* Styles for individual pagination dropdown options */
.per-page-dropdown-content div {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: background-color 0.2s;
}

/* Hover and active states for pagination dropdown options */
.per-page-dropdown-content div:hover {
  background-color: #f1f1f1;
}

.per-page-dropdown-content div.selected {
  background-color: #e0e0e0; /* Highlight the selected option */
  font-weight: bold;
}

/* --- Table Specific Styles for Responsiveness --- */
.agents-table {
  width: 100%; /* Important for desktop to spread */
  border-collapse: collapse;
  margin-bottom: 20px;
  /* table-layout: fixed; */
}

.agents-table th,
.agents-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.agents-table th {
  background-color: #f2f2f2;
  font-weight: bold;
  vertical-align: middle;
}

/* Media query for smaller screens to optimize table display and button sizing */
@media (max-width: 768px) {
  /* The overflow-x: auto container on the parent div is important for table responsiveness */
  .table-responsive-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
  }

  .agents-table {
    width: auto;
    min-width: 100%;
    table-layout: auto;
  }

  .agents-table th,
  .agents-table td {
    padding: 6px 4px;
    font-size: 0.85em;
  }

  /* Adjust action button padding for mobile */
  .action-btn {
    font-size: 16px;
    padding: 2px 4px;
    line-height: 1;
    min-width: 0;
    width: -webkit-fit-content !important;
    width: fit-content !important;
  }

  /* Adjust action-cell width for smaller screens if necessary */
  .action-cell {
    width: 50px;
  }

  /* Adjust padding for dropdown buttons on mobile */
  .dropdown-overlay button {
    padding: 3px 5px;
    font-size: 13px;
    white-space: nowrap;
    min-width: 0;
    width: -webkit-fit-content !important;
    width: fit-content !important;
    display: inline-block !important;
  }

  /* --- GLOBAL OVERRIDES FOR ALL BUTTONS (Still important for general sizing) --- */
  button {
    display: inline-flex !important;
    width: -webkit-fit-content !important;
    width: fit-content !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Specific padding for submit/export buttons */
  .button-row .submit-btn,
  .button-row .export-btn {
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1.2;
  }

  /* --- CRITICAL Button Row specific fixes for SINGLE LINE BEHAVIOR --- */
  .button-row {
    display: flex;
    justify-content: center;
    width: auto; /* Allow the row to be wider than 100% if needed */
    box-sizing: border-box;
    flex-wrap: nowrap !important; /* Forces buttons to stay on a single line */
    gap: 10px;
    padding: 0 5px;
    min-width: 0;
  }

  /* --- Important: Apply horizontal scrolling to the filter form container --- */
  .report-filter-form {
    overflow-x: auto; /* Enables horizontal scrolling for the form content */
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
    width: 100%; /* Ensures the form takes full width to enable overflow */
    box-sizing: border-box;
    /* Other existing form styles should remain, but ensuring consistency */
    padding: 15px;
    align-items: stretch;
    display: flex; /* Assuming your form is also a flex container */
    flex-direction: column; /* Most likely a column layout for form fields */
  }
  .report-filter-form .form-group {
    max-width: 100%;
    width: 100%;
    flex-shrink: 0; /* Prevent form groups from shrinking unnecessarily */
  }
  .report-filter-form .date-range-group {
    display: flex; /* Ensure it's a flex container */
    flex-direction: row; /* Keep date inputs side-by-side */
    gap: 15px;
    flex-wrap: nowrap; /* Ensure date inputs also stay on one line */
    width: auto; /* Allow date inputs group to overflow if necessary */
    min-width: 0;
    flex-shrink: 0; /* Prevent date group from shrinking */
  }
  .report-filter-form .date-range-group .form-group {
    flex-grow: 0;
    flex-shrink: 0;
    min-width: 140px; /* Maintain minimum width for date inputs */
    max-width: 300px;
    width: auto;
  }
}
/* pagination.css */

/* This is the main container that holds both the page numbers group and the per-page dropdown */
/* This new class is applied to the wrapper div added in Cashiers.js */
.pagination-and-per-page-controls {
    display: flex;
    justify-content: flex-end; /* Aligns all content to the right within its parent */
    align-items: center; /* Vertically aligns them */
    margin-top: 30px; /* Consistent spacing above */
    margin-bottom: 20px; /* Consistent spacing below the controls */
    padding: 0 10px; /* Add some horizontal padding to prevent sticking to edges */
    flex-wrap: nowrap; /* Prevents wrapping of the two main sections (pagination buttons & dropdown) on larger screens */
}

/* This .pagination-container now solely holds the page number buttons */
.pagination-container {
    display: flex; /* IMPORTANT: Keep this as flex to manage internal buttons */
    justify-content: flex-start; /* Keep internal buttons left-aligned within their group */
    align-items: center;
    flex-wrap: nowrap; /* Keeps page buttons on one line */
}

.pagination-buttons-group {
    display: flex;
    flex-wrap: nowrap; /* Ensure individual page number buttons don't wrap on larger screens */
}

.pagination-button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 0; /* Set to 0 to make them completely touch */
    background-color: #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 1rem;
    white-space: nowrap; /* Prevent text wrapping within buttons */
    flex-shrink: 0; /* Prevents buttons from shrinking if space is tight */
    margin-left: -1px; /* Overlap borders to prevent double borders */
}

/* Specific styling for the first button to have a normal left border and rounding */
.pagination-buttons-group .pagination-button:first-child {
    margin-left: 0; /* No negative margin for the first button */
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

/* Specific styling for the last button to have a normal right border and rounding */
.pagination-buttons-group .pagination-button:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.pagination-button:hover:not(:disabled) {
    background-color: #e0e0e0;
    z-index: 1; /* Bring hovered button to front to show its full border */
    position: relative; /* Needed for z-index to work */
}

.pagination-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-button.active {
    font-weight: bold;
    background-color: #4caf50;
    color: #fff;
    border-color: #4caf50;
    z-index: 1; /* Keep active button on top */
    position: relative; /* Needed for z-index to work */
}


/* Items per page dropdown */
.per-page-dropdown-wrapper {
    position: relative; /* Crucial for absolute positioning of its content */
    flex-shrink: 0; /* Prevent dropdown from shrinking */
    white-space: nowrap; /* Keep content on one line */
    margin-left: 15px; /* Space between pagination buttons and the dropdown */
    /* KEY CHANGE: Ensure overflow is visible, preventing clipping */
    overflow: visible;
}

.per-page-dropdown-button {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f0f0f0;
    cursor: pointer;
    min-width: 100px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.per-page-dropdown-button:hover {
    background-color: #e0e0e0;
}

.per-page-dropdown-content {
    position: absolute;
    /* Default (desktop) positioning: Below the button */
    top: 100%;
    bottom: auto; /* Ensure it doesn't also try to position from the bottom */
    right: 0; /* Align to the right of its wrapper */
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    /* KEY CHANGE: Increase z-index to ensure it's on top of other content */
    z-index: 1000; /* Higher than table content or other elements */
    min-width: 120px;
    margin-top: 5px; /* Space between button and dropdown content */
    display: flex;
    flex-direction: column;
}

.per-page-option {
    padding: 8px 12px;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.per-page-option:hover {
    background-color: #f5f5f5;
}

.per-page-option.active-option {
    background-color: #e0e0e0;
}

.per-page-custom-input-group {
    border-top: 1px solid #eee;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.per-page-custom-input {
    flex-grow: 1; /* Allows input to take available space */
    padding: 3px;
    border-radius: 3px;
    border: 1px solid #ccc;
    text-align: center;
    min-width: 40px;
}

.per-page-apply-button {
    padding: 3px 8px;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #f0f0f0;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.per-page-apply-button:hover {
    background-color: #e0e0e0;
}

---

### Mobile Adjustments for Pagination

```css
@media screen and (max-width: 768px) {
    .pagination-and-per-page-controls {
        flex-direction: column; /* Stack them vertically on small screens */
        align-items: center; /* Center items when stacked */
        gap: 20px; /* More space between stacked sections */
    }

    .pagination-container {
        justify-content: center; /* Center the pagination buttons when stacked */
        flex-wrap: wrap; /* Allow page buttons to wrap if too many on small screens */
    }
    .pagination-buttons-group {
        flex-wrap: wrap; /* Allow page buttons to wrap if too many */
        justify-content: center; /* Center buttons within their group */
        gap: 10px; /* Reintroduce gap for wrapped buttons */
    }
    .pagination-buttons-group .pagination-button {
        margin-left: 0; /* Remove negative margin when wrapping */
        border-radius: 4px; /* Restore individual button rounding */
    }

    .per-page-dropdown-wrapper {
        margin-left: 0; /* Remove fixed margin when stacked */
    }
    .per-page-dropdown-content {
        /* KEY CHANGES FOR MOBILE DROPDOWN POSITIONING: Display ABOVE the button */
        top: auto; /* Reset top to allow bottom to take precedence */
        bottom: calc(100% + 5px); /* Position 5px above the button (100% of wrapper height + 5px gap) */
        margin-top: auto; /* Reset margin-top */
        margin-bottom: 0; /* Ensure no extra margin below */

        left: 50%; /* Center dropdown horizontally */
        right: auto; /* Override right:0 for centering */
        transform: translateX(-50%); /* Adjust for perfect centering */
        z-index: 1000; /* Ensure it remains on top */
    }
}

/* Small screen adjustments for very narrow views (e.g., <= 480px) */
@media screen and (max-width: 480px) {
    .pagination-button {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    .per-page-dropdown-button {
        padding: 4px 8px;
        font-size: 0.9em;
    }
    .per-page-option,
    .per-page-label,
    .per-page-custom-input,
    .per-page-apply-button {
        font-size: 0.85em;
    }
}
/* summary.css */

.summary-table-container {
  margin-top: 30px; /* Consistent spacing below pagination */
  display: flex;
  justify-content: flex-end; /* Align summary table to the right */
  /* Remove overflow-x from here, it should be on the main data table if needed */
}

.summary-table {
  border-collapse: collapse;
  width: auto; /* Allow table to shrink-wrap its content */
  border: 1px solid #ddd; /* Consistent border */
  border-radius: 8px; /* Rounded corners */
  overflow: hidden; /* Ensures rounded corners apply */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Subtle shadow */
}

.summary-table th,
.summary-table td {
  border: 1px solid #eee; /* Lighter borders for cells */
  padding: 12px 15px; /* Generous padding */
  text-align: left;
}

.summary-table th {
  background-color: #f8f8f8;
  font-weight: bold;
  color: #333;
}

.summary-table tr:nth-child(even) {
  background-color: #f9f9f9; /* Zebra striping */
}

/* Mobile adjustments for summary table (card layout if desired) */
@media screen and (max-width: 768px) {
  .summary-table-container {
    justify-content: center; /* Center summary table on small screens */
    margin-left: 0; /* Remove specific left margin */
    margin-right: 0; /* Remove specific right margin */
    width: 100%; /* Take full width */
    padding: 0 10px; /* Add some horizontal padding */
    box-sizing: border-box;
  }

  .summary-table {
    display: block;
    width: 100%; /* Take full width of its container */
    border: none; /* Remove table border if desired for card appearance */
    box-shadow: none; /* Remove shadow if individual rows have it */
  }

  .summary-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .summary-table tbody,
  .summary-table tr {
    display: block;
    width: 100%;
  }

  .summary-table tr {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }

  .summary-table td {
    display: block;
    text-align: right;
    padding-left: 50%;
    position: relative;
    border: none;
    padding: 10px 15px;
  }

  .summary-table td::before {
    content: attr(data-label); /* Requires data-label on TDs */
    position: absolute;
    left: 15px;
    width: calc(50% - 30px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
    text-align: left;
    color: #555;
  }
}

/* popup.css */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.popup-form {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 320px;
    max-width: 90%;
    background-color: #fff;
    padding: 20px;
    z-index: 1000;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.popup-form .close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 18px;
    cursor: pointer;
    color: #555;
}

.popup-form input {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.popup-form button {
    width: 100%;
    padding: 10px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.popup-form button:hover {
    background-color: #004b99;
}

.button-row {
    display: flex;
    justify-content: flex-end; /* or center/space-between as needed */
    gap: 10px; /* space between buttons */
    margin-top: 15px;
}

.button-row button {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

/* --- Mobile Device Adjustments --- */
@media (max-width: 768px) { /* Adjust breakpoint as needed for "mobile" */
    .popup-form {
        width: 95%; /* Make the form a bit wider on smaller screens */
        padding: 15px; /* Slightly reduce padding */
    }

    .popup-form .close-btn {
        font-size: 16px; /* Smaller close button */
        top: 8px;
        right: 10px;
    }

    .popup-form input {
        padding: 7px 9px; /* Slightly smaller input padding */
        margin-bottom: 10px; /* Reduced margin */
        font-size: 14px; /* Smaller text inside inputs */
    }

    .popup-form button {
        padding: 9px; /* Slightly smaller button padding */
        font-size: 15px; /* Smaller text on buttons */
    }

    .button-row {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 8px; /* Reduce gap between stacked buttons */
        margin-top: 10px;
    }

    .button-row button {
        width: 100%; /* Make buttons full width when stacked */
        padding: 10px; /* Adjust padding for full-width buttons */
        font-size: 15px; /* Consistent font size for stacked buttons */
    }
}

@media (max-width: 480px) { /* Even smaller screens (e.g., very small phones) */
    .popup-form {
        padding: 12px;
    }

    .popup-form .close-btn {
        font-size: 14px;
        top: 6px;
        right: 8px;
    }

    .popup-form input {
        padding: 6px 8px;
        margin-bottom: 8px;
        font-size: 13px;
    }

    .popup-form button {
        padding: 8px;
        font-size: 14px;
    }
     .button-row {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 8px; /* Reduce gap between stacked buttons */
        margin-top: 10px;
    }
    .button-row button {
        padding: 9px;
        font-size: 14px;
    }
}
/* === Global Reset & Base === */
html, body {
  height: 100%; /* Ensures html and body take full viewport height */
  margin: 0;
  padding: 0;
  overflow-y: auto; /* This makes the entire page scrollable vertically */
  overflow-x: hidden; /* Prevents horizontal scrollbar for the entire page */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f8;
  color: #333;
}

.app-container {
  display: flex;
  flex-direction: row;
  min-height: 100vh; /* Allow content to push height beyond viewport */
  width: 100%;
  overflow: hidden; /* Prevents app-container from having its own scrollbar */
  position: relative;
}
.main-page-container {
  margin: 0;
  padding: 0;
}
/* === Sidebar === */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh; /* Sidebar always takes full viewport height */
  background-color: #f6f6f7;
  color: #110000;
  padding: 10px;
  transform: translateX(0);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  overflow-y: auto; /* Allow sidebar content to scroll if it overflows */
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.sidebar.visible {
  transform: translateX(0);
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  padding: 10px 20px;
}

.sidebar .nav-link {
  color: #0e0000;
  text-decoration: none;
  display: block;
  background: none;
  border: none;
  padding: 8px 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.sidebar .nav-link:hover,
.sidebar .active {
  background-color: #f7f7fa;
  border-radius: 4px;
}

.submenu {
  padding-left: 20px;
  background-color: #f7f8fa;
  margin-top: 5px;
  position: relative;
}

.submenu::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ddd;
}

.submenu li {
  padding: 6px 10px;
}

/* === Navbar === */
.navbar {
  width: 100%;
  height: 60px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
  position: fixed; /* Keep navbar fixed at the top */
  top: 0;
  left: 0;
  z-index: 900;
  box-shadow: none;
}

.navbar .hamburger {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #1a237e;
  padding: 10px;
  display: none;
}

/* === Main Content === */
.main-content {
  flex-grow: 1;
  margin-top: 0; /* Account for fixed navbar */
  margin-left: 250px; /* Account for fixed sidebar */
  padding: 2rem;
  overflow-y: visible; /* Let the body handle scrolling */
  overflow-x: hidden;
  /* Removed height and max-height to allow content to dictate its own height */
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  transition: margin-left 0.3s ease;
}

/* === Tables === */
table {
  width: auto;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

table th,
table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #140101;
}

table th {
  background-color: #f3f3f7;
  color: #110101;
}

table tr:hover {
  background-color: #f1f1f1;
}

/* === Forms === */
input,
select,
textarea {
  padding: 8px 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* === Buttons === */
button {
  background-color: transparent;
  color: black;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 6px 12px;
  width: auto;
  display: inline-block;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
}

button:hover {
  background-color: #f9f9fc;
  color: rgb(14, 0, 0);
}

/* === Headings === */
h2, h3 {
  margin-bottom: 1rem;
  color: #1a237e;
}

/* === Bingo Print Styles === */
.print-bingo-card-container {
  display: inline-block;
  margin: 20px;
  text-align: center;
}

.print-bingo-card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.print-bingo-row {
  display: contents;
}

.print-bingo-header {
  background-color: #bf252d;
  border: none;
  color: #fff;
  font-weight: 700;
}

/* === Responsive === */
@media (max-width: 768px) {
  .sidebar {
    width: 200px;
    top: 60px;
    height: calc(100vh - 60px); /* Sidebar height accounts for navbar on mobile */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .sidebar.visible {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0 !important;
    margin-top: 60px;
    padding: 1rem;
    height: auto; /* Allow content to dictate height */
    max-height: none;
    overflow-y: visible; /* Let the body handle scrolling on mobile too */
  }

  .navbar .hamburger {
    display: block;
  }

  table {
    font-size: 14px;
  }

  input,
  select,
  textarea {
    width: 100%;
    font-size: 14px;
  }

  button {
    font-size: 14px;
    padding: 6px 10px;
    width: 100%;
    margin-bottom: 8px;
  }

  h2, h3 {
    font-size: 1.2rem;
  }
}

@media (min-width: 769px) {
  .sidebar {
    transform: translateX(0) !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    z-index: 1000;
  }

  .navbar .hamburger {
    display: none !important;
  }

  .main-content {
    margin-left: 250px !important;
  }
}
/* Scoped Global Styles for Login Page */
.login-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.login-page {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Login Page Container */
.login-page form {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 10%);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Heading */
.login-page h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

/* Input Fields */
.login-page input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.login-page input:focus {
  border-color: #4caf50;
}

/* Buttons */
.login-page .button-group {
  display: flex;
  justify-content: center; /* center buttons horizontally */
  gap: 15px; /* space between buttons */
  margin-top: 15px;
}

.login-page button {
  flex: 0 0 auto; /* don't stretch buttons */
  padding: 12px 25px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;
}

.login-page button:hover {
  background-color: #45a049;
}

.login-page button:active {
  background-color: #388e3c;
}

.login-page .cancel-button {
  background-color: #f44336;
}

.login-page .cancel-button:hover {
  background-color: #e53935;
}

.login-page .cancel-button:active {
  background-color: #c62828;
}

/* Message Text */
.login-page p,
.login-page .login-message {
  margin-top: 15px;
  font-size: 1rem;
  color: #d32f2f;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 480px) {
  .login-page form {
    padding: 20px;
    max-width: 320px;
  }

  .login-page h2 {
    font-size: 1.5rem;
  }

  .login-page input,
  .login-page button {
    padding: 10px 15px;
    font-size: 0.95rem;
  }

  .login-page .button-group {
    gap: 10px; /* slightly smaller space on small screens */
  }
}

/*# sourceMappingURL=main.3de97098.css.map*/