/* =======================================
   BASE STYLES
========================================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    direction: rtl;
    display: flex;
    min-height: 100vh;
}

/* =======================================
   HEADINGS
========================================== */
h1, h2, h3 {
    color: #333;
    margin-right: 20px;
}
h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* =======================================
   NAVIGATION (General)
========================================== */
nav {
    margin-bottom: 20px;
    text-align: center;
}
/* (Old nav a rule commented out to avoid green buttons)
nav a {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    display: inline-block;
}
*/
nav a:hover {
    background-color: #45a049;
}

/* =======================================
   CALENDAR & ADMIN CALENDAR
========================================== */
.calendar, .admin-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.calendar-header, .admin-calendar .calendar-header {
    font-weight: bold;
    text-align: center;
    background-color: #4CAF50;
    color: white;
    padding: 3px;
}
.calendar-day, .admin-calendar .calendar-day {
    border: 4px solid #ddd;
    padding: 10px;
    min-height: 220px;
    background-color: white;
    text-align: right;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}
.calendar-day:hover, .admin-calendar .calendar-day:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.calendar-day.empty {
    background-color: #f9f9f9;
    border: none;
}
.calendar-day .date, .admin-calendar .day-number {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
    text-align: center;
    padding: 5px;
    background-color: #f0f0f0;
    border-radius: 3px;
}
.shifts-summary {
    font-size: 0.9em;
    margin-top: 10px;
}

/* =======================================
   SHIFT SUMMARY & TABLE STYLES
========================================== */
.shift-summary {
    margin: 10px 0;
    border-radius: 3px;
    overflow: hidden;
    height: 250px; /* Set the desired height */
    border: 1px solid transparent; /* Color will be set by specific shift type class */
    box-sizing: border-box;
}

.shift-summary.בוקר {
    border-color: #FFA07A; /* Light Salmon */
}

.shift-summary.צהריים {
    border-color: #9370DB; /* Medium Purple */
}

.shift-summary.לילה {
    border-color: #20B2AA; /* Light Sea Green */
}
.shift-type {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1em;
    text-align: center;
    padding: 2px 0;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    font-size: 15px;
}
.shift-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8em;
}
.shift-table td:first-child {
    font-weight: bold;
}
.shift-table td:last-child {
    text-align: center;
}
/* Custom shift type colors */
/* .shift-summary:nth-child(1) .shift-type { background-color: #b8daff; } */
/* .shift-summary:nth-child(1) .shift-type { background-color: #ffd5b3; }
.shift-summary:nth-child(2) .shift-type { background-color: #b8b8ff; }
.shift-summary:nth-child(3) .shift-type { background-color: #66d8cf; } */

/* =======================================
   ADMIN SHIFT REQUIREMENTS CALENDAR
========================================== */
.shift-requirements-container {
    max-width: 100%;
    padding: 20px;
}
.month-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #4da780;
    color: white;
    font-weight: bold;
}
.weekdays > div {
    text-align: center;
    padding: 10px;
}
.weekdays_stage_b {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #5784ee;
    color: white;
    font-weight: bold;
}

.weekdays_stage_b > div {
    text-align: center;
    padding: 10px;
}


.days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(115px, 1fr));
  gap: 8px;
  justify-items: stretch;
}

.day-cell {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.day-cell.empty {
    background-color: #f9f9f9;
}
.day-number {
    font-weight: bold;
    margin-bottom: 10px;
}
.shift-inputs {
    display: flex;
    flex-direction: column;
}
.shift-input {
    margin-bottom: 5px;
}
.shift-input label {
    display: inline-block;
    width: 60px;
}
.shift-input input {
    width: 40px;
    text-align: center;
}

/* =======================================
   FORMS & MISCELLANEOUS
========================================== */
.edit-user-form {
    max-width: 500px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.form-group input[type="checkbox"] {
    margin-right: 5px;
}

/* =======================================
   ROUND BUTTON STYLES (No Green)
   Use for .button and .report-button
========================================== */
.report-button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #686e81;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 5px;
    text-align: center;
}
.report-button:hover, .button:hover {
    background-color: #a1a8c1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* =======================================
   SIDEBAR NAVIGATION
========================================== */
/* Sidebar container */
.sidebar {
    width: 250px;
    background-color: rgba(26, 42, 58, 0.9);
    color: white;
    padding: 30px 20px;
    height: 100vh;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    box-sizing: border-box;
}
/* User info block */
.sidebar .user-info {
    text-align: center;
    margin-bottom: 20px;
}
.sidebar .user-info h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
}
.sidebar .user-info p {
    font-size: 14px;
    color: #ccc;
}
/* Navigation list inside sidebar */
.sidebar nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.sidebar nav ul li {
    margin-bottom: 15px;
}
.sidebar nav ul li a {
    display: block;
    margin: 8px 0;
    padding: 10px 20px;
    border-radius: 30px;
    background-color: #686e81;
    color: #fff;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.sidebar nav ul li a:hover {
    background-color: #a1a8c1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.sidebar nav ul li a i {
    margin-left: 10px;
    font-size: 20px;
}
.sidebar nav ul li a span {
    font-size: 16px;
}

/* =======================================
   MAIN CONTENT - DESKTOP
========================================== */
main {
    flex-grow: 1;
    padding: 100px;   /* quite large */
    margin-right: 250px;
    max-width: calc(100% - 250px);
    /* ... */
  }
  

}

