    /* Google Fonts  */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* Globals  */
* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

/* =============== content =============== */
.content {
    position: relative;
    left: 250px;
    width: calc(100% - 250px);
    height: 93vh;
    display: flex;
    padding: 5px 15px 15px;
    flex-direction: column;
    justify-content: flex-start;
    background: #ecf0f5;
    transition: all 0.5s ease;
    overflow: hidden;
}

.sidebar.close ~ .content {
    left: 78px;
    width: calc(100% - 78px);
}

.content .h1Wrap {
    padding: 10px 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.h1Wrap h1{
    color: #495057;
    font-size: 16px;
    font-weight: bold;
}

.content-wrap {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.content-wrap .content-header {
    width: 100%;
    height: 6vh;
    padding: 0px 10px;
    background: #f5f5f5;
    border: 0.8px solid transparent;
    border-color: #555555a3;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-header h2 {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.content-wrap .filterWrap {
    width: 100%;
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 2em;
    background-color: #fff;
    border: 0.8px solid transparent;
    border-top: 0;
    border-bottom: 0;
    border-color: #555555a3;
}

.filterWrap .fromDate {
    width: 25.8%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.fromDate .span {
    width: 35px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background: #475877;
}

.fromDate input {
    width: 100%;
    height: 30px;
    padding: 5px;
    border-radius: .25rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border: 1px solid #475877;
}

.filterWrap .toDate {
    width: 25.8%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.toDate .span {
    width: 35px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background: #475877;
}

.span i {
    color: #fff;
}

.toDate input {
    width: 100%;
    height: 30px;
    padding: 5px;
    border-radius: .25rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border: 1px solid #475877;
}

.filterWrap .buttonWrap {
    width: 20%;
    display: flex;
    gap: 0.5em;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.buttonWrap #filterBtn {
    width: 100%;
    height: 30px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #475877;
    border-radius: 4px;
    color: #475877;
    background: #fff;
    cursor: pointer;
}

.buttonWrap #filterBtn:hover {
    width: 100%;
    height: 30px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #475877;
    border-radius: 4px;
    color: #fff;
    background: #475877;
    cursor: pointer;
}

.buttonWrap #resetBtn {
    width: 100%;
    height: 30px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #f1b44c;
    border-radius: 4px;
    color: #f1b44c;
    background: #fff;
    cursor: pointer;
}

.buttonWrap #resetBtn:hover {
    width: 100%;
    height: 30px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #f1b44c;
    border-radius: 4px;
    color: #fff;
    background: #f1b44c;
    cursor: pointer;
}

.content-wrap .content-body {
    width: 100%;
    padding: 0 10px;
    display: flex;
    gap: 1em;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: #fff;
    border: 0.8px solid transparent;
    border-top: 0;
    border-color: #555555a3;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.content-body .table-wrap {
    width: 62vw;
    height: 100%;
}

div.dt-container {
    width: 100%;
    margin: 0 auto;
}

.dt-buttons {
    width: 150px !important;
    height: 30px !important;
    font-size: 12px;
    font-weight: 700 !important;
}

.buttons-excel {
    width: 100% !important;
    height: 100% !important;
    color: #04aa6d !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    background: #fff !important;
    border: 1px solid #04aa6d !important;
}

.buttons-excel:hover {
    width: 100% !important;
    height: 100% !important;
    color: #fff !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    background: #04aa6d !important;
}

.dt-scroll-body {
    max-height: 420px;
}

.dt-scroll-headInner {
    width: 100% !important;
}

.table-wrap .table {
    width: 100% !important;
    text-align: left;
    font-size: 18px;
    border-collapse: collapse;
}

.table thead tr th {
    color: #fff;
    font-size: 10px;
    padding: 10px 5px !important;
    background: #475877;
    border: 1px solid rgba(0, 0, 0, 0.3);
    text-align: center;
}

.table tbody tr td {
    font-size: 9px;
    padding: 10px 5px !important;
    text-align: center !important;
    border: 1px solid rgba(0, 0, 0, 0.3);
    background: white;
}

#td11 a {
    width: 30px;
    font-size: 15px;
    padding: 5px;
    border-radius: 3px;
    text-decoration: none;
    color: white;
}

.edit {
    display: flex;
    margin-left: 5px;
    float: inline-start;
    justify-content: center;
    background: rgb(0, 133, 221);
    cursor: pointer;
}

.view {
    display: flex;
    margin-left: 5px;
    float: inline-start;
    justify-content: center;
    background: rgb(43, 75, 113);
    cursor: pointer;
}

.disabled {
    opacity: 0.5;
    display: flex;
    margin-left: 5px;
    float: inline-start;
    justify-content: center;
    background: rgb(43, 75, 113);
    cursor: not-allowed;
}

