/* mobile.css */

body {
  background-color: #fdf6e3;
  font-size: 16px;
}

h1 {
  font-size: 22px;
  text-align: center;
  color: #333;
}

/* Form ve butonlar */
input, select, button, textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
}

/* Buton stil */
button {
  font-size: 16px;
  padding: 10px;
}

/* Kart/kutu içerik */
.box, .card {
  margin: 12px;
  padding: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: white;
}

/* Tabloyu taşanlarda kaydırılabilir yap */
table {
  width: 100%;
  overflow-x: auto;
  display: block;
}
/* mobile.css */
@media only screen and (max-width: 1024px) {
  body {
    padding: 10px;
    font-size: 16px;
  }

  h1, h2, h3 {
    font-size: 20px;
    text-align: center;
  }

  form label {
    display: block;
    margin-top: 10px;
  }

  select, input, button {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    box-sizing: border-box;
  }

  .calendar {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 7 değil, 4 sütun */
    gap: 5px;
  }

  .day-box {
    padding: 10px;
    font-size: 14px;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
  }

  .home-button,
  .employees-button,
  .projects-button {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 16px;
  }

  #saveButton,
  #generateBtn {
    font-size: 16px;
    padding: 12px;
    width: 100%;
  }

  #calendarContainer {
    overflow-x: auto;
  }
}
.calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  gap: 5px;
}
.day-box {
  font-size: 0.9rem;
  padding: 8px;
}
.save-button {
  width: 100%;
  max-width: 400px;
}
@media only screen and (max-width: 1024px) {
  body {
    padding: 10px;
    font-size: 16px;
  }

  h1, h2 {
    font-size: 20px;
    text-align: center;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
  }

  nav a {
    width: 100%;
    font-size: 16px;
    text-align: center;
    padding: 10px;
  }

  select, input[type="date"], input[type="text"], button {
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
    font-size: 16px;
    padding: 10px;
    box-sizing: border-box;
  }

  .edit-button {
    display: inline-block;
    width: 100%;
    margin-top: 5px;
    font-size: 16px;
    text-align: center;
  }

  table {
    width: 100%;
    display: block;
    overflow-x: auto;
    font-size: 14px;
  }

  th, td {
    white-space: nowrap;
    padding: 6px;
  }

  tfoot td {
    font-size: 16px;
  }
}
@media only screen and (max-width: 1280px) {
  body {
    padding: 10px;
    font-size: 17px;
    background-color: #f4f6f9;
  }

  h1 {
    font-size: 22px;
    text-align: center;
  }

  .section-box {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .section-box h2 {
    font-size: 18px;
    text-align: center;
  }

  .section-box ul {
    padding-left: 0;
  }

  .section-box ul li {
    margin: 10px 0;
  }

  .section-box ul li a {
    display: block;
    padding: 12px;
    background-color: #ffffff;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #dcdcdc;
    text-decoration: none;
  }

  .section-box ul li a:hover {
    background-color: #ecf0f1;
  }
}
@media only screen and (max-width: 1280px) {
  body {
    padding: 10px;
    font-size: 16px;
    background-color: #f4f6f9;
  }

  h2, h3 {
    font-size: 20px;
    text-align: center;
  }

  form, #mappingArea, #selectionArea {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
  }

  label {
    display: flex;
    flex-direction: column;
    font-size: 16px;
  }

  input[type="number"],
  input[type="file"],
  select,
  button {
    font-size: 16px;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
  }

  button {
    background-color: #2d89ef;
    color: white;
    border: none;
    border-radius: 6px;
  }

  #checklistTable {
    display: block;
    overflow-x: auto;
    width: 100%;
    font-size: 15px;
    margin-top: 10px;
  }

  #checklistTable th,
  #checklistTable td {
    white-space: nowrap;
    padding: 8px;
  }

  #btnSave, #btnSaveTahliye {
    margin-top: 12px;
    font-size: 16px;
    width: 100%;
  }

  #btnLoadExcel {
    background-color: #27ae60;
  }
}
@media only screen and (max-width: 1280px) {
  body {
    padding: 10px;
    font-size: 16px;
  }

  h2, h3 {
    font-size: 20px;
    text-align: center;
  }

  .row {
    flex-direction: column;
    gap: 12px;
  }

  .column {
    width: 100%;
  }

  label {
    font-size: 16px;
    margin-top: 6px;
  }

  select, input, button {
    font-size: 16px;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
  }

  button {
    font-size: 16px;
    width: 100%;
  }

  table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
  }

  th, td {
    white-space: nowrap;
    padding: 6px;
  }

  .totals {
    text-align: center;
    margin: 10px 0;
    font-size: 15px;
  }

  #tonajDurumu, #kalanTonaj {
    font-size: 1.2rem;
    text-align: center;
  }

  #vagonModal .modal-content {
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 12px;
  }

  #vagonModal input,
  #vagonModal button {
    font-size: 16px;
    margin-top: 8px;
  }
}
@media only screen and (max-width: 1280px) {
  body {
    padding: 10px;
    font-size: 16px;
    background-color: #f5f5f5;
  }

  h1 {
    font-size: 22px;
    text-align: center;
  }

  form {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  label {
    font-size: 16px;
    margin-bottom: 4px;
  }

  input[type="text"],
  input[type="date"],
  input[type="file"] {
    font-size: 16px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .save-button,
  .employees-button {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    margin-top: 10px;
  }

  .edit-button {
    display: inline-block;
    font-size: 15px;
    padding: 8px;
    margin-top: 4px;
  }

  .message, .error {
    font-size: 15px;
    padding: 10px;
    margin: 8px 0;
  }
}
@media only screen and (max-width: 1280px) {
  body {
    padding: 10px;
    font-size: 16px;
  }

  h1 {
    font-size: 22px;
    text-align: center;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }

  input[type="text"], select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
  }

  table {
    display: block;
    overflow-x: auto;
    width: 100%;
    font-size: 14px;
    margin-top: 12px;
  }

  th, td {
    white-space: nowrap;
    padding: 8px;
    text-align: left;
  }

  .edit-button {
    display: inline-block;
    width: 100%;
    font-size: 14px;
    padding: 10px;
    margin-top: 4px;
    box-sizing: border-box;
  }

  .totals {
    text-align: center;
    font-size: 16px;
    margin: 12px 0;
  }

  .employee-count {
    font-weight: bold;
    font-size: 18px;
    text-align: right;
    margin-top: 8px;
  }
}
@media only screen and (max-width: 1280px) {
  body {
    padding: 10px;
    font-size: 16px;
  }

  h1 {
    font-size: 20px;
    text-align: center;
  }

  .controls, .mapping {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }

  label {
    font-size: 16px;
    margin-bottom: 4px;
  }

  select,
  input[type="file"],
  input[type="text"],
  input[type="number"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
  }

  button {
    font-size: 16px;
    padding: 10px;
    width: 100%;
    margin-top: 6px;
  }

  table {
    display: block;
    overflow-x: auto;
    width: 100%;
    font-size: 14px;
    margin-top: 10px;
  }

  th, td {
    white-space: nowrap;
    padding: 6px;
    text-align: center;
  }

  #filterBar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  #filterBar label {
    margin-left: 0;
  }
}
@media only screen and (max-width: 1280px) {
  body {
    padding: 10px;
    font-size: 16px;
    background-color: #f8f8f8;
  }

  h2 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 15px;
  }

  label {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    margin-bottom: 10px;
  }

  select {
    font-size: 16px;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  #btnKaydet {
    font-size: 16px;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background-color: #2d89ef;
    color: white;
    border: none;
    border-radius: 5px;
  }

  table {
    width: 100%;
    font-size: 14px;
    display: block;
    overflow-x: auto;
    margin-top: 12px;
    border-collapse: collapse;
  }

  th, td {
    padding: 8px;
    white-space: nowrap;
    text-align: center;
  }

  #selectAllTransfer {
    transform: scale(1.3);
  }
}
@media only screen and (max-width: 1280px) {
  body {
    padding: 12px;
    font-size: 16px;
    background-color: #f9f9f9;
  }

  h2, h3 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 15px;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  label {
    font-size: 16px;
    margin-bottom: 4px;
  }

  input[type="text"] {
    font-size: 16px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  button {
    font-size: 16px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
  }

  ul#subunitList {
    padding-left: 20px;
    margin-bottom: 10px;
  }

  table {
    width: 100%;
    font-size: 14px;
    margin-top: 10px;
    display: block;
    overflow-x: auto;
  }

  th, td {
    white-space: nowrap;
    padding: 6px;
    text-align: left;
  }

  #firmForm.active {
    display: flex;
    flex-direction: column;
  }
}
@media only screen and (max-width: 1280px) {
  body {
    padding: 20px;
    font-size: 18px;
    text-align: center;
  }

  h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .tab-button {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 15px;
    margin: 12px 0;
    font-size: 18px;
    text-align: center;
    border-radius: 6px;
  }
}
@media only screen and (max-width: 1280px) {
  body {
    padding: 12px;
    font-size: 16px;
    background-color: #f9f9f9;
  }

  h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
  }

  h2 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
    text-align: center;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    list-style: none;
    margin-bottom: 20px;
  }

  nav ul li a {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border-radius: 6px;
    text-decoration: none;
  }

  nav ul li a:hover {
    background-color: #45a049;
  }

  table {
    width: 100%;
    display: block;
    overflow-x: auto;
    font-size: 14px;
    margin-top: 12px;
  }

  th, td {
    white-space: nowrap;
    padding: 8px;
    text-align: center;
  }

  p {
    font-size: 15px;
    text-align: center;
    margin-top: 10px;
  }
}
@media only screen and (max-width: 1280px) {
  body {
    padding: 10px;
    font-size: 16px;
    background-color: #f4f4f4;
  }

  h1 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 15px;
  }

  .sticky-header {
    position: static;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
  }

  #filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  #filters select,
  #filters input[type="text"],
  #filters input[type="date"] {
    font-size: 16px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  #clearDates,
  #exportExcel,
  button {
    font-size: 16px;
    padding: 10px;
    width: 100%;
    margin-top: 6px;
    box-sizing: border-box;
  }

  #reportSummary {
    font-size: 15px;
    text-align: center;
    margin: 10px 0;
  }

  .table-wrapper {
    overflow-x: auto;
  }

  table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
  }

  th, td {
    padding: 6px;
    white-space: nowrap;
    text-align: center;
  }

  thead tr:nth-child(2) th {
    font-size: 12px;
  }
}
@media only screen and (max-width: 1280px) {
  body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    font-size: 16px;
    background-color: #f0f0f0;
  }

  h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  input[type="text"],
  input[type="password"] {
    font-size: 16px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  button {
    font-size: 16px;
    padding: 12px;
    background-color: #2d89ef;
    color: white;
    border: none;
    border-radius: 6px;
  }

  .error {
    font-size: 15px;
    color: red;
    text-align: center;
    margin-top: 8px;
  }
}
@media only screen and (max-width: 1280px) {
  body {
    padding: 10px;
    font-size: 16px;
    background-color: #f8f8f8;
  }

  h2 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 15px;
  }

  button {
    font-size: 16px;
    padding: 10px;
    width: 100%;
    margin-bottom: 12px;
  }

  #summaryBox {
    font-size: 16px;
    text-align: center;
    margin: 10px 0;
  }

  select, input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    box-sizing: border-box;
  }

  table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
    margin-top: 12px;
    display: block;
    overflow-x: auto;
  }

  th, td {
    white-space: nowrap;
    padding: 8px;
    text-align: center;
  }
}
@media only screen and (max-width: 1280px) {
  body {
    padding: 10px;
    font-size: 16px;
    background-color: #fafafa;
  }

  h1 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 15px;
  }

  select, input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    box-sizing: border-box;
  }

  #btnGoHome,
  #btnExportPdf {
    width: 100%;
    font-size: 16px;
    padding: 10px;
    margin-bottom: 10px;
  }

  .totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
    text-align: center;
  }

  .totals div {
    background: #4CAF50;
    padding: 10px;
    font-size: 16px;
  }

  table {
    width: 100%;
    display: block;
    overflow-x: auto;
    font-size: 14px;
    margin-top: 10px;
  }

  th, td {
    white-space: nowrap;
    padding: 8px;
    text-align: center;
  }

  th[onclick] {
    cursor: pointer;
  }
}
@media only screen and (max-width: 1280px) {
  body {
    padding: 12px;
    font-size: 16px;
    background-color: #f4f4f4;
  }

  h2 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 15px;
  }

  label {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    margin-bottom: 12px;
  }

  input[type="date"], select, input[type="text"] {
    font-size: 16px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
  }

  #saveBtn {
    font-size: 16px;
    padding: 12px;
    width: 100%;
    margin-top: 10px;
  }

  #summaryBox, #summaryBoxPayment {
    font-size: 15px;
    text-align: center;
    margin-bottom: 10px;
  }

  table {
    width: 100%;
    display: block;
    overflow-x: auto;
    font-size: 14px;
    margin-top: 10px;
    border-collapse: collapse;
  }

  th, td {
    white-space: nowrap;
    padding: 8px;
    text-align: center;
  }

  /* Tablo hizalama: Üst üste gelsin */
  div[style*="display: flex"] {
    display: block !important;
  }

  button {
    font-size: 16px;
    width: 100%;
    padding: 10px;
  }
}
@media only screen and (max-width: 1280px) {
  body {
    padding: 12px;
    font-size: 16px;
    background-color: #f9f9f9;
  }

  h1 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 15px;
  }

  button {
    font-size: 16px;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
  }

  table {
    width: 100%;
    font-size: 14px;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    margin-top: 10px;
  }

  th, td {
    padding: 8px;
    white-space: nowrap;
    text-align: center;
  }

  .dropdown {
    font-size: 16px;
    padding: 8px;
    width: 100%;
    max-width: 100%;
  }

  .expand-row {
    background-color: #f1f1f1;
    font-size: 14px;
  }
}
@media only screen and (max-width: 1280px) {
  body {
    padding: 12px;
    font-size: 16px;
    background-color: #fafafa;
  }

  h1 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 16px;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  label {
    font-size: 16px;
    margin-bottom: 4px;
  }

  input[type="text"],
  input[type="date"],
  textarea {
    font-size: 16px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  textarea {
    resize: vertical;
  }

  .save-button,
  .projects-button {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    box-sizing: border-box;
    text-align: center;
  }

  .projects-button {
    background-color: #5F99AE;
    margin-top: 10px;
    display: inline-block;
    color: white;
    text-decoration: none;
    border-radius: 4px;
  }

  .save-button {
    background-color: #3A7D44;
    color: white;
    border: none;
    border-radius: 4px;
  }
}
@media only screen and (max-width: 1280px) {
  body {
    padding: 12px;
    font-size: 16px;
    background-color: #f9f9f9;
  }

  h1 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 16px;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  nav a {
    font-size: 16px;
    padding: 12px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  table {
    width: 100%;
    font-size: 14px;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    margin-top: 10px;
  }

  th, td {
    padding: 8px;
    white-space: nowrap;
    text-align: center;
  }

  th[onclick] {
    cursor: pointer;
    font-size: 14px;
  }

  .edit-button {
    display: inline-block;
    font-size: 14px;
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    box-sizing: border-box;
  }
}

@media only screen and (max-width: 768px) {
  body {
    margin: 10px;
    font-size: 16px;
  }

  h2, h3 {
    font-size: 18px;
    text-align: center;
  }

  .row {
    flex-direction: column;
    gap: 10px;
  }

  .column {
    width: 100%;
  }

  input, select, button, textarea {
    font-size: 16px;
    padding: 10px;
  }

  table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
  }

  th, td {
    padding: 6px;
    white-space: nowrap;
  }

  #entryTable, #inlineYuklemeTable {
    min-width: 100%;
  }

  #saveBtn, #openVagonListBtn {
    width: 100%;
    font-size: 16px;
    margin-top: 10px;
  }

  #tonajDurumu, #kalanTonaj {
    font-size: 1.1rem;
    text-align: center;
  }

  .totals {
    font-size: 14px;
    text-align: center;
  }

  .modal {
    width: 95vw;
    height: auto;
    top: 10%;
    left: 2.5%;
    transform: none;
  }

  #vagonModal table {
    font-size: 13px;
  }
}