/* =======================================
   MODALS & MISCELLANEOUS
========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.large-textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    padding: 10px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* =======================================
   RESPONSIVE TABLES & FORMS
========================================== */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}
.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.user-table th,
.user-table td {
    padding: 10px;
    text-align: right;
    border-bottom: 1px solid #ddd;
}
.user-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}
.user-table tr:hover {
    background-color: #f5f5f5;
}
.button-small {
    font-size: 12px;
    padding: 5px 10px;
}
.button-danger {
    background-color: #ff4136;
}
.button-danger:hover {
    background-color: #ff1a1a;
}

/* =======================================
   ADDITIONAL MOBILE ADJUSTMENTS
========================================== */
@media screen and (max-width: 600px) {
    .user-table {
        font-size: 12px;
    }
    .user-table th,
    .user-table td {
        padding: 5px;
    }
    .button-small {
        font-size: 10px;
        padding: 3px 6px;
    }
}
@media screen and (max-width: 768px) {
    .calendar-day {
        padding: 5px;
        font-size: 0.95em;
    }
    .shift-summary {
        font-size: 0.85em;
    }
}

/* =======================================
   MOBILE FORMS & TABLE ADJUSTMENTS
========================================== */
@media screen and (max-width: 768px) {
    .form-row {
        display: block !important;
    }
    .form-group {
        width: 100% !important;
        margin-bottom: 15px;
    }
    .form-group label {
        font-size: 1em;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1em;
        width: 100% !important;
    }
    .add-user-form,
    .edit-user-form {
        padding: 10px;
    }
    .table-container {
        overflow-x: auto;
    }
    .user-table {
        font-size: 0.9em;
        min-width: 1000px;
    }
    .admin-calendar .calendar-week {
        grid-template-columns: repeat(1, 1fr) !important;
    }
    .admin-calendar .calendar-day {
        padding: 10px;
        margin-bottom: 10px;
    }
    .admin-calendar .calendar-header {
        display: none;
    }
}

/* =======================================
   MOBILE MENU & SIDEBAR OVERRIDES
========================================== */
.nav-links {
    list-style-type: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
}
.nav-links li a {
    color: white;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
}
.mobile-menu-toggle {
    display: none;
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    font-size: 18px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #003366;
        position: absolute;
        top: 50px;
        right: 10px;
        z-index: 1000;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    .nav-links.show {
        display: flex;
    }
    .mobile-menu-toggle {
        display: block;
        margin: 10px;
    }
    nav.main-nav {
        position: relative;
    }
}

/* =======================================
   SIDEBAR TOGGLE ICON FOR MOBILE
========================================== */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
    .sidebar-toggle::before {
        /*content: "☰";*/
        display: block;
        font-size: 28px;
        line-height: 28px;
    }
    .sidebar-toggle::after {
        content: "";
        display: none;
    }
    .sidebar-toggle {
        font-size: 28px;
        padding: 10px;
        width: 48px;
        height: 48px;
        text-align: center;
        background-color: #4CAF50;
        border-radius: 50%;
    }
}

