/**
 * Dragon Oath Manager 5
 * PHP User Management System
 * By the Damigoo Inc at https://damigoo.com
 * Contact us: damigoo.com@gmail.com
 */
 
/* Global Styles */

::-webkit-scrollbar {
    width: 0.2rem;
    height: 0.2rem;
}
::-webkit-scrollbar-button {
    width: 0rem;
    height: 0rem;
}
::-webkit-scrollbar-thumb {
    background: #666666;
}
::-webkit-scrollbar-thumb:hover {
    background: #666666;
}
::-webkit-scrollbar-thumb:active {
    background: #333333;
}
::-webkit-scrollbar-track {
    background: #e1e1e1;
}
::-webkit-scrollbar-track:hover {
    background: #ffffff;
}
::-webkit-scrollbar-track:active {
    background: #ffffff;
}
::-webkit-scrollbar-corner {
    background: transparent;
	
}

html {
	position: relative;
	min-height: 100%;
}
body {
    color: #554b45;
}

/* Sidebar trái trang users */
.dmg-sidebar {
    min-width: 260px;
}
.dmg-sidebar .nav-link{
    padding: 0.8rem 1rem;
    background-color: #f0e9e1;
}
.dmg-sidebar .nav-link[data-toggle].collapsed:after {
	content: " \f0da";
	font-family: FontAwesome;
	display: inline;
	text-align: right;
	padding-left: 5px;
	float: right;	
}
.dmg-sidebar .nav-link[data-toggle]:not(.collapsed):after {
	content: " \f0d7";
	font-family: FontAwesome;
	display: inline;
	text-align: right;
	padding-left: 5px;
	float: right;	
}
.dmg-sidebar .nav-item a {
    color: #82776e;
}
.dmg-sidebar .nav-item a.open,
.dmg-sidebar .nav-item a:hover,
.dmg-sidebar .nav-item a:focus {
	background-color: #e4d7ca;
}
.dmg-sidebar .nav-item a.active{
	background-color: #8c655a !important;
    color: #ffffff !important;	
}

/* Footer sticky */
.dmg-footer {
    border-top: 0.25rem solid #822f39;
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 56px; /* Set the fixed height of the footer here */
	line-height: 52px;
}

/* Trang chủ: kéo khối màu cuối trang xuống sát chân màn hình */
body.sticky-footer.dmg-home-page {
	min-height: 100vh;
	margin-bottom: 0;
	display: flex;
	flex-direction: column;
}
body.sticky-footer.dmg-home-page > .dmg-cover {
	width: 100%;
}
body.sticky-footer.dmg-home-page > .dmg-home-bottom {
	flex: 1 0 auto;
}
body.sticky-footer.dmg-home-page > .dmg-footer {
	position: static;
	flex: 0 0 56px;
	background-color: #ffffff;
	color: #554b45;
}

/* Ảnh nền fixed */
.dmg-cover {
    background: none;
    padding: 20px 0px;
    -webkit-background-size: cover;
    -moz-background-size: cover;
	-o-background-size: cover;
    background-size: cover;
    margin: 0 auto;
    background-color: #822f39;
    color: #fff;
}

/* Icon tròn trang index */
.dmg-home-icon {
    padding: 20px 8.48056537%;
    background-color: #822f39;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    max-width: 100px;
	-webkit-transform: scale(1);
	transform: scale(1);
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}
@media(min-width:768px) {
    .dmg-home-icon {
        padding: 23px 8.48056537%;
        font-size: 76px;
        max-width: 160px;	
    }
}

.dmg-home-icon:hover {
    background-color: #6d2530;
	-webkit-transform: scale(1.1);
	transform: scale(1.1);	
}

/* Form đăng nhập index */
.dmg-login-form {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 1rem 1rem;
    color: #212529;
}

/* Màu viền trên dưới chính trang users */
.dmg-content-main {
    border-top: 0.25rem solid #822f39;		
}

/* Màu nền chủ đạo */
.dmg-bg-primary {
    background-color: #822f39 !important;
    color: #ffffff;
}

/* Màu nền phụ */
.dmg-bg-secondary {
    background-color: #f0e9e1 !important;
    color: #212529;
}

/* Custom Colored Buttons */
.dmg-btn-primary {
	color: #fff;
	background-color: #822f39;
	border-color: #822f39;
}
.dmg-btn-primary:hover {
	color: #fff;
	background-color: #6d2530;
	border-color: #63232d;
}
.dmg-btn-primary:focus, .dmg-btn-primary.focus {
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.5);
}
.dmg-btn-primary.disabled, .dmg-btn-primary:disabled {
	background-color: #822f39;
	border-color: #822f39;
}
.dmg-btn-primary:active, .dmg-btn-primary.active,
.show > .dmg-btn-primary.dropdown-toggle {
	background-color: #6d2530;
	background-image: none;
	border-color: #63232d;
}

