/*=====================
    Header
    (extracted from style.css - all header-only styling lives here,
    so changing the header layout should only require editing this file)
=======================*/

.header-wrapper {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 33% 33% 33%;
    grid-template-columns: 33% 33% 33%;
}

.main-header-section {
    padding: 6px 20px;
    background: #fff;
    -webkit-box-shadow: 8px 10px 80px rgba(0, 15, 55, 0.04);
    box-shadow: 8px 10px 80px rgba(0, 15, 55, 0.04);
}

.main-header-section .profile-info img {
    height: 36px;
    width: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: block;
}

.main-header-section .header-right,
.main-header-section .profile-info,
.main-header-section .profile-info > a,
.main-header-section .profile-info > a > div,
.main-header-section .notifications,
.main-header-section .notifications > a {
    display: flex;
    align-items: center;
}

@media (max-width: 576px) {
    .main-header-section {
        padding: 8px 12px;
    }

    .main-header-section .profile-info img {
        height: 34px;
        width: 34px;
        min-width: 34px;
    }

    .main-header-section .text-custom-primary {
        font-size: 13px;
        white-space: nowrap;
    }

    .fullscreen-toggle {
        display: none !important;
    }
}

.main-header-section .profile-info img span {
    font-size: 16px;
}

/* ===== Header profile dropdown (admin + business): single source ===== */
.main-header-section .profile-info.dropdown {
    margin-left: 20px;
}

@media (max-width: 576px) {
    .main-header-section .profile-info.dropdown {
        margin-left: 10px;
    }
}

.main-header-section .profile-info .profile-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 8px !important;
    min-width: 260px;
    padding: 6px !important;
    background: #fff;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12);
}

.main-header-section .profile-info .profile-menu li {
    display: block;
    margin: 0;
    padding: 0;
}

.main-header-section .profile-info .profile-menu .profile-menu-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.main-header-section .profile-info .profile-menu .profile-menu-user img {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.main-header-section .profile-menu-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.3;
}

.main-header-section .profile-menu-name {
    font-size: 13px;
    font-weight: 600;
    color: #121212;
}

.main-header-section .profile-menu-email {
    font-size: 11px;
    color: #6b6b6b;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-header-section .profile-menu-role {
    font-size: 11px;
    font-weight: 600;
    color: var(--clr-primary);
}

.main-header-section .profile-info .profile-menu .profile-menu-divider {
    height: 1px;
    margin: 4px 6px;
    background: #eee;
}

.main-header-section .profile-info .profile-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 13px;
    color: #374151;
    border-radius: 8px;
    white-space: nowrap;
}

.main-header-section .profile-info .profile-menu li a i {
    width: 16px;
    font-size: 15px;
    text-align: center;
    color: #6b7280;
}

.main-header-section .profile-info .profile-menu li a:hover {
    color: var(--clr-primary);
    background: rgba(var(--clr-primary-rgb), 0.08);
}

.main-header-section .profile-info .profile-menu li a:hover i {
    color: var(--clr-primary);
}

.main-header-section .profile-info .profile-menu li a.profile-menu-logout,
.main-header-section .profile-info .profile-menu li a.profile-menu-logout i {
    color: #dc2626;
}

.main-header-section .profile-info .profile-menu li a.profile-menu-logout:hover {
    background: #fef2f2;
}

.main-header-section .dropdown-menu {
    top: 60% !important;
    border: none;
    border-radius: 2px !important;
    padding: 0;
    min-width: 220px;
}

.main-header-section .profile-info.dropdown {
    position: relative;
}

.p-lr {
    padding: 0 1%;
}

@media (max-width: 767px) {
    .view-website {
        display: none;
    }

    .notifications {
        display: none;
    }

    .greet-name {
        display: none;
    }

    .pos-logo {
        display: block;
    }

    .menu-opener {
        display: none !important;
    }
}