/* =======================================
   FINAL MOBILE OVERRIDES: SIDEBAR PUSH BEHAVIOR & CALENDAR HORIZONTAL SCROLLING
========================================== */
@media (max-width: 768px) {
    /* Sidebar push instead of overlay */
    .sidebar {
        position: absolute;
        top: 0;
        right: 0;
        width: 40%;  /* Adjust width as desired */
        height: 100vh;
        background-color: #1a2a3a;
        z-index: 2000;
        overflow-y: auto;
        padding: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    .sidebar.active {
        transform: translateX(0);
    }
    /* Main content: push left when sidebar is open */
    main {
        margin-right: 0 !important;
        padding: 20px;
        max-width: 100%;
        transition: margin-right 0.3s ease;
    }
    main.sidebar-open {
        margin-right: 40%;  /* Same as sidebar width */
    }
    /* Remove overlay for push behavior */
    .overlay {
        display: none !important;
    }
    /* Allow horizontal scrolling for calendar grids while keeping 7 columns */
    .calendar, .admin-calendar {
        grid-template-columns: repeat(7, minmax(130px, 1fr)) !important;
        overflow-x: auto;
    }
}

/* =======================================
   PROFILE PAGE LAYOUT (Adjusted White Space)
========================================== */
.profile-page-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;  /* Reduced gap */
  background-color: #fff;
  padding: 10px;  /* Reduced padding */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 20px auto;  /* Reduced vertical margin */
}
.profile-left, .profile-right {
  flex: 1;
  min-width: 250px;
}
.avatar-circle {
  width: 80px;
  height: 80px;
  background-color: #ccc;
  border-radius: 50%;
  text-align: center;
  line-height: 80px;
  font-size: 30px;
  color: #fff;
  margin-bottom: 10px;
}
.user-fullname {
  margin: 0 0 5px 0;
  font-size: 22px;
  font-weight: bold;
}
.user-username {
  margin: 0 0 10px 0;
  color: #666;
}
.user-phone,
.user-stage,
.user-personal {
  margin: 4px 0;
}
.profile-right h3 {
  margin-top: 0;
}
.licenses-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.license-card {
  flex: 1;
  min-width: 180px;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 10px;  /* Reduced padding */
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.license-card h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
}
@media (max-width: 768px) {
  .profile-page-wrapper {
    flex-direction: column;
    padding: 5px;
  }
  .profile-left, .profile-right {
    flex: 1 1 100%;
    min-width: auto;
  }
  .licenses-container {
    flex-direction: column;
  }
}
/* =======================================
   PROFILE PAGE LAYOUT MODIFICATIONS
========================================== */
.profile-page-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* Reduced gap between columns */
    background-color: #fff;
    padding: 10px; /* Reduce padding for less white space */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 10px auto; /* Reduced vertical margin */
  }
  
  .profile-left, .profile-right {
    flex: 1;
    min-width: 250px;
  }
  
  /* Optionally, reduce any extra margin in the left column */
  .profile-left {
    flex: 0 0 180px; /* or whatever width you prefer */
    max-width: 180px;
    padding: 10px;   /* reduce padding if you want it even smaller */  
  }
  
  /* Adjust header spacing in the right column */
  .profile-right h3 {
    margin-top: 0;
    margin-bottom: 5px;
  }
  
  /* =======================================
     MY SHIFTS SECTION STYLING
  ========================================== */
  .my-shifts-section {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 10px;
  }
  
  /* Styling for the shifts table for a card-like appearance */
  .shifts-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;  /* Adds space between rows */
  }
  .shifts-table th, .shifts-table td {
    padding: 10px;
    text-align: right;
  }
  .shifts-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  .shifts-table td {
    background-color: #fff;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  .shifts-table tr:hover td {
    background-color: #f9f9f9;
  }
  .user-idnumber {
    margin: 4px 0;
    color: #444;
  }
  
  .user-status {
    margin: 4px 0;
    font-weight: bold; /* or however you'd like to style it */
    color: #333;
  }
/* Edit User Form Layout */
.edit-user-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* space between sections */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 1200px; /* optional max width */
    margin: 20px auto; /* center horizontally */
  }
  
  /* Each form section as a “card” */
  .form-section {
    flex: 1 1 300px; /* each section at least 300px wide, will wrap if not enough space */
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  /* Minimal spacing on headings in sections */
  .form-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
  }
  
  /* Reduce spacing on form groups */
  .form-group {
    margin-bottom: 10px; /* less vertical space */
  }
  
  /* Adjust the label & input styles if desired */
  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
  }
  
  .form-group input[type="text"],
  .form-group input[type="password"],
  .form-group input[type="date"],
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  /* Optional: style the submit button row */
  .form-row {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
  }
  .edit-user-form {
    gap: 15px; /* or 10px */
    padding: 15px; /* reduce from 20px if you want less whitespace */
  }
  .form-section {
    flex: 1 1 280px; /* narrower columns */
    padding: 10px;   /* smaller card padding */
  }
