#main-wrapper {
  margin-top: 72px;

}

@media (max-width: 483px) {

  #main-wrapper {
    margin-top: 105px;
  }

}

@media (max-width: 307px) {

  #main-wrapper {
    margin-top: 145px;
  }

}

@media (max-width: 700px) {
  #user-fullname-label {
    display: none;
  }

  .govgr-dropdown .govgr-dropdown__content {
    right: -1rem!important;
  }

}

/* Start GOV missing css */

.govgr-layout-wrapper
{
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}
.govgr-drawer, .govgr-layout-wrapper__full-height
{
  min-height: 100vh;
}

@media (min-width: 768px) {
  .md\:govgr-grid__col-span-8
  {
    grid-column: span 8/span 8;
  }
}
@media (min-width: 0px) {
  .xs\:govgr-grid__col-span-12
  {
    grid-column: span 12/span 12;
  }
}
.govgr-mb-8, .govgr-mb-9
{
  margin-bottom: 2rem !important;
}
@media (min-width: 768px) {
  .govgr-mb-8
  {
    margin-bottom: 2.5rem !important;
  }
}

.govgr-grid-column-two-thirds
{
  grid-column: span 2/span 2!important;
}

@media (min-width: 768px) {
  .govgr-main-wrapper
  {
    grid-template-columns: repeat(3,minmax(0,1fr))!important;
    gap: 3rem!important;
  }
}
.govgr-main-wrapper
{
  display: grid;  
  row-gap: 4rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (min-width: 768px) {
  .govgr-width-container
  {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
.govgr-width-container
{
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 64rem;
  padding-left: .75rem;
  padding-right: .75rem;
}

.govgr-width-container
{
  flex: 1 1 0%!important;
}

.govgr-panel--confirmation {
  background-color: rgba(var(--color-success-rgb),var(--tw-bg-opacity));
}

.govgr-grid-column-one-third
{
  grid-column: span 1/span 1!important;
  display: flex;
  height: fit-content;
  flex-direction: column;
  flex-wrap: wrap;
}

/* End GOV missing css */

.custom-separator {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 0;
}
/* fix zk theme page padding */
body {
  padding: 0!important;
}

/* form validation style */
.custom-invalid-date .z-datebox-input {
  border: 1px solid #dc3545!important;
}

.custom-invalid-date .z-datebox-button {
  border-top: 1px solid #dc3545!important;
  border-right: 1px solid #dc3545!important;
  border-bottom: 1px solid #dc3545!important;
}

.custom-date-read-only .z-datebox-input {
  background-color: white;
}

.custom-invalid-textbox {
  border: 1px solid #dc3545!important;
}

.custom-invalid-feedback {
  width: 100%;
  margin-top: .25rem;
  height: auto;
  min-height: 20px;
  line-height: 100%;
}

.custom-invalid-feedback2 {
  width: 100%;
  margin-top: .10rem;
}

.custom-invalid-feedback .z-label, .custom-invalid-feedback2 .z-label {
  font-size: .875rem;
  color: #dc3545;
}

.custom-invalid-combobox .z-combobox-input {
  border: 1px solid #dc3545!important;
  background-color: white;
}

.custom-combobox-read-only .z-combobox-input {
  background-color: white;
}

.custom-invalid-combobox .z-combobox-button {
  border-top: 1px solid #dc3545!important;
  border-right: 1px solid #dc3545!important;
  border-bottom: 1px solid #dc3545!important;
}

.custom-combobox-read-only .z-comboitem-selected {
  background: #8383a4;
  color: white;
}

.custom-invalid-doublespinner {
  border: 1px solid #dc3545!important;
}

.custom-invalid-doublespinner .z-doublespinner-button, .custom-invalid-doublespinner .z-doublespinner-input {
  border-bottom: 1px solid #dc3545!important;
}

.custom-invalid-spinner .z-spinner-input {
  border-color: #dc3545 !important;
}

.custom-invalid-spinner .z-spinner-button {
  border-color: #dc3545 !important;
}

.custom-invalid-searchbox {
  border: 1px solid #dc3545!important;
}

.required-marker:after {
  margin-left: 1px;
  margin-right: 0px;
  content: "*";
  font-size: 16px
}

/* footer logo*/
.footer-logo {
    max-width: 100%!important;
}

/* popup */
.popup-label{
    cursor:pointer;
}

/* pagination */
.custom-pagination {
  background-color: white;
}
.custom-pagination ul {
  display: flex;
}

/* override dialog button bg */
button.z-messagebox-button{
  background-color: #02a6e2 !important;
}

button.z-messagebox-button:hover{
  background-color: #00b0f0 !important;
}

/* Modals*/
body.modal-open {
  overflow: hidden; /* Disable scrolling */
}

.centered-modal {
  position: fixed !important;
  top: 50% !important;
  left: 50%!important;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 1001; /* Ensure it appears above the mask */
}

.z-modal-mask {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000; /* Ensure it appears above other elements */
}
.z-window-header {
  font-weight: bold;
  font-size: 1.125rem;
}

.td-custom-number{
  display: inline-block;
  width: 100%;
  text-align: right!important;
}

.td-custom-align-left{
  display: inline-block;
  width: 100%;
  text-align: left!important;
}
.td-custom-align-center{
  display: inline-block;
  width: 100%;
  text-align: center!important;
}

.th-custom-padding > div{
  /*padding-inline: 12px!important;*/
  padding: 12px 12px!important;
}

.custom-td-equal td{
  width: 50%!important;
  text-wrap: wrap!important;
}


/* drop upload attachments*/
.attachments > .z-groupbox-header,
.attachments > .z-groupbox-content {
  border-color: #e6e6e6;
}
.attachments .z-groupbox-title-content {
  color: #4d4d4d;
}

.attachments .z-dropupload {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  border: 1px dashed gray;
}
.attachments .z-dropupload > div {
  width: 100%;
  padding: 5px 10px;
  color:#333;
  text-align:center;
}

.attachment {
  display: inline-block;
  padding: 4px 7px;
  margin-bottom: 3px;
  background-color: #f0f0f8;
  border-radius: 4px;
}
.attachment > a {
  text-decoration: none;
}
.attachment > a > i {
  margin-right: 8px;
}

/* custom searchbox style */
.custom-highlight.z-searchbox:active{
  border-color: inherit!important;
  background: inherit!important;
  color: inherit!important;
}

.custom-highlight[disabled] {
  pointer-events: none;
}

.custom-highlight-searchbox.muted {
  color: rgba(33, 37, 41, 0.55)!important;
}
.z-searchbox-selected .custom-highlight-searchbox {
  color: rgb(0, 147, 249)!important;
}

.z-searchbox-selected .custom-highlight-searchbox.muted {
  color: rgba(0, 147, 249, 0.6) !important;
}

/* fix issue with long text in result items */
.z-searchbox-popup {
  /*min-width: auto!important;*/
  max-width: 100%!important;
  width: auto!important;
  overflow: auto!important;
}

.z-searchbox-item {
  padding: 5px;
  white-space: normal;
  height: auto!important;
  line-height: 140%!important;
  display: flex;
  width: 100%;
}
.z-searchbox-item .z-searchbox-item-check {
  min-width: 20px;
}

.custom-invalid-time.z-timebox {
  outline: 1px solid #dc3545 !important;
}

.bg-primary-subtle .z-row-inner, .bg-primary-subtle .z-listcell {
  background: inherit!important;
}

.article-display ol, .article-display ul {
  list-style: inherit!important;
}
.article-display ol {
  list-style-type: decimal !important;
}

.icon-spin {
  animation: spin 1s linear infinite;
  display: inline-block !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* student school register form*/
.info-key {
  width:150px;
}
.with-error {
  margin-top:5px;
  align-self:start;
}
.info-parent {
  align-items:center;
  flex-wrap:nowrap;
}
@media (max-width: 1024px) {
  .info-parent {
    margin-bottom:5px;
  }
}
@media (max-width: 386px) {
  .info-key{
    width:386px;
  }
  .info-parent {
    flex-wrap:wrap;
    gap:0px!important;
  }
}