@media (max-width: 1150px) {
    .menu-openerr {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .return-card {
        min-height: 100vh;
    }
}

.menu-openerr {
    display: none;
}

.header-button {
    border: 1px solid var(--clr-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--clr-primary);
}

.header-button:hover {
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
}

.header-left {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.header-right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.language-change {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.language-change img {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.language-change .dropdown-toggle {
    display: flex;
    align-items: center;
    height: 36px;
}

.language-change .dropdown {
    position: relative;
}

.language-change .dropdown-menu {
    top: calc(100% + 8px) !important;
    margin-top: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
    padding: 6px !important;
    min-width: 190px;
    animation: languageMenuIn 0.15s ease-out;
}

@keyframes languageMenuIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-change .dropdown-toggle::after {
    transition: transform 0.2s ease;
}

.language-change .dropdown-toggle.show::after {
    transform: rotate(180deg);
}

.language-change .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 15px;
    color: #374151;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.language-change .dropdown-item:hover,
.language-change .dropdown-item:focus {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
}

.language-change .dropdown-item:active {
    background-color: rgba(var(--clr-primary-rgb), 0.18) !important;
    color: #111827 !important;
}

.language-change .dropdown-item.is-current {
    background-color: rgba(var(--clr-primary-rgb), 0.12) !important;
    color: #111827 !important;
    font-weight: 600;
}

.language-change .dropdown-item .language-name {
    flex: 1;
}

.language-change .dropdown-item .flag-icon {
    margin-right: 0 !important;
    height: 22px;
    width: 22px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

@media (max-width: 576px) {
    .language-change .dropdown-toggle {
        padding: 6px 10px;
        height: 34px;
        justify-content: center;
    }

    .language-change .dropdown-toggle .flag-icon {
        height: 20px;
        width: 20px;
    }

    .language-change .dropdown-toggle .lang-name {
        font-size: 13px;
    }

    .language-change .dropdown-menu {
        right: 0;
        left: auto !important;
        min-width: 200px;
    }
}

.language-btn {
    border: none;
}

.language-container {
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notification-container {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-change .nice-select {
    background: none;
    border: none;
}

.language-change .nice-select:after {
    border-color: #000;
    height: 7px;
    top: 46%;
    width: 7px;
}

.fullscreen-toggle {
    height: 36px;
    width: 36px;
    min-width: 36px;
    margin: 0 0 0 12px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
    color: #111;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.fullscreen-toggle:hover {
    background: #eee;
    color: var(--clr-primary);
}

.fullscreen-toggle:focus {
    outline: none;
    -webkit-box-shadow: 0 0 0 3px rgba(255, 168, 40, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 168, 40, 0.2);
}

.header-calender {
    height: 45px;
    width: 45px;
    line-height: 45px;
    text-align: center;
    cursor: pointer;
}

.notifications.dropdown>a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 !important;
    color: #737881;
    height: 36px;
    width: 36px;
    text-align: center;
}

.notifications.dropdown>a.show {
    background-color: #eee;
    -webkit-border-radius: 3px 3px 0 0;
    -webkit-background-clip: padding-box;
    -moz-border-radius: 3px 3px 0 0;
    -moz-background-clip: padding;
    border-radius: 3px 3px 0 0;
    background-clip: padding-box;
}

.bg-info {
    background: #21a9e1;
    color: #fff;
}

.text-red {
    color: red !important;
}

.notifications {
    margin-left: 10px;
}

.notifications .dropdown-toggleer {
    position: relative;
}

.notifications .dropdown-toggleer span {
    display: block;
    height: 17px;
    width: 17px;
    border-radius: 50%;
    line-height: 17px;
    text-align: center;
    font-size: 10px;
    position: absolute;
    top: 2px;
    right: 6px;
}

.dark-icon {
    margin: 0 0 0 10px;
    display: block;
}

.notifications .dropdown-menu {
    top: 0 !important;
    background: #eee;
    min-width: 370px;
}

.notifications ul li a {
    padding: 10px 20px;
    display: block;
    border-top: 1px solid #ddd;
}

.notifications ul li a span,
.notifications ul li a strong {
    display: block;
    font-size: 12px;
}

.notifications ul li a span {
    color: #888888;
    line-height: 1;
    margin-top: 5px;
}

.notification-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 10px;
    background: #eee;
}

.notification-header p {
    font-size: 12px;
}

.notification-header a {
    font-size: 12px;
}

.bg-red {
    background: #ee4749;
    color: #fff;
}

.notification-footer {
    background: #fff;
    padding: 10px;
    line-height: 1;
}

.notification-footer a {
    font-size: 12px;
    line-height: 1;
}

.msg-items {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.msg-items .content {
    width: 100%;
}

.msg-items .content strong {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.msg-items .content strong span {
    margin: 0;
    margin-left: 10px;
    font-weight: 400;
}

.msg-items img {
    height: 50px;
    width: 50px;
    min-width: 50px;
    border-radius: 50%;
    margin-left: 15px;
}

.bg-yellow {
    background: yellow;
}

.header-middle input {
    background: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

.search-btn {
    background: var(--clr-primary) !important;
    color: #fff !important;
}