/* Sidebar footer styling */
.sidebar-footer {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}
.sidebar-footer p {
    font-size: 10px;
    color: #ccc;
    margin: 0;
    line-height: 1.2;
}
  /* 1) Shrink the overall shift container */
.shift-container {
  max-width: 800px;           /* Keeps it narrower */
  margin: 0 50px 20px;        /* Center it horizontally, add bottom margin */
  padding: 10px;              /* Less padding than before */
  border: 3px solid #ccc;     /* Visible border */
  border-radius: 5px;
  background-color: #fff;
  min-height: auto !important;  /* Override any min-height rules */
  height: auto !important;       /* Ensure no fixed height is set */
  width: auto;
}

/* 2) Make internal sections more compact */
.shift-info,
.admin-controls,
.shift-actions {
  margin: 0;
  /* padding: 10px;*/
  min-height: auto !important;
  height: auto !important;
}

/* 3) If there's a "bordered-section" inside, reduce its padding too */
.bordered-section {
  /* padding: 25px;*/ 
  margin-bottom: 10px;
  border: 2px solid #e4e2efe6;
  border-radius: 5px;
  
}

/* 4) Decrease gaps between elements (like flex gap) if you have them */
.shift-info {
  display: flex;    /* or whatever layout you use */
  flex-wrap: wrap;
  gap: 10px;        /* reduce from a higher value */
}

/* 5) Headings can also create extra space; reduce their margin */
.shift-container h3 {
  font-size: 1.50em; /* increase font size */
  margin-bottom: 10px;
  text-align: right; /* optional for better alignment */
}

.shift-container h4 {
  margin: 0 0 10px 0;
  font-size: 1.2em;  /* smaller font if desired */
}
/* If your main content or container has a margin-right set for the sidebar, 
   reduce it to shrink the whitespace. */
   main {
    margin-right: 200px; /* was 250px or more */
    padding: 20px;       /* ensure padding is not too large */
  }
  
  /* If you have a container for your shifts, also ensure it 
     doesn't have large padding or margin on the right. */
  .shift-container {
     /* margin-right: 20px;  /* or a small value if you need some spacing */
    /* ... any other styling */
  }
  
  /*!
 * Expiring Licenses - Pretty Page Style
 * © 2025 YourCompany. All rights reserved.
 */

/* Global reset and base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 1;
  }
  body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    direction: rtl;
    padding: 20px;
  }
  
  /* Content wrapper styling */
  .content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  /* Page heading */
  .content-wrapper h3 {
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #2c3e50;
    text-align: center;
  }
  
  /* Report table styling */
  .report-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-top: 20px;
  }
  
  .report-table thead {
    background-color: #3498db;
    color: #fff;
  }
  
  .report-table th,
  .report-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 0.95em;
  }
  
  .report-table th {
    font-weight: bold;
  }
  
  /* Alternate row background */
  .report-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  /* Remove border from last row */
  .report-table tbody tr:last-child td {
    border-bottom: none;
  }
  
  /* Expiring dates styling */
  .expiring {
    color: #c0392b;
    font-weight: bold;
    background-color: #ffe6e6;
    border-radius: 4px;
    padding: 5px;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .report-table th, .report-table td {
      padding: 10px 8px;
      font-size: 0.9em;
    }
    .content-wrapper {
      padding: 15px;
    }
  }
  .volunteer-name {
    display: inline-block;
    margin-right: 5px;
}

.volunteer-comment {
    font-size: 0.8em;
    color: #666;
}

.calendar-day .volunteers-list li {
    margin-bottom: 5px;
}
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.filter-form {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.button-primary {
  background-color: #4CAF50;
  color: white;
}

.button-secondary {
  background-color: #f44336;
  color: white;
}

.activity-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.activity-table th, .activity-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: right;
}

.activity-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.activity-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.activity-table tr:hover {
  background-color: #f5f5f5;
}

.pagination-container {
  margin-top: 20px;
  text-align: center;
}

.pagination-container .pagination li {
  display: inline-block;
  margin: 0 5px;
}

.pagination-container .pagination li a {
  padding: 5px 10px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
}

.pagination-container .pagination li.active a {
  background-color: #4CAF50;
  color: white;
  border-color: #4CAF50;
}

.no-results {
  text-align: center
  }
  body {
    direction: rtl;
    font-family: Arial, sans-serif;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
}

