.primary1 {
	position: absolute;
	top: 10px;
	right: 10px;
}
.primary2 {
	position: absolute;
	top: 10px;
	left: 10px;
}
.feed-item .text-muteds {
	color: red;
	margin-right: 5px;
}
.check {
	padding: 5px;
	margin-left: 10px;
}
.menus {
  height: auto;
  background: #eee;
  display: none;
}
.b_une {
  height: auto;
  background: #eee;
  display: none;
}
.b_busad {
  height: auto;
  background: #eee;
  display: none;
}
.bold {
	font-weight: bold;
}
.deed .form-group {
	float: left;
}
.module {
	padding: 20px;
	text-align: center;
	font-weight: 100;
	cursor: pointer;
	background: #fff;
	width: 100%;
	margin-bottom: 30px;
	font-size: 16px;

}
.module b {
	font-weight: bold;
}







/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  width: 100%;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  width: 100%;
  padding-top: 20px;
  background: #fff;
}

.har {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  padding-top: 2%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999999;
  display: none;
}
#tom, #toms {
  float: right;
  background: red;
  color: white;
}
.tailan th, .tailan tr {
  font-size: 12px;
  background: #ffff92;

}

.gol {
  width: 50%;
  margin: auto;
  background: white;
  padding: 20px;
}

/* ===== Системийн бүх хуудасны mobile-first хамгаалалт ===== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
}

#main-wrapper,
.page-wrapper,
.container-fluid,
.container,
.row,
.card,
.card-body,
.table-responsive,
.tab,
.tabcontent {
  min-width: 0;
  max-width: 100%;
}

.card,
.card-body,
.tabcontent,
.module,
.alert,
.modal-content {
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  body {
    position: relative;
    touch-action: pan-y pinch-zoom;
  }

  #main-wrapper,
  .page-wrapper {
    width: 100% !important;
    margin-left: 0 !important;
    overflow-x: clip !important;
  }

  .container-fluid,
  .container {
    width: 100% !important;
    padding-right: 9px !important;
    padding-left: 9px !important;
  }

  .container-fluid > .row,
  .container > .row {
    margin-right: -4px !important;
    margin-left: -4px !important;
  }

  .row > [class*="col-"] {
    min-width: 0;
    padding-right: 4px !important;
    padding-left: 4px !important;
  }

  .page-breadcrumb {
    padding: 10px 9px !important;
  }

  .page-breadcrumb .row {
    margin: 0 !important;
  }

  .page-breadcrumb .col-5,
  .page-breadcrumb [class*="col-md-"] {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .page-title {
    margin-bottom: 3px !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
  }

  .breadcrumb {
    margin-bottom: 0 !important;
    padding: 0 !important;
    font-size: 11px;
    white-space: normal !important;
  }

  .card {
    width: 100% !important;
    margin-bottom: 10px !important;
    border-radius: 12px !important;
  }

  .card-body,
  .card-header {
    padding: 11px !important;
  }

  .module {
    margin-bottom: 10px;
    padding: 11px 9px;
    font-size: 13px;
    line-height: 1.45;
  }

  .gol {
    width: 100% !important;
    margin: 0 !important;
    padding: 11px !important;
  }

  .tab {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    overflow: hidden !important;
    border-radius: 11px;
  }

  .tab button,
  #tom,
  #toms {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px;
    padding: 8px 6px !important;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal !important;
  }

  .tabcontent {
    padding-top: 10px;
    overflow: hidden !important;
  }

  form,
  form[style*="width"],
  form[style*="float"] {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .form-group,
  .deed .form-group {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .form-control,
  input[style*="width"] {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important;
  }

  textarea {
    min-height: 92px;
    resize: vertical;
  }

  .btn-group,
  .btn-toolbar,
  .chart-actions {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .btn-group > .btn,
  .btn-toolbar .btn {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
  }

  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive > table,
  table.table-responsive,
  table.table-responsive-lg,
  table.table-responsive-md,
  table.table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
  }

  table.table th,
  table.table td,
  .table-responsive th,
  .table-responsive td {
    min-width: 0 !important;
    max-width: none !important;
    padding: 5px 3px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  table.table .btn,
  .table-responsive .btn,
  table.table .label,
  .table-responsive .label {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    padding: 4px 5px !important;
    font-size: 9px !important;
    line-height: 1.15;
    white-space: normal !important;
  }

  .modal-dialog {
    width: auto !important;
    max-width: calc(100% - 14px) !important;
    margin: 7px auto !important;
  }

  .modal-body,
  .modal-header,
  .modal-footer {
    padding: 11px !important;
  }

  .dropdown-menu {
    max-width: calc(100vw - 18px);
    overflow-wrap: anywhere;
  }

  pre, code {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 575.98px) {
  .row > [class*="col-"]:not(.col-auto) {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .tab {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-stack-table,
  .mobile-stack-table tbody {
    display: block !important;
    width: 100% !important;
  }

  .mobile-stack-table thead {
    display: none !important;
  }

  .mobile-stack-table tbody tr {
    display: block !important;
    width: 100% !important;
    margin-bottom: 9px;
    padding: 7px 9px;
    border: 1px solid #e3eaf0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 13px rgba(15, 23, 42, .05);
  }

  .mobile-stack-table tbody td,
  .mobile-stack-table tbody th {
    display: grid !important;
    grid-template-columns: minmax(82px, 38%) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100% !important;
    padding: 7px 0 !important;
    border: 0 !important;
    border-bottom: 1px dashed #e6edf2 !important;
    text-align: right !important;
    font-size: 12px !important;
  }

  .mobile-stack-table tbody td:last-child,
  .mobile-stack-table tbody th:last-child {
    border-bottom: 0 !important;
  }

  .mobile-stack-table tbody td::before,
  .mobile-stack-table tbody th::before {
    content: attr(data-mobile-label);
    color: #64748b;
    text-align: left;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
  }
}
