#supplies-inventory-app {
    font-family: Arial, sans-serif;
    margin: 20px 0;
}

#suppliesTable {
    width: 100%;
    border-collapse: collapse;
}

#suppliesTable th, #poListTable th {
    background-color: #004FA3;
    color: white;
    padding: 8px;
}

#suppliesTable td {
    padding: 6px;
}

#suppliesTable input.qty-input {
    width: 60px;
    text-align: center;
}

.supply-btn {
    color: white !important;
    border: none !important;
    padding: 8px 12px;
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: 3px;
}
.supply-btn2 {
    color: blue !important;
    border: none !important;
    background-color: transparent !important;
    padding: 5px 0;
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: 3px;
}

.supply-btnCancel {
    color: #004FA3 !important;
    border: 1px solid #004FA3 !important;
    background-color: transparent !important;
    padding: 7px 12px;
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: 3px;
}
.supply-btnCancel:hover {
    color: #004FA3 !important;
}


.supply-btn:hover {
    background-color: #E1EDFF;
    color: #54595F !important;
}
.supply-btn:active {
    background-color: #004FA3;
}

/* Fullscreen overlay */
.po-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* semi-transparent background */
  display: none; /* hidden by default */
  z-index: 9998;
}

/* Centered modal box */
.po-modal {
  border-radius: 8px;
  height: 80%;
  width: 70%;
  max-width: 90%;
  z-index: 9999;
  background: #fff;
  padding: 20px;
  margin: 40px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  overflow: hidden;
   
}

/* Modal header */
.po-modal h3 {
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* Modal actions (buttons) */
.po-modal-actions {
  margin-top: 15px;
  text-align: right;
}

.po-modal-actions .supply-btn {
  margin-left: 10px;
}

/*po listings UI*/

/* Pagination */
#poPagination {
    text-align: center;
}
#poPagination .po-page-btn {
    margin: 2px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    cursor: pointer;
}
#poPagination .po-page-btn.active {
    background: #0073aa;
    color: #fff;
    font-weight: bold;
}
#poPagination .po-page-btn:hover {
    background: #e2e2e2;
}

/* Editable cell */
.editable-qty {
    background: #f9f9f9;
    cursor: pointer;
    transition: background 0.2s;
}
.editable-qty:focus {
    outline: 2px solid #0073aa;
    background: #fff;
}
.po-row:hover {
    background: #f1f1f1;
    cursor: pointer;
}

/*supplies table */
#suppliesTable_length,#poListTable_length {
    display: flex;
    align-items: center;
    gap: 5px; /* spacing between text and select */
}

#suppliesTable_length label, #poListTable_length label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}
.dataTables_filter {
    display: none !important;
}

/*editsupply*/

/* Background Overlay */
.editSupply-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.45) !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
}

/* Modal Box */
.editSupply-modal {
    background: #ffffff;
    padding: 25px 30px;
    width: 420px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeIn 0.25s ease-out;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

.editSupply-modal h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Form Group */
.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

/* Input Style */
.editSupply-modal input[type="text"],
.editSupply-modal input[type="number"] {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.editSupply-modal input:focus {
    border-color: #0d6efd;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

/* Buttons */
.editSupply-modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.supply-btn {
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

/* Cancel */
.supply-btn.cancel {
    background: #e5e5e5;
    color: #333;
}

.supply-btn.cancel:hover {
    background: #d1d1d1;
}

/* Save */
.supply-btn.save {
    background: #0d6efd;
    color: #fff;
}

.supply-btn.save:hover {
    background: #0b5ed7;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.editsupply-btn {
    padding: 4px 10px;
    border-radius: 4px;
    background: transparent !important;
    border: 1px solid #0d6efd;
    color: #0d6efd;
    font-size: 10px;
    font-weight: 400;
    cursor: pointer;
    transition: 0.2s;
}

.editsupply-btn:hover {
    background: #0d6efd  !important;
    color: white;
}