.calendar-table th, .calendar-table td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: right;
}

.calendar-table th {
    background-color: #b8860b;
    color: white;
}

.day-cell {
    vertical-align: top;
    height: 80px;
}

.day-number {
    font-weight: bold;
    margin-bottom: 5px;
}

.shift-input {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2px;
}

.shift-input label {
    margin-left: 5px;
}

.shift-input input {
    width: 30px;
    text-align: center;
}

.other-month {
    background-color: #f9f9f9;
}

.month-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.button {
    background-color: #4a5568;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 15px;
}

.form-actions {
    margin-top: 20px;
    text-align: center;
}

h2 {
    text-align: center;
}
.shift-legend {
  margin: 4px 0;
  padding: 4px;
  background-color: #fafafa;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  justify-content: center;
  /*font-weight: bold;*/
}

.shift-label {
  /*padding: 2px 7px;*/
  border-radius: 5px;
  color: rgb(3, 3, 3);
}

.shift-בוקר {
  background-color: #ffd5b3;
  
}

.shift-צהריים {
  background-color: #b8b8ff;
}

.shift-לילה {
  background-color: #66d8cf;
}
.checkbox-right label {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    direction: rtl;
}
.activation_percentage_report .report-table {
  width: 100%;
  border-collapse: collapse;
}

.activation_percentage_report .report-table th,
.activation_percentage_report .report-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: right;
}

.activation_percentage_report .report-table th {
  background-color: #f2f2f2;
}
.popup {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.popup-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.expired {
  background-color: #ffcccc;
  font-weight: bold;
}

.expiring {
  background-color: #ffffcc;
}
@media screen and (min-width: 769px) {
  .calendar-mobile {
    display: none;
  }
}
body.mobile-enabled {
  @media screen and (max-width: 768px) {
    /* All your mobile styles here */
  }
}
.admin-permission {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 20px;
  margin-bottom: 30px;
}
.sidebar-timer {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: #444857;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  margin: 10px;
}
.sidebar-timer .material-icons {
  font-size: 18px;
}
.smaller-text {
font-size: 0.8em;
color: #666;
}

.button-container {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.button-container .button {
  flex-shrink: 0;
}
  @media screen and (max-width: 768px) {   
    .shift-container {
      max-width: 800px;           /* Keeps it narrower */
      margin: 0 auto 20px;        /* Center it horizontally, add bottom margin */
      padding: 10px;              /* Less padding than before */
      border: 3px solid #ccc;     /* Visible border */
      border-radius: 5px;
      min-height: auto !important;  /* Override any min-height rules */
      height: auto !important;       /* Ensure no fixed height is set */
      font-size: 0.9em; /* increase font size */      
    }
      .required-volunteers {
        font-size: 1.0em !important; 
        width: 25px !important;
    }
  }
/* only when נדרש≠נרשמו */
.smaller-text.mismatch {
  color: red;
}


/* 2) Right-align each LI, give it a tiny padding so text doesn’t overlap the bullet */
.volunteers-list ul li {
  position: relative;
  text-align: right;       /* name flush right */
  padding-right: 0.10em;   /* very small gap between text & bullet */
  margin: 2px 0;           /* tighten vertical spacing */
  line-height: 1.2;
}

/* ───────────────────────────────────────
   1) Prevent the volunteer line from wrapping
───────────────────────────────────────── */
.calendar-day .volunteers-list li {
  white-space: nowrap;
}

/* ───────────────────────────────────────
   2) Let each “calendar” column grow to fit its widest content
───────────────────────────────────────── */
.calendar {
  /* instead of 1fr, use minmax(max-content, 1fr) */
  grid-template-columns: repeat(7, minmax(max-content, 1fr)) !important;
}

.b-stage-summary {
  background-color: #e0f0ff;  /* light blue background */
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 5px;
}
.shift-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 5px;
  margin-bottom: 4px;
  direction: rtl;
}

/* Input box */
.shift-input {
  width: 50px;
  height: 26px;
  text-align: center;
  border: 1px solid #aaa;
  border-radius: 5px;
  font-weight: bold;
}

/* Colored label only */
.shift-label {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  color: #000;
  min-width: 65px;
  text-align: right;
  margin-left: 8px;
}

.day-number {
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
  color: #333;
  background-color: #fff;
  border-radius: 5px;
  padding: 4px 0;
  border: 1px solid #ddd;
}
.day-cell {
  border: 2px solid #ddd;
  padding: 6px;
  min-height: 160px; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

