/* ==========================================================================
   Webito Executive Corporate Portal Styles
   Clean, Official, Modern & Seamless Responsive UI
   ========================================================================== */

/* Typography */
@font-face {
    font-family: 'Dana';
    src: url('/assets/css/fonts/woff2/dana-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Dana';
    src: url('/assets/css/fonts/woff2/dana-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Dana';
    src: url('/assets/css/fonts/woff2/dana-demibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Dana';
    src: url('/assets/css/fonts/woff2/dana-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body, html, input, button, select, textarea, .table, .panel, h1, h2, h3, h4, h5, h6, .nav, .navbar, .badge, .btn, .dropdown-menu {
    font-family: 'Dana', 'IRANSansWeb(FaNum)', 'IRANSansWeb', system-ui, -apple-system, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

body.customers {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

#wrapper {
    background-color: #f8fafc !important;
    min-height: calc(100vh - 80px) !important;
    padding-top: 20px;
}

/* 1. Universal Navbar Header */
.navbar-default.header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    min-height: 64px !important;
}

.wb-nav-wrapper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 64px !important;
    width: 100% !important;
}

.navbar-brand.logo {
    display: flex !important;
    align-items: center !important;
    height: 64px !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    float: none !important;
}

.navbar-brand.logo img.logo-img {
    max-height: 36px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Profile Item in Navbar - Clean Classic Round Avatar */
.customers-nav-item-profile {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    height: 64px !important;
}

.customers-nav-item-profile > a.client-profile-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 8px !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    transition: background 0.15s ease !important;
}

.customers-nav-item-profile > a.client-profile-btn:hover,
.customers-nav-item-profile.open > a.client-profile-btn {
    background: #f1f5f9 !important;
}

.client-profile-image-small {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1.5px solid #cbd5e1 !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.customers-nav-item-profile > a.client-profile-btn:hover .client-profile-image-small,
.customers-nav-item-profile.open .client-profile-image-small {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.customers-nav-item-profile .caret {
    margin-right: 2px !important;
    color: #64748b !important;
    border-top-color: #64748b !important;
    transition: transform 0.15s ease !important;
}

.customers-nav-item-profile.open .caret {
    transform: rotate(180deg);
}

/* Guest Login Button */
.wb-btn-login {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
}

/* Dropdown Menu - Sleek & Mobile-Constrained */
.customers-nav-item-profile .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
    padding: 8px !important;
    margin-top: 6px !important;
    min-width: 240px !important;
    max-width: calc(100vw - 30px) !important;
    background: #ffffff !important;
    z-index: 1050 !important;
}

.profile-dropdown-user {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.profile-dropdown-email {
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
    direction: ltr;
    text-align: right;
    font-weight: 400;
}

.dropdown-menu > li > a {
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: #334155 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.15s ease !important;
}

.dropdown-menu > li > a:hover {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

/* 2. Clean Seamless Page Header */
.wb-page-header-clean {
    background: transparent !important;
    border: none !important;
    padding: 5px 0 20px 0;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.wb-page-title {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.wb-page-subtitle {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.wb-header-actions {
    display: flex;
    gap: 10px;
}

.wb-btn-primary {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    border: 1px solid #2563eb !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: background-color 0.15s ease !important;
}

.wb-btn-primary:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

.wb-btn-secondary {
    background: #ffffff !important;
    color: #334155 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.15s ease !important;
}

.wb-btn-secondary:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* 3. Announcements Box */
.wb-announcements-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 24px;
    overflow: hidden;
}

.wb-announcements-header {
    padding: 12px 18px;
    border-bottom: 1px solid #e2e8f0;
    background: #fcfcfd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wb-announcements-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wb-announcements-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 11.5px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.wb-announcement-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none !important;
    color: #1e293b !important;
    transition: background 0.15s ease;
}

.wb-announcement-row:last-child {
    border-bottom: none;
}

.wb-announcement-row:hover {
    background: #f8fafc;
}

.wb-announcement-row:hover .wb-ann-text {
    color: #2563eb;
}

.wb-ann-text {
    font-size: 13.5px;
    color: #334155;
}

.wb-ann-date {
    font-size: 12px;
    color: #64748b;
}

/* Section Title */
.wb-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    margin: 24px 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* 4. Action Cards */
.wb-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .wb-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .wb-grid-4 {
        grid-template-columns: 1fr;
    }
}

.wb-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 16px;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    cursor: pointer;
}

.wb-card:hover {
    border-color: #cbd5e1;
    background-color: #fafbfc;
}

.wb-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 12px;
}

.wb-card:hover .wb-card-icon {
    background: #e2e8f0;
    color: #0f172a;
}

.wb-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px 0;
    display: block;
}

.wb-card-desc {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    display: block;
}

/* Panels in other views */
.panel_s {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    margin-bottom: 20px !important;
}

.panel_s .panel-body {
    padding: 24px !important;
}

/* Minimal Official Footer */
.wb-official-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 13px;
    color: #64748b;
}

.wb-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.wb-footer-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.wb-footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
}

.wb-footer-links a:hover {
    color: #0f172a;
    text-decoration: underline;
}

.wb-footer-copy {
    margin: 0;
    font-size: 12.5px;
    color: #64748b;
}

/* Mobile Ticket Chat Specific Styles */
@media (max-width: 767px) {
    .under-header {
        display: none !important;
    }
}
