﻿body {
  background-color: #ffffff; /* white background */
  background: #ffffff !important; /* override any background-image/gradient */
  color: #000000;  /* black text */
  padding-top: 40px !important; 
  min-height: 100vh; /* Ensures the gradient covers the full viewport */
  font-family: Verdana, Arial, Helvetica, sans-serif; 
  font-size: 14px; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 18px;     /* Optional: rounded corners for the border */
  margin: 10px;    /* Space between border and browser edge */
  box-sizing: border-box;    /* Ensures border is included in sizing */
}

body.purple {
  padding-top: 90px;
  /* all white for very old browsers*/
  background-color: #ffffff;
  /* White at the top, purple at the bottom */
  background: linear-gradient(to bottom, #ffffff 0%, #4C2A7C 100%) !important;
  min-height: 100vh; /* Ensures the gradient covers the full viewport */
  font-family: Verdana, Arial, Helvetica, sans-serif; 
  font-size: 14px; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  border-radius: 18px;     /* Optional: rounded corners for the border */
  margin: 10px;    /* Space between border and browser edge */
  box-sizing: border-box;    /* Ensures border is included in sizing */
}

.banner {
  position: fixed;
  width: 100vw; /* Ensures full viewport width */
  top: 0;
  left: 0;
  height: 60px;
  background: #4A287C;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px 0 20px;
  z-index: 1000; /* Ensures it stays above any sidebar */
  box-sizing: border-box; /* Include padding in width */
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.banner2 {
  direction: ltr; /* explicitly set left-to-right */
  position: fixed;
  width: 100vw;
  top: 60px;  /* Place directly below .banner */
  left: 0;
  height: 30px;
  background: #ffc367;
  color: #222;
  display: flex;    /* CORRECT */
   align-items: center;  /* vertically centers items */
   z-index: 1000;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  justify-content: space-between; /* so hamburger left and username right */
  padding: 0 40px;
}

.banner > a.logo {
  flex: 0 0 auto;
}

.user-info {
  flex: 1;
  text-align: right;
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
}

.tooltipWrapper {
  position: relative;
  display: none;          /* only show on mobile */
  margin-right: 5px;      /* keep it inside the banner, away from edge */
}

.tooltipWrapper img {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Tooltip bubble */
.tooltipdynText {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 125%;              /* show BELOW the icon */
  right: 0;               /* align right edge of bubble with icon */
  background-color: #333; /* dark background */
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: normal;
  width: 50vw;            /* make width 50% of viewport width */
  max-width: 400px;       /* optional: max width on larger screens */
  min-width: 200px;       /* optional: minimum width for usability */
  box-sizing: border-box;
  text-align: left;
  transition: opacity 0.2s;
  z-index: 1001;
  overflow-wrap: break-word;
  bottom: auto;
}

/* Show bubble on hover */
.tooltipWrapper:hover .tooltipdynText {
  visibility: visible;
  opacity: 1;
}
    /* Mobile rules */
    @media (max-width: 768px) {
      .user-info {
        display: none; /* hide username on mobile */
      }
      .tooltipWrapper {
        display: block; /* only show tooltip container */
      }
    }
.logo {
  height: 60px;
  /* Adjust as needed */
}

.two_columns {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  min-height: 600px;
  gap: 10px;
  padding: 50px 10px; /* Add this line for horizontal padding */
  margin: 10px 0;  /* Optionally remove left/right margin */
  box-sizing: border-box;
  align-items: flex-start; /* <-- KEY line added */
}
.nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  color: #fff !important;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 8px 12px;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: #fff;
  color: #4C2A7C !important;
  border-radius: 4px;
}

.login-btn {
  background: #fff;
  color: #4C2A7C;
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 1.1rem;
  margin-left: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.login-btn:hover {
  background: #eae6f8;
  color: #2a1650;
}  

.login {
  position: absolute;  /* Center the box absolutely in the viewport */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;    /* Adjust width as needed */
  max-width: 90vw;   /* Responsive on small screens */
  padding: 40px 30px;
  background: #fff;  /* White background for contrast */
  border-radius: 24px;     /* Large rounded corners */
  box-shadow: 0 8px 32px rgba(76, 42, 124, 0.18); /* Soft shadow for depth */
  z-index: 1000;   /* Ensure it's above other content */
  text-align: center;    /* Center text and form elements */
  margin: 40px auto 0;   /* centers horizontally with some top margin */
}

.login form {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers children horizontally */
  width: 100%;
}

.login label {
  align-self: flex-start; /* aligns labels to the left within the form */
  margin-bottom: 6px;
}

.login input[type=text], .login input[type=password] {
  width: 90%; /* or a fixed width like 250px */
  display: block;
  margin-bottom: 18px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.login button.login-btn {
  width: 90%; /* or auto for a smaller button */
  margin-top: 12px;
}

.panel {
  flex: 1 1 50%;   /* Grow and shrink equally, starting at 50% width */
  width: 50%;
  padding: 40px;
  box-sizing: border-box;
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  font-size: 1.2rem;
  border-radius: 18px; /* Add this for rounded corners */
  transition: box-shadow 0.2s;
}

.panel + .panel {
  background: #eae6f8;
}

.many-panels {
  display: flex;
  flex-direction: column;
  align-items: center; /* center panels horizontally */
  gap: 24px;   /* space between panels */
  width: 100%;
}

.each-panel {
  width: 50%;
  padding: 40px;
  box-sizing: border-box;
  background: #f4f4f4; /* default background */
  border: 1px solid #e0e0e0;
  font-size: 1.2rem;
  border-radius: 18px;
  transition: box-shadow 0.2s;
}

.each-panel:nth-child(even) {
  background: #eae6f8; /* alternate background for even-numbered panels */
}

.each-panel h3 {
  margin-top: 0.4em;     /* Remove space above */
  /* Optionally control bottom margin too: */
  margin-bottom: .6em;  /* Modify as needed for tighter or looser spacing below */
}

.many-purple {
  display: flex;
  flex-direction: column;
  align-items: center; /* center panels horizontally */
  gap: 24px;   /* space between panels */
  width: 100%;
}

.each-panel_purple1 {
  width: 50%;
  padding: 20px;
  box-sizing: border-box;
  background: #eae6f8; /* default background */
  border: 1px solid #e0e0e0;
  font-size: 1rem;
  border-radius: 18px;
  transition: box-shadow 0.2s;
  position: relative;  /* NEW */
}

.each-panel_purple1 h3 {
  margin-top: 0.4em;     /* Remove space above */
  font-size: 1.2rem;
  /* Optionally control bottom margin too: */
  margin-bottom: 1.0em;  /* Modify as needed for tighter or looser spacing below */
}

/* Optional: Prevent horizontal scrolling by hiding overflow */
html, body {
  overflow-x: hidden;
}

.submit-btn {
  background-color: #4C2A7C;   /* Default purple */
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: 1.1rem;
  margin-left: 20px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.submit-btn:hover,
.submit-btn:focus {
  background-color: #6b3fa0;   /* Lighter or different shade of purple */
  color: #fff;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 90px; /* 60px + 30px; */ Adjusted for purple and gold banners */
  width: 240px;
  height: calc(100vh - 90px);
  /* Ombre gradient: light at top, dark at bottom */
  background: linear-gradient(to bottom, #ffffff 0%, #4C2A7C 100%);
  color: #fff;
  padding-top: 20px;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.main-content {
  margin-left: 240px; /* Width of sidebar */
}

.menu {
  margin-bottom: 10px;
}

.menu-title {
  position: relative;
  width: 100%;
  background: none;
  border: none;
  color: #000;
  text-align: left;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
}

.menu-title:hover {
  background: #333;
}

.menu-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
  flex-direction: column;
  background: #ffc367; 
  padding-left: 20px;
  padding-right: 20px; /* Add right padding */
  display: flex; /* always flex, just hide via max-height */
}

.menu-content a {
  color: #000;
  padding: 5px 0;
  text-decoration: none;
  transition: color 0.2s;
}

.menu-content a:hover {
  color: #fff;
}

.menu.open .menu-content {
  /* max-height will be set inline via JS for smooth open */
}

.menu-separator {
  border: none;
  border-top: 1px solid #444;
  margin: 5px 0;
  width: 85%;
  align-self: center;
  background: none;
 }
 
.caret {
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.2s;
  font-size: 1em;
  /* Use a Unicode triangle for the caret */
  content: '';
}

.caret::before {
  content: '▶'; /* Right-pointing by default */
  display: inline-block;
}

/* When menu is open, rotate caret down */
.menu.open .caret::before {
  content: '▼'; /* Down-pointing when open */
}

.error-message,
.error-message-login {
  display: flex;
  align-items: flex-start; /* <-- align icon and text to the top */
  background: linear-gradient(90deg, #ffe6e6 80%, #ffcccc 100%);
  color: #a94442;
  border: 1px solid #f5c6cb;
  border-left: 6px solid #e53935;
  padding: 18px 22px;
  margin: 24px auto;
  border-radius: 8px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1.15em;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(229,57,53,0.08);
  max-width: 90%;
  box-sizing: border-box;
  margin: 20px auto 20px; /* center above login with spacing */
  position: relative;   /* keep it in normal document flow */
  z-index: 1001;  /* slightly above the login if overlapping */
}

.error-message .icon,
.error-message-login .icon{
  font-size: 1.5em;
  margin-right: 14px;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

.error-message-side {
  display: flex;
  align-items: center; /* Center icon and text vertically */
  background: linear-gradient(90deg, #ffe6e6 80%, #ffcccc 100%);
  color: #a94442;
  border: 1px solid #f5c6cb;
  border-left: 6px solid #e53935;
  padding: 18px 22px;
  margin: 24px auto;
  border-radius: 8px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1em;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(229,57,53,0.08);
  max-width: 90%;
  box-sizing: border-box;
}

.error-message-side .icon {
  font-size: 1em;
  margin-right: 14px;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

.good-message {
  display: flex;
  align-items: flex-start; /* <-- align icon and text to the top */
  background: linear-gradient(90deg, #e6f5e9 80%, #bbe6bb 100%); /* light to medium green */
  color: #2e7d32; /* dark green text color for contrast */
  border: 1px solid #a5d6a7; /* soft green border */
  border-left: 6px solid #388e3c; /* stronger green accent on left */
  padding: 18px 22px;
  margin: 24px auto;
  border-radius: 8px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1.15em;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(56, 142, 60, 0.08); /* subtle green shadow */
  max-width: 90%;
  box-sizing: border-box;
  margin: 20px auto 20px; /* center above login with spacing */
  position: relative;   /* keep it in normal document flow */
  z-index: 1001;  /* slightly above the login if overlapping */
}

.good-message .icon {
  font-size: 1.5em;
  margin-right: 14px;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

.phone-message {
  display: flex;
  align-items: flex-start;
  background: linear-gradient(90deg, #d9e8fa 80%, #a5c8f5 100%);
  color: #1a477a;
  border: 1px solid #89a9d9;
  border-left: 6px solid #2a5599;
  padding: 18px 22px;
  margin: 20px auto;
  border-radius: 8px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1.15em;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(42, 85, 153, 0.08);
  max-width: 90%;
  box-sizing: border-box;
  position: relative;
  z-index: 1001;
}

.phone-message .icon {
  font-size: 1.5em;
  margin-right: 14px;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

.step {
  display: flex;
  align-items: flex-start;
  font-size: 1.2rem;
  max-width: 600px; /* or whatever width you prefer */
  gap: 2ch; /* space between label and content */
}

.step-label {
  font-weight: bold;
  flex-shrink: 0;  /* prevent label from shrinking */
  white-space: nowrap; /* keep label on one line */
}

.step-content {
  flex: 1 1 0;
  min-width: 0; /* Allows flex item to shrink properly and wrap text */
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.stepmulti {
  display: flex;
  align-items: flex-start;
  font-size: 1.2rem;
  max-width: 600px;
}

.step-labelmulti {
  font-weight: bold;
  flex: 0 0 160px;     /* fixed width for label */
  white-space: nowrap; /* keep label on one line */
}

.step-contentmulti {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

table {  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; font-size: 16px; text-decoration: none;}
td {  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; font-size: 16px; text-decoration: none;}
h1 {  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; font-size: 16px; text-decoration: none; font-weight: bold; line-height: 14px}
h2 {  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; font-size: 14px; text-decoration: none; font-weight: bold; line-height: 14px}
h3 {  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; color: #4A287C; font-size: 1.4rem; text-decoration: none; font-weight: 600; line-height: 14px}
p {  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; font-size: 16px; text-decoration: none; line-height: 14px}
.asterisk {  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; color: #555555; font-size: .9rem; text-decoration: none; font-weight: 400; line-height: 18px}
.textFields {  border: #000000; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; font-size: 16px}

/* Normal unvisited links */
a:link {
  color: #663399;
  text-decoration: none;
}

/* Visited links */
a:visited {
  color: #663399;
  text-decoration: none;
}

/* Hover state */
a:hover {
  color: #009966;
  text-decoration: underline;
  position: relative;
}
/*line-height: 14px*/

a span {display: none;}

a:hover span {display: block;position: absolute; top: 16px; left: 0; 
  /* formatting only styles */
  padding: 5px; margin: 16px; z-index: 100;
   background: #FFFFCC; border: 1px dotted #c0c0c0;
  text-decoration: none;
  opacity: 0.9;
  /* end formatting */
}

/* General Container */
.profile-container {
  max-width: 960px;
  margin: 32px auto;
  background: #f4f4f4;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 3px 8px rgba(0, 0, 0, 0.05);
  padding: 24px;
  box-sizing: border-box;
}

/* General Container */
.profile-container2 {
  max-width: 100%;
  margin: 32px auto;
  padding: 24px;
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 3px 8px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

/* Profile Header */
.profile-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 18px;
  flex-wrap: wrap;
}

/* Left side: Photo + Name + Nickname */
.profile-left {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1 1 50%;
  min-width: 300px;
}

.photo-nickname {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.profile-photo-wrapper {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  background: #e6e8ec;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Name + Status + Email */
.profile-info {
  flex-grow: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: visible;
}

.profile-info h2 {
  margin: 0 0 4px 0;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  padding-top: 4px;
  overflow-wrap: break-word;
}

.profile-status {
  color: #2ecc40;
  font-weight: 500;
  font-size: 1rem;
  margin-left: 8px;
}

/* Vertical divider */
.profile-divider {
  width: 1px;
  background-color: #ddd;
  margin: 0 12px;
}

/* Right metadata */
.profile-right {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-width: 240px;
}

/* Tabs navigation */
.profile-tabs {
  display: flex;
  gap: 16px;
  margin: 24px 0 14px 0;
  border-bottom: 1.5px solid #e5e7eb;
  flex-wrap: wrap;
}

.profile-tab {
  padding: 8px 0;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}

.profile-tab.active {
  color: #4A287C;
  border-bottom: 2.5px solid #4A287C;
}

.profile-section {
  display: none;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(30, 34, 90, 0.04);
  padding: 20px 24px;
  margin-bottom: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.profile-section.active {
  display: block;
}

.profile-section h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #4A287C;
  margin-bottom: 10px;
  font-weight: 600;
}

.newprofile-section {
  display: block;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(30, 34, 90, 0.04);
  padding: 20px 24px;
  margin-bottom: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.newprofile-section h3 {
  margin-top: 5px;
  font-size: 1.2rem;
  color: #4A287C;
  margin-bottom: 10px;
  font-weight: 600;
}

.newprofile-section h2 {
  margin-top: 5px;
  font-size: .9rem;
  color: #222222;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.1;
}

/* Hide mobile-only divider on larger screens */
.mobile-only-divider {
  display: none;
}

.upload-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #4A287C;
  transition: background 0.2s;
}

.upload-btn:hover {
  background: #f2eaff;
}

.nickname {
  font-style: italic;
  color: #666;
  font-size: 0.85rem;
  text-align: center;
  max-width: 108px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-block {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}
.info-label {
  color: #666;
  font-weight: 500;
}
.info-value {
  color: #23272f;
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

/* Base wrapper for each row */
.info-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 12px; /* vertical spacing between rows */
  font-family: inherit;
  gap: 12px; /* space between the two boxes */
}

/* Left label box */
.info-row .label {
  flex: 0 0 20%;  /* fixed to 20% width */
  font-weight: bold;
  font-size: 0.9em; /* slightly smaller font */
  padding: 10px 15px;
  border-radius: 8px;
  display: flex;
  align-items: center; /* vertically center text */
}

.info-row .details {
  flex: 1;  /* take up remaining space (~80%) */
  font-size: 0.8em; /* slightly smaller font */
  padding: 10px 15px;
  border-radius: 8px;
  /* Remove flex and align-items */
  display: block;
  /* Optional: vertically center using padding or line-height if needed */
}

/* Background alternation for label + details */
.info-row:nth-child(odd) .label,
.info-row:nth-child(odd) .details {
  background-color: #e34963;
  color: #000; /* readable against dark red-pink */
}

.info-row:nth-child(even) .label,
.info-row:nth-child(even) .details {
  background-color: #ffc367;
  color: #000; /* readable against light cream */
}

/* Base wrapper for each row */
.info-row-gray {
  display: flex;
  align-items: stretch;
  margin-bottom: 12px; /* vertical spacing between rows */
  font-family: inherit;
  gap: 12px;
  width: 100%;  /* total width 80% of container */
  margin-left: auto;   /* center horizontally */
  margin-right: auto;
}

/* Left label box */
.info-row-gray .label {
  flex: 0 0 15%;    /* fixed 15% width */
  font-weight: bold;
  font-size: 1em;
  padding: 5px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  background-color: #eae6f8; /* light purple */
  color: #222;     
}

/* Right details box */
.info-row-gray .details {
  flex: 1;     /* remaining ~85% */
  font-size: 0.9em;
  padding: 5px 10px;
  border-radius: 8px;
  display: block;
  background-color: #cccccc; /* lighter gray */
  color: #000;
}

.basic-section {
  display: block; /* always show */
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(30, 34, 90, 0.04);
  padding: 20px 24px;
  margin-bottom: 18px;
}

.basic-section h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #4A287C;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Grid form: 2-col layout */
.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px 28px;
}

.grid-form .field {
  display: flex;
  flex-direction: column;
}

.grid-form .field.full-width {
  grid-column: 1 / -1;
}

.grid-form .field.empty {
  visibility: hidden;
}

.grid-form label {
  font-weight: 500;
  margin-bottom: 4px;
  color: #444;
  font-size: 0.9rem;
}

.grid-form input {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #222;
}

.grid-form input::placeholder {
  color: #888;
  font-style: italic;
}

.grid-form select {
  padding: 6px 10px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #222;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.grid-form select:focus {
  outline: 2px solid #4A287C;
}

/* Fieldset & Divider */
.section-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 16px 0;
}

.section-divider.full-width {
  grid-column: 1 / -1;
}

.new-section-divider.full-width {
  width: 100%;  /* fill container width */
  height: 1px;  /* visible height */
  border: none;     /* remove default border */
  background-color: #ccc; /* color of the line */
  margin: 12px 0;     /* vertical spacing */
}

/* Make the button fill the full width of its container */
.full-btn {
  margin-top: 16px;
  background-color: #4A287C;
  color: #fff !important;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  transition: background 0.2s ease;  
  box-shadow: 0 1px 4px rgba(74,40,124,0.07);
  text-align: center;
  text-decoration: none !important;
  vertical-align: middle;
  appearance: none;
  line-height: 1.29;
  width: 100% !important; /* force full width */
  box-sizing: border-box; /* include padding/border in width */
  margin-left: 0;     /* remove any horizontal margin */
  margin-right: 0;
  padding: 8px 16px;
}

.full-btn:hover {
  background-color: #6b3fa0;
}

.select-wrapper {
  position: relative;
  display: inline-block;  /* allow wrapper to size to content */
  width: auto;    /* allow to grow/shrink based on content */
  max-width: 100%;  /* never overflow container */
  box-sizing: border-box;
  min-width: 200px; /* or whatever width fits your longest expected option */
}

.select-wrapper select {
  padding: 6px 36px 6px 10px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  background: url('data:image/svg+xml;utf8,<svg fill="%23666" height="8" viewBox="0 0 8 8" width="8" xmlns="http://www.w3.org/2000/svg"><path d="M0 2l4 4 4-4z"/></svg>') no-repeat right 12px center;
  background-size: 8px 8px;
  font-size: 0.95rem;
  color: #222;
  cursor: pointer;
  min-width: 84px;   /* You can adjust this number */
  width: auto;     
  max-width: 100%;   
  box-sizing: border-box;
  line-height: 1.3;
  height: 38px;
}

/* Remove styled select wrapper arrow if not needed */
.select-wrapper2 {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px; /* fix height */
}

.select-wrapper2 select {
  width: 100%;
  height: 38px;     /* fix height to match .filter-field select */
  padding: 6px 38px 6px 10px; /* right padding to fit arrow */
  font-size: 0.95rem;
  line-height: 1.4;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #222;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  box-sizing: border-box;
}

/* Style custom arrow for selects, if you want to keep it */
.select-wrapper2::after {
  content: '';
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg); /* keep arrow vertically centered */
  border-left: 2px solid #666;
  border-bottom: 2px solid #666;
  width: 8px;
  height: 8px;
  box-sizing: border-box;
}

.medium-container {
  width: 75%;
  max-width: 900px;     /* Optional max-width for better responsiveness */
  margin: 0 auto;     /* Center horizontally */
  padding: 20px;
  box-sizing: border-box; /* Include padding inside width */
  background-color: #ffebcc;
  border: 1px solid #e0e0e0;   /* Same border */
  border-radius: 12px;  /* Rounded corners */
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 3px 8px rgba(0,0,0,0.05); /* subtle shadow */
}

.wider-container {
  width: 90%;
  margin: 0 auto;     /* Center horizontally */
  padding: 20px;
  box-sizing: border-box; /* Include padding inside width */
  background-color: #ffebcc;
  border: 1px solid #e0e0e0;   /* Same border */
  border-radius: 12px;  /* Rounded corners */
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 3px 8px rgba(0,0,0,0.05); /* subtle shadow */
}

/* People count */
.people-count {
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 12px;
  color: #333;
}

/* Filter Section */
.filter-section {
  background-color: #ffebcc;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Section Headings */
.filter-section h3 {
  font-size: 1.4rem;
  color: #4A287C;
  margin-bottom: 12px;
  font-weight: 600;
}

/* Three columns for filter fields, with vertical dividers */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px 32px; /* vertical gap 16px, horizontal gap 32px */
  position: relative;
}

.filter-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  align-items: stretch; /* make children fill column width */
}

/* Vertical divider after first and second column */
.filter-col:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: -16px;
  width: 1px;
  height: 100%;
  background: #e0d7ba;
  z-index: 1;
}

/* Filter row: labels at left, fields at right */
.filter-field {
  display: flex;
  align-items: center;
  gap: 8px;    /* Space between label and field */
  position: relative;
  margin-bottom: 4px;    /* Space between rows */
}

.filter-field label {
  flex-basis: 110px;     /* Adjust as needed for your widest label */
  flex-shrink: 0;
  text-align: right;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
  padding-right: 8px;
}

.filter-field input[type=text], .filter-field input[type=date], .filter-field select {
  height: 38px;  /* Fixed, identical height */
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.95rem;
  color: #222;
  box-sizing: border-box;
  background-color: #fff;
  width: 100%;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border 0.2s;
}

/* Ensures select and input fields align on height */
.filter-field select {
  padding-right: 38px;    /* consistent with wrapper */
  height: 38px;     /* keep consistent */
}

/* Table styling (unchanged) */
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  min-width: 600px; /* adjust as needed */
}

.results-table th,
.results-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle; /* Ensure table cells align content vertically middle */
}

.results-table th {
  background-color: #fafafa;
  color: #4a4a4a;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.results-table th.sort-asc::after {
  content: " ▲";
  font-size: 0.85em;
  color: #888;
}

.results-table th.sort-desc::after {
  content: " ▼";
  font-size: 0.85em;
  color: #888;
}

.results-table tr:hover {
  background-color: #f5f5f5;
}

/* Zebra striping on rows */
.results-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.results-table .edit-col {
  width: 40px;
  text-align: center;
}

.results-table .edit-col a {
  text-decoration: none;
  color: #4A287C;
  font-size: 1rem;
  display: inline-block;
  padding: 4px;
  transition: color 0.2s;
}
.results-table .edit-col a:hover {
  color: #6b3fa0;
}

.results-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.results-table tr.summary-row:hover {
  background-color: #A392BC;
  cursor: default;
}

.results-table input.textFields.rounded,
.results-table textarea.textFields.rounded,
.results-table select.textFields.rounded {
  height: 38px; /* Set a uniform height */
  box-sizing: border-box;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  width: 100%;     /* Make full width of the table cell */
  vertical-align: middle;  /* Align vertically in cell */
  resize: both;  /* If you want textarea resizable vertically */
}

.textFields.rounded {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  color: #222;
  background-color: #fff;
  box-sizing: border-box;
  appearance: none;
  cursor: pointer;
}

.filter-actions {
  display: flex;
  justify-content: center; /* Centers horizontally */
  margin-top: 18px;
}

.find-btn,
a.find-btn,
button.find-btn {
  display: inline-block;
  background-color: #4A287C;
  color: #fff !important;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 10px 26px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(74,40,124,0.07);
  text-align: center;
  text-decoration: none !important;
  vertical-align: middle;
  appearance: none;
  line-height: 1.29;
}

.find-btn:hover,
.find-btn:focus {
  background-color: #6b3fa0;
  color: #fff;
}

/* Italic placeholder for all inputs */
input::placeholder,
textarea::placeholder {
  font-style: italic;
  color: #888;
  opacity: 1;
}

.single-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: 0px;  /* adjust this value to control horizontal start */
  margin-right: auto;
}

/* Each field row: label + input horizontally aligned */
.single-column .field {
  display: flex;
  align-items: left;
  gap: 12px;
  justify-content: flex-start;
}

/* Full-width fields stacked vertically */
.single-column .field.full-width {
  display: flex;  /* ensure flex container */
  flex-direction: column; /* stack children vertically */
  align-items: stretch;   /* stretch children horizontally */
  width: 100%;  /* full width */
}

/* Labels: fixed width based on widest label, right aligned text */
.single-column label {
  flex-shrink: 0;
  width: 140px;  /* Set this to the width of your widest label */
  font-weight: 500;
  color: #444;
  font-size: 0.9rem;
  white-space: nowrap;
  text-align: right;
}

.single-column input[type=text],
.single-column input[type=date],
.single-column input[type=tel],
.single-column input[type=email],
.single-column input[type=password],
.single-column select {
  max-width: 50ch;
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #222;
  background-color: #fff;
  box-sizing: border-box;
}

/* Placeholder styling */
.single-column input::placeholder {
  color: #888;
  font-style: italic;
}

/* Select appearance and focus styling */
.single-column select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.single-column select:focus,
.single-column input:focus {
  outline: 2px solid #4A287C;
}

/* Container for each full data row */
.structure-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 80px 100px; /* Adjust widths as needed */
  gap: 12px 20px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;  /* subtle separator */
}

.structure-row:last-child {
  border-bottom: none;
}

/* Column content styling */
.structure-row > div,
.structure-row > a {
  font-size: 0.95rem;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

/* Level & Active columns: center text */
.structure-row .level,
.structure-row .active {
  text-align: center;
  font-weight: 600;
  color: #4A287C; /* Purple */
}

/* System Name & Custom Name columns: inputs style from .single-column */
.structure-row .system-name,
.structure-row .custom-name {
  display: flex;
  align-items: center;
}

.structure-row input[type=text],
.structure-row select {
  font-size: 0.95rem;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #222;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  appearance: none;
}

/* Edit link column: right aligned */
.structure-row .edit-link {
  text-align: right;
}

.structure-row .edit-link a {
  color: #4A287C;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.structure-row .edit-link a:hover {
  color: #6b3fa0;
  text-decoration: underline;
}

.td-yes {
  background-color: #e6f5e9 !important;  /* very light green */
  transition: background 0.25s;
}

.td-no {
  background-color: #ffe6e6 !important;  /* very light red */
  transition: background 0.25s;
}

.indented-text {
  padding-left: 2em;     /* Indents the text by about two "M" character widths */
  white-space: pre-wrap;   /* Preserves whitespace and wraps lines */
  display: block;
  line-height: inherit;
  font-family: inherit;  /* match surrounding font */
  font-size: inherit;
  color: inherit;
}

/* Base Table Styling */
.results-table2 {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  /* Remove table-layout: fixed; to allow auto sizing */
}

/* Header Row (non-sortable) */
.results-table2 th {
  background-color: #fafafa;
  color: #4a4a4a;
  user-select: none;
  font-weight: 600;
}

/* Cells */
.results-table2 th,
.results-table2 td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  /* Remove white-space: nowrap; */
  /* Remove width: 50%; */
  word-break: break-word;         /* Add for long unbroken words */
  overflow-wrap: break-word;      /* Add for long content */
  vertical-align: top;            /* Optional: makes wrapped text look neater */
}

/* Row Hover */
.results-table2 tr:hover {
  background-color: #f5f5f5;
}

/* Zebra striping */
.results-table2 tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Optional edit column for icons/links */
.results-table2 .edit-col {
  width: 40px;
  text-align: center;
}

.results-table2 .edit-col a {
  text-decoration: none;
  color: #4A287C;
  font-size: 1rem;
  display: inline-block;
  padding: 4px;
  transition: color 0.2s;
}

.results-table2 .edit-col a:hover {
  color: #6b3fa0;
}

/* Sticky Header */
.results-table2 thead th {
  position: sticky;
  top: 0;
  background-color: #fafafa;   /* redundant but harmless */
  z-index: 2;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* Dropdown column for row updates */
.results-table2 .select-col {
  min-width: 120px;
}

.results-table2 .select-col select {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
}

.results-table2 .select-col select:focus {
  outline: none;
  border-color: #4A287C;
  box-shadow: 0 0 3px rgba(74, 40, 124, 0.5);
}

.results-table2 tbody tr td:first-child {
  text-align: right;
  font-weight: 600;
  padding-right: 12px;
  white-space: normal;
  background-color: #ffebcc;
}

/* Default: flexible first column */
.results-table2 tbody tr td:first-child {
  /* clear any fixed width */
  width: auto;
  max-width: none;
}

/* On larger screens (PC), fix first column width */
@media (min-width: 768px) {
  .results-table2 tbody tr td:first-child {
    width: 180px; /* Fixed width for PC */
    max-width: 180px;
    word-wrap: break-word; /* wrap long text */
  }
}

.each-panel_purple1 .results-table2 tbody tr td:first-child {
  text-align: right !important;
  font-weight: 600 !important;
  padding-right: 12px !important;
  white-space: normal !important;
  background-color: #ffebcc !important;
}

/* Modal overlay - dark translucent background */
.modal-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}

.modal-box {
  background: #fff;
  padding: 30px 24px;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(76, 42, 124, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  color: #222;
  min-width: 320px;
  max-width: 90vw;
  box-sizing: border-box;
}

/* Label styling */
.modal-box label {
  font-weight: 500;
  color: #444;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 6px;
}

/* Select dropdown */
.modal-box select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #222;
  background-color: #fff;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-height: 38px;
  width: 100%;
  box-sizing: border-box;
}

.modal-box select:focus {
  outline: 2px solid #4A287C; /* purple focus */
}

/* Buttons - save and cancel */
.modal-box button {
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-weight: 600;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 4px rgba(74, 40, 124, 0.07);
  margin-right: 10px;
  min-width: 80px;
}

/* Save button - purple brand */
.modal-box .full-btn {
  background-color: #4A287C;
  color: #fff;
}

.modal-box .full-btn:hover,
.modal-box .full-btn:focus {
  background-color: #6b3fa0;
  outline: none;
}

/* Cancel button - neutral grey */
.modal-box .cancel-btn {
  background-color: #ccc;
  color: #222;
}

.modal-box .cancel-btn:hover,
.modal-box .cancel-btn:focus {
  background-color: #bbb;
  outline: none;
}

/* Schedule grid: let each day box shrink but keep equal width */
.schedule {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  max-width: 100%;
  /* For smaller text scaling */
  font-size: clamp(0.8rem, 1vw, 1.2rem);
}

.day, .slot {
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: #fff; /* adjust if needed */
}

/* Row 1: Day names */
.day {
  background: #e34963; /* change to your site’s primary color */
}

/* Row 2: Schedule data */
.slot {
  background: #eae6f8; /* slightly lighter/darker version */
  min-height: 80px;   /* ensures enough space */
  color: #4A287C;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.1; 
}

.guideline-list {
  list-style: none;
  margin-left: 1.2em;    /* Indent whole list */
  padding-left: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.guideline-list li {
  text-indent: -1.5em;   /* Negative indent larger to pull text closer */
  margin-bottom: 0.75em;
  line-height: 1.4;
  padding-left: 0;
}

.guideline-list li::before {
  content: "-";
  display: inline-block;
  width: 1.5em;   /* Matches negative indent */
  margin-right: 0;    /* Remove any margin */
  vertical-align: top;
  white-space: nowrap;
}

.each-panel_elapsed {
  width: 50%;
  padding: 20px;
  box-sizing: border-box;
  background: #ffebcc;  /* light background to differentiate */
  border: 1px solid #d0d0f0;
  font-size: 1.2rem;
  border-radius: 18px;
  text-align: center;   /* center the timer */
  font-weight: 500;
}

.each-panel_elapsed .step-label {
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}


/* General Container */
.multifind-container {
  max-width: 100%;
  margin: 32px auto;
  background: #ffebcc;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 3px 8px rgba(0, 0, 0, 0.05);
  padding: 24px;
  box-sizing: border-box;
}

/* Tabs navigation */
.find-tabs {
  display: flex;
  gap: 16px;
  margin: 24px 0 14px 0;
  border-bottom: 1.5px solid #e5e7eb;
  flex-wrap: wrap;
}

.find-tab {
  padding: 8px 0;
  font-weight: 500;
  font-size: 1.2em; 
  color: #888;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}

.find-tab.active {
  color: #4A287C;
  font-size: 1.2em;
  border-bottom: 2.5px solid #4A287C;
}

/* Container for the timecard section (copy of your original profile-section style, renamed for clarity) */
.timecard-section {
  display: none;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(30, 34, 90, 0.04);
  padding: 20px 24px;
  margin-bottom: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.timecard-section.active {
  display: block;
}

.timecard-section h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #4A287C;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Flex wrapper for button group */
.btn-group {
  display: flex;
  gap: 8px; /* spacing between buttons */
}

/* Base button style */
.btn {
  width: 40px;               /* square buttons */
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;           /* icon size */
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

/* Review button (blue) */
.review-btn {
  background: #1576f2;
  color: #fff !important;
}
.review-btn:hover {
  background: #0b4fa6;
}

/* Approve button (green) */
.approve-btn {
  background: #24b47e;
  color: #fff;
}
.approve-btn:hover {
  background: #168055;
}

/* Flag button (red) */
.flag-btn {
  background: #ee8196;
  color: #fff;
}
.flag-btn:hover {
  background: #b52d46;
}


/* Timecard Table Styling */
.timecard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  /* Remove fixed layout */
  table-layout: auto;
min-width: 600px; /* or adjust to actual minimum width needed */
}

.timecard-table th,
.timecard-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.timecard-table th {
  background-color: #fafafa;
  color: #4a4a4a;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.timecard-table th.sort-asc::after {
  content: " ▲";
  font-size: 0.85em;
  color: #888;
}
.timecard-table th.sort-desc::after {
  content: " ▼";
  font-size: 0.85em;
  color: #888;
}

.timecard-table thead th {
  position: sticky;
  top: 0;
  background-color: #fafafa;
  z-index: 2;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.timecard-table tr.summary-row {
  background-color: #A392BC;
  font-weight: bold;
  color: #222;
}

.timecard-table tr:hover:not(.summary-row) {
  opacity: 0.95;
}

/* ===== Status-based coloring ===== */

/* Approved rows */
.timecard-table tr.approved-row {
  background-color: #d8f5d1 !important; /* light green */
}

/* Flagged rows */
.timecard-table tr.flagged-row {
  background-color: #f8d4d4 !important; /* light red */
}

/* Pending rows (zebra effect only among pendings) */
.timecard-table tr.pending-row:nth-of-type(odd) {
  background-color: #f5f5f5 !important; /* very light gray */
}
.timecard-table tr.pending-row:nth-of-type(even) {
  background-color: #ebebeb !important; /* alternating gray */
}

.edit-timecards-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  table-layout: auto;
  min-width: 600px;
}

.edit-timecards-table th,
.edit-timecards-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  white-space: normal;
  word-wrap: break-word;
  vertical-align: middle;
}

.edit-timecards-table th {
  background-color: #fafafa;
  color: #4a4a4a;
  user-select: none;
  font-weight: 600;
}

.edit-timecards-table thead th {
  position: sticky;
  top: 0;
  background-color: #fafafa;
  z-index: 2; /* baseline */
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
.edit-timecards-table thead tr:first-child th {
  z-index: 3; /* top header stronger stacking */
}

.edit-timecards-table tr:hover:not(.summary-row) {
  opacity: 0.95;
}
.edit-timecards-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.edit-timecards-table .edit-col {
  width: 40px;
  text-align: center;
}
.edit-timecards-table .select-col {
  padding: 0;
}
.edit-timecards-table .select-col select {
  width: 100%;
  padding: 5px 8px; /* last definition wins */
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  box-sizing: border-box;
}
.edit-timecards-table .select-col select:focus {
  outline: none;
  border-color: #4A287C;
  box-shadow: 0 0 3px rgba(74, 40, 124, 0.5);
}

.edit-timecards-table input.textFields.rounded,
.edit-timecards-table textarea.textFields.rounded {
  height: 38px;
  min-height: 38px;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
}
.edit-timecards-table textarea.textFields.rounded {
  overflow: auto;
}

/* Generic textFields (non-rounded) */
.edit-timecards-table input.textFields,
.edit-timecards-table textarea.textFields,
.edit-timecards-table select {
  font-size: 0.9rem;
  padding: 5px 8px; /* overrides earlier 6px/10px */
}

.edit-timecards-table tr.summary-row {
  background-color: #A392BC !important;
  font-weight: bold;
  color: #222;
  border-top: 2px solid #6E519E;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edit-timecards-table th.group-header.actual {
  background-color: #DDEAF7;
  text-align: center;
  color: #1B3A6F;
  font-weight: 700;
  border-bottom: 2px solid #1B3A6F;
}
.edit-timecards-table th.group-header.revised {
  background-color: #F2E6FA;
  text-align: center;
  color: #5C2A72;
  font-weight: 700;
  border-bottom: 2px solid #5C2A72;
}

/* Actual & revised cells */
.edit-timecards-table th.actual,
.edit-timecards-table td.actual {
  background-color: #DDEAF7;
}
.edit-timecards-table th.revised,
.edit-timecards-table td.revised {
  background-color: #FAF7FF;
}
.edit-timecards-table td.actual,
.edit-timecards-table td.revised {
  vertical-align: middle;
}
.edit-timecards-table td.actual:nth-child(5),
.edit-timecards-table td.revised:nth-child(9),
.edit-timecards-table tr.summary-row td:nth-child(9) {
  text-align: right;
  font-weight: bold;
}

.single-column-ctr {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: auto;   /* center container in parent */
  margin-right: auto;
  align-items: center; /* center all child rows */
}

/* Each field row: label + input centered in container */
.single-column-ctr .field {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;  /* center the row contents */
  width: 100%;    /* so it respects container width */
}

/* Full-width fields stacked vertically */
.single-column-ctr .field.full-width {
  flex-direction: column;
  align-items: center;  /* center stack for full-width fields */
  width: 100%;
}

/* Labels: fixed width and right-aligned text */
.single-column-ctr label {
  flex-shrink: 0;
  width: 200px; /* increase until longest label fits comfortably */
  font-weight: 500;
  color: #444;
  font-size: 0.9rem;
  white-space: nowrap;
  text-align: right; /* text inside the label stays right aligned */
  margin-right: 8px; /* optional extra space between label and field */
}

/* Inputs */
.single-column-ctr input[type=text],
.single-column-ctr input[type=date],
.single-column-ctr input[type=password],
.single-column-ctr select {
  max-width: 50ch;
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #222;
  background-color: #fff;
  box-sizing: border-box;
  text-align: left;  /* input text starts from left edge */
}

.tooltip {
  position: absolute;
  display: inline-block;
  cursor: pointer;
  top: 30px;
  right: 10px;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 400px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px 8px;
  border-radius: 6px;
  text-align: left; /* left justify the tooltip text */
  position: absolute;
  z-index: 9999;
  bottom: auto;
  top: 100%;    /* positions tooltip below the image */
  right: 100%;  /* positions tooltip to the left of the image */
  margin-top: 8px; /* a bit downward */
  margin-right: 8px; /* some spacing from image */
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 10px; /* vertical position of arrow */
  left: 100%; /* arrow to the right edge of tooltip */
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #555; /* arrow pointing right (towards img) */
}

.tooltip:hover .tooltiptext,
.tooltip:focus .tooltiptext {
  visibility: visible;
  opacity: 1;
}

				@media (max-width: 768px) {
				  .tooltip {
				    display: none;
				  }
				}

.center-all {
  display: flex;
  justify-content: center;
  text-align: center;
  height: 100%; /* Optional: set container height if needed */
}

select.textFields.rounded {
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
  appearance: menulist !important;
  cursor: pointer;
}

.project-list {
  padding-left: 20px; /* indent */
  list-style-type: disc;
color: #2e7d32; /* dark green text color for contrast */
}

.project-list li {
  margin-bottom: 8px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-list .remove-project {
  background: transparent;
  border: none;
  font-weight: bold;
  cursor: pointer;
  font-size: 18px;
  padding: 0 6px;
  line-height: 1;
  transition: color 0.3s;
}

.project-list .remove-project:hover {
  color: #990000;
}

.hamburger-menu {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #222;
  cursor: pointer;
  display: none; /* hidden by default, show on mobile */
  padding: 0;
  margin-right: auto;
  margin-left: 5px;  /* smaller value */
  padding-left: 0;
}

/* Modal box mobile optimization */
.modal-box {
  width: 95% !important; 
  max-width: 400px;
  margin: auto;
  padding: 20px;
}

.instructions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 1200px;      /* Match datacards max-width */
  margin-left: auto;      /* Center container horizontally */
  margin-right: auto;
  margin-bottom: 24px; /* or whatever spacing you want */
  padding: 10px 12px;     /* Match datacards horizontal padding */
  box-sizing: border-box;
  background: #ffebcc;
  border: 1px solid #e0e0e0;
  font-size: 1.2rem;
  border-radius: 18px;
  transition: box-shadow 0.2s;
}
.instructions h3 {
  margin-bottom: 4px;
}

.instructions ul {
  margin-top: 0;
}

				/* All Mobile */
				
				/* ===========================
				   MOBILE STYLES (<= 768px)
				   =========================== */
				@media (max-width: 768px) {
				  .login {
				    width: 90%;
				    max-width: 90%;
				    padding: 20px;
				    margin: 20px auto;
				    box-shadow: none;
				    box-sizing: border-box;
				    position: relative; /* remove absolute positioning on mobile */
				    top: auto;
				    left: auto;
				    transform: none;
				    margin-top: 100px !important; /* push error down below banner */
				  }

				  .error-message,
				  .phone-message,
				  .good-message {
				    width: 100% !important;
				    max-width: 100% !important;
				  }

				  .error-message-login {
				    width: 100% !important;
				    max-width: 100% !important;
				    margin-top: 100px !important; /* push error down below banner */
					position: relative;
				    z-index: 900;
				  }

				  .single-column .field {
				    flex-direction: column;
				    align-items: flex-start;
				  }
				
				  .single-column label {
				    width: auto;
				    text-align: left;
				    margin-bottom: 6px;
				  }
				
				  .single-column input,
				  .single-column select {
				    width: 100%;
				  }

				  .mobile-only-divider {
				    display: block;
				    border: none;
				    border-top: 1px solid #ccc;
				    margin: 16px 0;
				    width: 100%;
				    box-sizing: border-box;
				  }
				
				  .profile-header {
				    flex-direction: column;
				    align-items: center;
				    gap: 14px;
				    padding-bottom: 0;
				  }
				
				  .profile-divider {
				    width: 100%;
				    height: 1px;
				    background-color: #ddd;
				    margin: 18px 0 8px 0;
				    display: block;
				  }
				
				  .profile-left {
				    flex-direction: column;
				    align-items: center;
				    min-width: 0;
				    width: 100%;
				    justify-content: center;
				  }
				
				  .profile-right {
				    flex: 1 1 100%;
				    min-width: 0;
				    display: grid;
				    grid-template-columns: 1fr 1fr;
				    gap: 0 12px;
				    margin-top: 8px;
				    padding-bottom: 14px;
				  }
				
				  .photo-nickname {
				    align-items: center;
				    width: 100%;
				    margin-bottom: 8px;
				  }
				
				  .profile-photo-wrapper {
				    margin: 0 auto 10px auto;
				    display: flex;
				    justify-content: center;
				    width: 96px;
				    height: 96px;
				  }
				
				  .profile-info {
				    display: flex;
				    flex-direction: column;
				    align-items: center;
				    text-align: center;
				    width: 100%;
				    min-width: 0;
				    white-space: normal;
				    overflow-wrap: break-word;
				    word-break: break-word;
				    margin-bottom: 0;
				  }
				
				  .profile-info h2 {
				    font-size: 1.1rem;
				    margin: 0 0 4px 0;
				    text-align: center;
				    overflow-wrap: break-word;
				    word-break: break-word;
				  }
				
				  .profile-status {
				    display: inline-block;
				    margin-top: 6px;
				    font-size: 1rem;
				    white-space: nowrap;
				  }
				
				  .info-block {
				    display: contents;
				  }
				
				  .info-label,
				  .info-value {
				    padding: 6px 0;
				    font-size: 0.96em;
				  }
				
				  .info-label {
				    color: #666;
				    text-align: left;
				    font-weight: 500;
				  }
				
				  .info-value {
				    color: #23272f;
				    font-weight: 600;
				    text-align: right;
				    word-break: break-word;
				    line-break: anywhere;
				  }
				
				  .profile-section,
				  .profile-container {
				    border-radius: 10px;
				    margin: 10px 0;
				    padding: 16px 8px;
				    width: 100%;
				    max-width: 100%;
				    box-sizing: border-box;
				  }
				
				  .grid-form,
				  .profile-section form {
				    padding: 0 2vw;
				  }
				
				  .profile-section h3 {
				    font-size: 1.05rem;
				  }
				
				  .full-btn,
				  .submit-btn,
				  .login-btn {
				    font-size: 1rem;
				    padding: 10px;
				  }
				
				  .profile-container,
				  .profile-section,
				  .grid-form,
				  .single-column-ctr {
				    width: 100%;
				    max-width: 100%;
				    margin: 0 auto !important;
				    padding-left: 4vw !important;
				    padding-right: 4vw !important;
				    box-sizing: border-box;
				  }
				
				  input,
				  select,
				  textarea {
				    max-width: 100%;
				    box-sizing: border-box;
				    font-size: 16px !important; /* merged from 599px query */
				  }
				
				  .profile-container h3 {
				    font-size: 1.2rem;
				    line-height: 1.3;
				    margin: 0.3em 0 0.6em 0;
				  }
				
				  .filter-actions {
				    justify-content: center;
				  }
				
				  .find-btn {
				    width: 100%;
				    padding: 10px 0;
				  }
				
				  .structure-row {
				    display: flex;
				    flex-direction: column;
				    gap: 6px;
				  }
				
				  .structure-row > div,
				  .structure-row > a,
				  .structure-row .active,
				  .structure-row .level,
				  .structure-row .edit-link {
				    width: 100%;
				    text-align: left !important;
				  }

				  .two_columns {
				    flex-direction: column; /* forces vertical stacking */
				  }

				  .panel {
				    width: 100%;       /* full width */
				    box-sizing: border-box;
				    padding: 16px;
				    align-items: stretch;  /* fill width */
				    text-align: left;
				  }
				
				  .info-row {
				    display: flex;
				    flex-direction: column; /* stack label/details */
				    width: 100%;    /* full width */
				    max-width: 100%;    /* prevent fixed width */
				    margin: 0 0 0px 0;
				    gap: 6px;
				    align-items: stretch;
				  }
				
				  .info-row .label,
				  .info-row .details {
				    width: 100%;        /* fill .info-row width */
				    text-align: left;
				    padding-left: 10px;
				    padding-right: 10px;
				    box-sizing: border-box;
				    margin: 0;
				    display: block;
				  }

				  .single-column-ctr .field {
				    display: flex;
				    flex-direction: column;
				    align-items: flex-start;
				    gap: 6px;
				  }
				
				  .single-column-ctr label {
				    width: auto;
				    text-align: left;
				    margin-right: 0;
				  }
				
				  .single-column-ctr input[type=date],
				  .single-column-ctr input[type=text],
				  .single-column-ctr select,
				  .single-column-ctr textarea {
				    width: 90%;
				    max-width: 100%;
				    box-sizing: border-box;
				  }
				
				  .results-table2 {
				    font-size: 14px;
				  }
				
				  .results-table2 td,
				  .results-table2 th {
				    padding: 10px; /* simplified, removed redundant padding lines */
				  }
				
				  .results-table2 td:nth-child(2) {
				    width: 65%;
				    max-width: 65%;
				    padding-right: 20px;
				    box-sizing: border-box;
				  }

				  .results-table2,
				  .results-table2 th,
				  .results-table2 td {
				    font-size: 0.8rem;  /* or use 0.8rem, 12px, etc., as desired */
				  }

				  .newprofile-section,
				  .profile-container {
				    border-radius: 10px;
				    margin: 10px 0;
				    padding: 16px 8px;
				    width: 100%;
				    max-width: 100%;
				    box-sizing: border-box;
				  }
				
				  .grid-form,
				  .newprofile-section form {
				    padding: 0 2vw;
				  }
				
				  .newprofile-section h3 {
				    font-size: 1.05rem;
				  }
				
				  .full-btn,
				  .submit-btn,
				  .login-btn {
				    font-size: 1rem;
				    padding: 10px;
				  }
				
				  .profile-container,
				  .newprofile-section,
				  .grid-form,
				  .single-column-ctr {
				    width: 100%;
				    max-width: 100%;
				    margin: 0 auto !important;
				    padding-left: 4vw !important;
				    padding-right: 4vw !important;
				    box-sizing: border-box;
				  }

/* Ensure labels are left-aligned but no longer indented */
.single-column .field, .single-column-ctr .field {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;           /* Less gap for tighter spacing */
    margin-bottom: 10px !important; /* Slightly tighter */
}

/* Labels should not be indented; align to left and minimize extra margin */
.single-column label,
.single-column-ctr label {
    width: 100% !important;        /* Full width (not fixed) */
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 3px !important; /* Tighter below label */
    padding-left: 0 !important;    /* Remove indent */
}

/* Fields are centered horizontally in their row */
.single-column input,
.single-column select,
.single-column-ctr input,
.single-column-ctr select,
.single-column textarea,
.single-column-ctr textarea {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 95% !important;
    max-width: 95% !important;
    box-sizing: border-box;
    text-align: center !important;
    padding: 5px 8px !important;   /* Slightly tighter vertical padding */
}

/* Optional: Decrease the vertical space under each row even more if needed */
@media (max-width: 768px) {
    .single-column .field, .single-column-ctr .field {
        margin-bottom: 7px !important;
        gap: 3px !important;
    }
    .single-column label, .single-column-ctr label {
        margin-bottom: 2px !important;
    }
}
				}

@media (max-width: 768px) {
  /* Remove any left margin or padding from .field and label on mobile */
  .single-column .field,
  .single-column-ctr .field {
    flex-direction: column !important;
    align-items: stretch !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    gap: 2px !important;           /* Tighter label/field vertical spacing */
    margin-bottom: 10px !important;
  }

  /* Ensure label is flush left and takes 100% width of the field area */
  .single-column label,
  .single-column-ctr label {
    width: 100% !important;
    display: block !important;
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-bottom: 2px !important;    /* Small gap below label */
    font-size: 1em !important;
    font-weight: 500 !important;
    color: #444 !important;
  }

  /* Make sure all input/selects are full width and left justified */
  .single-column input,
  .single-column select,
  .single-column-ctr input,
  .single-column-ctr select,
  .single-column textarea,
  .single-column-ctr textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;           /* Keep input/placeholder left-aligned */
    padding: 6px 10px !important;          /* Consistent padding */
  }

  /* Override any centering for select wrappers */
  .select-wrapper, .select-wrapper2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
}

				
				/* ===========================
				   TABLE + PANELS (<= 768px)
				   =========================== */
				@media (max-width: 768px) {
				  .many-panels {
				    padding-left: 2px;
				    padding-right: 2px;
				  }
				
				  .each-panel {
				    width: 95%;
				    padding: 5px;
				  }

				  .each-panel h3 {
				    margin-top: 0.4em;     /* Remove space above */
				    /* Optionally control bottom margin too: */
				    margin-bottom: .6em;  /* Modify as needed for tighter or looser spacing below */
				    line-height: 1.3; /* or 1.4, tweak to taste */
				  }
				
				  .schedule {
				    grid-template-columns: repeat(7, minmax(30px, 1fr));
				    gap: 4px;
				    font-size: clamp(0.65rem, 1vw, 0.9rem);
				    overflow-x: auto;
				    padding-bottom: 8px;
				  }
			
				  .slot {
				    padding: 2px 2px;
				    min-height: 60px;
				    white-space: normal;
				    font-size: 0.75rem;
				    color: #4A287C;
				  }
				
				  .day {
				    padding: 2px 4px;
				    font-weight: 700;
				    background: #e34963;
				    color: #fff;
				  }
				}
				
				/* ===========================
				   GENERAL RESPONSIVE (<= 768px)
				   =========================== */
				@media (max-width: 768px) {
				  .profile-header {
				    flex-direction: column;
				    gap: 16px;
				  }
				
				  .profile-divider {
				    display: none;
				  }
				
				  .profile-left,
				  .profile-right {
				    width: 100%;
				  }
				
				  .info-block {
				    flex-direction: column;
				    gap: 4px;
				  }
				
				  .info-value {
				    text-align: left;
				  }
				
				  .profile-tabs,
				  .find-tabs {
				    gap: 10px;
				  }
				
				  .results-table th,
				  .results-table td {
				    font-size: 0.9rem;
				    padding: 8px;
				  }
				
				  .hamburger-menu {
				    display: block;
				  }
				
				  .banner {
				    padding: 0 20px 0 10px;
			        z-index: 2000 !important;
				  }
				
				  .banner2 {
				    padding: 0 20px 0 10px;
			        z-index: 2000 !important;
				  }

				  .main-content {
				    margin-left: 0;
				    transition: margin-left 0.3s ease;
				  }
				  
				
				  .OFFsidebar {
				    position: fixed;
				    top: 90px;
				    left: -240px;
				    width: 240px;
				    height: calc(100vh - 90px);
				    background: linear-gradient(to bottom, #ffffff 0%, #4C2A7C 100%);
				    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
				    transition: left 0.3s ease;
				    z-index: 1500;
				  }
				
				  .OFFsidebar.sidebar-open {
				    left: 0;
				  }
				
				  .OFFmain-content.sidebar-open {
				    margin-left: 240px;
				  }

					.sidebar {
					  position: fixed;
					  left: -100%;
					  width: 85vw;
					  max-width: 320px;
					  top: 90px;
					  bottom: 0;
					  height: auto;
					  z-index: 1200;
					  overflow-y: auto;
					  -webkit-overflow-scrolling: touch;
					  transition: left 0.3s ease;
					}
					
					  .sidebar.sidebar-open {
					    left: 0 !important;
					  }
					
					  /* Ensure submenus are scrollable and don't overflow */
					  .menu.open .menu-content {
					    -webkit-overflow-scrolling: touch;
					    position: relative;
					    max-height: none !important;
					    overflow: visible !important;
					  }
					
					  body.sidebar-open {
					    overflow: visible;
					  }
					
					
					  /* Do NOT shift main content on mobile when sidebar opens */
					  .main-content.sidebar-open {
					    margin-left: 0 !important;
					    transform: none !important;
					    position: relative !important;
					  }
					
					 .menu-content {
					  max-height: 0;
					  overflow: hidden;
					  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
					  display: flex;
					  flex-direction: column;
					  background: #ffc367;
					  padding-left: 20px;
					  padding-right: 20px;
					}
					
					  .sidebar-open ~ .main-content iframe {
					    pointer-events: none;
					  }


				  .each-panel,
				  .each-panel_purple1,
				  .each-panel_elapsed {
				    width: 100% !important;
				    max-width: 100%;
				    padding: 16px !important;
				    box-sizing: border-box;
				    font-size: 1rem;
				    margin-left: auto !important;
				    margin-right: auto !important;
				    display: block;
				    overflow-wrap: break-word;
				  }

				  .each-panel_purple1 h3 {
				    line-height: 1.4;   /* or 1.5, tweak to taste */					  
				  }
  
				  .many-panels {
				    width: 100%;
				    max-width: 100%;
				    margin: 0 auto;
				    display: flex;
				    flex-direction: column;
				    align-items: center;
				    padding: 0 5px;
				    box-sizing: border-box;
				  }
				
				  #elapsedtime {
				    font-size: 1.1rem;
				    padding: 4px 10px;
				    min-width: auto;
				  }
				
				  .results-table2 .select-col select {
				    font-size: 1rem;
				    padding: 8px;
				  }
				
				  .NOTINUSEeach-panel .step-content {
				    display: flex;
				    justify-content: center;
				    flex-wrap: wrap;
				  }
				
				  .each-panel .step-content .find-btn {
				    max-width: 100%;
				    white-space: normal;
				    box-sizing: border-box;
				    overflow-wrap: break-word;
				    word-break: break-word;
				  }
				}
				
				/* ===========================
				   FILTER BAR (<= 768px)
				   =========================== */
				@media (max-width: 768px) {
				  .filter-bar {
				    display: flex;
				    flex-direction: column;
				    gap: 20px;
				  }
				
				  .filter-field label {
				    text-align: left;
				    flex-basis: 100px;
				  }
				}


/* --- DATACARD LAYOUT AND STYLES --- */
.datacards-row {
  display: grid;
  /* 2 columns fixed on desktop with gap */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 12px;
}

.datacard {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 6px rgba(76, 42, 124, 0.06);
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  min-width: 340px;
  max-width: 520px;
  flex: 1 1 44%;
  width: 100%;
  overflow: hidden;
}

.datacards-row:has(.datacard:nth-child(1):only-child) {
  display: flex !important;    /* switch from grid to flex */
  justify-content: center;     /* center the only card horizontally */
  align-items: start;      /* top-align (or use center for vertical) */
  max-width: none !important;  /* remove grid’s max-width */
  padding: 0 !important;       /* remove side padding that pushes the card left */
  gap: 0 !important;       /* remove grid gap */
}
.datacards-row:has(.datacard:nth-child(1):only-child) .datacard {
  max-width: 520px;
  width: 100%;
}

.datacard-header {
  padding: 18px 24px 12px 24px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #4a287c;
  background: #eae6f8;
  border-radius: 18px 18px 0 0;
  border-bottom: 1px solid #e0e0e0;
  box-sizing: border-box;
}
.datacard-content {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-height: 180px;
  box-sizing: border-box;
}
.datacard-left {
  flex: 0 1 max-content;
  max-width: 48%;
  padding: 24px;
  background: #fafafa;
  box-sizing: border-box;
  border-right: 2px solid #e0e0e0;
  min-width: max-content;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.datacard-fields {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.datacard-label {
  font-weight: 500;
  color: #444;
  font-size: 0.94rem;
  margin-bottom: 2px;
}
.datacard-value,
.datacard-fields input,
.datacard-fields select {
  font-size: .95rem;
  color: #222;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  padding: 6px 10px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 2px;
}

.datacard-value {
  border: none;
  background: transparent;
  padding: 0;
}
/* --- DATACARD LAYOUT AND STYLES --- */
.datacard-fields select {
  appearance: none;
}

.datacard-fields select {
  appearance: none;
}
.datacard-save-btn {
  background: #4a287c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 0;
  font-size: 1.08rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  margin-top: 12px;
  flex-shrink: 0;
}
.datacard-save-btn:hover {
  background: #6b3fa0;
}
.datacard-right {
  flex: 1 1 auto;
  padding: 24px;
  background: #fff;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.datacard-right ul {
  color: #2e7d32;
  margin: 0 0 10px 1.2em;
  padding: 0;
}
.datacard-right li {
  margin-bottom: 8px;
  font-size: 1rem;
}
.datacard-right a {
  color: #663399;
  text-decoration: none;
}
.datacard-right a:hover {
  color: #009966;
  text-decoration: underline;
}

				
				
				/* ===== MOBILE: datacards match .instructions layout and each side full width ===== */
				@media (max-width: 768px) {
				  .datacards-row {
				    display: grid;
				    grid-template-columns: 1fr;        /* stack vertically */
				    gap: 16px;
				    max-width: 1200px;                /* match .instructions */
				    margin: 0 auto 24px;              /* centered, spacing below */
				    padding: 10px 12px;               /* match horizontal padding */
				    box-sizing: border-box;
				    justify-items: stretch;
				  }
				
				  .datacard {
				    width: 100%;
				    max-width: 100%;
				    min-width: 0 !important;          /* allow shrinking */
				    margin: 0;
				    border-radius: 18px;
				    overflow: hidden;
				    box-sizing: border-box;
				    box-shadow: 0 1px 6px rgba(76, 42, 124, 0.06);
				    border: 1px solid #e0e0e0;
				    background: #fff;
				  }
				
				  .datacard + .datacard {
				    margin-top: 12px;
				  }
				
				  .datacard-header {
				    padding: 16px 12px;
				    border-radius: 18px 18px 0 0;
				    box-sizing: border-box;
				    background: #eae6f8;
				  }
				
				  .datacard-content {
				    display: flex;
				    flex-direction: column;           /* stack left and right */
				    width: 100%;
				    box-sizing: border-box;
				    gap: 0;
				  }
				
				  /* Left section: full width */
				  .datacard-left {
				    width: 100% !important;
				    max-width: 100% !important;
				    padding: 18px;
				    background: #fafafa;
				    border-right: none !important;
				    border-bottom: 2px solid #e0e0e0;
				    box-sizing: border-box;
				  }
				
				  /* Right section: full width */
				  .datacard-right {
				    width: 100% !important;
				    max-width: 100% !important;
				    padding: 18px;
				    background: #fff;
				    box-sizing: border-box;
				    margin-top: 0;                    /* already separated by border-bottom */
				  }
				
				  .datacard-fields input,
				  .datacard-fields select {
				    width: 100% !important;
				    max-width: 100% !important;
				    box-sizing: border-box;
				  }
				
				  .datacard-save-btn {
				    width: 100%;
				    box-sizing: border-box;
				    margin-top: 12px;
				  }
				}
				
				@media (max-width: 768px) {
				  .medium-container {
				    width: 98%;
				    max-width: none;
				    padding: 10px 4px;
				    border-radius: 9px;
				    font-size: 1rem;
				  }
				
				  .basic-section {
				    padding: 10px 2px;
				    margin-bottom: 10px;
				    border-radius: 12px;
				    box-shadow: 0 0.5px 3px rgba(30,34,90,0.06);
				  }
				
				  .basic-section h3 {
				    font-size: 1.05rem;
				    margin-bottom: 8px;
				  }
				
				  .results-table {
				    min-width: 0;
				    width: 100%;
				    font-size: 0.98rem;
				    box-shadow: none;
				    border-radius: 5px;
				    overflow-x: auto;
				    display: block;
				  }
				
				  .results-table th,
				  .results-table td {
				    padding: 7px 6px;
				    font-size: 0.98rem;
				    white-space: normal;
				  }
				
				  .results-table th {
				    font-size: 0.95rem;
				  }
				
				  .results-table input.textFields.rounded,
				  .results-table textarea.textFields.rounded,
				  .results-table select.textFields.rounded {
				    font-size: 0.98rem;
				    height: 34px;
				    padding: 6px 7px;
				  }
				
				  .filter-actions {
				    margin-top: 12px !important;
				  }
				}

/* --- ONE DATACARD PER ROW, CENTERED --- */
.one_datacards-row {
  flex-direction: column;
  align-items: center;  /* Center datacard horizontally */
  gap: 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 75%;
}

/* Ensure single datacard is constrained and centered */
.one_datacard {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 6px rgba(76, 42, 124, 0.06);
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  margin-left: auto;
  margin-right: auto;  /* Center card itself */
  overflow: hidden;
  width: 75%;
  max-width: 1200px;   /* or any preferred cap */
  min-width: 340px;
}

/* Keep original sub-element styles for layout */
.one_datacard-header {
  padding: 18px 24px 12px 24px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #4a287c;
  background: #eae6f8;
  border-radius: 18px 18px 0 0;
  border-bottom: 1px solid #e0e0e0;
  box-sizing: border-box;
}
.one_datacard-content {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-height: 180px;
  box-sizing: border-box;
}
.one_datacard-left {
  flex: 0 1 max-content;
  max-width: 48%;
  padding: 24px;
  background: #fafafa;
  box-sizing: border-box;
  border-right: 2px solid #e0e0e0;
  min-width: 40%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.one_datacard-fields {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.one_datacard-label {
  font-weight: 500;
  color: #444;
  font-size: 0.94rem;
  margin-bottom: 2px;
}
.one_datacard-value,
.one_datacard-fields input,
.one_datacard-fields select {
  font-size: .95rem;
  color: #222;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  padding: 6px 10px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 2px;
}
.one_datacard-value {
  border: none;
  background: transparent;
  padding: 0;
}
.one_datacard-fields select {
  appearance: none;
}
.one_datacard-save-btn {
  background: #4a287c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 0;
  font-size: 1.08rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  margin-top: 12px;
  flex-shrink: 0;
}
.one_datacard-save-btn:hover {
  background: #6b3fa0;
}
.one_datacard-right {
  flex: 1 1 auto;
  padding: 24px;
  background: #fff;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.one_datacard-right ul {
  color: #2e7d32;
  margin: 0 0 10px 1.2em;
  padding: 0;
}
.one_datacard-right li {
  margin-bottom: 8px;
  font-size: 1rem;
}
.one_datacard-right a {
  color: #663399;
  text-decoration: none;
}
.one_datacard-right a:hover {
  color: #009966;
  text-decoration: underline;
}

.one_datacard-footer {
  background-color: #f4f4f4 ;  /* match header color */
  padding: 12px 20px;        /* similar padding */
  font-weight: 600;          /* similar font weight */
  border-bottom-left-radius: 18px;   /* round bottom left corner */
  border-bottom-right-radius: 18px;  /* round bottom right corner */
  border-top: 1px solid #e0e0e0;     /* subtle top border to separate from content */
  box-sizing: border-box;
  width: 100%;               /* fill full width */
  text-align: center;        /* center text or adjust as needed */
}
.gold_panel {
  background-color: #ffebcc;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(76, 42, 124, 0.07);
  margin: 2rem auto;
  padding: 24px;
  width: min(96%, 900px); /* dynamic width: fills screen until 900px */
  box-sizing: border-box;
}
.gold_title {
  color: #4a287c;
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 13px 0;
  letter-spacing: .01em;
  padding-bottom: 8px;
}
.snippet-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(76, 42, 124, 0.08);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.97em;
}
.snippet-table thead {
  background-color: #eae6f8;
}
.snippet-table th, .snippet-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  color: #3b2352;
  vertical-align: top;
}
.snippet-table th {
  font-size: 1.04em;
  font-weight: 600;
  color: #4a287c;
  white-space: nowrap;
  letter-spacing: 0.03em;
  vertical-align: top;
}

/* Zebra striping desktop */
.snippet-table tbody tr:nth-child(even) td {
  background-color: #f6f2fa;
}
.snippet-table tbody tr:nth-child(odd) td {
  background-color: #fff;
}
.snippet-edit-btn {
  color: #4a287c;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.2s;
  display: inline-block;
}
.snippet-edit-btn:hover {
  color: #06b39d;
}

/* Full-width button inside gold container */
.gold-panel-full-btn {
  display: block;             /* ensures it behaves like a block element */
  margin: 18px 0 0 0;         /* spacing above button, no side margins */
  background-color: #4A287C;
  color: #fff !important;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(74,40,124,0.07);
  text-align: center;
  text-decoration: none !important;
  vertical-align: middle;
  appearance: none;
  line-height: 1.29;
  width: 100% !important;     /* fills container */
  box-sizing: border-box;     /* includes padding/border in width */
  padding: 10px 16px;         /* slightly taller padding for touch */
}
.gold-panel-full-btn:hover {
  background-color: #6b3fa0;
}

				@media (max-width: 768px) {
				.gold_panel {
				  padding: 10px 15px 14px 15px;
				  border-radius: 13px;
				  width: 100% !important;
				  max-width: 100% !important;
				  box-sizing: border-box;
				  overflow-x: hidden; /* stops children from pushing it wider */
				background-color: #ffebcc; /* keep gold visible */
				}
				
				.gold_title {
				  font-size: .8rem;
				  margin-bottom: 10px;
				  line-height: 1.4;  /* Add this line for better spacing */
				}
				
				  /* Make the table behave as stacked blocks */
				.snippet-table,
				.snippet-table thead,
				.snippet-table tbody,
				.snippet-table tr {
				  display: block;
				  width: 100%;
				 }
				.snippet-table thead {
				  display: none;
				}
				.snippet-table {
				  background: transparent;     /* shows the gold behind gaps */
				  box-shadow: none;  /* keep visual focus on row cards */
				  border-radius: 0;  /* don't clip card corners */
				  overflow: visible !important;  /* so rounded row corners aren't cut off */
				  table-layout: fixed; /* keeps cells from expanding too wide */
				 }
				
				/* Keep each row as a rounded card, with the same padding + zebra striping */
				.snippet-table tr {
				  background-color: #fff;  /* base; zebra below will override even rows */
				  border-radius: 12px;
				  margin: 0 0 14px 0;  /* gold gap shows through here */
				  padding: 12px 15px;
				  box-shadow: 0 1px 6px rgba(76, 42, 124, 0.07);
				  border: none;
				  box-sizing: border-box;  /* prevents padding from causing overflow */
				  width: 100%;
				}
				/* Preserve zebra striping on mobile rows (exact same as your original intention) */
				.snippet-table tbody tr:nth-child(odd) {
				  background-color: #fff;
				}
				.snippet-table tbody tr:nth-child(even) {
				  background-color: #f6f2fa;
				}
				
				.snippet-table td {
				  display: block;
				  padding: 6px 8px 5px 38%;   /* same visual layout as original */
				  font-size: 0.98em;
				  border: none;
				  border-bottom: 1px solid #ddd;
				  background: transparent;
				  position: relative;
				  min-height: 28px;
				  line-height: 1.18;
				  margin: 0;
				  box-sizing: border-box;    /* also ensures td doesn't force overflow */
				  width: 100%;
				}
				.snippet-table td:last-child {
				  border-bottom: none;
				}
				.snippet-table td:before {
				  position: absolute;
				  left: 12px;
				  top: 6px;
				  width: 34%;
				  min-width: 75px;
				  font-weight: 600;
				  color: #7755bb;
				  font-size: 0.93em;
				  white-space: nowrap;
				  content: attr(data-label);
				}
				
				.snippet-table tr,
				.snippet-table td {
				  max-width: 100%;
				  word-wrap: break-word; /* wrap long content instead of overflowing */
				  overflow-x: hidden;
				}
				.snippet-edit-btn {
				  font-size: 1.11em;
				  padding-top: 1px;
				  }
				}


				  /* Responsive styling for mobile */
				  @media (max-width: 768px) {
				    .filter-field {
				      flex-direction: column !important;
				      align-items: stretch !important;
				      gap: 4px;
				      margin-bottom: 12px;
				    }
				    .filter-field label {
				      text-align: left !important;
				      flex-basis: auto !important;
				      padding-right: 0 !important;
				      margin-bottom: 4px !important;
				    }
				    .select-wrapper {
				      width: 100% !important;
				      min-width: 0 !important;
				      max-width: 100% !important;
				    }
				    .select-wrapper select {
				      width: 100% !important;
				      min-width: 0 !important;
				      max-width: 100% !important;
				    }
				    .full-btn {
				      width: 100% !important;
				      display: block !important;
				      margin-top: 16px !important;
				    }
				  }
				  
					@media (max-width: 768px) {
					  .one_datacards-row, .one_datacard {
					    width: 100% !important;
					    max-width: 100% !important;
					  }
					  .one_datacard-content {
					    flex-direction: column;
					    flex-wrap: nowrap;
					  }
					  .one_datacard-left, .one_datacard-right {
					    max-width: 100% !important;
					    min-width: 0 !important;
					  }
					}

/* ============================
   Review Section Container
============================ */
.review-section {
  width: min(100%, 900px);
  max-width: 100vw;           /* Restrict max width to viewport */
  margin: 10px auto;          /* Center horizontally with vertical margin */
  padding: 0px 30px 10px 30px;
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-sizing: border-box;     /* Ensure padding + border included */
  box-shadow: 0 1px 3px rgba(0,0,0,0.08),
              0 3px 8px rgba(0,0,0,0.05);
}

.review-section h3 {
  font-size: 1.25rem;
  color: #4A287C;
}

.data-count {
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 500;
  color: #333;
}

/* ============================
   Timecard Review Block
============================ */
.timecard_review-block {
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  border: 1px solid #ffc367;    /* <-- changed color here */
  overflow: hidden;
}

.timecard_review-header {
  padding: 8px 10px;
  font-weight: bold;
  color: #4a287c;
  background: #ffc367;
  border-bottom: 2px solid #1B3A6F;
}

.timecard_review-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-weight: bold;
  text-align: center;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
}

.timecard_review-columns div {
  padding: 6px 4px;
  color: #4A287C;
}

.timecard_review-content .row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 44px;
}

/* Row separators */
.row.hours-row {
  border-bottom: 3px solid #4A287C;
}

.row.merge-cols .timecard_review-value {
  grid-column: 2 / span 2; /* merge cols 2 + 3 */
}

/* ============================
   Review Row Labels & Values
============================ */
.timecard_review-label {
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-weight: 600;
  background: #f9f9f9;
  border-top: 1px solid #ddd;
}

.timecard_review-value {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-top: 1px solid #ddd;
}

.timecard_review-value.actual {
  background: #DDEAF7;
}

.timecard_review-value.revised {
  background: #F2E6FA;
}

/* Inputs inside review values */
.timecard_review-value input,
.timecard_review-value select,
.timecard_review-value textarea {
  width: 100%;
  max-width: 100%;
  padding: 5px 7px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 30px;
}

/* ============================
   Summary Row
============================ */
.XXXreview_summary-row {
  margin: 16px 0;
  padding: 10px;
  text-align: right;
  font-weight: bold;
  color: #222;
  background: #A392BC;
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.review_summary-row {
  margin: 16px 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;  /* left = button, right = text */
  font-weight: bold;
  color: #222;
  background: #A392BC;
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.add-btn {
  background-color: #d9534f !important;   /* or green if you prefer */
}

.add-btn:hover,
.add-btn:focus {
  background-color: #b52b27 !important;
}

/* ============================
   Actions / Buttons
============================ */
.review_filter-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.review_find-btn,
.review_find-btn:visited {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: #4A287C;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}

.review_find-btn,
.review_find-btn:link,
.review_find-btn:visited {
  color: #fff !important;
  background-color: #4A287C !important;
  text-decoration: none !important;
  -webkit-text-fill-color: #fff !important; /* Fix text color on Safari */
  border: none;
}

.review_find-btn:hover,
.review_find-btn:focus,
.review_find-btn:active {
  color: #fff !important;
  background-color: #61469b !important;
  text-decoration: none !important;
  outline: none;
}



			/* ============================
			   Mobile Adjustments
			============================ */
			@media (max-width: 768px) {
			  .review-section {
			    width: 100%;
			    max-width: 100%;
			    margin: 0;
			    padding: 10px;
			  }
			
			  .review-section h3 {
			    font-size: 1.1rem;
			  }
			
			  .timecard_review-content .row {
			    grid-template-columns: 1fr 1fr 1fr;
			    overflow-x: hidden;
			  }
			}	
			

.timecard-header-box {
  max-width: 900px;
  margin: 15px auto 28px auto;
  padding: 16px 20px;
  background-color: #DDEAF7;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
  box-sizing: border-box;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
  Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #4a287c;
  font-weight: 600;
  font-size: 1.25rem;
  user-select: none;
}
.timecard-header-box h3 {
  margin: 0;
  font-weight: 600;
  font-size: 1.3rem;
  color: #4a287c;
}
.timecard-header-box .people-count {
  font-weight: 500;
  font-size: 1rem;
  color: #222222;
  margin-top: 8px;
}
.timecard-cards {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.timecard-card {
  background-color: #eae6f8;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
}
.timecard-card-header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 14px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #4a287c;
}
.timecard-card-header > div {
  min-width: 140px;
  flex-grow: 0;
  flex-shrink: 0;
}
.timecard-card-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.date-group {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 14px;
  padding: 14px 20px;
  transition: background-color 0.3s ease;
}
.date-group.approved {
  background-color: #d9f0d9 !important;
}
.date-group.flagged {
  background-color: #f9d9d9 !important;
}
.date-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #4a287c;
  border-bottom: 2px solid #666666;
  padding-bottom: 8px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Time entry grid with 4 vertical columns */
.time-entry {
display: grid;
grid-template-columns: 1.4fr 1.3fr 1.1fr 2.2fr;
gap: 10px; /* a little tighter spacing */
padding: 8px 0;
border-bottom: 1.5px solid #999999; /* stronger gray line */
font-size: 0.95rem;
align-items: start;
}

.time-entry:last-child {
border-bottom: none;
}

/* Gray vertical separators */
.time-entry > div {
position: relative;
padding: 0 8px;
}

.time-entry > div:not(:last-child)::after {
content: '';
position: absolute;
top: 0; bottom: 0;
right: 0;
width: 1px;
background: #999999; /* gray */
}


/* Project/Job stacked */
.project-job {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-job span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Clock in/out stacked */
.clock-times {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Hours and Status stacked */
.hours-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Comments with wrapping */
.comments {
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  line-height: 1.3;
  color: #444;
  font-size: 0.95rem;
}

/* Total hours row: strong line, date-title style, left-aligned */
.date-total {
  font-weight: 600;
  font-size: 1.1rem;
  color: #4a287c;
  padding-top: 0px;
  margin-top: 10px;
  text-align: left;
}
.date-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 0px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #4a287c;
}

.timecard-ids {
  font-size: 0.98rem;
  color: #222222;
  margin-left: 18px;
  font-weight: 500;
}

				/* Mobile responsiveness fixes */
				@media (max-width: 768px) {
				  .timecard-header-box {
				    padding: 8px;
				  }
				  .timecard-card {
				    padding: 8px;
				  }
				  .timecard-card-header {
				    flex-direction: column;
				  }
				  .timecard-card-header > div {
				    margin-bottom: 4px;
				  }
				  .timecard-card-header > div:last-child {
				    margin-bottom: 0;
				  }
				  .time-entry {
				    grid-template-columns: 1fr;
				    gap: 6px;
				  }
				  .time-entry > div {
				    padding: 0;
				  }
				  .time-entry > div:not(:last-child)::after {
				    display: none;
				  }
				  .date-group {
				    padding: 8px 8px;
				  }
				}
				@media (max-width: 768px) {
				  .timecard-card-header {
				    flex-direction: column !important;
				    gap: 4px !important;
				  }
				  .timecard-card-header > div {
				    margin-bottom: 0 !important;
				  }

.date-title {
  font-weight: 600;
  font-size: .8rem;
  color: #4a287c;
  border-bottom: 2px solid #666666;
  padding-bottom: 8px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timecard-ids {
  font-size: 0.8rem;
  color: #222222;
  margin-left: 18px;
  font-weight: 500;
}
				}

.overview {
  background-color: #ffebcc;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(76, 42, 124, 0.07);
  margin: 2rem auto;
  padding: 24px;
  width: min(96%, 900px); /* dynamic width: fills screen until 900px */
  box-sizing: border-box;
}
.overview_title {
  color: #4a287c;
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 13px 0;
  letter-spacing: .01em;
  padding-bottom: 8px;
}
				@media (max-width: 768px) {
				.overview {
				  padding: 10px 15px 14px 15px;
				  border-radius: 13px;
				  width: 100% !important;
				  max-width: 100% !important;
				  box-sizing: border-box;
				  overflow-x: hidden; /* stops children from pushing it wider */
				  background-color: #ffebcc; /* keep gold visible */
				  }
				
				.overview_title {
				  font-size: .8rem;
				  margin-bottom: 10px;
				  line-height: 1.4;  /* Add this line for better spacing */
				  }
				}

/* --- Modal overlay (starts hidden) --- */
.modal-history-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.32);
  z-index: 20000;
  display: none;                    /* hidden until JS sets display:flex */
  align-items: center;
  justify-content: center;
  overflow-y: auto;                 /* allow scrolling on very small screens */
  padding: 20px;                    /* spacing so box isn’t flush with edges */
  box-sizing: border-box;
}

/* --- Modal box --- */
.modal-history-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(76,42,124,0.15);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #20114d;
  padding: 38px 26px 20px 26px;
  min-width: 320px;
  max-width: 96vw;
  width: 420px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .modal-history-box {
    width: 97vw;
    padding: 18px 7px 12px 7px;
    min-width: 0;
  }
}

/* --- Modal content --- */
.modal-history-header {
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #4A287C;
  margin-bottom: 32px;
  text-align: center;
}

.modal-history-rows {
  margin-bottom: 22px;
  max-height: none;         /* no vertical height limit */
  overflow-y: visible;      /* no scroll */
  white-space: normal;      /* wrap text */
  word-break: break-word;   /* break long words */
  overflow-wrap: break-word; /* break overflow words */
  box-sizing: border-box;   /* include padding/borders in width */
  max-width: 100%;          /* constrain width */
}

.modal-history-row {
  width: 100%;
  padding: 15px 14px 11px 14px;
  font-size: 1.09em;
  line-height: 1.48;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;          /* fit in container */
  box-sizing: border-box;   /* sizing should not exceed container */
  border-radius: 9px;
  white-space: pre-line;
  margin-bottom: 7px;
}

.modal-history-purple-bg {
  background-color: #ede6fa;
}

.modal-history-gray-bg {
  background-color: #f5f5f7;
}

/* --- Footer + button --- */
.modal-history-footer {
  margin-top: 16px;
}

.modal-history-close-btn {
  background: #4A287C;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: 7px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  padding: 14px 0;
  transition: background .18s;
  box-shadow: 0 1px 4px rgba(74,40,124,0.07);
  text-align: center;
  letter-spacing: 0.5px;
}

.modal-history-close-btn:hover,
.modal-history-close-btn:focus {
  background: #6b3fa0;
}

.profile-links {
  display: flex;
  gap: 16px;
  margin: 24px 0 14px 0;
  border-bottom: 1.5px solid #e5e7eb;
  flex-wrap: wrap;
}

.profile-links a {
  padding: 8px 0;
  font-weight: 500;
  color: #888;
  text-decoration: none; /* Hide default underline */
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}

.profile-links a.active,
.profile-links a:focus {
  color: #4A287C; /* purple */
  border-bottom: 2.5px solid #4A287C; /* Custom underline */
}


.newprofile-section h3,
.single-column h3,
.profile-section h3 {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-align: left !important;
}
.newprofile-section .section-divider {
  margin-left: 0 !important;
  padding-left: 0 !important;
}


/* New */
  .single-column .field {
    display: flex;
    align-items: center;    /* Vertically center label and field together */
    flex-direction: row;
    gap: 16px;              /* Space between label and field box */
    margin-bottom: 14px;
  }

  .single-column label {
    width: 140px;           /* Fixed width for label; adjust as needed */
    text-align: left;
    margin-right: 8px;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    align-self: center;     /* Ensures the label is vertically centered within .field */
  }

  .single-column input,
  .single-column select,
  .single-column .select-wrapper {
    flex: 1 1 0;
    max-width: 100%;
    align-self: center;     /* Vertically center the field itself */
    margin-left: 0;
  }

/* --- WIDE DATACARD (single panel, full width, wrapping) --- */

.datacard_wide {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 1px 6px rgba(76, 42, 124, 0.06);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;           /* similar max width as other containers */
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    box-sizing: border-box;
}

.datacard_wide-header {
    padding: 18px 24px 12px 24px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #4a287c;
    background: #eae6f8;
    border-radius: 18px 18px 0 0;
    border-bottom: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.datacard_wide-content {
    padding: 24px;
    background: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;                /* allow flex item to shrink */
}

/* Fields and labels mimic existing datacard look, but full width and wrapping */
.datacard_wide-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.datacard_wide-label {
    font-weight: 500;
    color: #444;
    font-size: 0.94rem;
    margin-bottom: 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.datacard_wide-value,
.datacard_wide-fields input,
.datacard_wide-fields select,
.datacard_wide-fields textarea {
    font-size: .95rem;
    color: #222;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    padding: 6px 10px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 2px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.datacard_wide-value {
    border: none;
    background: transparent;
    padding: 0;
}

/* Save button – same visual as .datacard-save-btn */
.datacard_wide-save-btn {
    background: #4a287c;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    font-size: 1.08rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    margin-top: 12px;
    flex-shrink: 0;
}

.datacard_wide-save-btn:hover {
    background: #6b3fa0;
}

/* Helper text / notes area (replaces right panel; full-width and wrapping) */
.datacard_wide-note {
    font-size: 0.95rem;
    color: #444;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

				/* MOBILE: keep same full-width behavior; padding slightly reduced */
				@media (max-width: 768px) {
				    .datacard_wide {
				        width: 100%;
				        max-width: 100%;
				        margin: 0;
				        border-radius: 18px;
				    }
				
				    .datacard_wide-header {
				        padding: 16px 12px;
				        border-radius: 18px 18px 0 0;
				    }
				
				    .datacard_wide-content {
				        padding: 18px 12px;
				    }
				}
				
				
/* OPTIONS block under instructions – mirrors .step styles */

.options {
    margin-top: 16px;
}

/* Each option row – same layout as .step */
.options-row {
    display: flex;
    align-items: flex-start;
    font-size: 1.2rem;
    max-width: 600px;
    gap: 2ch;              /* space between label and content */
    margin-bottom: 10px;
}

/* Option label – same behavior as .step-label */
.options-label {
    font-weight: bold;
    flex-shrink: 0;
    white-space: nowrap;   /* keep label on one line */
}

/* Option content – same behavior as .step-content */
.options-content {
    flex: 1 1 0;
    min-width: 0;          /* allow flex item to shrink and wrap */
    overflow-wrap: break-word;
    word-wrap: break-word;
}


/* Grouped picklist table (FieldName/FieldValue pairs) */
.picklist-table-wrapper {
    margin-top: 12px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;              /* round corners on the border */
}

.picklist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
                 Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.picklist-table th,
.picklist-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.picklist-table th {
    background-color: #fafafa;
    color: #4a4a4a;
    font-weight: 600;
    text-align: left;
}

.picklist-table tr:last-child td {
    border-bottom: none;
}

/* FieldName column – fixed width and right-separated */
.picklist-table .col-fieldname {
    width: 30%;
    font-weight: 600;
    color: #4A287C;
    background-color: #ffebcc;
    border-right: 1px solid #e0e0e0;
}

/* FieldValue column – normal text, wraps nicely */
.picklist-table .col-fieldvalue {
    width: 70%;
    color: #222;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Slight zebra to help see changes between FieldNames */
.picklist-table .group-start .col-fieldname {
    border-top: 2px solid #d5c4f2;
}



.timecard_review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  font-weight: bold;
  color: #4a287c;
  background: #ffc367;
  border-bottom: 2px solid #1B3A6F;
}

.timecard_review-header span {
  flex: 1;
}

/* Only color override; keep same shape/font as other buttons */
.xxxtimecard_review-header .delete-btn {
  background-color: #d9534f !important;
  'flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  text-decoration: none;
  color: #fff;
   border: none;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}

.xxxtimecard_review-header .delete-btn:hover,
.xxxtimecard_review-header .delete-btn:focus {
  background-color: #b52b27 !important;
}

/* Base delete button style, used for Delete and Add */
.xxxdelete-btn {
  background-color: #d9534f !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}

.xxxdelete-btn:hover,
.xxxdelete-btn:focus {
  background-color: #b52b27 !important;
}

/* Base delete button style, used for Delete and Add */
.red-btn {
  background-color: #d9534f !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}

.red-btn:hover,
.red-btn:focus {
  background-color: #b52b27 !important;
}

/* Keep header-specific layout if needed */
.xxxtimecardreview-header .delete-btn {
  flex: 1;
}

			@media (max-width: 768px) {
			  /* Prevent horizontal scrolling */
			  body {
			    overflow-x: hidden;
			  }
			
			  /* Base sizing */
			  .one_datacard,
			  .one_datacards-row,
			  .one_datacard-content,
			  .one_datacard-left,
			  .one_datacard-right,
			  .one_datacard-fields {
			    width: 100%;
			    max-width: 100%;
			    box-sizing: border-box;
			  }
			
			  /* Stack columns */
			  .one_datacard-content {
			    display: flex;
			    flex-direction: column;
			  }
			
			  /* Labels wrap */
			  .one_datacard-label {
			    word-wrap: break-word;
			    overflow-wrap: break-word;
			    white-space: normal;
			  }
			
			  /* Tighten padding on mobile - ZERO padding on fields container */
			  .one_datacard-fields {
			    padding-left: 0 !important;
			    padding-right: 0 !important;
			    padding-top: 8px !important;
			    padding-bottom: 8px !important;
			    margin: 0 !important;
			    box-sizing: border-box !important;
			  }
			
			  /* Field rows - NO margins, full bleed */
			  .one_datacard-fields > div {
			    width: 100% !important;
			    max-width: 100% !important;
			    margin: 0 !important;
			    padding: 12px 8px !important;
			    box-sizing: border-box !important;
			  }
			
			  /* Remove ALL inset wrapper padding/margins */
			  .one_datacard-value {
			    width: 100% !important;
			    padding: 0 !important;
			    margin: 0 !important;
			    box-sizing: border-box !important;
			  }
			
			  /* Header: full-bleed to card edges */
			  .one_datacard-header {
			    width: auto !important;
			    margin-left: -8px !important;
			    margin-right: -8px !important;
			    box-sizing: border-box !important;
			    word-wrap: break-word;
			    white-space: normal;
			    border-radius: 0 !important;
			  }
			
			  /* Footer: full-bleed background to card edges */
			  .one_datacard-footer {
			    width: auto !important;
			    margin-left: -8px !important;
			    margin-right: -8px !important;
			    box-sizing: border-box !important;
			    border-radius: 0 !important;
			  }
			
			  /* Kill nested spacing */
			  .one_datacard-content,
			  .one_datacard-left,
			  .one_datacard-right {
			    padding: 4px !important;
			    margin: 0 !important;
			    border: 0 !important;
			    box-shadow: none !important;
			    outline: 0 !important;
			  }
			
			  /* Inputs + selects - full width */
			  .one_datacard-fields input[type="date"],
			  .one_datacard-fields input[type="text"],
			  .one_datacard-fields select {
			    display: block !important;
			    width: 100% !important;
			    max-width: 100% !important;
			    margin: 0 !important;
			    padding: 8px 12px !important;
			    box-sizing: border-box !important;
			    height: 40px !important;
			    border-radius: 6px !important;
			    border: 1px solid #ccc !important;
			    background: #fff !important;
			    -webkit-appearance: none !important;
			    appearance: none !important;
			  }
			
			  /* Additional filters - also full bleed */
			  .additional-filters {
			    padding: 0 !important;
			    margin: 0 !important;
			  }
			
			  .additional-filters > div {
			    margin: 0 !important;
			    padding: 12px 8px !important;
			  }
			
			  /* Toggle filters label */
			  #toggle-filters {
			    padding: 8px !important;
			    margin: 0 !important;
			  }
			
			  /* Safari date input fixes */
			  input[type="date"]::-webkit-datetime-edit {
			    padding-left: 0 !important;
			  }
			
			  input[type="date"]::-webkit-calendar-picker-indicator {
			    margin-right: 6px;
			  }
			
			  /* Button full width */
			  .one_datacard-save-btn {
			    width: 100%;
			    max-width: 100%;
			    box-sizing: border-box;
			  }
			
			 /* Test color */
			  .XXXone_datacard-fields input[name="StartDate"] {
			    background-color: #ffebcc !important;
			  }
			}
			
