body {
    min-height: 100vh;
    background: #f4f4f4 !important;
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    display: flex;
  flex-direction: column;

}

/* Global layout gutters */
.row {
  --bs-gutter-x: 0.5rem;
  --bs-gutter-y: 0.5rem;
}


main, #mainContent {
  flex: 1 1 auto;
}
main {
  margin-top: 80px;
}


footer {
  flex-shrink: 0;
}

.photo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 290px;
    height: 290px;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 2px 18px #1725450a;
}
.login-form-box {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 0 18px #16225213;
}
.login-form-box img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}
@media (max-width: 900px) {
    .photo-frame {
        width: 180px;
        height: 180px;
    }
}
.bg-navyblue {
    background: linear-gradient(135deg, #00223e 0%, #00446e 100%) !important;
}
/* Centered dashboard container defaults */
.dashboard-container {
  text-align: center;
  padding: 60px 20px;
}

/* Button-like links */
/* Button-like links */
.button-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #00446e;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  margin: 10px 10px 0 0;
  transition: background 0.2s;
}
.button-link:hover {
  background-color: #00324e;
}

/* Navbar override */
.navbar-brand {
  color: #00446e !important;
  font-weight: bold;
}
/* Consistent container padding */
.content-container, main.container {
    padding-top: 60px;
    padding-bottom: 60px;
}

 
form input,
form button {
  font-size: 1rem;
}
.navbar-nav .nav-link {
  color: #00446e !important;
  border-radius: .5rem;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .12s ease;
  cursor: pointer;
}
.navbar-nav .nav-link:hover,
.dropdown-menu .dropdown-item:hover {
   background-color: #eef5ff;
  color: #00223e !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 68, 110, 0.1);
}
.navbar-nav .nav-link {
  color: #00446e !important;
}
.navbar-nav .nav-link:hover,
.dropdown-menu .dropdown-item:hover {
  background-color: #eef5ff;
  color: #00223e !important;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show,
.navbar-nav .nav-item.active > .nav-link,
.navbar-nav .nav-link.is-active,
.navbar-nav .nav-item.is-active > .nav-link {
  color: #00223e !important;
  background-color: #e8f1fb;
  border-radius: .4rem;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(0, 68, 110, 0.15);
}

.navbar-nav .nav-link:active,
.navbar-nav .nav-link.dropdown-toggle:active {
  transform: translateY(0);
  background-color: #d9eafd;
}

.navbar-nav .dropdown-menu .dropdown-item {
  border-radius: .4rem;
  transition: background-color .2s ease, color .2s ease, padding-left .2s ease;
}

.navbar-nav .dropdown-menu .dropdown-item.is-active {
  background-color: #e8f1fb;
  color: #00223e !important;
  font-weight: 600;
  padding-left: 1.2rem;
  border-left: 3px solid #0d6efd;
}
.list-group-item {
  font-size: 1rem;
}


.navbar.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1050;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Header Enhancements */
.page-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #00446e;
}

.subheading {
  color: #555;
  font-size: 1.1rem;
}

/* Sub-service Card */
.sub-service-card {
  background: linear-gradient(135deg, #e0f7fa, #e1f5fe);
  border-left: 5px solid #00acc1;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}
.sub-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 172, 193, 0.2);
}

/* Supplier Card */
.supplier-card {
  border-radius: 12px;
  border: 1px solid #eee;
  background-color: #fff;
  transition: 0.3s ease;
}
.supplier-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

/* Speed badge */
.badge-speed {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
}
.badge-fast {
  background-color: #d1f7d6;
  color: #2e7d32;
}
.badge-moderate {
  background-color: #fff9c4;
  color: #f57c00;
}
.badge-slow {
  background-color: #ffebee;
  color: #c62828;
}

/* Rating stars */
.star-rating {
  color: #ffb400;
  font-size: 1rem;
}

/* Buttons */
.btn-rounded {
  border-radius: 50px;
}

/* Sidebar Card */
.card.sidebar-card {
  background-color: #f7f9fc;
  border-left: 4px solid #00446e;
}


.tender-list-container {
  padding: 0 1rem;
}

.tender-card {
  width: 100%;
  transition: all 0.2s ease;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  padding: 0.85rem;
  border: 1px solid #e2e7f0;
  background: #fff;
  box-shadow: 0 3px 12px rgba(10,32,60,.05);
}
.tender-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10,32,60,.12);
}


.tender-card .btn {
  min-width: 120px;
}





/* ===========================
   Admin Users Page
   =========================== */
