/* Basic container */
.currency-container, #atp-container {
    max-width: 1000px;
    margin: 18px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #222;
    background: #fff;
    padding: 16px;
    border-radius: 8px;

}
.currency-form {    
    width: 61%;
    float: left;
    
}
.currency-box{
    width: 30%;
    float:right;
}
.currency-container .currency-form,
.atp-modal{
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 10px;
}

/* simple form layout */
.notes-row, .filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.currency-form .row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    flex-direction: row;
}
.atp-modal .row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    flex-direction: row;
}
.currency-form .row label, .atp-modal .row label {
    min-width: 70px;
    font-size: 14px;
    display: block;
}
.currency-form .row input[type="text"],
.currency-form .row input[type="number"],
.currency-form .row input[type="date"],
.currency-form .row textarea,
.currency-form .row select,
.atp-modal .row input[type="text"],
.atp-modal .row input[type="number"],
.atp-modal .row input[type="date"],
.atp-modal .row textarea,
.atp-modal .row select{
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 160px;
    font-size: 14px;
 
}

/* notes side-by-side - make note2 visually similar */
.notes-row .col {
    flex: 1;
    min-width: 220px;
}
.notes-row textarea {
    min-height: 64px;
    resize: vertical;
    padding: 8px 10px;
}
.notes-row input[type="text"] {
    height: 64px;
    padding: 8px 10px;
    box-sizing: border-box;
}

/* buttons */
.button-primary, .button-secondary, .button-danger {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
.button-primary { background: #0073aa; color: #fff; }
.button-secondary { background: #f1f1f1; color: #222; }
.button-danger { background: #d9534f; color: #fff; }

/* table */
.atp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}
.atp-table th, .atp-table td {
    border: 1px solid #e6e6e6;
    padding: 8px 10px;
    text-align: left;
    font-size: 14px;
}
.atp-table thead th {
    background: #fafafa;
    font-weight: 600;
}

/* small col for checkbox */
.col-check { width: 36px; text-align:center; }

/* BD No active/inactive styles */
.bd-active {
    color: #c62828; /* red */
    font-weight: 700;
}
.bd-inactive {
    color: #222;
    font-weight: 400;
}

/* totals row */
.totals-row td {
    background: #fbfbfb;
    font-weight: 700;
}

/* actions */
.actions button {
    margin-right: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    cursor: pointer;
}

/* delete row area */
.delete-row { margin: 8px 0; }

/* filter row layout */
.filter-row { display:flex; gap:12px; align-items:flex-end; margin-top:8px; margin-bottom:8px; flex-wrap:wrap; }
.filter-col label { display:block; font-size:13px; margin-bottom:4px; }

/* Modal */
.atp-modal {
    display:none;
    position: fixed;
    left:0; right:0; top:0; bottom:0;
    background: rgba(0,0,0,0.35);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.atp-modal[aria-hidden="false"] { display:flex; }
.atp-modal-content {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    width: 720px;
    max-width: 96%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}
.atp-modal-close {
    position:absolute;
    right:10px;
    top:8px;
    border:none;
    font-size:28px;
    cursor:pointer;
}
.currency-box {
  max-width: 400px;
  background: #ffffff;
  padding: 10px 15px;
  border-radius: 18px;
  margin: 4px auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  font-family: Arial, sans-serif;
}

.currency-box h2 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
  color: #333;
}

.input-row {
  margin-bottom: 10px;
}

.input-row label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #555;
}

.input-row input {
  width: 100%;
  padding: 1px 10px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  transition: 0.2s;
}

.currency-box #rate{
    font-weight:bold;
    border: 1px solid #0073aa;
    background: #0095dd;
    color: #ffffff;
}
.currency-box #rate::placeholder{
    color: #ffffff;
}
.currency-form #atp_bd_no{
    font-size: 20px;
    font-weight: bold;
    padding: 3px;
}
.bold_font20{
    font-size: 20px !important;
    font-weight: bold;
}
.note {
  font-size: 13px;
  color: #777;
  margin-top: 10px;
  text-align: center;
}

/* responsive */
@media (max-width:768px) {
    .currency-form .row, .filter-row { flex-direction: column; align-items: stretch; }
    .col { min-width: unset; }
}



