.hidden {
    display: none;
}

body {
    overflow-x: hidden;
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/*header */
.gov-header {
    width: 100%;
    max-width: 100%;
    background-color: rgba(var(--color-primary-rgb), var(--tw-bg-opacity));
    border-bottom-style: solid;
    border-bottom-width: 8px;
    border-color: rgba(var(--color-tertiary-rgb), var(--tw-border-opacity));
    position: relative;
}

.gov-header__inner {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.govgr-container {
    max-width: 1024px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
}

.govgr-header__section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    column-gap: 1rem;
    row-gap: .5rem;
}

.d-flex.flex-col.govgr-grid__gap-2 {
    flex-direction: column !important;
    gap: 0.5rem; 
    align-items: flex-start;
}

.govgr-header__section .govgr-dropdown .govgr-profile-link, .govgr-header__section .govgr-dropdown .govgr-profile-link .govgr-svg-icon {
    --tw-text-opacity: 1;
    color: rgba(var(--color-white-rgb),var(--tw-text-opacity));
    fill: rgba(var(--color-white-rgb),var(--tw-text-opacity));
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.govgr-footer__info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.govgr-footer-img {
   width: 100%; height: 100%;
   max-width: 500px;
   max-height: 85px;
}

.gov-smaller-img {
    max-height: 65px;
}

.no-scroll {
	overflow: hidden;
}

.sidebar {
    position: fixed;
    top: 72px;
    z-index: 10;
    min-width: 350px;
    max-width: 400px;
    height: 100%;
    background-color: var(--bs-body-bg);
    border-right: 2px;
    border-right-style: solid;
    border-right-width: 2px;
    border-color: rgba(var(--color-tertiary-rgb), var(--tw-border-opacity));
}

.sidebar-link {
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--bs-gray-700) !important;
}

    .sidebar-link.active {
        color: var(--bs-link-color) !important;
    }

.main-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 72px;
    box-sizing: border-box;
}

.login-layout {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 88px);
    box-sizing: border-box;
}

.main-container {
    flex: 1;
}

.govgr-heading-legend {
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--bs-primary)
}

.main-body {
   
    margin-left: 350px;
}

.footer2{
    z-index: 100;
    position: relative;
}

.govgr-footer__meta-item img {
    max-height: 80px;
}

#mobile-menu-button {
    display: none;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background-color: var(--bs-body-bg);
    border-bottom: 2px solid var(--color-tertiary);
    
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
}

@media only screen and (max-width: 992px) {
    .sidebar, .header-title, .header-name-link {
        display: none !important;
    }

    .main-body {
        margin-left: 0px;
    }

    .add-button, .delete-button, .cancel-button {
        margin-bottom : 0px !important;
    }

    .create-column {
        grid-column: 1 / -1 !important;
    }

    #mobile-menu-button {
        display: block !important;
    }
    
}

.govgr-error-message {
    color: #d4351c;
    font-weight: 600;
    margin-top: 5px;
}

.input-validation-error {
    border: 2px solid #d4351c !important;
}

.gsisImg {
    cursor: pointer;
    border-radius: 10px;
    display: block;
    text-decoration: none;
    box-shadow: 0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;
    transition: 0.3s ease;
}

    .gsisImg:hover {
        box-shadow: 0 2px 4px -1px #0006, 0 4px 5px #0006, 0 1px 10px #0006;
    }


    .comm-box {
        margin-top: 1.6rem;
        background-color: var(--bs-gray-300);
        border-radius: 5px;
        border: 1px solid var(--bs-gray-400);
    }

.open-lock-modal {
    width: min-content;
}

.disabled-input {
    border-color: var(--color-base-700) !important;
    color: var(--color-base-800);
    background-color: var(--color-base-300) !important;
    cursor: not-allowed;
    caret-color: transparent;
}

    .disabled-input:focus {

        outline: unset !important;
        box-shadow: unset !important;
    }

.search-kaek-button {
    width: 124px !important;
    justify-content: center;
}

@media (min-width: 768px) {
    .search-kaek-button {
        width: 140px !important;
        justify-content: center;
    }
}

.temp-save-button {
    width: 265.57px !important;
    justify-content: center;
}

@media (min-width: 768px) {
    .temp-save-button {
        width: 299.61px !important;
        justify-content: center;
    }
}

/* Admin pages */

.admin-container {
    max-width: 1600px;
    margin: 20px auto;
    padding: 0 16px;
}
.admin-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 24px;
    border: 1px solid #e5e7eb;
}
.admin-header {
    display: flex;                 
    align-items: baseline;           
    gap: 24px;                    
    margin-bottom: 0; 
}
.admin-title {
    font-size: 1.875rem; 
    line-height: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    flex-grow: 1;
    margin: 0; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.grid-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .admin-container { padding: 0 12px; }
    .admin-card { padding: 16px; }
    .admin-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 12px; 
        margin-bottom: 16px; 
    }
    .admin-title { font-size: 1.5rem; }
}

.custom-dev-table .dx-datagrid-headers .dx-header-row td {
  background-color: var(--color-primary) !important;
  color: white !important;
  border: none !important;
  padding: 1.4rem 1.6rem !important;
  font-size: 1.4rem !important;
  font-family: var(--body-font); 
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center !important;
}
.custom-dev-table .dx-datagrid-headers .dx-header-row .dx-header-filter,
.custom-dev-table .dx-datagrid-headers .dx-header-row .dx-sort {
    color: white !important;
}

.custom-dev-table .custom-data-cell {
    font-size: 1.3rem !important;     
    padding: 0.625rem 1rem !important;
    border-top: none;
    border-left: none;
    border-right: none;
}

.custom-dev-table .dx-datagrid-header-panel {
    border-bottom: none !important;
}
.custom-dev-table .dx-pager {
    border-top: none !important;
}
.custom-dev-table .dx-datagrid-headers {
    border-top-left-radius: var(--br-main);
    border-top-right-radius: var(--br-main);
}
.custom-dev-table .dx-datagrid-rowsview {
    border-top: none !important;
    border-bottom-left-radius: var(--br-main);
    border-bottom-right-radius: var(--br-main);
}

.custom-dev-table .dx-datagrid-nodata {
    font-family: var(--body-font);
}
.custom-dev-table .dx-page-size, .custom-dev-table .dx-page{
    font-family: var(--body-font); 
    padding: .7rem 1rem !important;
    border-radius: 20px;
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}
.custom-dev-table .dx-page-size.dx-selection, .custom-dev-table .dx-page.dx-selection {
    background-color: var(--text-color-100);
    color: var(--text-color);
}
.custom-dev-table .dx-button {
    border-radius: var(--br-main);
    border: unset;
}