.admin-users-page .admin-hero{
  background: linear-gradient(120deg,#0b1f3a 0%,#123d6a 60%,#1b4f7a 120%);
  border: 1px solid #0b2542;
  border-radius: 10px;
  padding: .9rem 1.1rem;
  box-shadow: 0 8px 20px rgba(8,24,48,.18);
}
.admin-users-page .kpi-card{
  border-radius: 10px;
  border: 1px solid #e2e7f0;
  box-shadow: 0 4px 16px rgba(10,32,60,.06);
}
.admin-users-page .admin-filters{
  border-radius: 10px;
  border: 1px solid #e2e7f0;
  box-shadow: 0 4px 16px rgba(10,32,60,.06);
}
.admin-users-page .table thead th{
  color:#123a63;
  font-weight:600;
}
.admin-users-page .table{
  border-color:#e2e7f0;
}




.card:hover {
  box-shadow: 0 4px 18px #00446e11;
  transition: box-shadow 0.2s;
}


.content-container, main.container {
    padding-top: 60px;
    padding-bottom: 60px;
}


main.container-fluid {
    padding-top: 40px;
    padding-bottom: 40px;
}


.badge .bi {
  font-size: 1em;
  margin-right: 0.2em;
  vertical-align: -0.1em;
}


.instruction-card {
  background: #f9fbfd;
}

/* ===========================
   Tickets Pages
   =========================== */
.tickets-page .tickets-main {
  max-width: 1700px;
}

.tickets-page .card,
.ticket-form-card {
  border: 1px solid #e2e7f0;
  border-radius: .9rem;
  box-shadow: 0 4px 16px rgba(10, 32, 60, .06);
}

.tickets-page .suppliers-hero {
  background: linear-gradient(120deg, #0b1f3a 0%, #123d6a 60%, #1b4f7a 120%);
  border: 1px solid #0b2542;
  box-shadow: 0 8px 20px rgba(8,24,48,.18);
}

.tickets-page .table thead th {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #123a63;
}

.tickets-page .ticket-title {
  font-weight: 600;
  color: #1f2d3d;
}

.tickets-page .ticket-sub {
    max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.tickets-page .progress {
  background-color: #e8eff8;
}

.ticket-form-card .form-label {
  font-weight: 600;
}

.ticket-form-card .form-select,
.ticket-form-card .form-control {
  border-color: #d6deea;
}

.ticket-form-card .form-select:focus,
.ticket-form-card .form-control:focus {
  border-color: #8db4e4;
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
}

.ticket-form-card .hint-text {
  font-size: .82rem;
  color: #6c757d;
}

.ticket-form-card .lookup-box {
  border: 1px dashed #c2d5ec;
  border-radius: .75rem;
  background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 100%);
}

@media (max-width: 991px) {
  .instruction-card {
    margin-bottom: 1.5rem;
  }
}


/* main.css — add these: */
.star-rating { color: gold; font-size: 1rem; }
.table-success td { background-color: #d1e7dd !important; }
.table-danger td { background-color: #f8d7da !important; }
.table-light td { background-color: #f9f9f9 !important; }


/* --- Services Page Styles --- */

.service-page-title {
  border-bottom: 1px solid #1131541f;
  padding: 1.5rem 2vw 0.85rem 2vw;
  margin-bottom: 0;
  width: 100vw;
  max-width: 100vw;
  background: #f8f9fb;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.service-page-title .bi {
  font-size: 1.6rem;
  color: #102a43;
  opacity: 0.85;
}
.services-fullrow {
  flex: 1 1 0;
  display: flex;
  flex-direction: row;
  height: 100%;
  min-height: 0;
  margin: 0;
  width: 100vw;
  max-width: 100vw;
}
.left-filter-card {
  border-left: 4px solid #0d2b50;
  border-radius: 0.65rem 0 0 0.65rem;
  box-shadow: 0 3px 16px #0b274214;
  min-height: 100%;
  height: 100%;
  background: #f7f9fc;
  margin: 0;
  padding: 0;
}
.left-filter-card .card-header {
    background: #f1f3f8;
  color: #102a43;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.65rem 0.65rem 0 0;
  border-bottom: 1px solid #e1e6ef;
}

.main-services-grid {
  flex: 1 1 0;
  height: 100%;
  padding: 1.8rem 2vw 1.6rem 2vw;
  overflow-y: auto;
  background: transparent;
}
.card.h-100 {
  border-radius: 1rem;
  box-shadow: 0 2px 10px #22336618;
  transition: transform 0.12s;
}
.card.h-100:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #102a4321;
  border-color: #102a4322;
}
.service-card-icon {
   width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.75rem auto;
}
@media (max-width: 991.98px) {
  .services-fullrow {
    flex-direction: column;
  }
  .left-filter-card {
    border-left: none;
   border-top: 4px solid #0d2b50;
    border-radius: 0 0 0.65rem 0.65rem;
    margin-bottom: 1.3rem;
    min-height: 0;
    height: auto;
  }
  .main-services-grid {
    padding: 1.5rem 0.5rem;
  }
}


/*#materialsGrid .card {
  min-height: 220px;
  border-radius: 0.7rem;
}*/

#materialsGrid .card,
#itemsGrid .card { min-height: 220px; border-radius: 0.7rem; }


/* Material Details Page Styles */
.material-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(90deg, #e6f1fb 65%, #fff 100%);
  border-radius: 1.2rem;
  padding: 2rem 2.5rem 1.5rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 24px #2233660a;
}
.material-icon {
  font-size: 3rem;
  color: #0d6efd;
  background: #fff;
  border-radius: 50%;
  padding: 1rem;
  box-shadow: 0 4px 16px #00446e11;
}
.material-title {
  font-size: 2rem;
  font-weight: bold;
  color: #24477A;
  margin-bottom: .2rem;
}
.badge-category {
  font-size: 1rem;
  padding: .5em 1.2em;
  border-radius: 1.2em;
  background: #c6e6fa;
  color: #11577d;
  margin-left: .8em;
}
.material-detail-card {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px #22336615;
  padding: 2rem 2.2rem;
  margin-bottom: 2.2rem;
  transition: box-shadow 0.18s;
}
.material-detail-card:hover {
  box-shadow: 0 8px 28px #00446e21;
}
.material-field-label {
  font-weight: 500;
  color: #1a3555;
  min-width: 140px;
}
.material-value {
  font-size: 1.08rem;
  color: #203b60;
  font-weight: 400;
}
.review-section-title {
  color: #00446e;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  letter-spacing: 1px;
}
.review-box {
  background: linear-gradient(96deg, #f6fbff 85%, #e3f1fa 100%);
  border-radius: 1rem;
  box-shadow: 0 2px 10px #b8e2f915;
  padding: 1rem 1.3rem;
  margin-bottom: 1rem;
  border-left: 5px solid #68b4ec;
}
.review-author {
  font-weight: 600;
  color: #2172b8;
}
.review-date {
  font-size: .95rem;
  color: #888;
  margin-left: .7em;
}
.review-rating {
  color: #ffc107;
  margin-right: .7em;
}


/* --------------------
   Profile Page Styles
---------------------*/

/* General Section & Card Styling */
.profile-main-row { display: flex; gap:2.5rem; align-items: flex-start; }
@media (max-width: 991px) { .profile-main-row { flex-direction: column; gap:1.5rem; } }
.profile-form-col { flex: 1 1 0; }
.profile-status-col {
  width: 340px;
  min-width: 290px;
  max-width: 100%;
  position: sticky;
  top: 108px;
}

/* Glassy Card Effects */
.profile-status-card {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 10px 36px #00446e21, 0 1.5px 6px #0e21561a;
  border-radius: 1.3rem;
  padding: 2rem 1.5rem 1.4rem 1.5rem;
  margin-bottom: 1.5rem;
}
.profile-form-card {
  background: rgba(255,255,255,0.98);
  border-radius: 1.3rem;
  box-shadow: 0 2px 16px #2233661a;
  padding: 2.3rem 2.5rem 1.6rem 2.5rem;
  transition: box-shadow 0.2s;
}
.profile-form-card:focus-within {
  box-shadow: 0 4px 22px #00446e23;
}

/* Section Header Pills */
.profile-form-card h5 {
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  color: #223366;
  font-size: 1.17rem;
}
.profile-section-label {
  display: inline-block;
  background: linear-gradient(92deg, #dbebfb 65%, #f6fbff 100%);
  border-radius: 999px;
  font-size: 1rem;
  color: #0e4980;
  font-weight: 600;
  padding: 0.25em 1.3em;
  margin-bottom: 0.7em;
  letter-spacing: .7px;
  border: 1.2px solid #99bee7;
}

/* Form Controls */
.form-control, .form-select, textarea { border-radius: 0.65rem !important; }
.profile-form-card .form-label { color: #245086; font-weight: 500; margin-bottom: .35rem; }
.card input[type="file"] { border: none; background: #f8fafd; }
.bg-section { background: #f7fafd; border-radius: 0.9rem; }

/* Badges for Selected Services & Materials */
.badge-service, .badge-material {
  font-size: .93em; padding: 0.35em 1em; border-radius: 1.2em; font-weight: 500;
  margin: .07em .25em .3em 0; display: inline-block;
  background: #e2f2fb; color: #166e9f; border: 1.2px solid #b6e1f9;
  letter-spacing: .5px;
}
.badge-material { background: #e6f5e8; color: #237842; border: 1.2px solid #b6edc8; }

/* List & Sidebar */
.list-unstyled li { margin-bottom: .33em;}
.profile-status-card h5 { font-size: 1.08rem; letter-spacing:.3px; }
.status-pill {
  font-size: 1em;
  border-radius: 2em;
  padding: 0.36em 1.3em;
  font-weight: 700;
  border: none;
}
.status-pill-warning { background: #ffefd2; color: #df9701; }
.status-pill-success { background: #e3fae8; color: #1d774b; }
.status-pill-danger { background: #ffeaea; color: #bb1b1b; }
.status-pill-secondary { background: #e4e9f2; color: #6a7792; }

/* File links */
.file-link { color:#1569ad; font-size: 1.03em; margin-right:1.1em;}
.file-link i { font-size: 1.1em; margin-right: 0.2em; }

.profile-action-required { color: #bb1b1b; font-weight: 500; }

/* Section Spacing */
.profile-section-spacer { margin: 1.5rem 0 1.2rem 0; border: none; border-top: 2px solid #f0f4f8;}
.alert-info { background: linear-gradient(90deg,#e9f6fa,#f8fcff); color: #12516a;}



/* —— Show Room page scoping ——
   Add class="showroom-page" on <body> of /pages/showroom/list.html */
.showroom-page main { margin-top: 72px; } /* closer to typical navbar height */
.showroom-page #itemsGrid .card { min-height: 220px; border-radius: 0.7rem; }
.showroom-page .rating i { color: #ffb400; }  /* star color for the rating row */
.showroom-page .dropdown-menu .dropdown-item:hover { background-color: #f1f1f1; color: #00223e; }

/* Reduce stacking hover effects so cards don’t “over-pop” */
.showroom-page .card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.showroom-page .card.h-100:hover { transform: translateY(-3px) scale(1.015); }

/* Fix “100vw” overflow on sections if you ever reuse those classes here */
.showroom-page .service-page-title,
.showroom-page .services-fullrow { width: 100%; max-width: 100%; }

/* Compare bar sits above other fixed UI */
.showroom-page #compareBar { z-index: 1080; }



/* ================================
   Show Room (scoped to .showroom-page)
   ================================ */
.showroom-page .hero {
 background: linear-gradient(120deg,#0b1f3a 0%,#123d6a 60%,#1b4f7a 120%);
  border: 1px solid #0b2542;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  color: #f8fafc;
  box-shadow: 0 8px 20px rgba(8,24,48,.18);
}

.showroom-page .card-img-top {
  height: 220px;
  object-fit: cover;
}

.showroom-page .badge-tag {
 font-weight: 600;
  background: #e9eff8;
  color: #123a63;
  border: 1px solid #d7e1ef;
}

.showroom-page .rating i {
  color: #f8c102;
}

.showroom-page .compare-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
    background: #102a43;
  color: #f8fafc;
  padding: .6rem .9rem;
  display: none;               /* toggled by JS */
  z-index: 1080;
}

.showroom-page .compare-bar .btn {
  background: #f8fafc;
  color: #102a43;
  border-color: #d7e1ef;
}

/* sticky filter card on desktop */
.showroom-page .filter-sticky {
  position: sticky;
  top: 1rem;
}

/* helpful extras for consistent layout */
.showroom-page #itemsGrid .card {
  min-height: 220px;
  border-radius: 0.7rem;
}
/* Full-width helper for Show Room pages */
.showroom-page main.container-fluid {
  padding-top: 16px;
  padding-bottom: 24px;
}

/* List cards baseline */
.showroom-page #itemsGrid .card {
  border-radius: .8rem;
  min-height: 220px;
}
.showroom-page .card-img-top { height: 220px; object-fit: cover; }

/* Details: hero icon tone from your palette */
.showroom-page .material-icon {
   font-size: 1.8rem;
  color: #123a63;
  background: #f8fafc;
  border-radius: 50%;
  padding: .5rem;
  box-shadow: 0 4px 12px #0b274214;
}
.showroom-page .badge-tag {
  font-weight: 600;
  background: #e9eff8;
  color: #123a63;
  border: 1px solid #d7e1ef;
}

/* Keep sticky filter and sticky summary feeling native */
.showroom-page .filter-sticky { position: sticky; top: 1rem; }
.showroom-page .sticky-summary { position: sticky; top: 88px; }

/* Compare bar stays on top of page chrome */
.showroom-page .compare-bar { z-index: 1080; }
/* === Show Room: 2-column clean grid, no overflow === */
.showroom-page main.container-fluid { padding-top: 16px; padding-bottom: 24px; }

/* Equal-height cards, tidy content */
.showroom-page .showroom-card { border-radius: .65rem; overflow: hidden; border: 1px solid #e2e7f0; box-shadow: 0 4px 16px rgba(10,32,60,.06); }
.showroom-page .showroom-card .card-body { padding: .85rem .9rem .95rem; }
.showroom-page .rating i { color: #f8c102; }

/* Clamp long descriptions to avoid overflow */
.line-clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Keep exactly 2 items per row on md and up */
.showroom-page #itemsGrid.row { --bs-gutter-x: .5rem; --bs-gutter-y: .5rem; }
/* (Bootstrap's .row-cols-md-2 already fixes it at 2 for md and all larger sizes) */

/* Sticky filter sidebar */
.showroom-page .filter-sticky { position: sticky; top: 1rem; }
/* Lightbox image fit */
  .lightbox-frame {
    height: calc(100vh - 120px); /* header+footer space inside modal */
  }
  .lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #000;
  }



/* Ensure thumbs are BELOW the hero and never overlay it */
.showroom-page #gallery .card-body { background:#fff; }
.showroom-page .thumbs { position: static !important; overflow: visible; }
.showroom-page .thumbs .thumb {
  position: relative; display:inline-block; border-radius:.5rem;
  overflow:hidden; border:2px solid transparent; cursor:pointer;
}
.showroom-page .thumbs .thumb.active { border-color:#1b4f7a; }
.showroom-page .thumbs .thumb img {
  width: 120px; height: 76px; object-fit: cover; display:block;
}
.showroom-page .thumbs .thumb .play-overlay {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,0));
  color:#fff; font-size:1.6rem;
}

/* Lightbox sizing (unchanged) */
.showroom-page .lightbox-frame { height: calc(100vh - 120px); }
.showroom-page .lightbox-img, .showroom-page .lightbox-video {
  max-width:100%; max-height:100%; object-fit:contain; background:#000;
}


/* --- Fix: keep thumbnails below the hero, no overlay --- */
.showroom-page #gallery { position: relative; overflow: hidden; }

.showroom-page #gallery .ratio { position: relative; overflow: hidden; }
.showroom-page #gallery .ratio > img,
.showroom-page #gallery .ratio > video {
  position: absolute; /* Bootstrap ratio expects absolute children */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showroom-page #gallery .card-body {
  position: relative;
  z-index: 0;           /* ensure below nothing special */
  background: #fff;
  padding-top: .5rem;
  border-top: 1px solid #e9ecef;
}

.showroom-page #thumbs,
.showroom-page .thumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  position: static !important;   /* <-- critical: no absolute */
  overflow: visible !important;
  margin-top: 4px;
  z-index: 0 !important;
}

.showroom-page .thumbs .thumb {
  position: relative;
  flex: 0 0 auto;
  border-radius: .5rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}
.showroom-page .thumbs .thumb.active { border-color: #1b4f7a; }
.showroom-page .thumbs .thumb img {
  display: block;
  width: 120px;
  height: 76px;
  object-fit: cover;
}

.showroom-page .thumbs .thumb .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,0));
  color: #fff;
  font-size: 1.6rem;
  pointer-events: none;           /* overlay never blocks clicks below */
}

/* Make sure the next blocks can't be overlapped by any leftover floats/positioning */
.showroom-page #detailTabs { margin-top: .5rem; clear: both; position: relative; z-index: 0; }
.showroom-page .tab-content  { position: relative; z-index: 0; }



/* Seller list polish */
.showroom-page .supplier-row { padding: .75rem 0; }
.showroom-page .supplier-name { font-weight: 600; color:#123b63; }
.showroom-page .supplier-price { font-weight: 700; color:#0d6efd; }
.showroom-page .supplier-meta { color:#6c757d; }
.showroom-page .supplier-actions .btn { border-radius: .5rem; }
.showroom-page .supplier-badges .badge { margin-right: .25rem; }


/* === Materials: 2-column full-width grid === */
.materials-page main.container-fluid { padding-top: 16px; padding-bottom: 24px; }
.materials-page .filter-sticky { position: sticky; top: 1rem; }
.materials-page .material-card { border-radius: .8rem; overflow: hidden; }
.materials-page .material-card .card-body { padding: .9rem .9rem 1rem; }
.materials-page .line-clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}


 /* ---- Full-width, friendly & colorful polish (scoped) ---- */
    .service-details { --c1:#0d6efd; --c2:#845ef7; --c3:#20c997; --ink:#10375c; --muted:#6c7890; }
    .service-details .hero {
        background: linear-gradient(120deg,#0b1f3a 0%,#123d6a 60%,#1b4f7a 120%);
      border-radius: 10px; color: #fff; padding: 14px 16px; box-shadow: 0 8px 20px rgba(8,24,48,.18);
    }

    .service-details .hero h2 { font-weight: 800; letter-spacing:.2px; }
    .service-details .chip {
        display:inline-flex; align-items:center; gap:.35rem; padding:.25rem .6rem;
      border-radius:999px; background:#ffffff1a; color:#f1f5f9; font-weight:600; font-size:.85rem;
      border:1px solid #ffffff33;
    }
    .service-details .chip .bi { opacity:.9; }
    .service-details .price-card { border-radius: 14px; border: 1px solid #e9eef7; box-shadow: 0 6px 22px rgba(16,55,92,.06); }
    .service-details .price-card .price { font-size:1.7rem; font-weight:800; color: var(--c1); }
    .service-details .section-title { color: var(--ink); font-weight: 800; letter-spacing:.2px; }
    .service-details .service-overview,
    .service-details .service-gallery {
      border: 1px solid #e9eef7;
      border-radius: 14px;
    }
    .service-details .service-layout-main > section,
    .service-details .service-layout-main > div {
      margin-bottom: 1rem;
    }
    .service-details .service-layout-side { align-self: flex-start; }
    .service-details .service-gallery-sticky {
      position: sticky;
      top: 92px;
      background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
      box-shadow: 0 12px 26px rgba(13, 54, 101, 0.08);
    }
    .service-details .service-gallery-content {
      display: flex;
      flex-direction: column;
      gap: .75rem;
    }
    .service-details .meta-item {
      background: #f8fbff;
      border: 1px solid #e8f0ff;
      border-radius: 12px;
      height: 100%;
      padding: .8rem .9rem;
    }
    .service-details .meta-label {
      font-size: .78rem;
      text-transform: uppercase;
      letter-spacing: .4px;
      color: #5f6f85;
      margin-bottom: .2rem;
      font-weight: 700;
    }
    .service-details .meta-value {
      color: #10375c;
      font-weight: 600;
      line-height: 1.5;
    }
    .service-details .gallery-main-wrap {
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid #e6edf8;
      background: #f2f7ff;
    }
    .service-details .gallery-main-image {
      width: 100%;
      min-height: 320px;
      max-height: 460px;
      object-fit: cover;
      display: block;
    }
    .service-details .gallery-thumbs {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: .55rem;
    }
    .service-details .gallery-thumb {
      padding: 0;
      border: 2px solid transparent;
      border-radius: 10px;
      overflow: hidden;
      background: #fff;
      box-shadow: 0 4px 10px rgba(13, 54, 101, 0.06);
      transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    }
    .service-details .gallery-thumb:hover {
      transform: translateY(-1px);
      border-color: #9ec5ff;
      box-shadow: 0 8px 14px rgba(13, 54, 101, 0.12);
    }
    .service-details .gallery-thumb.active { border-color: #0d6efd; }
    .service-details .gallery-thumb img {
      width: 100%;
      height: 72px;
      object-fit: cover;
      display: block;
    }
    .service-details .filter-sticky { position: sticky; top: 92px; }
    @media (max-width: 991.98px){ .service-details .filter-sticky { position: static; top:auto; } }
    .service-details .sub-card { border-radius: 12px; border: 1px solid #eaf1ff; }
    .service-details .sub-card h6 { font-weight:700; color: var(--ink); }
    .service-details .supplier-card { border-radius: 12px; border: 1px solid #eef2f7; }
    .service-details .supplier-card.speed-fast { border-left: 6px solid #2fb3441a; box-shadow: 0 8px 24px rgba(47,179,68,.07); }
    .service-details .supplier-card.speed-moderate { border-left: 6px solid #f59f001a; box-shadow: 0 8px 24px rgba(245,159,0,.06); }
    .service-details .supplier-card.speed-slow { border-left: 6px solid #e031311a; box-shadow: 0 8px 24px rgba(224,49,49,.05); }
    .service-details .badge-speed { font-size: .75rem; padding: 4px 8px; border-radius: 999px; }
    .service-details .badge-fast { background:#d8f5e3; color:#2b8a3e; }
    .service-details .badge-moderate { background:#fff3bf; color:#f08c00; }
    .service-details .badge-slow { background:#ffe3e3; color:#c92a2a; }
    .service-details .star-rating i { color:#f8c102; }
    .service-details .btn-soft {
      background:#f4f7ff; border:1px solid #e5ecff; color:#274c77;
    }
    .service-details .btn-soft:hover { background:#e9f1ff; }
    @media (max-width: 1199.98px) {
      .service-details .service-gallery-sticky { position: static; top: auto; }
      .service-details .gallery-main-image { min-height: 240px; max-height: 360px; }
      .service-details .gallery-thumbs { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
    }



    /* ===========================
   Suppliers Page (global scope)
   =========================== */
.suppliers-hero{
  background: linear-gradient(120deg,#0b1f3a 0%,#123d6a 60%,#1b4f7a 120%);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(8,24,48,.18);
}
.suppliers-hero h2{ font-size: 1.5rem; }
.suppliers-hero small{ font-size: .85rem; }
.result-tools .result-pill{
  display:inline-flex; align-items:center; gap:.4rem;
  background:#ffffff1a; color:#f1f5f9; border:1px solid #ffffff33;
  border-radius: 999px; padding:.25rem .6rem; font-weight:600; font-size:.85rem;
}
.result-tools select{ min-width: 170px; }

/* Sticky filter panel */
.sticky-filter{ position: sticky; top: 92px; }

/* Supplier card */
.supplier-card{
  border-radius: 10px;
  border:1px solid #e2e7f0;
  box-shadow: 0 4px 18px rgba(10,32,60,.06);
  overflow: hidden;
  position: relative;
}
.supplier-card .card-title{ font-weight: 700; color:#10375c; font-size: 1.05rem; }
.supplier-card .type-badge{
  font-weight:700; font-size:.78rem; padding:.2rem .55rem; border-radius:999px;
  background:#e9eff8; color:#123a63; border:1px solid #d7e1ef;
}
.meta-pill{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.25rem .6rem; border-radius:999px;
  background:#f2f5fb; border:1px solid #d7e2f2; color:#113a63; font-weight:600; font-size:.8rem;
}
.meta-pill .bi{ opacity:.8; }

/* Type ribbons (left border + subtle glow) */
.supplier-card.type-service{ border-left: 5px solid #1b4f7a33; box-shadow: 0 6px 18px rgba(15,40,76,.06); }
.supplier-card.type-material{ border-left: 5px solid #1f6f5c33; box-shadow: 0 6px 18px rgba(17,52,44,.06); }
.supplier-card.type-consulting{ border-left: 5px solid #2f3b8f33; box-shadow: 0 6px 18px rgba(24,30,78,.06); }
/* Stat chips */
.stat-chip{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.25rem .6rem; border-radius:8px; font-weight:600; font-size:.85rem;
  background:#f8f9ff; border:1px solid #e8ecff; color:#274c77;
}
.stat-chip .bi{ opacity:.9; }

/* Stars inherit global .star-rating color — ensure spacing */
.rating-block .bi{ font-size: 0.95rem; }

/* Soft action button */
.btn-soft{
  background:#f4f7ff; border:1px solid #e5ecff; color:#274c77;
}
.btn-soft:hover{ background:#e9f1ff; }

/* Keep existing speed badges consistent */
.badge-speed{ font-size: .75rem; padding: 4px 8px; border-radius: 999px; }
.badge-fast{ background:#d8f5e3; color:#2b8a3e; }
.badge-moderate{ background:#fff3bf; color:#f08c00; }
.badge-slow{ background:#ffe3e3; color:#c92a2a; }




/* ===========================
   Supplier Profile (global)
   =========================== */
.supplier-profile-hero{
  background: linear-gradient(120deg,#0b1f3a 0%,#123d6a 60%,#1b4f7a 120%);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(8,24,48,.18);
}
.supplier-profile-hero .logo-frame{
   width:56px;height:56px;border-radius:10px;overflow:hidden;background:#ffffff1a;
  display:flex;align-items:center;justify-content:center;border:1px solid #ffffff33;
}
.supplier-profile-hero .logo-frame img{ width:100%;height:100%;object-fit:cover; }
.type-pill{
  background:#e9eff8;border:1px solid #d7e1ef;color:#123a63;font-weight:700;
  padding:.2rem .6rem;border-radius:999px;font-size:.78rem;
}
.type-pill-service{ background:#e6eef7; border-color:#d4e0ef; color:#12406a; }
.type-pill-material{ background:#e6f3ef; border-color:#d2e8df; color:#1f5a4a; }
.type-pill-consulting{ background:#eceff7; border-color:#d9deef; color:#2d3a73; }

.meta-chip{
  display:inline-flex;align-items:center;gap:.35rem;padding:.28rem .6rem;border-radius:999px;
  background:#ffffff1a;border:1px solid #ffffff33;color:#f1f5f9;font-weight:600;font-size:.8rem;
}
.meta-chip .bi{ opacity:.9; }

.profile-aside-card{ border-radius:14px;border:1px solid #e9eef7; box-shadow:0 6px 22px rgba(16,55,92,.06); }
.profile-tabs .nav-link{ border-radius:999px; font-weight:600; }
.profile-tabs .nav-link.active{ background:#0d6efd; color:#fff; }

.section-title{ color:#10375c; font-weight:800; letter-spacing:.2px; }

/* Mini stat */
.mini-stat{ border:1px solid #eaf1ff; background:#f7fbff; border-radius:12px; padding:.9rem; }
.mini-stat-label{ font-size:.8rem; color:#6c7890; }
.mini-stat-value{ font-size:1.15rem; font-weight:700; color:#10375c; }

/* Cards reused */
.sub-card{ border-radius:12px; border:1px solid #eaf1ff; }
.project-card{ border-radius:12px; border:1px solid #eef2f7; }

/* Reviews */
.review-card{
  border:1px solid #eef2f7; border-radius:12px; padding:12px; margin-bottom:12px;
  background:#fff; box-shadow:0 4px 16px rgba(16,55,92,.04);
}

/* Keep existing shared atoms */
.star-rating .bi{ color:#f8c102; }

/* Buttons */
.btn-soft{ background:#f4f7ff; border:1px solid #e5ecff; color:#274c77; }
.btn-soft:hover{ background:#e9f1ff; }




/* ===========================
   Services Page (global)
   =========================== */


.add-service-page .add-service-form{
  border-radius: 16px;
  border: 1px solid #e2e7f0;
  box-shadow: 0 10px 24px rgba(10,32,60,.08);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.add-service-guide{
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e7f0;
  box-shadow: 0 10px 24px rgba(10,32,60,.08);
}
.services-add-page .add-service-guide h5{
  color:#0e3a63;
  font-weight:700;
}
.add-service-guide .guide-icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #0d6efd15;
  color: #0d6efd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.add-service-guide .guide-steps li{
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .65rem .6rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #eef2f9;
  box-shadow: 0 6px 16px rgba(16,55,92,.06);
}
.add-service-guide .guide-steps li + li{
  margin-top: .6rem;
}
.add-service-guide .step-number{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0d6efd;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}
.services-hero{
background: linear-gradient(120deg,#0b1f3a 0%,#123d6a 60%,#1b4f7a 120%);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(8,24,48,.18);
}
.services-hero h2{ font-size: 1.5rem; }
.services-hero small{ font-size: .85rem; }
.services-hero .result-pill{
  display:inline-flex; align-items:center; gap:.4rem;
  background:#ffffff1a; color:#f1f5f9; border:1px solid #ffffff33;
  border-radius: 999px; padding:.25rem .6rem; font-weight:600; font-size:.85rem;
}
.sticky-filter{ position: sticky; top: 92px; }

/* Service cards (no photos) */
.service-card{
   border-radius: 10px;
  border:1px solid #e2e7f0;
  box-shadow: 0 4px 18px rgba(10,32,60,.06);
}
.service-card .card-title{ font-weight:700; color:#10375c; font-size: 1.05rem; }
.service-card .badge{
  background:#e9eff8;
  color:#123a63;
  border:1px solid #d7e1ef;
  font-weight:600;
}
.services-page .left-filter-card{
  border-radius: 12px;
  border: 1px solid #d9e4f2;
  box-shadow: 0 10px 24px rgba(12,34,64,.09);
}
.services-page .left-filter-card .form-control,
.services-page .left-filter-card .form-select{
  border-radius: 10px;
}
.services-page .left-filter-card .card-header{
  border-radius: 12px 12px 0 0;
  color: #10375c;
}
.service-meta-row{
  display:flex;
  justify-content: space-between;
  gap: .5rem;
  color:#315071;
  font-size:.9rem;
  font-weight:600;
}
.services-page .pagination .page-link{
  border-radius: 8px;
  margin: 0 .15rem;
  border-color: #d6e2f0;
  color: #123d6a;
  font-weight: 600;
}
.services-page .pagination .page-item.active .page-link{
  background: #123d6a;
  border-color: #123d6a;
}
.services-page .service-card{
  transition: transform .18s ease, box-shadow .18s ease;
}

.service-category-card{
  border:1px solid #d8e3f2;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(10,32,60,.08);
}
.service-category-card .card-body{
  padding: 1rem 1.05rem;
}
.service-category-card .category-card-title{
  font-size: 1.14rem;
  font-weight: 700;
  color: #102f52;
}
.service-category-card .category-card-subtitle{
  font-size: .9rem;
}
.service-category-card .category-card-label{
  font-size: .94rem;
  font-weight: 500;
}
.service-category-card .badge{
  font-size: .84rem;
  padding: .42rem .55rem;
}
.service-category-card .btn{
  font-size: .88rem;
  font-weight: 600;
}

.services-page .service-list-card{
  border:1px solid #d5e2f2;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(11,38,70,.08);
  background: linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
}
.services-page .service-list-card .card-body{
  padding: 1rem 1.05rem;
}
.services-page .service-list-title{
  font-size: 1.08rem;
  letter-spacing: .1px;
  color:#0f3459;
}
.services-page .service-list-badges .badge{
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem .55rem;
}
.services-page .service-section-label{
  font-size: .92rem;
  color:#143b60;
}
.services-page .service-suppliers-text{
  line-height: 1.45;
  font-size: .84rem;
}
.services-page .service-actions .btn{
  font-size: .82rem;
  font-weight: 600;
}

.services-page .service-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(12,34,64,.12);
} 

/* Reuse shared atoms */
.meta-pill{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.25rem .6rem; border-radius:999px;
  background:#f2f5fb; border:1px solid #d7e2f2; color:#113a63; font-weight:600; font-size:.8rem;
}
.btn-soft{ background:#f4f7ff; border:1px solid #e5ecff; color:#274c77; }
.btn-soft:hover{ background:#e9f1ff; }



/* ===========================
   Materials Page (global)
   =========================== */
.materials-hero{
  background: linear-gradient(120deg,#0b1f3a 0%,#123d6a 60%,#1b4f7a 120%);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(8,24,48,.18);
}
.materials-hero h2{ font-size: 1.5rem; }
.materials-hero small{ font-size: .85rem; }
.materials-hero .result-pill{
  display:inline-flex; align-items:center; gap:.4rem;
  background:#ffffff1a; color:#f1f5f9; border:1px solid #ffffff33;
  border-radius: 999px; padding:.25rem .6rem; font-weight:600; font-size:.85rem;
}

/* Tender details page: right-side attachments panel */
.tenders-page .attached-files-card .card-body {
  padding: 1rem;
}
.tenders-page .attached-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  background: #f8fbff;
  border: 1px solid #e4ecf7;
  border-radius: .75rem;
  padding: .65rem .75rem;
}
.tenders-page .attached-file-item .file-meta {
  min-width: 0;
}
.tenders-page .attached-file-item .file-name {
  color: #123e6b;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
}
.tenders-page .attached-file-item .file-name:hover {
  color: #0d6efd;
}
.tenders-page .attached-file-item .file-open-btn {
  white-space: nowrap;
  border-radius: 999px;
}

/* Reuse the app-wide sticky filter */
.sticky-filter{ position: sticky; top: 92px; }

/* Material cards */
.material-card{
  border-radius: 10px;
  border:1px solid #e2e7f0;
  box-shadow: 0 4px 18px rgba(10,32,60,.06);
}
.material-card .card-title{ font-weight:700; color:#10375c; font-size: 1.05rem;k}

/* Line clamp helper */k
.line-clamp-2{
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Soft action button reused */
.btn-soft{ background:#f4f7ff; border:1px solid #e5ecff; color:#274c77; }
.btn-soft:hover{ background:#e9f1ff; }



/* Tabbed nav style */
.tabbed-nav .nav-link{
  border-radius: 999px;
  font-weight: 600;
}
.tabbed-nav .nav-link.active{
  color:#fff;
  background: linear-gradient(135deg,#0d6efd 0%, #20c997 100%);
  box-shadow: 0 6px 18px rgba(13,110,253,.25);
}


/* === Uniform Form Field Sizing (site-wide) === */
:root { --field-width: 520px; } /* Tweak this number to taste: 480–560px works well */

/* Make inputs, selects, textareas the same visual width in any layout */
.form-uniform .form-control,
.form-uniform .form-select,
.form-uniform .input-group,
.form-uniform .form-check {
  max-width: var(--field-width);
  width: 100%;
}

/* Consistent heights */
.form-uniform .form-control,
.form-uniform .form-select {
  min-height: 42px;
}

/* Comfortable textarea height */
.form-uniform textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Keep full width on small screens */
@media (max-width: 767.98px) {
  :root { --field-width: 100%; }
}

/* Optional: align labels + fields nicely in multi-column rows */
.form-uniform .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.form-uniform .form-label { margin-bottom: .35rem; }
.form-uniform .form-text { max-width: var(--field-width); }
.form-uniform .invalid-feedback { max-width: var(--field-width); }


 /* Page-specific polish (kept light; theme in main.css) */
    .inbox-sidebar { max-height: calc(100vh - 220px); overflow: auto; }
    .thread-item { cursor:pointer; border-left: 4px solid transparent; }
    .thread-item.active { background: var(--bs-light); border-left-color: var(--bs-primary); }
    .thread-item.unread .subject { font-weight: 600; }
    .thread-snippet { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .msg-wrap { max-height: calc(100vh - 360px); overflow:auto; }
    .bubble { border-radius: 16px; padding: .6rem .8rem; display:inline-block; max-width: 88%; }
    .bubble.me { background: var(--bs-primary-bg-subtle); border:1px solid var(--bs-primary-border-subtle); }
    .bubble.them { background: #fff; border:1px solid var(--bs-border-color); }
    .avatar {
      width: 36px; height: 36px; border-radius: 50%;
      background: var(--bs-primary); color:#fff; display:flex;
      align-items:center; justify-content:center; font-weight:700;
    }
    .tag { font-size: .75rem; }



    /* ========== INBOX – Friendly & Colorful ========== */
:root{
  --brand:#2563eb;          /* primary */
  --brand-2:#7c3aed;        /* accent */
  --mint:#10b981;
  --amber:#f59e0b;
  --rose:#ef4444;
  --sky:#38bdf8;
  --ink:#111827;
  --soft:#f8fafc;
}

.inbox-hero{
  background: linear-gradient(135deg,var(--brand) 0%, var(--brand-2) 100%);
  color:#fff;
  border-radius: 18px;
  padding:18px 20px;
  box-shadow: 0 8px 24px rgba(37,99,235,.2);
}
.inbox-hero h2{ color:#fff; margin:0; }
.inbox-hero small{ opacity:.9 }

.filter-sticky{ position:sticky; top:90px; border-radius:16px; overflow:hidden; }

.thread-item{
  cursor:pointer;
  border:0;
  border-bottom:1px solid #eef2f7;
  transition: background .15s ease, transform .05s ease;
}
.thread-item:hover{ background:#f6faff; }
.thread-item.active{ background:#eef5ff; border-left:4px solid var(--brand); }
.thread-item.unread .subject{ font-weight:700; }
.thread-snippet{ opacity:.75; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width: 70%; }

.badge-chip{
  background:#eef2ff;
  color:#3b82f6;
  border:1px solid #e5e7eb;
  border-radius:999px;
  padding:.15rem .5rem;
  font-weight:600;
}

.avatar{
  width:34px; height:34px; border-radius:50%;
  display:grid; place-items:center; font-weight:700; color:#fff;
  background: linear-gradient(135deg,var(--brand),var(--brand-2));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
  font-size:.8rem;
}

.inbox-messages{
  background: linear-gradient(180deg,#fff, #fbfdff);
  border-radius: 0 0 16px 16px;
}
.bubble{
  display:inline-block; padding:.65rem .8rem; border-radius:14px;
  max-width: 560px; text-align:left;
  box-shadow: 0 6px 20px rgba(17,24,39,.06);
}
.bubble.them{ background:#ffffff; border:1px solid #eef2f7; }
.bubble.me{ background: linear-gradient(135deg, #e0f2fe, #f5f3ff); border:1px solid #e9eefc; }
.bubble .small{ opacity:.8 }

#composer{
  border-top:1px dashed #e5e7eb;
  padding-top:.75rem;
}
#composer textarea{ border-radius:12px; }

.directory-item{
  cursor:pointer;
  transition: background .15s;
}
.directory-item:hover{ background:#f9fafb; }
.dir-title{
  display:flex; align-items:center; gap:.5rem;
  font-size:.75rem; letter-spacing:.04em; text-transform:uppercase;
  color:#6b7280;
}
.dir-pill{
  background:#ecfeff; color:#0891b2; border:1px solid #cffafe;
  border-radius:999px; padding:.1rem .5rem; font-size:.7rem; font-weight:600;
}
.presence-dot{
  width:10px;height:10px;border-radius:50%;
  margin-right:.4rem; box-shadow:0 0 0 2px #fff inset, 0 0 0 1px rgba(0,0,0,.05);
}
.presence-online{ background:var(--mint); }
.presence-away{ background:var(--amber); }
.presence-off{ background:#94a3b8; }

.inbox-toolbar .btn{ border-radius:10px; }


/* Keep message count on one line and auto-add parentheses */
.inbox-count{
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-variant-numeric: tabular-nums;
}
.inbox-count::before{ content: "("; }
.inbox-count::after{  content: ")"; }


/* Chat sub-menu pills */
.nav-pills-slim .nav-link{
  padding: .35rem .65rem;
  border-radius: 999px;
  font-weight: 600;
}
.chat-submenu-wrapper{
  position: sticky;
  top: 72px; /* sits under the main navbar */
  z-index: 9;
  background: var(--bs-body-bg, #f8f9fa);
  padding-top: .25rem;
}
@media (max-width: 991.98px){
  .chat-submenu-wrapper{ top: 56px; }
}

/* Optional: make active pill pop */
.nav-pills-slim .nav-link.active{
  background: linear-gradient(180deg,#0d6efd 0%,#0b5ed7 100%);
  color: #fff;
}

/* Keep count badges compact */
.nav-pills-slim .badge{
  font-weight: 600;
  line-height: 1;
}




/* ---- Requests page polish ---- */
.page-hero{
  background: linear-gradient(135deg, var(--bs-primary), #6f42c1);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.page-hero .hero-icon{
  width: 44px; height: 44px; border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.18); color:#fff; font-size:22px;
}
.page-hero .hero-stats .stat{
  background: rgba(255,255,255,.18);
  color: #fff; padding: 8px 10px; border-radius: 12px;
  display:flex; flex-direction:column; align-items:center; min-width:86px;
}
.page-hero .hero-stats .stat.warn{ background: rgba(255,193,7,.25); }
.page-hero .hero-stats .stat.info{ background: rgba(13,202,240,.25); }
.page-hero .hero-stats .stat.ok{ background: rgba(25,135,84,.28); }
.page-hero .hero-stats .stat.danger{ background: rgba(220,53,69,.28); }
.page-hero .hero-stats .stat span{ font-size:18px; line-height:1; font-weight:700; }
.page-hero .hero-stats .stat small{ font-size:11px; opacity:.9; }

.hero-tabs .nav-link{
  color:#fff; opacity:.85; border-radius: 999px;
}
.hero-tabs .nav-link.active{
  background: rgba(255,255,255,.22); color:#fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.hero-tabs .badge{ border: 1px solid rgba(255,255,255,.35); }

/* Modern table look (no colored borders) */
.table-modern{
  border-collapse: separate;
  border-spacing: 0 6px;
}
.table-modern thead th{
  background: #fff; position: sticky; top: 0; z-index: 1;
  border: 0; border-bottom: 1px solid var(--bs-border-color);
}
.table-modern tbody tr{
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.table-modern tbody tr:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.table-modern td, .table-modern th{ border: 0 !important; }
.table-modern td:first-child, .table-modern th:first-child{ border-top-left-radius:12px; border-bottom-left-radius:12px; }
.table-modern td:last-child,  .table-modern th:last-child { border-top-right-radius:12px; border-bottom-right-radius:12px; }

/* Soft chip for service */
.chip-soft{
  display:inline-block; padding: .25rem .5rem;
  border-radius: 999px; font-size: .8rem;
  background: #f1f5f9; border: 1px solid #e2e8f0; color:#0f172a;
}

/* Status pill with colored dot */
.status-pill{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.25rem .55rem; border-radius:999px; font-size:.82rem;
  background:#f8fafc; border:1px solid #e2e8f0; color:#0f172a;
}
.status-pill .status-dot{
  width:8px; height:8px; border-radius:50%;
  background:#94a3b8;
}
.status-pill[data-status="Pending"]   { background:#fff7e6; border-color:#ffe3a3; color:#8a5d00; }
.status-pill[data-status="Pending"] .status-dot { background:#f59f00; }

.status-pill[data-status="Quoted"]    { background:#e7f5ff; border-color:#a5d8ff; color:#0b7285; }
.status-pill[data-status="Quoted"] .status-dot  { background:#0dcaf0; }

.status-pill[data-status="Completed"] { background:#e6fcf5; border-color:#96f2d7; color:#0b6b43; }
.status-pill[data-status="Completed"] .status-dot { background:#28a745; }

.status-pill[data-status="Rejected"]  { background:#fff0f0; border-color:#ffc9c9; color:#842029; }
.status-pill[data-status="Rejected"] .status-dot { background:#dc3545; }

/* Row spacing inside responsive wrapper */
.table-responsive{ padding: 6px; }


/* --- Request details polish --- */
.request-hero .chip-soft{
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
}

.info-line{
  display:flex; align-items:center; justify-content:space-between;
  padding:.5rem .75rem; border:1px solid var(--bs-border-color);
  border-radius:10px; background:#fff; margin-bottom:.25rem;
}
.info-line span{ color:#6b7280; font-size:.9rem; }
.detail-box{
  background:#f8fafc; border:1px dashed #e2e8f0; border-radius:10px; padding:.75rem;
}

.sidebar-card{ position: sticky; top: 84px; }
.vlist > div{ display:flex; align-items:center; justify-content:space-between; padding:.35rem .5rem; background:#f8fafc; border:1px solid #eef2f7; border-radius:8px; margin-bottom:.4rem; }
.vlist span{ color:#6b7280; font-size:.9rem; }

/* highlight best offer row */
.offer-best{ box-shadow: inset 0 0 0 9999px rgba(13, 202, 240, .06); }


/* ************************************************* INDEX HTML   ***************************************************************** */

 /* ---- Notifications polish (scoped) ---- */
/* ===== Notifications polish (scoped to the page) ===== */
.notifications-page .filter-sticky{position:sticky;top:76px;z-index:1020}
@media (max-width:991.98px){.notifications-page .filter-sticky{top:70px}}

.notifications-page .filters-card{
  border:0;border-radius:1rem;overflow:hidden;
  box-shadow:0 6px 24px rgba(16,24,40,.06);
}
.notifications-page .filters-card .card-header{
  border-bottom:1px solid #eef2f7;
}

/* Fix date inputs overflowing the card */
.notifications-page .filters-dates .form-control{
  flex:1 1 0; min-width:0; width:100%;
}
@media (max-width: 480px){
  .notifications-page .filters-dates{flex-direction:column}
}

/* Page title → colorful gradient */
.notifications-page h2.text-primary{
  background:linear-gradient(90deg,#0d6efd 0%, #00b4d8 40%, #6f42c1 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* Tabs → pill & vibrant */
.notifications-page .nav-pills .nav-link{
  border-radius:999px;font-weight:600;
  color:#0d6efd;
}
.notifications-page .nav-pills .nav-link.active{
  color:#fff;
  background:linear-gradient(90deg,#0d6efd,#00b4d8);
  box-shadow:0 6px 18px rgba(13,110,253,.25);
}

/* Notifications list container stays inside borders */
.notifications-page #notificationsList{
  background:#fff; border:1px solid #eef2f7; border-radius:1rem; overflow:hidden;
  box-shadow:0 6px 24px rgba(16,24,40,.06);
}

/* Row styling */
.notifications-page .list-group .list-group-item{
  border:0; border-bottom:1px solid #eef1f5;
  transition:background .15s ease, transform .06s ease;
}
.notifications-page .list-group .list-group-item:last-child{border-bottom:0}
.notifications-page .list-group-item-action:hover{background:#f8fafc}

/* Unread highlight (subtle but visible) */
.notifications-page .bg-notif-unread{
  background:linear-gradient(0deg,#f5f9ff,#f5f9ff);
}

/* Colored left rule is already applied with border-start border-4 + severity class.
   Add soft background tint to match that color, without being too loud. */
.notifications-page .list-group-item.border-info{background-image:linear-gradient(0deg,#f0f6ff 0,#fff 90%)}
.notifications-page .list-group-item.border-success{background-image:linear-gradient(0deg,#ecfdf5 0,#fff 90%)}
.notifications-page .list-group-item.border-warning{background-image:linear-gradient(0deg,#fff8ed 0,#fff 90%)}
.notifications-page .list-group-item.border-danger{background-image:linear-gradient(0deg,#fff1f2 0,#fff 90%)}

/* Ensure the colored rule uses brand shades */
.notifications-page .border-info{--bs-border-opacity:1;border-color:rgba(13,110,253,var(--bs-border-opacity))!important}
.notifications-page .border-success{border-color:#198754!important}
.notifications-page .border-warning{border-color:#f59f00!important}
.notifications-page .border-danger{border-color:#dc3545!important}

/* Badges → colorful pills, consistent size */
.notifications-page .badge{
  border-radius:999px;padding:.38em .62em;font-weight:600;letter-spacing:.2px
}
.notifications-page .badge.bg-info.text-dark{background:#e7f1ff!important;color:#0b5ed7!important}
.notifications-page .badge.bg-warning.text-dark{background:#fff4e5!important;color:#8a5a00!important}
.notifications-page .badge.bg-purple{background:#efe7ff;color:#5b21b6}

/* Tiny section headings (“Today / Yesterday / …”) */
.notifications-page .small.text-uppercase.text-muted.fw-semibold{
  letter-spacing:.06em
}

/* Top toolbar sticks visually to list on large screens */
@media (min-width:992px){
  .notifications-page .list-sticky{position:sticky;top:76px;z-index:1;background:#fff}
}

/* Inputs in filters: soft rounded */
.notifications-page .filters-card .form-control,
.notifications-page .filters-card .form-select{
  border-radius:.8rem;
}




.hero-band{
      background:linear-gradient(90deg,#eaf4ff 0%,#f8fbff 100%);
      border:1px solid #e5edf7;border-radius:14px;padding:1rem 1.25rem;
      box-shadow:0 6px 18px #00446e14
    }
    .stat-chip{display:inline-flex;align-items:center;gap:.45rem;background:#fff;border:1px solid #e6eef7;border-radius:999px;padding:.38rem .75rem;font-size:.92rem;box-shadow:0 2px 8px #1b3b6a10}
    .instruction-card{background:#f9fbff;border:1px solid #e7eef8;border-radius:14px;box-shadow:0 6px 20px #0b2a5214}
    .rating i{color:#f8c102}



    /* Page polish to match other full-width pages */
    .hero-band {
      background: linear-gradient(120deg,#0b1f3a 0%,#123d6a 60%,#1b4f7a 120%);
      border: 1px solid #0b2542;
      border-radius: 10px;
      padding: .9rem 1.1rem;
      box-shadow: 0 8px 20px rgba(8,24,48,.18);
      color: #f8fafc;
    }
    .stat-chip {
      display:inline-flex; align-items:center; gap:.45rem;
      background:#fff; border:1px solid #e6eef7; border-radius:999px;
      padding:.38rem .75rem; font-size:.92rem;
      box-shadow:0 2px 8px #1b3b6a10;
    }
    .instruction-card {
      background: #f9fbff;
      border: 1px solid #e7eef8;
      border-radius: 14px;
      box-shadow: 0 6px 20px #0b2a5214;
    }
    .instruction-card h5 { color:#0d6efd; }

    /* Make inputs consistent & comfortable */
    .form-rail .form-control,
    .form-rail .form-select {
      height: 44px;
    }
    .form-rail textarea.form-control {
      height: auto;
      min-height: 110px;
    }


    /* Keep colors in SANAD palette (navy/teal/ice) and use subtle elevation */
.hero-band {
      background: linear-gradient(120deg,#0b1f3a 0%,#123d6a 60%,#1b4f7a 120%);
      border: 1px solid #0b2542;
      border-radius: 10px;
      padding: .9rem 1.1rem;
      box-shadow: 0 8px 20px rgba(8,24,48,.18);
      color: #f8fafc;
    }
    .stat-chip {
      display:inline-flex; align-items:center; gap:.45rem;
      background:#fff; border:1px solid #e6eef7; border-radius:999px;
      padding:.38rem .75rem; font-size:.92rem;
      box-shadow:0 2px 8px #1b3b6a10;
    }
    .status-ribbon {
      display:inline-flex; align-items:center; gap:.5rem;
      border-radius: 999px; padding:.4rem .85rem; font-weight:600;
    }
    .status-bidding    { background:#e8f7ee; color:#1d774b; border:1px solid #bde9cc; }
    .status-completed  { background:#eef0f4; color:#5d6a7e; border:1px solid #dfe4ec; }
    .status-notstarted { background:#fff3cd; color:#8a6d00; border:1px solid #ffe09a; }

    .countdown-big { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing:.3px; }
    .progress-thin { height: 8px; border-radius:999px; }
    .progress-bar {
      background: linear-gradient(90deg,#0d6efd,#00a2ff);
    }
    .file-pill {
      display:flex; align-items:center; gap:.6rem;
      padding:.5rem .75rem; background:#f8fbff;
      border:1px solid #e4ecf7; border-radius:.65rem;
      transition:.15s transform, .15s box-shadow;
    }
    .file-pill:hover { transform: translateY(-1px); box-shadow:0 6px 16px #092a5a12; }

    .leaderboard .card { border-radius: 14px; }
    .leaderboard .rank-1 { border-left:5px solid #28a7451f; }
    .leaderboard .rank-2 { border-left:5px solid #0d6efd1f; }
    .leaderboard .rank-3 { border-left:5px solid #ffc1072a; }

    .sticky-actions {
      position: sticky; top: 86px;
    }
    @media (max-width: 991.98px){
      .sticky-actions { position: static; }
    }

    /* Tab headers inside card header keep clean white */
/*    .card-header .nav-link { color:#245086; font-weight:600; }
    .card-header .nav-link.active { color:#0d6efd; border-color:#0d6efd #0d6efd #fff; }*/

     /* Page polish (keeps SANAD palette) */
    .hero-band {
      background: linear-gradient(90deg,#eaf4ff 0%,#f8fbff 100%);
      border: 1px solid #e5edf7;
      border-radius: 14px;
      padding: 1rem 1.25rem;
      box-shadow: 0 6px 18px #00446e14;
    }
    .stat-chip {
      display:inline-flex; align-items:center; gap:.45rem;
      background:#fff; border:1px solid #e6eef7; border-radius:999px;
      padding:.38rem .75rem; font-size:.92rem;
      box-shadow:0 2px 8px #1b3b6a10;
    }
    .countdown-big { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing:.3px; }
    .progress-thin { height: 8px; border-radius:999px; }
    .progress-bar { background: linear-gradient(90deg,#0d6efd,#00a2ff); }

    /* Inputs now take full width (no max-width cap) */
    .form-rail .form-control,
    .form-rail .form-select,
    .form-rail .input-group { width: 100%; }

    .file-pill {
      display:flex; align-items:center; gap:.6rem;
      padding:.5rem .75rem; background:#f8fbff;
      border:1px solid #e4ecf7; border-radius:.65rem;
    }

    /* Instruction card styling (left side) */
    .instruction-card {
      background: #f9fbff;
      border: 1px solid #e7eef8;
      border-radius: 14px;
      box-shadow: 0 6px 20px #0b2a5214;
    }
    .instruction-card h5 { color:#0d6efd; }
    .instruction-card li strong { color:#123e6b; }


     /* Page polish (scoped) */
    .pq { --c1:#0d6efd; --c2:#20c997; --c3:#845ef7; --ink:#10375c; }
    .pq .hero {
      background: linear-gradient(120deg, var(--c1) 0%, var(--c3) 60%, #70d0ff 120%);
      color:#fff; border-radius:18px; padding:18px 20px; box-shadow:0 10px 28px rgba(13,110,253,.18);
    }
    .pq .hero h2 { font-weight:800; letter-spacing:.2px; }
    .pq .chip {
      display:inline-flex; align-items:center; gap:.35rem; padding:.35rem .8rem;
      border-radius:999px; background: rgba(255,255,255,.18); color:#fff; font-weight:600; font-size:.88rem;
      border:1px solid rgba(255,255,255,.28);
    }
    .pq .summary-card { border-radius:14px; border:1px solid #e9eef7; box-shadow:0 6px 22px rgba(16,55,92,.06); }
    .pq .summary-card .price { font-weight:800; color:var(--c1); }
    .pq .form-card { border-radius:14px; border:1px solid #eef2f7; box-shadow:0 6px 22px rgba(16,55,92,.05); }
    .pq .filter-sticky { position: sticky; top: 92px; }
    @media (max-width: 991.98px){ .pq .filter-sticky { position: static; } }



/*    .hero-card {
      background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
      color: #fff;
      border: 0;
    }*/
/*    .hero-card .btn-light { color:#0f172a; }
    .kpi-card { border:0; }
    .kpi-value { font-size: 1.4rem; font-weight: 800; }
    .chart-box { height: 280px; }
    .chat-box  { height: 420px; overflow-y: auto; }
    .badge-pill { border-radius: 999px; }
    .card-link { text-decoration: none; }
    .req-table thead th { background: #f8fafc; }
    .avatar-sm {
      width: 34px; height: 34px; border-radius: 50%;
      display:inline-flex; align-items:center; justify-content:center;
      background:#e2e8f0; color:#0f172a; font-weight:700;
    }
*/
    .dashboard-home .hero-card {
      background: linear-gradient(120deg,#0b1f3a 0%,#123d6a 60%,#1b4f7a 120%);
      color: #fff;
      border: 1px solid #0b2542;
      border-radius: 10px;
      box-shadow: 0 8px 20px rgba(8,24,48,.18);
    }
    .dashboard-home .kpi-card {
      border-radius: 10px;
      border: 1px solid #e2e7f0;
      box-shadow: 0 4px 16px rgba(10,32,60,.06);
    }
    .kpi-value { font-size: 1.4rem; font-weight: 800; }
    .chart-box { height: 280px; }
    .chat-box  { height: 420px; overflow-y: auto; }
    .badge-pill { border-radius: 999px; }
    .card-link { text-decoration: none; }
    .dashboard-home .req-table thead th { background: #f1f5f9; color: #123a63; }
    .avatar-sm {
      width: 34px; height: 34px; border-radius: 50%;
      display:inline-flex; align-items:center; justify-content:center;
      background:#e2e8f0; color:#0f172a; font-weight:700;
    }

    .admin-dashboard .hero-card {
      background: linear-gradient(120deg,#0b1f3a 0%,#123d6a 60%,#1b4f7a 120%);
      color: #fff;
      border: 1px solid #0b2542;
      border-radius: 10px;
      box-shadow: 0 8px 20px rgba(8,24,48,.18);
    }
    .admin-dashboard .kpi-card {
      border-radius: 10px;
      border: 1px solid #e2e7f0;
      box-shadow: 0 4px 16px rgba(10,32,60,.06);
    }
    .admin-dashboard .req-table thead th { background: #f1f5f9; color: #123a63; }

    /* Keep the instructions visible while scrolling on desktop */
.sticky-sidebar {
  position: sticky;
  top: 88px;          /* adjust based on your header height */
}

/* Nicer drop-zone highlight on drag */
.dropzone.border-primary {
  box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

/* Materials Add page */
.materials-add-page .material-form-card,
.materials-add-page .material-side-card {
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(10,32,60,.08);
}
.materials-add-page .material-form-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.materials-add-page .material-side-card {
   background: #ffffff;
}
.materials-add-page .material-side-card h5 {
  color: #0e3a63;
  font-weight: 700;
}
.materials-add-page .material-side-card h6 {
  font-weight: 700;
}
.materials-add-page .form-label {
  font-weight: 600;
  color: #0e3a63;
}
.materials-add-page .form-control:focus,
.materials-add-page .form-select:focus,
.materials-add-page .dropzone:focus-within {
  border-color: #2c7be5;
  box-shadow: 0 0 0 .2rem rgba(44,123,229,.15);
}

/* Optional: tighter card spacing on mobile */
@media (max-width: 991.98px) {
  .sticky-sidebar { position: static; top: auto; }
}

.dashboard-v2 .hero-card {
  border-radius: 14px;
}

.dashboard-v2 .kpi-card {
  border-radius: 12px;
}

.dashboard-v2 .chart-box {
  height: 300px;
}

.dashboard-v2 .list-group-item {
  border: 0;
  border-bottom: 1px solid #edf1f7;
}

.dashboard-v2 .list-group-item:last-child {
  border-bottom: 0;
}

.dashboard-v2 .dashboard-kpi-primary i { color: #0d6efd; }
.dashboard-v2 .dashboard-kpi-info i { color: #0dcaf0; }
.dashboard-v2 .dashboard-kpi-warning i { color: #f59f00; }
.dashboard-v2 .dashboard-kpi-success i { color: #198754; }
.dashboard-v2 .dashboard-kpi-secondary i { color: #6c757d; }
.dashboard-v2 .dashboard-kpi-dark i { color: #212529; }
.dashboard-v2 .dashboard-kpi-danger i { color: #dc3545; }


/* ===== Admin dashboard refresh ===== */
.admin-dashboard .dashboard-shell {
  max-width: 100%;
}

.admin-dashboard .admin-hero {
  background: linear-gradient(130deg, #091c42 0%, #103d86 48%, #1a7dd6 100%);
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 18px 36px rgba(9, 28, 66, .35);
}

.admin-dashboard .admin-panel-card {
  border: 1px solid #dbe5f4;
  box-shadow: 0 8px 24px rgba(16, 45, 84, 0.08);
}

.admin-dashboard .admin-panel-card .card-header {
  background: #fff;
  border-bottom: 1px solid #e8eef8;
  color: #0f2d61;
}

.admin-dashboard .kpi-card {
  border: 0;
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 110px;
}

.admin-dashboard .kpi-card::after {
  content: "";
  position: absolute;
  inset: auto -18px -24px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.admin-dashboard .kpi-value {
  font-size: 1.8rem;
  font-weight: 900;
}

.admin-dashboard .kpi-icon {
  opacity: .9;
}

.admin-dashboard .kpi-primary { background: linear-gradient(140deg, #1742a1, #1f6fe5); }
.admin-dashboard .kpi-info { background: linear-gradient(140deg, #0a6d90, #22a4ce); }
.admin-dashboard .kpi-warning { background: linear-gradient(140deg, #a76405, #f39c12); }
.admin-dashboard .kpi-success { background: linear-gradient(140deg, #08724c, #10b981); }
.admin-dashboard .kpi-secondary { background: linear-gradient(140deg, #4a3d8f, #8b5cf6); }
.admin-dashboard .kpi-danger { background: linear-gradient(140deg, #9f1239, #f43f5e); }
.admin-dashboard .kpi-dark { background: linear-gradient(140deg, #1f2937, #334155); }

.admin-dashboard .chart-box {
  height: 300px;
}

.admin-dashboard .chart-box-wide {
  height: 340px;
}

.admin-dashboard .snapshot-row {
  background: #f8fbff;
  border: 1px solid #e3edf8;
  border-radius: 10px;
  padding: .45rem .6rem;
}

.admin-dashboard .snapshot-link {
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.admin-dashboard .snapshot-link:hover,
.admin-dashboard .snapshot-link:focus-visible {
  border-color: #9cc1f2;
  box-shadow: 0 6px 18px rgba(34, 93, 178, 0.12);
  transform: translateY(-1px);
}

.admin-dashboard .chat-box {
  height: 430px;
  overflow-y: auto;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff, #eef4fd);
  border: 1px solid #dce7f8;
  padding: .65rem;
}

.admin-dashboard .chat-message {
  display: flex;
  margin-bottom: .5rem;
}

.admin-dashboard .chat-message.other { justify-content: flex-start; }
.admin-dashboard .chat-message.mine { justify-content: flex-end; }

.admin-dashboard .chat-bubble {
  max-width: 82%;
  border-radius: 12px;
  padding: .55rem .7rem;
  box-shadow: 0 4px 14px rgba(22, 53, 105, 0.08);
}

.admin-dashboard .chat-message.other .chat-bubble {
  background: #fff;
  border: 1px solid #d8e5f9;
}

.admin-dashboard .chat-message.mine .chat-bubble {
  background: linear-gradient(135deg, #1452b6, #2f82ff);
  color: #fff;
}

.admin-dashboard .chat-author {
  font-size: .73rem;
  font-weight: 700;
  opacity: .75;
  margin-bottom: .15rem;
}

.admin-dashboard .chat-bubble small {
  display: block;
  margin-top: .2rem;
  opacity: .72;
  font-size: .68rem;
}


/* ===== User dashboard refresh ===== */
.user-dashboard .dashboard-shell {
  max-width: 100%;
}

.user-dashboard .user-hero {
  background: linear-gradient(130deg, #1a1147 0%, #243b9b 46%, #3ba0ff 100%);
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 18px 36px rgba(20, 23, 68, 0.35);
}

.user-dashboard .user-panel-card {
  border: 1px solid #dbe5f4;
  box-shadow: 0 8px 24px rgba(16, 45, 84, 0.08);
}

.user-dashboard .user-panel-card .card-header {
  background: #fff;
  border-bottom: 1px solid #e8eef8;
  color: #0f2d61;
}

.user-dashboard .kpi-card {
  border: 0;
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 110px;
}

.user-dashboard .kpi-card::after {
  content: "";
  position: absolute;
  inset: auto -18px -24px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.user-dashboard .kpi-value {
  font-size: 1.8rem;
  font-weight: 900;
}

.user-dashboard .dashboard-kpi-primary { background: linear-gradient(140deg, #1742a1, #1f6fe5); }
.user-dashboard .dashboard-kpi-info { background: linear-gradient(140deg, #0a6d90, #22a4ce); }
.user-dashboard .dashboard-kpi-warning { background: linear-gradient(140deg, #a76405, #f39c12); }
.user-dashboard .dashboard-kpi-success { background: linear-gradient(140deg, #08724c, #10b981); }
.user-dashboard .dashboard-kpi-secondary { background: linear-gradient(140deg, #4a3d8f, #8b5cf6); }
.user-dashboard .dashboard-kpi-danger { background: linear-gradient(140deg, #9f1239, #f43f5e); }
.user-dashboard .dashboard-kpi-dark { background: linear-gradient(140deg, #1f2937, #334155); }

.user-dashboard .chart-box {
  height: 300px;
}

.user-dashboard .chat-box {
  height: 520px;
  overflow-y: auto;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff, #eef4fd);
  border: 1px solid #dce7f8;
  padding: .65rem;
}

.user-dashboard .chat-message {
  display: flex;
  margin-bottom: .5rem;
}

.user-dashboard .chat-message.other { justify-content: flex-start; }
.user-dashboard .chat-message.mine { justify-content: flex-end; }

.user-dashboard .chat-bubble {
  max-width: 85%;
  border-radius: 12px;
  padding: .55rem .7rem;
  box-shadow: 0 4px 14px rgba(22, 53, 105, 0.08);
}

.user-dashboard .chat-message.other .chat-bubble {
  background: #fff;
  border: 1px solid #d8e5f9;
}

.user-dashboard .chat-message.mine .chat-bubble {
  background: linear-gradient(135deg, #1452b6, #2f82ff);
  color: #fff;
}

.user-dashboard .chat-author {
  font-size: .73rem;
  font-weight: 700;
  opacity: .75;
  margin-bottom: .15rem;
}

.user-dashboard .chat-bubble small {
  display: block;
  margin-top: .2rem;
  opacity: .72;
  font-size: .68rem;
}


/* ===== Customer index page ===== */
.user-home-index .index-hero {
  background: linear-gradient(120deg, #123a63, #1f6fe5);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
}

.user-home-index .index-panel-card {
  border: 0;
  overflow: hidden;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: #fff;
  border-top: 1px solid rgba(18, 58, 99, 0.08);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 200%;
  padding: 0.9rem 1rem;
  animation: sanadTicker 30s linear infinite;
}

.ticker-wrap-offers .ticker-track {
  animation-duration: 24s;
}

.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  color: #123a63;
  font-size: 0.95rem;
}

.ticker-offer-item {
  display: inline-flex;
  align-items: center;
}

.ticker-sep {
  margin: 0 0.45rem;
  color: #9aa5b1;
}

@keyframes sanadTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.index-mini-card {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  border: 1px solid #e5edf7;
  border-radius: 0.85rem;
  padding: 0.6rem;
  background: #fff;
}

.index-mini-thumb {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 0.65rem;
  background: #f3f5f8;
}

.index-chat-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1055;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(18, 58, 99, 0.24);
}

.index-chat-popup {
  position: fixed;
  right: 1rem;
  bottom: 4.8rem;
  width: min(320px, calc(100vw - 2rem));
  background: #fff;
  border-radius: 0.9rem;
  border: 1px solid #dce6f2;
  box-shadow: 0 12px 30px rgba(18, 58, 99, 0.2);
  z-index: 1054;
}

.index-chat-popup-header {
  padding: 0.6rem 0.8rem;
  color: #123a63;
  border-bottom: 1px solid #e8eef6;
  background: #f7faff;
}

.index-chat-popup-body {
  padding: 0.8rem;
}
/* ===== Customer index page refresh ===== */
.user-home-index .index-hero {
  background: radial-gradient(circle at top right, #2b7cf6 0%, #163963 48%, #0d233e 100%);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 28px rgba(15, 44, 80, 0.22);
}

.user-home-index .index-panel-card {
  border: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.user-home-index .index-panel-card .card-header {
  background: linear-gradient(90deg, #f4f8ff, #edf4ff);
  color: #123a63;
  border-bottom: 1px solid #e1ebfa;
}

.index-line-body {
  padding: 0.9rem;
}

.index-manual-line {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding-bottom: 0.35rem;
}

.index-manual-line::-webkit-scrollbar {
  height: 8px;
}

.index-manual-line::-webkit-scrollbar-thumb {
  background: #bfd2f3;
  border-radius: 999px;
}

.index-line-card {
  flex: 0 0 min(260px, 82vw);
  border: 1px solid #dbe7fa;
  border-radius: 1rem;
  background: #fff;
  padding: 0.6rem;
  box-shadow: 0 6px 14px rgba(19, 52, 94, 0.09);
}

.index-line-photo {
  width: 100%;
  height: 120px;
  border-radius: 0.8rem;
  object-fit: cover;
  background: #edf3fc;
  margin-bottom: 0.45rem;
}

.index-line-name {
  font-weight: 700;
  color: #123a63;
  margin-bottom: 0.2rem;
  min-height: 2.4em;
}

.index-line-meta {
  font-size: 0.85rem;
  color: #284a6f;
}

.index-line-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.65rem;
}

/* i18n foundation */
html[dir="rtl"] body {
  text-align: right;
  font-family: "Tahoma", "Segoe UI", Arial, sans-serif;
}

html[dir="rtl"] .navbar .navbar-nav {
  margin-left: 0 !important;
  margin-right: auto !important;
}

html[dir="rtl"] .dropdown-menu {
  text-align: right;
}

html[dir="rtl"] .dropdown-menu-end {
  right: auto;
  left: 0;
}

html[dir="rtl"] .navbar-nav .dropdown-menu .dropdown-item.is-active {
  border-left: 0;
  border-right: 3px solid #0d6efd;
  padding-left: 1rem;
  padding-right: 1.2rem;
}

html[dir="rtl"] .list-group-item {
  text-align: right;
}