/*
 * NewUI styles. Source of truth: Modules/NewUI/resources/assets/css/newui.css
 * Published to public/newui/ (php artisan vendor:publish --tag=newui-assets --force).
 */

/* ===== Header (layouts/partials/navbar.blade.php) ===== */
/* NewUI: white header, always visible, sticks to the top on scroll */
:root { --newui-accent: #32C98B; --newui-accent-dark: #28a776; --newui-accent-soft: #E8F8F1; }
body { background: #f3f0f0;}
.newuiNavbar { z-index: 1030; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); transition: box-shadow .25s ease; }
.newuiNavbar.is-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .18), 0 1px 3px rgba(0, 0, 0, .10); }
.newuiNavbar.is-scrolled .menu { border-bottom-color: transparent; }
.newuiNavbar .menu { background-color: #fff; padding: 15px 0; border-bottom: 1px solid #E8EDF0; }

.newuiNavbar .date { background: #E8EDF0; color: #04444D; border-radius: 12px; padding: 7px 15px 4px; font-size: 14px; }
.newuiNavbar .profile {
    background: var(--newui-accent); border-radius: 12px; text-align: center; margin-right: 5px; padding: 0 12px;
    color: #fff; height: 32px; display: flex; align-items: center; justify-content: center;
}
.newuiNavbar .profile:hover { background: var(--newui-accent-dark); color: #fff; }

.newuiNavbar .searchInput {
    padding: 9px 25px 8px; font-size: 12px; margin-top: -2px; background: #F1F3F5; color: #212529;
}
.newuiNavbar .searchForm .searchInput::placeholder { color: #6c757d; opacity: 1; }
.newuiNavbar .searchBtn { height: 29px; margin-top: 1px; background-color: var(--newui-accent); }
.newuiNavbar .searchBtn:hover { background-color: var(--newui-accent-dark); }

.newuiNavbar .navbar .nav-link { color: #212529; }
.newuiNavbar .navbar .nav-link:hover,
.newuiNavbar .navbar .nav-link:focus,
.newuiNavbar .navbar .nav-link.active,
.newuiNavbar .navbar .nav-link.show { color: var(--newui-accent); }
.newuiNavbar .navbar .newuiAccentLink { color: var(--newui-accent); font-weight: 700 !important; }
.newuiNavbar .navbar .newuiAccentLink:hover { color: var(--newui-accent-dark); }

.newuiNavbar .dropdown-menu { border-color: #E8EDF0; box-shadow: 0 6px 16px rgba(0, 0, 0, .08); }
.newuiNavbar .dropdown-item { color: #212529; }
.newuiNavbar .dropdown-item:hover,
.newuiNavbar .dropdown-item:focus { background: var(--newui-accent-soft); color: var(--newui-accent); }
.newuiNavbar .dropdown-item svg,
.newuiNavbar .dropdown-item i { color: #2F80ED; fill: #2F80ED; }
#headerNavbar .dropdown-menu a {font-weight: 500;}

/* Second bar (menu) hides when scrolling down, shows when scrolling up */
.newuiNavbar .newuiNavbarMenu { max-height: 600px; transition: max-height .25s ease, padding .25s ease, opacity .2s ease; }
.newuiNavbar.menu-hidden .newuiNavbarMenu { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; }

/* Desktop categories dropdown: full screen width (mega menu).
   Bootstrap doesn't use Popper inside a .navbar, so with a static <li> the menu is
   positioned against the full-width .navbar. */
.newuiNavbar .newuiNavbarMenu .nav-item.dropdown { position: static; }
.newuiNavbar .newuiCatsMenu {
    top: 100%; left: 0; right: 0; width: 100%; margin: 0;
    border: 0; border-top: 1px solid #E8EDF0; border-radius: 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .10);
}
.newuiNavbar .newuiCatsMenu.show {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px;
    max-height: 70vh; overflow-y: auto;
    padding: 16px max(12px, calc((100% - 960px) / 2 + 12px)); /* line up with .container */
}
@media (min-width: 1200px) { .newuiNavbar .newuiCatsMenu.show { padding-inline: calc((100% - 1140px) / 2 + 12px); } }
@media (min-width: 1400px) { .newuiNavbar .newuiCatsMenu.show { padding-inline: calc((100% - 1320px) / 2 + 12px); } }
.newuiNavbar .newuiCatsMenu .dropdown-item { white-space: normal; border-radius: 8px; padding: 10px 12px; }

/* ===== Mobile header (< 992px) ===== */
.newuiMobileBar { height: 56px; padding: 0 12px; display: flex; align-items: center; gap: 8px; background: #fff; }
.newuiMobileLogo { margin-inline: auto; display: flex; align-items: center; }
.newuiMobileLogo img { height: 30px; width: auto; }
.newuiIconBtn {
    width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 12px; background: transparent;
    color: #212529; display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.newuiIconBtn:active, .newuiIconBtn[aria-expanded="true"] { background: var(--newui-accent-soft); }
.newuiIconBtn--accent { background: var(--newui-accent); }
.newuiIconBtn--accent:active { background: var(--newui-accent-dark); }
.newuiMobileSearch { padding: 4px 12px 12px; background: #fff; }
.newuiMobileSearch .searchForm { position: relative; }
.newuiMobileSearch .searchInput { width: 100%; font-size: 14px; padding: 10px 20px; }
.newuiMobileSearch .searchBtn { height: 34px; margin-top: 4px; margin-right: -76px; width: 70px; }

/* Drawer */
.newuiDrawer.offcanvas { width: min(85vw, 320px); z-index: 9999999999; }
.newuiDrawer .offcanvas-header { border-bottom: 1px solid #E8EDF0; }
.newuiDrawer .offcanvas-body { display: flex; flex-direction: column; padding: 0; }
.newuiDrawerList, .newuiDrawerSub { list-style: none; margin: 0; padding: 0; }
.newuiDrawerLink {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 20px;
    border: 0; border-bottom: 1px solid #E8EDF0; background: transparent; color: #212529;
    font-size: 15px; text-align: start; text-decoration: none;
}
.newuiDrawerLink:hover, .newuiDrawerLink:active, .newuiDrawerLink:focus {
    background: var(--newui-accent-soft); color: var(--newui-accent);
}
.newuiDrawerLink svg, .newuiDrawerLink i { color: currentColor; fill: currentColor; }
.newuiDrawerToggle { justify-content: space-between; }
.newuiDrawerToggle .newuiChevron { fill: none; transition: transform .2s ease; }
.newuiDrawerToggle:not(.collapsed) { color: var(--newui-accent); }
.newuiDrawerToggle:not(.collapsed) .newuiChevron { transform: rotate(180deg); }
.newuiDrawerSub { background: #FAFBFC; }
.newuiDrawerSub .newuiDrawerLink { padding-inline-start: 36px; font-size: 14px; min-height: 44px; }
.newuiDrawerFooter { margin-top: auto; padding: 16px 20px 24px; border-top: 1px solid #E8EDF0; }
.newuiBtnAccent { background: var(--newui-accent); color: #fff; font-weight: 700; border-radius: 12px; padding: 10px; }
.newuiBtnAccent:hover, .newuiBtnAccent:active { background: var(--newui-accent-dark); color: #fff; }
.newuiDatePill { background: #E8EDF0; color: #04444D; border-radius: 12px; padding: 6px 12px 4px; font-size: 13px; }
.newuiDrawerUser { color: var(--newui-accent); font-weight: 700; text-decoration: none; font-size: 14px; }


/* ===== Home page (web/index.blade.php) ===== */
/* NewUI home: taller search box in the header section */
.mozmonHeader .searchArea .searchForm .searchInput {
    height: 60px; padding: 0 28px; font-size: 16px; border-radius: 30px;
}
.mozmonHeader .searchArea .searchForm .searchBtn {
    height: 48px; width: 96px; margin-top: 6px; margin-right: -102px; border-radius: 24px;
    background-size: 20px;
}
@media (max-width: 575.98px) {
    .mozmonHeader .searchArea .searchForm .searchInput { height: 52px; font-size: 15px; padding: 0 20px; }
    .mozmonHeader .searchArea .searchForm .searchBtn { height: 42px; width: 72px; margin-top: 5px; margin-right: -77px; }
    .mozmonHeader .searchArea h1 {text-align: right}
}

.new-bg {
    background: #f3f0f0!important;
}


/* ===== Home: latest posts section ===== */
.newuiSectionHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* `h2.` is needed: customs.css has `.mozmonLatestPosts h2`, `.mozmonSpecialPosts h2` and
   `.mozmonLatestBlogs h2` (font-weight 300, 20px, gray), which beat a plain class selector. */
h2.newuiSectionTitle {
    margin: 0; padding-inline-start: 12px; border-inline-start: 4px solid var(--newui-accent);
    font-size: 22px; font-weight: 700; color: #1F2937; line-height: 1.4;
}
/* Same heading on dark backgrounds (footer) */
h2.newuiSectionTitle.newuiSectionTitle--dark { color: #E4F3EE; font-size: 18px; margin-bottom: 20px; }
.newuiMoreBtn {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px;
    background: #FFC107; color: #1F2937; font-size: 14px; font-weight: 700; text-decoration: none;
    transition: background .15s ease;
}
.newuiMoreBtn:hover { background: #F2B600; color: #1F2937; }

/* Post card */
.newuiPostCard {
    position: relative; display: flex; align-items: center; gap: 16px; height: 100%;
    padding: 22px 18px 16px; background: #fff; border: 1px solid #E8EDF0; border-radius: 14px;
    color: inherit; text-decoration: none; overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.newuiPostCard:hover { color: inherit; border-color: #D5DEE3; box-shadow: 0 8px 20px rgba(0, 0, 0, .07); transform: translateY(-2px); }

.newuiPostType {
    position: absolute; top: 0; right: 0; padding: 3px 14px; border-bottom-left-radius: 12px;
    color: #fff; font-size: 12px; font-weight: 700; background: #64748B;
}
/*.newuiPostType--1 { background: #32C98B; }            !* مزایده *!
.newuiPostType--2 { background: #2F80ED; }            !* مناقصه *!
.newuiPostType--3 { background: #F2A900; color: #1F2937; } !* تجاری *!
.newuiPostType--4 { background: #8B5CF6; }            !* استعلام *!
.newuiPostType--5 { background: #14B8A6; }            !* اطلاعیه *!
.newuiPostType--6 { background: #4F46E5; }            !* استخدام *!
.newuiPostType--7 { background: #0EA5E9; }            !* آگهی جذب *!
.newuiPostType--8 { background: #64748B; }            !* اصلاحیه *!*/

.newuiPostType--1,
.newuiPostType--2,
.newuiPostType--3,
.newuiPostType--4,
.newuiPostType--5,
.newuiPostType--6,
.newuiPostType--7,
.newuiPostType--8 {
    background: #32C98B;
}

.newuiPostLogo {
    flex: 0 0 64px; width: 64px; height: 64px; border: 1px solid #E8EDF0; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; background: #fff; padding: 6px;
}
.newuiPostLogo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.newuiPostBody { flex: 1 1 auto; min-width: 0; }
.newuiPostTitle {
    margin: 0 0 4px; font-size: 15px; font-weight: 700; color: #1F2937; line-height: 1.7;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.newuiPostCompany {
    font-size: 13px; color: #6B7280; margin-bottom: 10px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.newuiPostMeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13px; color: #6B7280; }
.newuiPostMeta span { display: inline-flex; align-items: center; gap: 6px; }
.newuiPostMeta svg { color: #9CA3AF; flex: 0 0 auto; }

/* Sits at the end of the date/city row, so there's no empty column above it */
.newuiPostMeta .newuiPostBtn {
    margin-inline-start: auto; flex: 0 0 auto; padding: 6px 16px; border-radius: 10px;
    background: #EEF2F6; color: #374151; font-size: 13px; font-weight: 500; white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.newuiPostCard:hover .newuiPostMeta .newuiPostBtn { background: var(--newui-accent); color: #fff; }

/* Special posts: same card and border, no shadow, "ویژه" badge; section matches latest posts background */
.mozmonSpecialPosts { background: #F8F8F8; } /* same as .mozmonLatestPosts */
.newuiPostCard--special,
.newuiPostCard--special:hover { box-shadow: none; } /* border: same as other cards */
.newuiPostSpecial {
    position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 12px; border-bottom-right-radius: 12px;
    background: #FFC107; color: #1F2937; font-size: 12px; font-weight: 700;
}

@media (max-width: 575.98px) {
    h2.newuiSectionTitle { font-size: 18px; }
    h2.newuiSectionTitle.newuiSectionTitle--dark { font-size: 16px; }
    .newuiMoreBtn { padding: 7px 14px; font-size: 13px; }
    .newuiPostCard { gap: 12px; padding: 24px 14px 14px; }
    .newuiPostLogo { flex-basis: 52px; width: 52px; height: 52px; }
    .newuiPostMeta .newuiPostBtn { display: none; } /* whole card is the link on phones */
}


/* ===== Home: blog (مجله) section ===== */
.mozmonLatestBlogs.newuiBlogs { background: #F8F8F8; padding: 40px 0 50px; } /* drops the old background image */

.newuiBlogCard {
    display: flex; align-items: stretch; gap: 14px; height: 100%; padding: 12px;
    background: #fff; border: 1px solid #E8EDF0; border-radius: 14px; color: inherit; text-decoration: none;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.newuiBlogCard:hover { color: inherit; border-color: #D5DEE3; box-shadow: 0 8px 20px rgba(0, 0, 0, .07); transform: translateY(-2px); }

.newuiBlogBody { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 4px 4px 2px 0; }
.newuiBlogTitle {
    margin: 0; font-size: 15px; font-weight: 700; color: #1F2937; line-height: 1.8;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.newuiBlogCard:hover .newuiBlogTitle { color: var(--newui-accent-dark); }
.newuiBlogDate { margin-top: 8px; font-size: 13px; color: #6B7280; }

.newuiBlogImage {
    flex: 0 0 120px; width: 120px; height: 84px; border-radius: 10px; overflow: hidden; background: #EEF2F6;
}
.newuiBlogImage img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 575.98px) {
    .newuiBlogImage { flex-basis: 104px; width: 104px; height: 74px; }
    .newuiBlogTitle { font-size: 14px; }
}


/* ===== Home: popular companies section ===== */
.newuiPopularCompanies { background: #F8F8F8; padding: 10px 0 50px; }
.newuiCompanyGrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.newuiCompanyTile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 18px 10px 14px; background: #fff; border: 1px solid #E8EDF0; border-radius: 14px;
    color: #374151; text-decoration: none; text-align: center;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.newuiCompanyTile:hover { color: #1F2937; border-color: #D5DEE3; box-shadow: 0 8px 20px rgba(0, 0, 0, .07); transform: translateY(-2px); }
.newuiCompanyLogo { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.newuiCompanyLogo img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    filter: grayscale(1); opacity: .75; transition: filter .2s ease, opacity .2s ease;
}
.newuiCompanyTile:hover .newuiCompanyLogo img { filter: none; opacity: 1; }
.newuiCompanyName {
    font-size: 13px; font-weight: 500; line-height: 1.7; width: 100%;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    white-space: nowrap;text-overflow: ellipsis;
}

/* Only one row: show as many tiles as there are columns, hide the rest */
.newuiCompanyGrid > .newuiCompanyTile:nth-child(n+8) { display: none; }
@media (max-width: 1199.98px) {
    .newuiCompanyGrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .newuiCompanyGrid > .newuiCompanyTile:nth-child(n+6) { display: none; }
}
@media (max-width: 991.98px) {
    .newuiCompanyGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .newuiCompanyGrid > .newuiCompanyTile:nth-child(n+5) { display: none; }
}
@media (max-width: 767.98px) {
    .newuiCompanyGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .newuiCompanyGrid > .newuiCompanyTile:nth-child(n+4) { display: none; }
}
@media (max-width: 575.98px) {
    /* phones: one swipeable row with all companies */
    .newuiCompanyGrid > .newuiCompanyTile:nth-child(n) { display: flex; }
    .newuiCompanyGrid {
        grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 128px;
        overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch;
    }
    .newuiCompanyTile { scroll-snap-align: start; }
}

/* ===== Footer ===== */
.newuiFooter { padding: 48px 0 16px; }
.newuiFooter h2.newuiFooterTitle {
    margin: 0 0 18px; padding-inline-start: 10px; border-inline-start: 3px solid #FFC107;
    color: #E4F3EE; font-size: 16px; font-weight: 700; line-height: 1.5;
}
.newuiFooter p.newuiFooterAbout { color: #AEBABC; font-size: 13px; line-height: 2; text-align: justify; margin-bottom: 16px; }
.newuiFooterLinks { list-style: none; margin: 0; padding: 0; }
.newuiFooterLinks li { padding: 5px 0; }
.newuiFooterLinks--cols { columns: 2; column-gap: 16px; }
.newuiFooterLinks--cols li { break-inside: avoid; }
.newuiFooter a { transition: color .15s ease; }
.newuiFooter a:hover { color: #FFC107; }
.newuiFooterLinks img { width: 18px; height: 18px; vertical-align: middle; }
.newuiFooterSocial { display: flex; gap: 10px; justify-content: flex-end; }
.newuiFooterSocial a {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border-radius: 50%; background: rgba(255, 255, 255, .08); color: #E4F3EE; font-size: 17px;
}
.newuiFooterSocial a:hover { background: #FFC107; color: #04444D; }
.newuiFooterSeal { max-width: 110px; height: auto; background: #fff; border-radius: 10px; padding: 4px; }
.newuiFooterBacklinks {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
    margin-top: 28px; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, .12);
}
.newuiFooter .newuiFooterBacklinksLabel { color: #E4F3EE; font-size: 13px; }
.newuiFooterBacklinks a { font-size: 13px; }
.newuiFooter hr { margin: 20px 0 12px; opacity: .25; }


/* =====================================================================
   Post page (web/post.blade.php)
   ===================================================================== */
.newuiPostPage { color: #1F2937; }
.newuiIcon { flex: 0 0 auto; vertical-align: middle; }

.newuiPostTopbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.newuiBreadcrumb { font-size: 14px; margin: 0; align-items: center; }
.newuiBreadcrumb .breadcrumb-item { display: inline-flex; align-items: center; }
.newuiBreadcrumb .breadcrumb-item + .breadcrumb-item { padding-right: 10px; }
.newuiBreadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ""; float: none; padding: 0; margin-left: 10px; width: 7px; height: 7px;
    border-left: 1.8px solid #9CA3AF; border-bottom: 1.8px solid #9CA3AF; transform: rotate(45deg); /* chevron ‹ */
}
.newuiBreadcrumb a { color: #374151; text-decoration: none; }
.newuiBreadcrumb a:hover { color: var(--newui-accent-dark); }
.newuiBreadcrumb .active { color: #6B7280; }
.newuiBackBtn {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px;
    border: 1.5px solid var(--newui-accent); background: #fff; color: #1F2937; font-size: 14px; font-weight: 700; text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.newuiBackBtn:hover { background: var(--newui-accent-soft); color: var(--newui-accent-dark); }

/* Main card */
.newuiPostMain { background: #fff; border: 1px solid #E8EDF0; border-radius: 16px; padding: 24px; }
.newuiPostHeader { margin-bottom: 20px; }
.newuiPostHeaderTop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.newuiPostId { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #6B7280; }
.newuiCopyBtn { border: 0; background: transparent; color: #6B7280; padding: 4px; border-radius: 8px; line-height: 0; }
.newuiCopyBtn:hover { background: #EEF2F6; color: #1F2937; }
.newuiCopyBtn.is-copied, [data-newui-copy].is-copied { color: var(--newui-accent-dark); }
.newuiPostHeading { font-size: 20px; font-weight: 800; line-height: 1.8; margin: 0; color: #111827; }
.newuiPostHeading small { font-size: 14px; font-weight: 500; color: #6B7280; }

/* Type pill (header + similar cards); colors come from .newuiPostType--N */
.newuiTypePill {
    display: inline-flex; align-items: center; padding: 4px 16px; border-radius: 999px;
    color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; background: #64748B;
}

/* Sections inside the main card */
.newuiPostSection + .newuiPostSection { margin-top: 24px; }
.newuiPostSectionTitle { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; margin: 0 0 12px; color: #111827; }
.newuiPostSectionIcon {
    width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--newui-accent-soft); color: var(--newui-accent-dark);
}
.newuiPostSection--highlight { background: var(--newui-accent-soft); border: 1px solid #CDEFE0; border-radius: 14px; padding: 18px 20px; }
.newuiPostSection--highlight .newuiPostSectionIcon { background: #fff; }
.newuiPostDescription { font-size: 15px; line-height: 2.1; color: #1F2937; text-align: justify; }
.newuiPostDescription p:last-child { margin-bottom: 0; }

/* Label/value grid (looks like a bordered table) */
.newuiInfoGrid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #E8EDF0; border-radius: 12px; overflow: hidden; background: #E8EDF0; gap: 1px;
}
.newuiInfoCell { background: #fff; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.newuiInfoCell--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; }
.newuiInfoLabel { font-size: 13px; font-weight: 700; color: #374151; }
.newuiInfoCell--wide .newuiInfoLabel { flex: 0 0 auto; }
.newuiInfoValue { font-size: 14px; color: #4B5563; overflow-wrap: anywhere; }
.newuiInfoGrid .newuiInfoCell:nth-child(-n+3):not(.newuiInfoCell--wide) .newuiInfoLabel { color: #111827; }
.newuiInfoGrid:empty { display: none; }

/* Item tables */
.newuiTableWrap { border: 1px solid #E8EDF0; border-radius: 12px; overflow-x: auto; }
.newuiTable { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.newuiTable th { background: #F8FAFB; font-weight: 700; color: #111827; white-space: nowrap; }
.newuiTable th, .newuiTable td { padding: 12px 14px; border-bottom: 1px solid #E8EDF0; border-inline-start: 1px solid #E8EDF0; text-align: center; vertical-align: middle; }
.newuiTable tr > :first-child { border-inline-start: 0; }
.newuiTable tbody tr:last-child td { border-bottom: 0; }
.newuiTable td { color: #4B5563; }

/* Buyer info */
.newuiContactBox {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0;
    border: 1px solid #E8EDF0; border-radius: 12px; padding: 16px 18px; font-size: 14px;
}
.newuiContactRow { display: flex; gap: 10px; min-width: 0; }
.newuiContactRow--wide { grid-column: 1 / -1; }
.newuiContactRow dt { flex: 0 0 auto; font-weight: 700; color: #374151; }
.newuiContactRow dd { margin: 0; color: #4B5563; overflow-wrap: anywhere; }

/* Sidebar */
.newuiSidebar { display: flex; flex-direction: column; gap: 16px; }
.newuiWidget { background: #fff; border: 1px solid #E8EDF0; border-radius: 16px; padding: 18px; }
.newuiWidget--soft { background: var(--newui-accent-soft); border-color: #CDEFE0; }
.newuiWidgetTitle { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; margin: 0 0 14px; color: #111827; }
.newuiWidgetTitle .newuiIcon { color: var(--newui-accent-dark); }

.newuiCompanyHead { display: flex; align-items: center; gap: 14px; color: #111827; text-decoration: none; }
.newuiCompanyHead:hover { color: var(--newui-accent-dark); }
.newuiCompanyHead strong { font-size: 16px; font-weight: 800; line-height: 1.7; }
.newuiCompanyHeadLogo {
    flex: 0 0 72px; width: 72px; height: 72px; border: 1px solid #E8EDF0; border-radius: 14px; padding: 8px;
    display: flex; align-items: center; justify-content: center; background: #fff;
}
.newuiCompanyHeadLogo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.newuiPublishPill {
    display: inline-block; margin: 14px 0 4px; padding: 5px 14px; border-radius: 999px;
    background: var(--newui-accent-soft); color: var(--newui-accent-dark); font-size: 13px; font-weight: 700;
}
.newuiSideInfo { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #E8EDF0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.newuiSideInfo > div { display: flex; gap: 8px; }
.newuiSideInfo dt { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #374151; }
.newuiSideInfo dt .newuiIcon { color: var(--newui-accent-dark); }
.newuiSideInfo dd { margin: 0; color: #4B5563; }
.newuiSideInfo a { color: inherit; text-decoration: none; }
.newuiSideInfo a:hover { color: var(--newui-accent-dark); }

/* Countdown */
.newuiCountdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.newuiCountdown > div { border: 1px solid #E8EDF0; border-radius: 12px; padding: 10px 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, .04); }
.newuiCountdown strong { display: block; font-size: 22px; font-weight: 800; color: #111827; line-height: 1.3; }
.newuiCountdown span { font-size: 13px; color: red; }
.newuiCountdownEnded { margin: 0; font-size: 14px; color: #6B7280; }

/* Notify */
.newuiNotifyText { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.9; color: #1F2937; margin: 0 0 12px; }
.newuiNotifyText .newuiIcon { color: var(--newui-accent-dark); margin-top: 4px; }
.newuiBtnAccent .newuiIcon { margin-inline-end: 4px; }

/* Actions */
.newuiActions { display: flex; flex-direction: column; gap: 10px; }
.newuiActionBtn {
    display: flex; align-items: center; justify-content: center; position: relative; gap: 8px; width: 100%;
    min-height: 46px; padding: 0 48px; border: 0; border-radius: 12px; background: #EEF2F6;
    color: #1F2937; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .15s ease, color .15s ease;
}
.newuiActionBtn .newuiIcon { position: absolute; right: 16px; color: #374151; }
.newuiActionBtn:hover { background: #E2E8EE; color: #111827; }
.newuiActionBtn--primary { background: var(--newui-accent-dark); color: #fff; }
.newuiActionBtn--primary .newuiIcon { color: #fff; }
.newuiActionBtn--primary:hover { background: #1F8F63; color: #fff; }
.newuiActionBtn.is-liked { background: var(--newui-accent-soft); color: var(--newui-accent-dark); }
.newuiActionBtn.is-liked .newuiIcon { color: var(--newui-accent-dark); fill: currentColor; }
.newuiShareLinks { display: flex; gap: 8px; padding: 2px 0; }
.newuiShareLinks a, .newuiShareLinks button {
    flex: 1 1 0; border: 1px solid #E8EDF0; background: #fff; border-radius: 10px; padding: 8px;
    font-size: 13px; color: #1F2937; text-align: center; text-decoration: none;
}
.newuiShareLinks a:hover, .newuiShareLinks button:hover { border-color: var(--newui-accent); color: var(--newui-accent-dark); }

/* Attachments modal */
.newuiModal .modal-content { border: 0; border-radius: 16px; }
.newuiModal .modal-header { border-bottom-color: #E8EDF0; }
.newuiModal .modal-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.newuiModal .modal-title .newuiIcon { color: var(--newui-accent-dark); }
.newuiModal .modal-header .btn-close { margin: 0 auto 0 0; }
.newuiAttachNewspaper { display: block; margin-bottom: 14px; border: 1px solid #E8EDF0; border-radius: 12px; overflow: hidden; text-decoration: none; }
.newuiAttachNewspaper img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.newuiAttachNewspaper span { display: block; padding: 8px 12px; font-size: 12px; color: #6B7280; }
.newuiAttachItem { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #E8EDF0; border-radius: 12px; }
.newuiAttachItem + .newuiAttachItem { margin-top: 10px; }
.newuiAttachIcon {
    flex: 0 0 44px; height: 44px; border-radius: 10px; background: var(--newui-accent-soft); color: var(--newui-accent-dark);
    display: inline-flex; align-items: center; justify-content: center;
}
.newuiAttachInfo { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.newuiAttachInfo strong { font-size: 14px; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newuiAttachInfo span { font-size: 12px; color: #6B7280; }
.newuiAttachInfo small { font-size: 12px; color: #6B7280; }
.newuiAttachExt { font-weight: 700; color: #374151; }
.newuiAttachBtn {
    flex: 0 0 auto; padding: 7px 16px; border-radius: 10px; background: var(--newui-accent); color: #fff;
    font-size: 13px; font-weight: 700; text-decoration: none;
}
.newuiAttachBtn:hover { background: var(--newui-accent-dark); color: #fff; }
.newuiAttachEmpty { margin: 0; text-align: center; color: #6B7280; padding: 16px 0; }
.newuiAttachLocked { text-align: center; padding: 12px 8px; color: #374151; }
.newuiAttachLocked .newuiIcon { color: var(--newui-accent-dark); margin-bottom: 8px; }
.newuiAttachLocked p { font-size: 14px; line-height: 1.9; }

/* Similar posts */
.newuiSimilarSection { padding: 10px 0 50px; }
.newuiSimilarCard {
    display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 16px; background: #fff;
    border: 1px solid #E8EDF0; border-radius: 16px; color: inherit; text-decoration: none;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.newuiSimilarCard:hover { color: inherit; border-color: #D5DEE3; box-shadow: 0 8px 20px rgba(0, 0, 0, .07); transform: translateY(-2px); }
.newuiSimilarTop { display: flex; gap: 14px; align-items: flex-start; }
.newuiSimilarLogo {
    flex: 0 0 72px; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 1px solid #E8EDF0;
    display: flex; align-items: center; justify-content: center; background: #fff; padding: 6px;
}
.newuiSimilarLogo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.newuiSimilarBody { flex: 1 1 auto; min-width: 0; }
.newuiSimilarHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.newuiSimilarTitle {
    margin: 0; font-size: 15px; font-weight: 800; color: #111827; line-height: 1.8;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.newuiSimilarHead .newuiTypePill { padding: 2px 12px; font-size: 12px; }
.newuiSimilarFooter { margin-top: auto; display: flex; justify-content: flex-end; }
.newuiSimilarBtn {
    padding: 7px 18px; border-radius: 10px; background: #E6F0F7; color: #1F3A4D; font-size: 13px; font-weight: 700;
    transition: background .15s ease, color .15s ease;
}
.newuiSimilarCard:hover .newuiSimilarBtn { background: var(--newui-accent); color: #fff; }

@media (max-width: 767.98px) {
    .newuiBackBtn { padding: 6px 14px; font-size: 13px; }
    .newuiPostMain { padding: 18px 14px; }
    .newuiPostHeading { font-size: 17px; }
    .newuiInfoGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .newuiContactBox { grid-template-columns: 1fr; }
}
@media (max-width: 479.98px) {
    .newuiInfoGrid { grid-template-columns: 1fr; }
    .newuiInfoCell--wide { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Print: only the post content + company/deadline */
@media print {
    .newuiNavbar, .newuiMobileDrawer, .newuiDrawer, .mozmonFooter, .newuiNoPrint, .modal, .modal-backdrop { display: none !important; }
    .newuiPostPage { padding: 0 !important; }
    .newuiPostMain, .newuiWidget { border-color: #ccc; }
    .newuiPostPage .col-lg-8, .newuiPostPage .col-lg-4 { width: 100%; flex: 0 0 100%; max-width: 100%; }
    .newuiPostPage .order-lg-first { order: -1; }
}
