/* ===============================
   RESET
================================ */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: auto;
}

/* ===============================
   PAGE CONTAINER
================================ */
.page-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 10px;
  box-sizing: border-box;
}

/* ===============================
   FIXED SECTIONS
================================ */
.header,
.menu,
.report,
.info-bar,
.pagination {
  flex-shrink: 0;
}

/* ===============================
   REPORT
================================ */
.report {
  color: #ff0404;
  text-shadow: 1px 1px 1px #000;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===============================
   SEARCH / CONTENT
   Header & Menu unchanged
================================ */
.print_process {
  margin-left: 15px;
  margin-right: 15px;
  box-sizing: border-box;
}

/* ===============================
   TABLE WRAPPER
================================ */
.table-wrapper {
  width: calc(100% - 30px);
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
  margin-left: 15px;
  margin-right: 15px;
  box-sizing: border-box;
}

/* ===============================
   TABLE
================================ */
.table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 14px;
  color: #333;
}

/* ===============================
   STICKY HEADER
================================ */
.table th {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 10px;
  border: 1px solid #f5dada;
  white-space: nowrap;
  background-color: #f1b5b5;
  color: rgb(41, 41, 40);
}

/* ===============================
   TABLE DATA
================================ */
.table td {
  padding: 8px;
  border: 1px solid #f5dada;
  white-space: nowrap;
  text-align: center;
}

.table th.left_side,
.table td.left_side {
  text-align: left;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 220px;
}

.table td.right_side {
  text-align: right;
}

/* ===============================
   ACTION COLUMN
================================ */
.action_col {
  width: 40px;
  text-align: center;
  padding: 4px;
}

/* ===============================
   ROW STYLE
================================ */
.table tr:nth-child(even) {
  background: #f9f9f9;
}

/* ===============================
   PAGINATION
================================ */
.pagination {
  padding: 10px;
  text-align: center;
  border-top: 1px solid #ddd;
  background: #fff;
}

.pagination a {
  padding: 5px 10px;
  background: #eee;
  margin: 2px;
  text-decoration: none;
}

.pagination .current {
  padding: 5px 10px;
  background: #007bff;
  color: #fff;
}

.pagination span.current {
  padding: 5px 10px;
  margin: 2px;
  background: #004466;
  color: #fff;
  border-radius: 3px;
}

/* ===============================
   MODAL
================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 35px;
  cursor: pointer;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 600px) {

  .print_process {
    margin-left: 10px;
    margin-right: 10px;
  }

  .table-wrapper {
    width: calc(100% - 20px);
    margin-left: 10px;
    margin-right: 10px;

    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html,
  body {
    overflow-x: auto;
    overflow-y: auto;
  }

  .table {
    min-width: 800px;
  }

  td.left_side,
  th.left_side {
    min-width: 220px;
  }
}