/* ============================
   PAYROLL REQUEST FORM
   Single-column (100%) layout
   ============================ */

/* Wrapper */
.uwp-payroll-form-wrapper {
  max-width: 80%;
  margin: 0 auto;
  padding: 20px;
}

/* Headings */
.uwp-payroll-form-wrapper h2,
.uwp-payroll-form-wrapper h3 {
  margin-bottom: 20px;
}
/* =========================
   ROW & COLUMN STRUCTURE
========================= */
.uwp-row {
  margin-bottom: 16px;
}

.uwp-col {
  display: flex;
  align-items: center;
  width: 100%;
}

/* =========================
   LABEL STYLING
========================= */
.uwp-col label {
  width: 250px; /* Fixed label width */
  margin-right: 12px;
  font-weight: 400;
  flex-shrink: 0;
  font-size: 16px;
  text-align: left; /* Optional – remove if not needed */
}

/* =========================
   FIELD STYLING
========================= */
.uwp-col input,
.uwp-col select,
.uwp-col textarea {
  flex: 1;
  padding: 8px 10px;
  box-sizing: border-box;
}

/* =========================
   PREFIX ($) FIELD
========================= */
.uwp-input-prefix {
  display: flex;
  align-items: center;
  flex: 1;
}

.uwp-input-prefix .prefix {
  padding: 8px 10px;
  background: #f2f2f2;
  border: 1px solid #ccc;
  border-right: none;
}

.uwp-input-prefix input {
  flex: 1;
  border-left: none;
}

/* =========================
   FILE INPUT ROW
========================= */
.uwp-row input[type="file"] {
  flex: 1;
}

/* =========================
   SUBMIT BUTTON
========================= */
#uwpSubmitBtn,
.uwpSubmitBtn {
  /* aligns with input start (label width + gap) */
  padding: 10px 20px;
  cursor: pointer;
  background: #2d7a2d;
  color: white;
  padding: 14px 30px;
  border: none;
  border-radius: 4px;
  font-size: 17px;
  cursor: pointer;
  margin-top: 20px;
  width: auto;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {
  .uwp-col {
    flex-direction: column;
    align-items: stretch;
  }

  .uwp-col label {
    width: 100%;
    margin-bottom: 6px;
    text-align: left;
  }

  #uwpSubmitBtn {
    margin-left: 0;
  }
}

.uwp-col input,
.uwp-col select,
.uwp-col textarea {
  flex: 1;
  padding: 8px 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  box-shadow: none;
}

/* Remove browser focus styles */
.uwp-col input:focus,
.uwp-col select:focus,
.uwp-col textarea:focus {
  outline: none;
  box-shadow: none;
  border-color: #666; /* subtle focus color */
}

/* Wrapper controls border */
.uwp-input-prefix {
  display: flex;
  align-items: stretch;
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden; /* CRITICAL for clean corners */
}

/* Dollar prefix */
.uwp-input-prefix .prefix {
  padding: 8px 12px;
  background: #f2f2f2;
  border-right: 1px solid #ccc;
  display: flex;
  align-items: center;
  font-weight: 600;
}

/* Input inside prefix */
.uwp-input-prefix input {
  border: none; /* remove inner border */
  border-radius: 0; /* handled by wrapper */
  flex: 1;
  padding: 8px 10px;
}

/* Focus state for entire group */
.uwp-input-prefix:focus-within {
  border-color: #666;
}
/* File input cleanup */
.uwp-row input[type="file"] {
  border-radius: 4px;
}
/* Error text under fields */
.uwp-error {
  /* color: #d00;
  font-size: 13px;
  margin-top: 3px;
  display: block; */
}

/* Input field with error */
.uwp-input-error {
  /* border-color: #d00 !important;
  background: #fff6f6; */
}
input:invalid,
select:invalid,
textarea:invalid {
  box-shadow: none;
}
.uwp-col {
  display: flex;
  align-items: flex-start; /* IMPORTANT */
  width: 100%;
}
/* Field + error wrapper */
.uwp-field-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Automatically wrap inputs visually */
.uwp-col input,
.uwp-col select,
.uwp-col textarea,
.uwp-input-prefix {
  width: 100%;
}

.uwp-error {
  color: #d00;
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.3;
}

/* Input error state */
.uwp-input-error {
  border-color: #d00 !important;
  background: #fff6f6;
}

