.dropdown-menu li {
    position: relative;
}
.dropdown-menu .dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: -7px;
}
.dropdown-menu .dropdown-submenu-left {
    right: 100%;
    left: auto;
}
.dropdown-menu > li:hover > .dropdown-submenu {
    display: block;
}

body {
    font-size: 14px !important;
}

.nav-link {
    padding: 0 8px;
    color: #B4C7E7 !important;
}

.selected-nav {
    font-weight: 600;
}

.navbar {
    background-color: #2F5597 !important;
}

.dropdown-item {
    margin: 0;
    padding: 4px 8px;
}

.form-control, .form-select {
    height: 30px;
    font-size: 13px !important;
}

th, td {
  cursor: pointer;
  padding: 2px 2px 2px 10px !important;
}

th {
    background-color: #2F5597 !important;
    color: white;
}

.fixed-table {
    table-layout: fixed;
}

.func-btn {
    width: 100px !important;
    margin-right: 5px !important;
    padding-top: 2px !important;;
    padding-bottom: 2px !important;;
}

.report-btn {
    margin-right: 10px;
    width: 150px !important;
}

.selected-row {
    background: #d9f7ff !important;
}

.btn-phan-quyen {
    width: 300px;
    height: 50px;
    margin-bottom: 5px;
}

fieldset {
    margin-bottom: 1em !important;
    border: 1px solid #666 !important;
    padding:1px !important;
}

legend {
    padding: 1px 10px !important;
    float:none;
    width:auto;
    margin-bottom: 0px;
    margin-left: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #1f497d;
}

.red-background {
  background: #FF7F7F !important;
}

.green-background {
  background: #90EE90 !important;
}

.card {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto; /* Center the card horizontally */
}

.card-image {
    flex-shrink: 0; /* Prevent the image from shrinking */
    width: 150px; /* Fixed width for the image */
    height: 150px; /* Fixed height for the image */
    margin-right: 20px; /* Space between image and content */
    overflow: hidden; /* Ensure the image doesn't overflow */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%; /* Image takes the full width of its container */
    height: 100%; /* Image takes the full height of its container */
    object-fit: cover; /* Maintain aspect ratio, crop if necessary */
}

.card-content {
    flex: 1; /* Content takes up the remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures the text and link are spaced out */
    padding-right: 20px; /* Space between content and link */
}

.card-content h2 {
    color: red;
    font-size: 18px;
    margin: 0 0 10px 0;
}

.card-content p {
    margin: 0;
    color: #333;
}

.card-link {
    margin-top: 20px; /* Space between content and link */
    align-self: flex-end; /* Align the link to the right */
}

.card-link a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.card-link a:hover {
    text-decoration: underline;
}

.tin-tuc table {
    table-layout: fixed;
    word-wrap: break-word;
}

.ag-theme-alpine {
    --ag-font-size: 11px !important;
    --ag-grid-size: 3px !important;
    --ag-list-item-height: 18px !important;
    height: 400px;
}