.dmg-btn-secondary {
	color: #65594f;
	background-color: #f0e9e1;
	border-color: #f0e9e1;
}

.dmg-btn-secondary:hover {
	color: #65594f;
	background-color: #eae0d6;
	border-color: #e4d7ca;
}

.dmg-btn-secondary:focus, .dmg-btn-secondary.focus {
	box-shadow: 0 0 0 3px rgba(248, 249, 250, 0.5);
}

.dmg-btn-secondary.disabled, .dmg-btn-secondary:disabled {
	background-color: #f0e9e1;
	border-color: #f0e9e1;
}

.dmg-btn-secondary:active, .dmg-btn-secondary.active,
.show > .dmg-btn-secondary.dropdown-toggle {
	background-color: #eae0d6;
	background-image: none;
	border-color: #e4d7ca;
}

/* Dấu sao đỏ */
.dmg-redstar {
    color: #FF0000;
    font-weight: bold;
}
/* Icon navbar */
.dmg-notification-navbar {
    position: absolute;
    top: 7px;
    right: 20px;
    text-align: center;
    font-size: 0.5rem;
    padding: 3px 5px;
}
.dmg-icon-hover {
    opacity: 1;
    filter: alpha(opacity=100);
}
.dmg-icon-hover:hover {
    opacity: 0.7;
    filter: alpha(opacity=70);
}
.back-to-top {
    z-index: 999;	
    position: fixed;
    right: 15px;
    bottom: 5px;
    display: none;
    width: 45px;
    height: 45px;
    text-align: center;
    color: white;
    background: rgba(52, 58, 64, 0.5);
    line-height: 45px;
}
.back-to-top:focus,
.back-to-top:hover {
    color: white;
}
.back-to-top:hover {
    background: #343a40;
}