/* Error state for Pay Rate wrapper */
.uwp-input-prefix.uwp-input-error {
  border-color: #d00;
  background: #fff6f6;
}

/* Row container */
.uwp-col {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

/* Label */
.uwp-col label {
  width: 275px;
  margin-right: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Field + error wrapper */
.uwp-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Inputs */
.uwp-field input,
.uwp-field select,
.uwp-field textarea {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Error text */
.uwp-error {
  color: #d00;
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.3;
}

/* Error field highlight */
.uwp-input-error {
  border-color: #d00 !important;
  background: #fff6f6;
}

.uwp-section-divider {
  border-bottom: 5px solid #ddd;
  margin: 25px 0;
}

.uwp-row.resource_name .uwp-col,
.uwp-row.payrolling_type .uwp-col,
.uwp-row.resource_contact_email .uwp-col,
.uwp-row.commodity .uwp-col,
.uwp-row.vms_order_position .uwp-col,
.uwp-row.assignment_end_date .uwp-col {
  margin-bottom: 25px;
}
.uwp-row.resource_name,
.uwp-row.payrolling_type,
.uwp-row.resource_contact_email,
.uwp-row.commodity,
.uwp-row.vms_order_position,
.uwp-row.assignment_end_date {
  border-bottom: 5px solid #ddd;
  margin: 0 0 25px;
}

body {
  font-size: 16px;
  font-weight: 400;
  text-decoration: none !important;
}
a {
  text-decoration: none !important;
}

a.Edit {
  padding: 5px 15px;
  color: white;
  margin: auto;
  background: #0053bb;
  border: 1px solid #ddd;
  border-radius: 8px;
}
a.Logout {
  padding: 5px 15px;
  color: white;
  margin: auto;
  background: #2271b1;
  border: 1px solid #ddd;
  border-radius: 8px;
}
/* Audit History Table Wrapper (optional) */
.audit-history-table {
  margin-top: 20px;
  overflow-x: auto;
}

/* Table base */
.audit-history-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dcdcdc;
  font-family: Arial, sans-serif;
  font-size: 14px;
  background-color: #ffffff;
}

/* Table header */
.audit-history-table thead th {
  background-color: #f2f2f2;
  border: 1px solid #dcdcdc;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

/* Table body cells */
.audit-history-table tbody td {
  border: 1px solid #e0e0e0;
  padding: 10px 12px;
  vertical-align: top;
  word-break: break-word;
}

/* Row spacing / visual gap */
.audit-history-table tbody tr {
  background-color: #ffffff;
}

/* Zebra striping for better readability */
.audit-history-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Hover effect */
.audit-history-table tbody tr:hover {
  background-color: #f5f9ff;
}

/* Column width tuning (optional but recommended) */
.audit-history-table th:nth-child(1),
.audit-history-table td:nth-child(1) {
  width: 20%;
}

.audit-history-table th:nth-child(2),
.audit-history-table td:nth-child(2),
.audit-history-table th:nth-child(3),
.audit-history-table td:nth-child(3) {
  width: 25%;
}

.audit-history-table th:nth-child(4),
.audit-history-table td:nth-child(4) {
  width: 15%;
}

.audit-history-table th:nth-child(5),
.audit-history-table td:nth-child(5) {
  width: 15%;
  white-space: nowrap;
}
/* Overlay */
.uwp-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: none;
}

/* Popup box */
.uwp-popup-content {
  background: #ffffff;
  max-width: 520px;
  margin: 10% auto;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Button */
.uwp-popup-btn {
  margin-top: 20px;
  padding: 8px 18px;
  cursor: pointer;
}
.uwp-audit-field {
  font-weight: 600;
  background-color: #f5f7fa;
  color: #1d2327;
  padding: 6px 10px;
  border-left: 4px solid #2271b1;
}
.uwp-audit-field strong {
  color: #0a58ca;
  font-weight: 600;
}
.uwp-audit-admin {
  background-color: #fff3cd;
}
.uwp-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.uwp-popup-box {
  background: #fff;
  padding: 20px 30px;
  border-radius: 6px;
  text-align: center;
}
.uwp-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.uwp-modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 6px;
  width: 360px;
  text-align: center;
}
/* Modal overlay */
#uwpSuccessModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
}

/* Modal box */
#uwpSuccessModal .uwp-modal-content {
    background: #ffffff;
    padding: 24px 32px;
    border-radius: 8px;
    width: 360px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