.delete {
    display: flex;
    margin-left: 5px;
    float: inline-start;
    justify-content: center;
    background: rgb(221, 0, 4);
    cursor: pointer;
}

.modal {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-header {
    position: relative;
    width: 30%;
    height: 6vh;
    padding: 0px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px 5px 0 0;
    border: 1px solid rgb(148, 148, 148);
    border-bottom: none;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    background-color: #fefefe;
}

.modal-header h1{
    color: #495057;
    font-size: 28px;
    font-weight: bold;
}

.modal-header .close {
    text-align: right;
    color: #495057;
    font-size: 28px;
}

.modal-header .close:hover,
.modal-header .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 30%;
    height: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 5px 5px;
    border: 1px solid rgb(148, 148, 148);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    background-color: #fefefe;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

form .form-field {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1em;
}

.form-field .input-field {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1em;
}

.input-field .input-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.1em;
}

.input-wrap label {
    width: 100%;
    color: #495057;
    font-size: 13px;
    font-weight: 500;
    font-family: Poppins, sans-serif;
}

.input-wrap input {
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.form-field .btn-field {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2em;
}

.btn-field .btn-wrap {
    width: 100%;
    margin-bottom: 25px;
    display: flex;
    gap: 0.3rem;
    flex-direction: row;
    justify-content: center;
}

.btn-wrap .submit {
    width: 125px;
    height: 34px;
    text-align: center;
    color: #fff;
    border-radius: 3px;
    background: #2b8fed;
    border: 1px solid grey;
}

.btn-wrap .submit:hover,
.btn-wrap .submit:focus {
    color: #2b8fed;
    background-color: #fff;
    border: 1px solid #2b8fed;
    cursor: pointer;
}

.btn-wrap .clear {
    width: 125px;
    height: 34px;
    text-align: center;
    color: #fff;
    border-radius: 3px;
    background: #ed2b2b;
    border: 1px solid grey;
}

.btn-wrap .clear:hover,
.btn-wrap .clear:focus {
    color: #ed2b2b;
    background-color: #fff;
    border: 1px solid #ed2b2b;
    cursor: pointer;
}
/* ============ Responsive / Breakpoints ========== */
@media (max-width: 1080px) {
}
@media (max-width: 774px) {
}
@media (max-width: 560px) {
}
@media (max-width: 450px) {
}

/* ================= FINAL MOBILE FIX ================= */
@media (max-width: 768px) {

  /* ===== HEADER ===== */
  .headerWrap {
    width: 100%;
    padding: 10px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .headerImg img {
    width: 60px;
  }

  .headerText h1 {
    font-size: 18px !important;
    line-height: 1.2;
  }

  /* ===== ORANGE CONTAINER ===== */
  .orangeBox2 {
    height: auto;
    padding: 20px 15px;
  }

  .orangeContent {
    flex-direction: column !important;
    height: auto;
  }

  /* ===== LEFT SIDE ===== */
  .title {
    width: 100% !important;
    font-size: 24px;
    padding-right: 0;
  }

  .introText2 {
    font-size: 14px;
    margin-top: 15px;
  }

  /* ===== SERIAL INPUT ===== */
  .serialRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .serialLabel {
    font-size: 16px;
    white-space: nowrap;
  }

  .serial-input {
    width: 100%;
    font-size: 16px;
    letter-spacing: 1px;
    padding: 10px;
  }

  /* ===== CHECKBOXES ===== */
  .checkboxLine {
    gap: 10px;
  }

  .checkboxLine span {
    font-size: 14px;
  }

  .checkboxLine input[type="checkbox"] {
    transform: scale(1.3);
    margin-top: 4px;
  }

  /* ===== ENTER BUTTON ===== */
  .floatingButton-payment {
    width: 100%;
    margin-top: 20px;
    font-size: 16px;
    padding: 14px 0;
  }

  /* ===== RIGHT SIDE TABLE ===== */
  .content-body {
    margin-left: 0 !important;
    width: 100%;
    margin-top: 25px;
  }

  .content-body .table-wrap {
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-top: 20px;
  }

  /* TABLE STABILITY */
  .content-body table {
    width: 100%;
    min-width: 1100px; /* 🔑 keeps layout clean */
    border-collapse: collapse;
    margin-top: 20px;
  }

  .content-body thead th {
    font-size: 11px;
    padding: 8px 6px !important;
    white-space: nowrap;
    text-align: center;
  }

  .content-body tbody td {
    font-size: 11px;
    padding: 8px 6px !important;
    white-space: nowrap;
    text-align: center;
  }

  /* Prevent column collapse */
  .content-body th,
  .content-body td {
    min-width: 100px;
  }

  /* Status column */
  .content-body th:last-child,
  .content-body td:last-child {
    min-width: 80px;
  }
}