/* Kiem Hiep: CSS presentation only; legacy themes never load these rules. */
body {
    background-color: #f5f1eb;
    color: #554b45;
}
body:not(.fixed-nav) {
    isolation: isolate;
    background-image: url('../images/cover/mountains_kiemhiep.png');
    background-position: center bottom;
    background-size: 100% auto;
    background-attachment: scroll;
    background-repeat: no-repeat;
}
/* Presence of the auth form selects characters. Signed-in index has no form. */
body:not(.fixed-nav):has(.kiemhiep-auth-column)::before {
    content: '';
    position: fixed;
    z-index: -1;
    pointer-events: none;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 1280px;
    max-width: 100vw;
    height: 720px;
    background: url('../images/cover/cover_kiemhiep.png') center top / 1280px auto no-repeat;
    mask-image: linear-gradient(to bottom, #000 48%, transparent 100%), linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
    mask-composite: intersect;
}
.dmg-cover {
    background: rgba(245, 241, 235, .72);
    color: #822f39;
}
.dmg-cover h1 {
    font-size: 1.8rem;
    font-weight: 600;
}
.kiemhiep-auth-stage {
    background: transparent;
    padding-top: 36px;
    padding-bottom: 12px;
}
.kiemhiep-auth-stage + .dmg-content-main {
    border-top: 0;
    background: transparent;
}
.kiemhiep-promo {
    display: none !important;
}
.kiemhiep-auth-column {
    flex: 0 0 100%;
    max-width: 520px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    order: 0;
}
.kiemhiep-join + .dmg-content-main .kiemhiep-auth-column {
    max-width: 720px;
}
.kiemhiep-only,
.kiemhiep-signup {
    display: block !important;
}
.kiemhiep-index {
    padding-top: 48px;
    padding-bottom: 24px;
}
.kiemhiep-auth-column .dmg-login-form,
.kiemhiep-auth-column > .dmg-bg-secondary,
.kiemhiep-login + .dmg-content-main .kiemhiep-auth-column {
    background: rgba(255, 255, 255, .97) !important;
    color: #554b45;
    border: 1px solid #e8ddd2;
    border-radius: 16px !important;
    padding: 28px !important;
    box-shadow: 0 12px 36px rgba(90, 53, 40, .09);
}
.kiemhiep-auth-column .form-control {
    min-height: 44px;
    border-radius: 8px;
    border-color: #ddd3c8;
    background-color: #fffdfa;
}
.kiemhiep-auth-column label {
    font-weight: 500;
}
.kiemhiep-auth-column .btn-block {
    min-height: 44px;
    border-radius: 8px;
    font-weight: 600;
}
.kiemhiep-index + .py-5 {
    padding-top: 24px !important;
    padding-bottom: 32px !important;
}
body.dmg-home-page .row.text-center {
    justify-content: center;
    gap: 16px;
}
body.dmg-home-page .row.text-center > div {
    position: relative;
    flex: 0 1 170px;
    max-width: 170px;
    padding: 18px 12px;
    background: rgba(255, 253, 250, .94);
    border: 1px solid #e4d7ca;
    border-radius: 10px;
}
body.dmg-home-page .dmg-home-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    background: #f3e5da;
    color: #822f39;
    border: 0;
    border-radius: 8px !important;
}
body.dmg-home-page .row.text-center > div > a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
}
body.dmg-home-page .row.text-center > div:hover {
    border-color: #b9908f;
    box-shadow: 0 5px 18px rgba(90, 53, 40, .07);
}
body.dmg-home-page .row.text-center h3 {
    font-size: 1.05rem;
    margin: 12px 0 0 !important;
}
body.dmg-home-page .dmg-home-bottom {
    flex: 0 0 auto !important;
    margin-top: auto;
    background: rgba(255, 253, 250, .94) !important;
    color: #65594f;
    border-top: 1px solid #e4d7ca;
    padding-top: 18px !important;
    padding-bottom: 12px !important;
    font-size: .82rem;
    line-height: 1.6;
}
@media (max-width: 359.98px) {
    .kiemhiep-auth-column .g-recaptcha {
        transform: scale(.75);
        transform-origin: left top;
        width: 230px;
        height: 58px;
    }
}
body.dmg-home-page .dmg-home-bottom h3 {
    font-size: .95rem;
    color: #822f39;
}
body.dmg-home-page .dmg-home-bottom a {
    color: #822f39 !important;
}
.dmg-footer,
body.sticky-footer.dmg-home-page > .dmg-footer {
    background-color: rgba(255, 253, 250, .96);
    border-top: 1px solid #e4d7ca;
    color: #65594f;
}
@media (max-width: 767.98px) {
    body:not(.fixed-nav):has(.kiemhiep-auth-column)::before {
        width: 960px;
        height: 540px;
        background-size: 960px auto;
        opacity: .5;
    }
    .kiemhiep-auth-stage {
        padding-top: 24px;
    }
    .kiemhiep-auth-column,
    .kiemhiep-join + .dmg-content-main .kiemhiep-auth-column {
        max-width: calc(100% - 16px);
    }
    .kiemhiep-auth-column .dmg-login-form,
    .kiemhiep-auth-column > .dmg-bg-secondary,
    .kiemhiep-login + .dmg-content-main .kiemhiep-auth-column {
        padding: 20px !important;
    }
    body.dmg-home-page .row.text-center {
        margin-right: 0;
        margin-left: 0;
    }
    body.dmg-home-page .row.text-center > div {
        flex-basis: calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}


/* Compact sample-3 footer; native details retain the original information. */
body.dmg-home-page .dmg-home-bottom {
    display: none !important;
}
.dmg-footer.kiemhiep-footer,
body.sticky-footer.dmg-home-page > .dmg-footer.kiemhiep-footer {
    flex: 0 0 auto;
    height: auto;
    min-height: 48px;
    padding: 12px 0;
    line-height: 1.5;
    border-top: 1px solid #822f39;
    font-size: .78rem;
}
.kiemhiep-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
body.sticky-footer.dmg-home-page > .dmg-footer.kiemhiep-footer {
    margin-top: auto;
}
.kiemhiep-footer-links {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}
.kiemhiep-footer-links summary {
    display: block;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}
.kiemhiep-footer-links summary::-webkit-details-marker {
    display: none;
}
.kiemhiep-footer-links summary:hover,
.kiemhiep-footer-links details[open] summary {
    color: #822f39;
}
.kiemhiep-footer-divider {
    color: #a99486;
}
.kiemhiep-footer-copyright {
    white-space: nowrap;
}
.kiemhiep-footer-copyright .kiemhiep-footer-divider {
    margin: 0 10px;
}
.kiemhiep-footer-panel {
    position: absolute;
    z-index: 1050;
    bottom: calc(100% + 14px);
    left: 0;
    width: 360px;
    max-width: calc(100vw - 30px);
    padding: 18px;
    border: 1px solid #e4d7ca;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(90, 53, 40, .14);
    background: #fffdfa;
    color: #65594f;
    font-size: .85rem;
    line-height: 1.65;
    max-height: min(55vh, 400px);
    overflow-y: auto;
}
.kiemhiep-footer-panel p:last-child {
    margin-bottom: 0;
}
@media (max-width: 767.98px) {
    .kiemhiep-auth-column,
    .kiemhiep-join + .dmg-content-main .kiemhiep-auth-column {
        max-width: 100%;
    }
    .kiemhiep-login + .dmg-content-main .kiemhiep-auth-column {
        max-width: calc(100% - 30px);
    }
    .kiemhiep-footer-row {
        flex-direction: column;
        gap: 8px;
    }
    .kiemhiep-footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        font-size: .72rem;
    }
    .kiemhiep-footer-copyright {
        font-size: .72rem;
    }
    .kiemhiep-footer-panel {
        left: 50%;
        transform: translateX(-50%);
    }
    body.sticky-footer:not(.dmg-home-page):has(.kiemhiep-footer) {
        margin-bottom: 76px;
    }
}
