* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f5f5;
}
/* NAVBAR */

/* =========================
   NAVBAR
   ========================= */

/* =========================================================
   BUILDEASE HEADER / NAVIGATION
   SAME HEADER AS HOME PAGE
   ========================================================= */

.navbar {
    width: 100%;
    height: 78px;

    background: #ffffff;

    display: flex;
    align-items: center;

    padding: 0 31px 0 17px;

    position: sticky;
    top: 0;
    z-index: 500;

    border-bottom: 1px solid #eeeeee;

    transition: transform 240ms ease;
}

/* Auto-hide on scroll (toggled by BuildEase_JS/navbar-autohide.js).
   Transform only — sticky keeps the navbar's 78px reserved in normal
   flow, so hiding/showing never shifts the page content. */
.navbar.navbar-hidden {
    transform: translateY(-100%);
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    width: 330px;
    height: 78px;

    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.logo img {
    width: 306px;
    height: auto;

    display: block;

    object-fit: contain;
}


/* =========================================================
   NAVIGATION LINKS
   ========================================================= */

.nav-links {
    list-style: none;

    display: flex;
    align-items: center;

    gap: 35px;

    margin-left: auto;
    margin-right: 57px;

    height: 100%;
}

.nav-links li {
    height: 100%;

    display: flex;
    align-items: center;
}

.nav-links a {
    position: relative;

    text-decoration: none;

    color: #333333;

    font-size: 14px;
    font-weight: 400;

    padding: 8px 0;

    white-space: nowrap;

    transition: color 0.2s ease;
}

/* Hover effect */
.nav-links a:hover {
    color: #111111;
}

/* Underline appears when hovering */
/* Current page */
.nav-links a.active {
    color: #111111;

    font-weight: 600;
}

/* Current page underline */
.nav-links a:focus-visible {
    outline: 2px solid #f4ae00;
    outline-offset: 5px;
    border-radius: 2px;
}

.navbar .nav-links {
    position: relative;
}

.public-nav-indicator {
    position: absolute;
    height: 2px;
    background: #222222;
    pointer-events: none;
    transition: left 300ms ease, top 300ms ease, width 300ms ease;
}


/* =========================================================
   LOGIN / REGISTER BUTTONS
   ========================================================= */

.buttons {
    display: flex;
    align-items: center;

    gap: 9px;
}

.navbar .buttons button {
    height: 25px;
    padding: 0 11px;
    border-radius: 6px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    cursor: pointer;
    background: #ffffff;
}

.navbar .login-btn {
    border: 1px solid #555555;
    color: #222222;
}

.navbar .login-btn:hover {
    background: #f3f3f3;
}

.navbar .register-btn {
    border: 1px solid #f9ad00;
    background: #ffb000 !important;
    color: #111111;
}

.navbar .register-btn:hover {
    background: #f2a400 !important;
}

.register-btn:hover {
    background: #f2a400 !important;
} 

/* HOME PAGE */

.hero {
    display: flex;
    height: calc(100vh - 80px);
}

.hero-left {
    width: 45%;
    background: #173f6b;
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 70px;
}

.subtitle {
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-left h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.description {
    line-height: 1.8;
    color: #dcdcdc;
}

.hero-right {
    width: 55%;
    position: relative;
}

.hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ABOUT PAGE */

.about-page {
    --about-gutter: clamp(20px, 4.6vw, 72px);
    --about-navy: #173f6b;
    --about-gold: #ffb000;
    --about-text: #45566d;
    --about-line: #e3e7ec;
    --about-media-bg: #eef1f4;
    background: #ffffff;
    color: #2c394c;
}

.about-page,
.about-page * {
    font-family: 'Inter', Arial, sans-serif;
}

.about-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 var(--about-gutter);
}

.about-section-title {
    margin: 0 0 clamp(28px, 3vw, 40px);
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 400;
    letter-spacing: 0.8px;
    line-height: 1.2;
    color: var(--about-navy);
    text-align: center;
}

/* Hero */

.about-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(300px, 38vw, 440px);
    background: var(--about-navy);
    overflow: hidden;
    text-align: center;
}

.about-hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(8, 18, 32, 0.45);
}

.about-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 0 24px;
    color: #ffffff;
}

.about-hero-inner h1 {
    margin: 0 0 14px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.about-hero-tagline {
    margin: 0;
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

/* Shared section spacing */

.about-section {
    padding: clamp(56px, 7vw, 96px) 0;
}

/* Who We Are */

.about-whoweare {
    background: #ffffff;
}

.about-whoweare-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
}

.about-whoweare-text h2 {
    margin: 0 0 20px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: var(--about-navy);
}

.about-whoweare-text p {
    margin: 0 0 16px;
    font-size: clamp(15px, 1.05vw, 16.5px);
    font-weight: 400;
    line-height: 1.75;
    color: var(--about-text);
}

.about-whoweare-text p:last-child {
    margin-bottom: 0;
}

.about-whoweare-text p strong {
    font-weight: 600;
    color: var(--about-navy);
}

.about-whoweare-media {
    min-height: 360px;
    border-radius: 12px;
    background: var(--about-media-bg);
    border: 1px solid var(--about-line);
}

.about-whoweare-media img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* Mission & Vision */

.about-mv {
    background: #f4f5f7;
}

.about-mv-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: stretch;
}

.about-mv-media {
    min-height: 360px;
    border-radius: 12px;
    background: var(--about-media-bg);
    border: 1px solid var(--about-line);
}

.about-mv-media img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.about-mv-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: clamp(32px, 3.6vw, 48px);
    border-radius: 12px;
    background: var(--about-navy);
    color: #ffffff;
}

.about-mv-block h2 {
    display: inline-block;
    margin: 0 0 10px;
    padding-bottom: 8px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(19px, 1.7vw, 23px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    border-bottom: 2px solid var(--about-gold);
}

.about-mv-block p {
    margin: 0;
    font-size: clamp(14.5px, 1vw, 16px);
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

/* Logo / illustration cards: the whole artwork is shown (contain, never cropped),
   centred on white, never enlarged much beyond its own pixel size. */
.about-whoweare-media.about-media-contain,
.about-mv-media.about-media-contain {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
    background: #ffffff;
}

.about-whoweare-media.about-media-contain img,
.about-mv-media.about-media-contain img {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 0;
    object-fit: contain;
}

.about-mv-media.about-media-contain img {
    max-width: 363px;   /* 1.5x the 242 px illustration */
}

/* Organizational chart: CEO on top, two rows of two joined to a central
   navy spine (as on the company's chart); stacked on phones. */
.about-org {
    --org-photo: 112px;
    background: #ffffff;
}

.about-org-chart {
    max-width: 820px;
    margin: 0 auto;
}

.about-org-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 44px;
}

.about-org-row-top {
    grid-template-columns: minmax(0, 1fr);
}

.about-org-row-last {
    padding-bottom: 0;
}

.about-org-row::before,
.about-org-row-top::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: var(--about-navy);
}

.about-org-row::before {
    top: 0;
    bottom: 0;
}

.about-org-row-top::before {
    top: auto;
    height: 36px;
}

.about-org-row-last::before {
    bottom: auto;
    height: calc(var(--org-photo) / 2);
}

.about-org-row:not(.about-org-row-top)::after {
    content: "";
    position: absolute;
    top: calc(var(--org-photo) / 2 - 1px);
    left: calc(25% + var(--org-photo) / 2 + 14px);
    right: calc(25% + var(--org-photo) / 2 + 14px);
    height: 2px;
    background: var(--about-navy);
}

.about-org-member {
    position: relative;
    z-index: 1;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
}

.about-org-member img {
    display: block;
    width: var(--org-photo);
    height: var(--org-photo);
    margin: 0 auto 14px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--about-gold);
    object-fit: cover;
    background: var(--about-media-bg);
}

.about-org-member figcaption strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--about-navy);
}

.about-org-member figcaption span {
    display: block;
    margin-top: 4px;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--about-text);
}

@media (max-width: 640px) {
    .about-org-row,
    .about-org-row-top,
    .about-org-row-last {
        grid-template-columns: minmax(0, 1fr);
        padding-bottom: 0;
    }

    .about-org-row::before,
    .about-org-row:not(.about-org-row-top)::after {
        display: none;
    }

    .about-org-row:not(.about-org-row-top) .about-org-member::before {
        content: "";
        display: block;
        width: 2px;
        height: 28px;
        margin: 10px auto 10px;
        background: var(--about-navy);
    }
}

/* Values */

.about-values {
    background: #ffffff;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 3vw, 48px);
}

.about-value {
    padding-top: 20px;
    border-top: 3px solid var(--about-gold);
}

.about-value h3 {
    margin: 0 0 10px;
    font-size: clamp(16px, 1.3vw, 18px);
    font-weight: 600;
    color: var(--about-navy);
}

.about-value h3 span {
    margin-right: 6px;
    font-weight: 700;
    color: var(--about-gold);
}

.about-value p {
    margin: 0;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--about-text);
}

/* Contact CTA */

.about-cta {
    padding: clamp(48px, 5.5vw, 72px) 0;
    background: var(--about-navy);
    color: #ffffff;
    text-align: center;
}

.about-cta-inner h2 {
    margin: 0 0 12px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 400;
    letter-spacing: 0.6px;
    line-height: 1.2;
}

.about-cta-inner p {
    margin: 0 0 24px;
    font-size: clamp(15px, 1.1vw, 16.5px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

.about-cta-btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    background: var(--about-gold);
    color: var(--about-navy);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.about-cta-btn:hover {
    background: #e6a100;
}

@media (max-width: 900px) {
    .about-whoweare-grid,
    .about-mv-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-whoweare-media,
    .about-mv-media {
        min-height: 220px;
    }

    .about-values-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .about-hero-inner h1 {
        font-size: 28px;
    }

    .about-mv-content {
        padding: 28px 24px;
    }
}

/* Pages with side-entering scroll reveals: an element waiting to be revealed (shifted 26px sideways) must not widen the
   page on phones. clip (not hidden) creates no scroll container, so vertical overflow and sticky elements are unchanged. */
.about-page,
.projects-page,
.contact-page {
    overflow-x: clip;
}

/* About page — scroll-reveal animations (opacity/transform only, no layout shift) */

.about-page [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.about-page [data-reveal="left"] {
    transform: translateX(-26px);
}

.about-page [data-reveal="right"] {
    transform: translateX(26px);
}

.about-page [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Small stagger across the Values columns */
.about-values-grid > [data-reveal]:nth-child(1) {
    transition-delay: 0ms;
}

.about-values-grid > [data-reveal]:nth-child(2) {
    transition-delay: 120ms;
}

.about-values-grid > [data-reveal]:nth-child(3) {
    transition-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
    .about-page [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* SERVICES PAGE */

.services-page {
    padding: 80px 60px;
}

.services-container h1 {
    color: #173f6b;
    font-size: 42px;
    margin-bottom: 10px;
}

.services-subtitle {
    color: #888;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;

    margin-bottom: 50px;
}

.service-card {
    background: white;

    border: 1px solid #ddd;

    border-radius: 8px;

    padding: 25px;

    min-height: 160px;

    transition: .3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #173f6b;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.services-btn {
    display: block;

    margin: auto;

    padding: 12px 30px;

    background: #173f6b;

    color: white;

    border: none;

    border-radius: 5px;

    cursor: pointer;
}

/* ===== SERVICES PAGE FIX ===== */

.services-page {
    padding: 80px 60px;
}

.services-container {
    max-width: 1200px;
    margin: auto;
}

.services-container h1 {
    color: #173f6b;
    font-size: 42px;
    margin-bottom: 10px;
}

.services-subtitle {
    color: #888;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 25px;
    min-height: 160px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
    color: #173f6b;
    font-size: 18px;
    margin-bottom: 15px;
}

.service-card p {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
}

.services-btn {
    display: block;
    margin: auto;
    padding: 12px 30px;
    background: #173f6b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* NOTE: the ".services-page"/".services-container"/".services-subtitle"/
   ".services-grid"/".service-card"/".services-btn" rules above are no
   longer used by the redesigned public Services page (BuildEase_Services.html
   now uses the ".svc-*" classes below instead). They are intentionally left
   in place, byte-for-byte, because ".services-grid" and ".service-card" are
   still actively used by the authenticated Services Dashboard
   (BuildEase_Services_Dashboard.php), which must not be modified. */


/* =========================================================
   PUBLIC SERVICES PAGE (redesign)
   Uses its own ".svc-*" classes — deliberately distinct from
   ".services-grid"/".service-card" above, which belong to the
   authenticated Services Dashboard and must stay untouched.
   ========================================================= */

.svc-page {
    --svc-navy: #173f6b;
    --svc-gold: #ffb000;
    --svc-gold-text: #9c6b00;
    --svc-text: #45566d;
    --svc-line: #e3e7ec;
    --svc-gutter: clamp(20px, 4.6vw, 72px);
    background: #ffffff;
}

.svc-page,
.svc-page * {
    font-family: 'Inter', Arial, sans-serif;
}

.svc-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: clamp(56px, 7vw, 96px) var(--svc-gutter) 0;
}

/* Intro */

.svc-intro {
    max-width: 720px;
    margin: 0 0 clamp(48px, 5vw, 72px);
}

.svc-label {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--svc-gold-text);
}

.svc-heading {
    margin: 0 0 18px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: var(--svc-navy);
}

.svc-intro-text {
    margin: 0;
    max-width: 620px;
    font-size: clamp(15px, 1.05vw, 16.5px);
    line-height: 1.75;
    color: var(--svc-text);
}

/* Overview — editorial numbered list, 2 columns on desktop */

.svc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(40px, 5vw, 72px);
    padding: clamp(8px, 1vw, 16px) 0 clamp(48px, 5vw, 72px);
}

.svc-item {
    display: flex;
    gap: 20px;
    padding: 26px 0;
    border-top: 2px solid var(--svc-gold);
}

.svc-number {
    flex: 0 0 auto;
    width: 44px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.1;
    color: rgba(23, 63, 107, 0.4);
}

.svc-item-body h3 {
    margin: 0 0 8px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(18px, 1.6vw, 21px);
    font-weight: 400;
    letter-spacing: 0.4px;
    line-height: 1.2;
    color: var(--svc-navy);
}

.svc-item-body p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--svc-text);
}

/* CTA */

.svc-cta {
    padding: clamp(48px, 5.5vw, 72px) var(--svc-gutter);
    background: var(--svc-navy);
    color: #ffffff;
    text-align: center;
}

.svc-cta-inner {
    max-width: 680px;
    margin: 0 auto;
}

.svc-cta-inner h2 {
    margin: 0 0 14px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.25;
}

.svc-cta-inner p {
    margin: 0 0 clamp(24px, 3vw, 32px);
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.svc-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.svc-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.svc-btn-primary {
    background: var(--svc-gold);
    border: 1px solid var(--svc-gold);
    color: var(--svc-navy);
}

.svc-btn-primary:hover {
    background: #e6a100;
    border-color: #e6a100;
}

.svc-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #ffffff;
}

.svc-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}

/* Scroll-reveal — same technique/values already used on Home/About
   (opacity + transform only, reveal once, respects reduced motion). */

.svc-page [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.svc-page [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.svc-list > [data-reveal]:nth-child(even) {
    transition-delay: 100ms;
}

@media (prefers-reduced-motion: reduce) {
    .svc-page [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 800px) {
    .svc-list {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* =========================================================
   PRIVACY STATEMENT PAGE
   Plain, readable legal-document layout — no cards, no
   SaaS-landing-page styling. Own ".privacy-*" classes, no
   collision risk with any other page's CSS.
   ========================================================= */

.privacy-page {
    --privacy-navy: #173f6b;
    --privacy-gold: #ffb000;
    --privacy-text: #45566d;
    --privacy-line: #e3e7ec;
    --privacy-gutter: clamp(20px, 4.6vw, 72px);
    background: #f7f8fa;
}

.privacy-page,
.privacy-page * {
    font-family: 'Inter', Arial, sans-serif;
}

.privacy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(48px, 6vw, 80px) var(--privacy-gutter) clamp(64px, 7vw, 96px);
}

.privacy-header {
    margin-bottom: clamp(32px, 4vw, 48px);
}

.privacy-header h1 {
    margin: 0 0 16px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.15;
    color: var(--privacy-navy);
}

.privacy-header p {
    margin: 0 0 14px;
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--privacy-text);
}

.privacy-header p:last-child {
    margin-bottom: 0;
}

.privacy-section {
    padding: clamp(22px, 2.6vw, 30px) 0;
    border-top: 1px solid var(--privacy-line);
}

.privacy-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.privacy-section h2 {
    margin: 0 0 14px;
    padding-left: 12px;
    font-size: clamp(17px, 1.5vw, 19px);
    font-weight: 700;
    color: var(--privacy-navy);
    border-left: 3px solid var(--privacy-gold);
}

.privacy-section p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--privacy-text);
}

.privacy-section p:last-child {
    margin-bottom: 0;
}

.privacy-section ul {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
    padding-left: 20px;
}

.privacy-section li {
    font-size: 15px;
    line-height: 1.65;
    color: var(--privacy-text);
}

.privacy-contact-block {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--privacy-text);
}

.privacy-contact-block a {
    color: var(--privacy-navy);
    font-weight: 600;
    text-decoration: none;
}

.privacy-contact-block a:hover {
    color: var(--privacy-gold);
}

@media (max-width: 560px) {
    .privacy-section h2 {
        font-size: 16px;
    }
}


/* =========================================================
   PUBLIC PROJECTS PAGE (redesign)
   Editorial, photography-led portfolio. Own ".pf-*" classes —
   distinct from the authenticated Projects Dashboard, which
   uses only ".dashboard-*" class names (verified, no collision).
   ========================================================= */

.projects-page {
    --pf-navy: #173f6b;
    --pf-gold: #ffb000;
    --pf-gold-text: #9c6b00;
    --pf-text: #45566d;
    --pf-line: #e3e7ec;
    --pf-media-bg: #eef1f4;
    --pf-gray-bg: #f4f5f7;
    --pf-gutter: clamp(20px, 4.6vw, 72px);
    background: #ffffff;
}

.projects-page,
.projects-page * {
    font-family: 'Inter', Arial, sans-serif;
}

.pf-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 var(--pf-gutter);
}

.pf-section {
    padding: clamp(56px, 7vw, 96px) 0;
}

.pf-section-title {
    margin: 0 0 clamp(28px, 3vw, 40px);
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 400;
    letter-spacing: 0.8px;
    line-height: 1.2;
    color: var(--pf-navy);
    text-align: center;
}

/* Intro */

.pf-intro {
    max-width: 680px;
    margin: 0 auto;
    padding: clamp(56px, 7vw, 96px) var(--pf-gutter) clamp(40px, 4.6vw, 64px);
    text-align: center;
}

.pf-label {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--pf-gold-text);
}

.pf-heading {
    margin: 0 0 16px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: var(--pf-navy);
}

.pf-intro p.pf-supporting {
    margin: 0;
    font-size: clamp(15px, 1.05vw, 16.5px);
    line-height: 1.7;
    color: var(--pf-text);
}

/* Status badges */

.pf-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pf-status::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--pf-gold);
}

.pf-status-done {
    color: var(--pf-navy);
}

.pf-status-ongoing {
    padding: 6px 14px;
    background: var(--pf-gold);
    color: var(--pf-navy);
}

.pf-status-ongoing::before {
    display: none;
}

/* Project numbering */

.pf-number {
    display: block;
    margin-bottom: 10px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: 22px;
    letter-spacing: 0.5px;
    color: rgba(23, 63, 107, 0.4);
}

/* Metadata (Scope / Company / Location) */

.pf-meta {
    margin: 18px 0 0;
    display: grid;
    gap: 14px;
}

.pf-meta-row dt {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--pf-gold-text);
}

.pf-meta-row dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--pf-text);
}

.pf-meta-row dd span {
    display: block;
}

/* Featured Project */

.pf-featured {
    background: var(--pf-gray-bg);
}

.pf-featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(32px, 4.5vw, 64px);
    align-items: center;
}

.pf-featured-media-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}

.pf-featured-media-secondary {
    width: 100%;
    aspect-ratio: 16 / 7;
    margin-top: 14px;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}

.pf-featured-text h2 {
    margin: 10px 0 0;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: var(--pf-navy);
}

/* Accomplished Projects list */

.pf-list {
    display: grid;
    gap: clamp(48px, 5.5vw, 72px);
}

.pf-item {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    padding-top: clamp(32px, 3.6vw, 44px);
    border-top: 1px solid var(--pf-line);
}

.pf-item:first-child {
    border-top: none;
    padding-top: 0;
}

.pf-item-reverse .pf-item-media {
    order: 2;
}

.pf-item-reverse .pf-item-text {
    order: 1;
}

.pf-item-media {
    display: flex;
    gap: 10px;
}

.pf-item-media img {
    flex: 1 1 0;
    min-width: 0;   /* flex items default to min-width:auto (the photo's natural width), so a two-photo row could not shrink and overflowed into the text / off-screen */
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}

/* A wide photo whose subject (the wall-mounted aircon units) sits right of
   centre: keep it inside the 4:3 cover crop. */
.pf-item-media img.pf-img-focus-right {
    object-position: 68% 50%;
}

.pf-item-media-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    background: var(--pf-media-bg);
    border: 1px solid var(--pf-line);
}

.pf-item-text h3 {
    margin: 10px 0 0;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(19px, 1.7vw, 23px);
    font-weight: 400;
    letter-spacing: 0.4px;
    line-height: 1.25;
    color: var(--pf-navy);
}

/* Ongoing Project — visually distinct (navy), still navy/gold palette */

.pf-ongoing {
    background: var(--pf-navy);
    color: #ffffff;
}

.pf-ongoing .pf-section-title {
    color: #ffffff;
}

.pf-ongoing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.pf-ongoing-media {
    display: flex;
    gap: 10px;
}

.pf-ongoing-media img {
    flex: 1 1 0;
    min-width: 0;   /* same as .pf-item-media img */
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}

.pf-ongoing-text h3 {
    margin: 10px 0 0;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(19px, 1.7vw, 23px);
    font-weight: 400;
    letter-spacing: 0.4px;
    line-height: 1.25;
    color: #ffffff;
}

.pf-ongoing .pf-meta-row dt {
    color: var(--pf-gold);
}

.pf-ongoing .pf-meta-row dd {
    color: rgba(255, 255, 255, 0.85);
}

/* Selected Clients */

.pf-clients {
    background: #ffffff;
}

.pf-clients-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(32px, 5vw, 64px);
}

.pf-client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
}

.pf-client-logo img {
    max-height: 100%;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* CTA */

.pf-cta {
    padding: clamp(48px, 5.5vw, 72px) var(--pf-gutter);
    background: var(--pf-navy);
    color: #ffffff;
    text-align: center;
}

.pf-cta-inner {
    max-width: 680px;
    margin: 0 auto;
}

.pf-cta-inner h2 {
    margin: 0 0 14px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.25;
}

.pf-cta-inner p {
    margin: 0 0 clamp(24px, 3vw, 32px);
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.pf-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.pf-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pf-btn-primary {
    background: var(--pf-gold);
    border: 1px solid var(--pf-gold);
    color: var(--pf-navy);
}

.pf-btn-primary:hover {
    background: #e6a100;
    border-color: #e6a100;
}

.pf-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #ffffff;
}

.pf-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}

/* Scroll-reveal — same technique/values already used on Home/About/Services */

.projects-page [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.projects-page [data-reveal="left"] {
    transform: translateX(-26px);
}

.projects-page [data-reveal="right"] {
    transform: translateX(26px);
}

.projects-page [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .projects-page [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 900px) {
    .pf-featured-grid,
    .pf-item,
    .pf-ongoing-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pf-item-reverse .pf-item-media,
    .pf-item-reverse .pf-item-text {
        order: initial;
    }

    .pf-item {
        border-top: none;
        padding-top: 0;
    }

    .pf-item + .pf-item {
        border-top: 1px solid var(--pf-line);
        padding-top: clamp(32px, 3.6vw, 44px);
    }
}

@media (max-width: 560px) {
    .pf-item-media,
    .pf-ongoing-media {
        flex-direction: column;
    }
}
/* =========================================================
   PUBLIC CONTACT PAGE (redesign)
   Own ".ctc-*" classes — no collision risk with any other
   page's CSS (".contact-page" itself is exclusive to this
   page, verified before editing).
   ========================================================= */

.contact-page {
    --ctc-navy: #173f6b;
    --ctc-gold: #ffb000;
    --ctc-gold-text: #9c6b00;
    --ctc-text: #45566d;
    --ctc-line: #e3e7ec;
    --ctc-gray-bg: #f4f5f7;
    --ctc-gutter: clamp(20px, 4.6vw, 72px);
    background: #ffffff;
}

.contact-page,
.contact-page * {
    font-family: 'Inter', Arial, sans-serif;
}

.ctc-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 var(--ctc-gutter);
}

/* Intro */

.ctc-intro {
    max-width: 680px;
    margin: 0 auto;
    padding: clamp(56px, 7vw, 96px) var(--ctc-gutter) clamp(40px, 4.6vw, 64px);
    text-align: center;
}

.ctc-label {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ctc-gold-text);
}

.ctc-heading {
    margin: 0 0 16px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: var(--ctc-navy);
}

.ctc-intro p.ctc-supporting {
    margin: 0;
    font-size: clamp(15px, 1.05vw, 16.5px);
    line-height: 1.7;
    color: var(--ctc-text);
}

/* Main contact section */

.ctc-main {
    background: var(--ctc-gray-bg);
    padding: clamp(48px, 6vw, 80px) 0;
}

.ctc-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
}

.ctc-main-left h2 {
    margin: 0 0 16px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: var(--ctc-navy);
}

.ctc-main-left p {
    margin: 0 0 28px;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--ctc-text);
}

.ctc-info-company {
    margin: 0 0 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ctc-navy);
}

.ctc-info-block {
    padding-top: 18px;
    border-top: 2px solid var(--ctc-gold);
}

.ctc-info-block + .ctc-info-block {
    margin-top: 22px;
}

.ctc-info-label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ctc-gold-text);
}

.ctc-info-value {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ctc-navy);
}

.ctc-info-value a {
    color: var(--ctc-navy);
    text-decoration: none;
}

.ctc-info-value a:hover {
    color: var(--ctc-gold-text);
}

/* Project CTA */

.ctc-cta {
    padding: clamp(48px, 5.5vw, 72px) var(--ctc-gutter);
    background: var(--ctc-navy);
    color: #ffffff;
    text-align: center;
}

.ctc-cta-inner {
    max-width: 680px;
    margin: 0 auto;
}

.ctc-cta-label {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ctc-gold);
}

.ctc-cta-inner h2 {
    margin: 0 0 14px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.25;
}

.ctc-cta-inner p {
    margin: 0 0 clamp(24px, 3vw, 32px);
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.ctc-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.ctc-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ctc-btn-primary {
    background: var(--ctc-gold);
    border: 1px solid var(--ctc-gold);
    color: var(--ctc-navy);
}

.ctc-btn-primary:hover {
    background: #e6a100;
    border-color: #e6a100;
}

.ctc-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #ffffff;
}

.ctc-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}

.ctc-btn-outline-navy {
    background: transparent;
    border: 1px solid var(--ctc-navy);
    color: var(--ctc-navy);
}

.ctc-btn-outline-navy:hover {
    background: var(--ctc-navy);
    color: #ffffff;
}

/* Scroll-reveal — same technique/values already used on Home/About/Services/Projects */

.contact-page [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.contact-page [data-reveal="left"] {
    transform: translateX(-26px);
}

.contact-page [data-reveal="right"] {
    transform: translateX(26px);
}

.contact-page [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .contact-page [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 800px) {
    .ctc-main-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* LOGIN PAGE */

.login-page{
    background:#173f6b;
    min-height:100vh;
    position:relative;

    display:flex;
    justify-content:center;
    align-items:center;
}

.back-link{
    position:absolute;
    top:20px;
    right:20px;

    color:white;
    text-decoration:none;
}

.login-container{
    text-align:center;
}

.login-container h1{
    color:white;
    font-size:48px;
    margin-bottom:10px;
}

.login-container h1 span{
    color:#f4ae00;
}

.login-subtitle{
    color:#dcdcdc;
    margin-bottom:25px;
}

.login-form{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:15px;
}

.login-form input{
    width:321px;
    box-sizing:border-box;
    padding:12px;

    border:none;
    border-radius:4px;
}

/* PASSWORD TOGGLE */

.password-container{
    position:relative;
    width:320px;
}

.password-container input{
    width:100%;
    padding-right:45px;
}



/* BUTTONS */

.login-buttons{
    display:flex;
    gap:20px;
    align-items:center;
}

.login-buttons a{
    color:white;
    text-decoration:none;
}

.login-buttons button{
    background:none;
    border:none;
    color:white;
    cursor:pointer;
    font-size:16px;
}

.login-buttons a:hover,
.login-buttons button:hover {
    text-decoration: underline;
}

.forgot-password{
    color:white;
    text-decoration:none;
}

.forgot-password:hover,
.back-link:hover {
    text-decoration: underline;
}

.reset-container {
    width: min(100% - 32px, 430px);
}

.reset-container .login-subtitle {
    line-height: 1.5;
}

.reset-submit {
    width: 321px;
    padding: 12px;
    border: 1px solid #f4ae00;
    border-radius: 4px;
    background: #f4ae00;
    color: #173f6b;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.reset-submit:hover {
    background: #ffc332;
}

.form-message {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 4px;
    background: #e7f5ec;
    color: #155f35;
    font-size: 14px;
    line-height: 1.4;
}

.form-message-error {
    background: #fde8e8;
    color: #9d2020;
}

/* Login feedback only; keep other authentication messages unchanged. */
#login-message {
    width: min(100%, 321px, calc(100vw - 32px));
    margin: 0 auto 20px;
    padding: 13px 16px;
    border: 1px solid #bdddc8;
    border-radius: 8px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    text-align: left;
}

#login-message.form-message-error {
    border-color: #efb9b9;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
}
/* REGISTER PAGE */
.user-login-container { width: min(100% - 32px, 620px); padding: 64px 0 32px; }
.user-login-container h1 { font-size: clamp(28px, 7vw, 48px); }
.user-login-container .login-form input,
.user-login-container .password-container { width: min(321px, 100%); }
.user-login-container .password-container input { width: 100%; }
.user-login-container #login-message { box-sizing: border-box; }
/* Login verification modal */
.verification-trigger { margin-top: 20px; padding: 4px; border: 0; background: transparent; color: #f4ae00; font: inherit; font-size: 14px; cursor: pointer; }
.verification-trigger:hover { text-decoration: underline; }
.verification-modal { position: fixed; inset: 0; margin: auto; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; overflow-y: auto; padding: 30px; border: 1px solid #e4eaf0; border-radius: 18px; background: #fff; color: #173f6b; box-shadow: 0 24px 80px rgba(0, 0, 0, .28); text-align: left; }
.verification-modal::backdrop { background: rgba(8, 24, 43, .72); }
body.verification-modal-open { overflow: hidden; }
.verification-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; background: #fff4ce; color: #173f6b; }
.verification-modal h2 { margin: 0 28px 10px 0; color: #173f6b; font-size: 24px; line-height: 1.25; }
#verification-description { margin: 0 0 20px; color: #586b7e; font-size: 14px; line-height: 1.6; }
.verification-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f5f8; color: #586b7e; font-size: 26px; cursor: pointer; }
#verification-form { display: flex; flex-direction: column; gap: 10px; }
#verification-form label { font-size: 13px; font-weight: 700; }
#verification-form input { width: 100%; min-width: 0; box-sizing: border-box; padding: 12px 14px; border: 1px solid #ced8e2; border-radius: 8px; background: #f8fafc; color: #173f6b; font: inherit; font-size: 16px; }
.verification-hint { margin: 0 0 8px; color: #687b8d; font-size: 12px; line-height: 1.5; }
.verification-submit, .verification-cancel { width: 100%; padding: 12px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.verification-submit { border: 1px solid #f4ae00; background: #f4ae00; color: #173f6b; }
.verification-submit:hover { background: #ffc332; }
.verification-submit:disabled { opacity: .65; cursor: wait; }
.verification-cancel { border: 1px solid #dce4ec; background: #fff; color: #173f6b; }
.verification-cancel:hover, .verification-close:hover { background: #eaf0f5; }
.verification-modal :focus-visible, .verification-trigger:focus-visible { outline: 3px solid #c58a00; outline-offset: 3px; }
.verification-message { margin: 0 0 18px; padding: 12px; border: 1px solid #bdddc8; border-radius: 8px; background: #e7f5ec; color: #155f35; font-size: 13px; line-height: 1.5; }
.verification-message[data-tone="wait"] { border-color: #eed898; background: #fff8e5; color: #795a12; }
.verification-message[data-tone="error"] { border-color: #efb9b9; background: #fde8e8; color: #9d2020; }
@media (max-width: 400px) { .verification-modal { padding: 24px 20px; } }


/* =========================================================
   PUBLIC LOGIN PAGE (redesign)
   Visual/UX only. All new rules are scoped under ".bl-*"
   ancestors so nothing here touches the shared base rules
   above (".login-page", ".login-container", ".login-subtitle",
   ".login-form", ".password-container", ".toggle-password",
   ".auth-field-error", "#login-message") — those are also used
   by Forgot Password, Reset Password, Register and Verify
   Notice, and are left byte-for-byte untouched.
   ========================================================= */

.bl-shell {
    width: 100%;
    min-height: 100vh;
    align-self: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.bl-shell,
.bl-shell * {
    font-family: 'Inter', Arial, sans-serif;
    box-sizing: border-box;
}

/* Brand panel (left) */

.bl-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
    background-color: #173f6b;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 34px 34px;
    color: #ffffff;
}

.bl-brand > * {
    position: relative;
    z-index: 1;
}

/* Decorative architectural house outline — same technique/values as the
   Home hero blueprint motif (grid + single static-draw SVG line, low
   opacity, no loop), reused here since it's delivered through this
   shared stylesheet rather than Home's page-local <style> block. */
.bl-blueprint {
    position: absolute;
    right: -60px;
    bottom: -46px;
    width: 340px;
    height: 260px;
    z-index: 0;
    fill: none;
    pointer-events: none;
}

.bl-blueprint-wall,
.bl-blueprint-roof {
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.bl-blueprint-wall {
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
    animation: bl-blueprint-draw 1.3s ease-out 0.15s forwards;
}

.bl-blueprint-roof {
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: bl-blueprint-draw 1s ease-out 1.05s forwards;
}

@keyframes bl-blueprint-draw {
    to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .bl-blueprint-wall,
    .bl-blueprint-roof {
        animation: none;
        stroke-dashoffset: 0;
    }
}

.bl-brand > .bl-blueprint {
    position: absolute;
    z-index: 0;
}

.bl-brand-content {
    max-width: 420px;
}

.bl-brand-logo {
    display: block;
    width: 168px;
    height: auto;
    margin-bottom: 28px;
}

.bl-brand-label {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffb000;
}

.bl-brand-heading {
    margin: 0 0 16px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: #ffffff;
}

.bl-brand-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
}

/* Form panel (right) */

.bl-form-panel {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: clamp(28px, 4vw, 56px);
    overflow-y: auto;
}

.bl-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-bottom: clamp(24px, 4vw, 48px);
    font-size: 14px;
    font-weight: 500;
    color: #45566d;
    text-decoration: none;
}

.bl-back-link:hover {
    color: #173f6b;
}

.bl-auth-box {
    width: 100%;
    max-width: 380px;
    margin: auto;
    text-align: left;
}

.bl-form-heading {
    margin: 0 0 8px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: #173f6b;
}

.bl-form-subtitle {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.6;
    color: #45566d;
}

.user-login-container.bl-auth-box #login-message {
    width: 100%;
    box-sizing: border-box;
}

/* Override the shared centered/fixed-width .login-form treatment with a
   comfortable full-width stacked layout, scoped to this page only.
   Selectors combine ".user-login-container.bl-auth-box" (both classes
   are present on the same element in the new markup) so they always
   outrank the pre-existing ".user-login-container ..." rules by
   specificity, regardless of source order. */
.bl-form-panel .login-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
}

.bl-field-label {
    margin: 14px 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #173f6b;
}

.bl-form-panel .login-form label:first-of-type {
    margin-top: 0;
}

.user-login-container.bl-auth-box .login-form input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d7dee6;
    border-radius: 6px;
    background: #ffffff;
    color: #173f6b;
    font-size: 15px;
    font-family: 'Inter', Arial, sans-serif;
}

.bl-form-panel .login-form input::placeholder {
    color: #93a2b3;
}

.bl-form-panel .login-form input:focus-visible {
    outline: 2px solid #173f6b;
    outline-offset: 1px;
    border-color: #173f6b;
}

.user-login-container.bl-auth-box .password-container {
    width: 100%;
}

.user-login-container.bl-auth-box .password-container input {
    padding-right: 46px;
}

.user-login-container.bl-auth-box .auth-field-error {
    display: block;
    width: 100%;
    min-height: 1em;
    margin-top: 4px;
    font-size: 12.5px;
    color: #b3261e;
}

.bl-submit {
    width: 100%;
    margin-top: 18px;
    padding: 13px 20px;
    border: 1px solid #ffb000;
    border-radius: 6px;
    background: #ffb000;
    color: #173f6b;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.bl-submit:hover {
    background: #e6a100;
    border-color: #e6a100;
}

.bl-submit:focus-visible {
    outline: 2px solid #173f6b;
    outline-offset: 2px;
}

.bl-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.bl-forgot-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: #45566d;
    text-decoration: none;
}

.bl-forgot-link:hover {
    color: #173f6b;
    text-decoration: underline;
}

.bl-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9aa8b8;
}

.bl-divider::before,
.bl-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e3e7ec;
}

.bl-create-account-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #173f6b;
    border-radius: 6px;
    background: transparent;
    color: #173f6b;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease;
}

.bl-create-account-btn:hover {
    background: #173f6b;
    color: #ffffff;
}

.bl-create-account-btn:focus-visible,
.bl-back-link:focus-visible,
.bl-forgot-link:focus-visible {
    outline: 2px solid #173f6b;
    outline-offset: 2px;
}

@media (max-width: 860px) {
    .bl-brand-content {
        max-width: 360px;
    }
}

@media (max-width: 760px) {
    .bl-shell {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .bl-brand {
        padding: 40px 32px;
        min-height: 260px;
    }

    .bl-brand-logo {
        width: 140px;
        margin-bottom: 18px;
    }

    .bl-blueprint {
        width: 260px;
        height: 200px;
        right: -40px;
        bottom: -60px;
    }

    .bl-form-panel {
        overflow-y: visible;
    }

    .bl-auth-box {
        max-width: 420px;
        margin: 0 auto;
    }
}


/* =========================================================
   PUBLIC REGISTER PAGE (redesign)
   Sibling of the Login page — same color/typography/spacing
   system, distinct brand-panel composition and copy. All new
   structural classes are ".rg-*", exclusive to this page.
   ".register-form", ".password-container", ".toggle-password"
   and ".auth-field-error" keep their exact names (required by
   BuildEase_JS/password-toggle.js's registration validation
   block and by auth/register.php's server-side error
   injection) — only their visual treatment changes, via
   ".register-form" itself (confirmed exclusive to this page,
   so it can be restyled directly) or via specificity-scoped
   overrides for the two truly shared base classes.
   ========================================================= */

.rg-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.rg-shell,
.rg-shell * {
    font-family: 'Inter', Arial, sans-serif;
    box-sizing: border-box;
}

/* Brand panel (left) */

.rg-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
    background-color: #173f6b;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 34px 34px;
    color: #ffffff;
}

.rg-brand > * {
    position: relative;
    z-index: 1;
}

/* Decorative architectural floor-plan outline — a distinct composition
   from the Login hero's house silhouette (outer walls + two internal
   partitions + a door-swing arc), using the same low-opacity static-draw
   SVG technique already established on Home/Login. Purely decorative,
   non-interactive, plays once. */
.rg-blueprint {
    position: absolute;
    left: -40px;
    bottom: -30px;
    width: 320px;
    height: 240px;
    z-index: 0;
    fill: none;
    pointer-events: none;
}

.rg-blueprint-outline,
.rg-blueprint-wall,
.rg-blueprint-door,
.rg-blueprint-tick {
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.rg-blueprint-tick {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 1;
}

.rg-blueprint-outline {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: rg-blueprint-draw 1.4s ease-out 0.1s forwards;
}

.rg-blueprint-wall {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: rg-blueprint-draw 0.8s ease-out 1s forwards;
}

.rg-blueprint-wall.rg-blueprint-wall-2 {
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: rg-blueprint-draw 0.6s ease-out 1.3s forwards;
}

.rg-blueprint-door {
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
    animation: rg-blueprint-draw 0.5s ease-out 1.7s forwards;
}

.rg-blueprint-tick {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: rg-blueprint-draw 0.5s ease-out 1.9s forwards;
}

@keyframes rg-blueprint-draw {
    to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .rg-blueprint-outline,
    .rg-blueprint-wall,
    .rg-blueprint-door,
    .rg-blueprint-tick {
        animation: none;
        stroke-dashoffset: 0;
    }
}

.rg-brand > .rg-blueprint {
    position: absolute;
    z-index: 0;
}

.rg-brand-content {
    max-width: 440px;
}

.rg-brand-logo {
    display: block;
    width: 168px;
    height: auto;
    margin-bottom: 28px;
}

.rg-brand-label {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffb000;
}

.rg-brand-heading {
    margin: 0 0 16px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.15;
    color: #ffffff;
}

.rg-brand-text {
    margin: 0 0 32px;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
}

/* Restrained 01 / 02 / 03 onboarding sequence — plain typography/lines,
   no cards or icons. */
.rg-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
}

.rg-step {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.rg-step:first-child {
    border-top: none;
    padding-top: 0;
}

.rg-step-number {
    flex: 0 0 auto;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: 20px;
    letter-spacing: 0.5px;
    color: #ffb000;
}

.rg-step-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

/* Form panel (right) */

.rg-form-panel {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: clamp(28px, 4vw, 56px);
    overflow-y: auto;
}

.rg-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-bottom: clamp(20px, 3vw, 36px);
    font-size: 14px;
    font-weight: 500;
    color: #45566d;
    text-decoration: none;
}

.rg-back-link:hover {
    color: #173f6b;
}

.rg-back-link:focus-visible {
    outline: 2px solid #173f6b;
    outline-offset: 2px;
}

.rg-auth-box {
    width: 100%;
    max-width: 420px;
    margin: auto;
    text-align: left;
    background: #ffffff;
}

.rg-form-heading {
    margin: 0 0 8px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: #173f6b;
}

.rg-form-subtitle {
    margin: 0 0 26px;
    font-size: 15px;
    line-height: 1.6;
    color: #45566d;
}

/* ".register-form" is exclusive to this page, so it can be restyled
   directly (no scoping needed to protect any other page). */
.register-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

.rg-field-label {
    margin: 4px 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #173f6b;
}

.register-form label:first-of-type {
    margin-top: 0;
}

.register-form input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d7dee6;
    border-radius: 6px;
    background: #ffffff;
    color: #173f6b;
    font-size: 15px;
    font-family: 'Inter', Arial, sans-serif;
    box-sizing: border-box;
}

.register-form input::placeholder {
    color: #93a2b3;
}

.register-form input:focus-visible {
    outline: 2px solid #173f6b;
    outline-offset: 1px;
    border-color: #173f6b;
}

.register-form .password-container input {
    padding-right: 46px;
}
/* Middle Name: required unless "I don't have a middle name" is ticked (2026-11-27). Scoped to the register form. */
.register-form .rg-no-middle-name { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: #173f6b; font-size: 13px; font-weight: 500; cursor: pointer; }
.register-form .rg-no-middle-name input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; padding: 0; accent-color: #173f6b; cursor: pointer; }
.register-form .rg-field-help { color: #5b6b7c; font-size: 12px; line-height: 1.4; }
.register-form input:disabled { background: #f3f5f8; color: #93a2b3; }

/* Specificity-scoped override for the two classes this page shares with
   Login/ResetPassword (".password-container", ".auth-field-error") —
   combines with ".rg-auth-box" so it always outranks the shared base
   rules without editing them. ".auth-field-error" also has a later,
   equally-specific shared rule elsewhere in this file
   (".register-form .auth-field-error, .user-login-container
   .auth-field-error"), so that override adds ".register-form" too
   (3 classes) to win on specificity rather than relying on source
   order. */
.rg-auth-box .password-container {
    width: 100%;
}

.rg-auth-box .register-form .auth-field-error {
    display: block;
    width: 100%;
    min-height: 1em;
    margin-top: 4px;
    font-size: 12.5px;
    color: #b3261e;
}

.rg-submit {
    width: 100%;
    margin-top: 18px;
    padding: 13px 20px;
    border: 1px solid #ffb000;
    border-radius: 6px;
    background: #ffb000;
    color: #173f6b;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.rg-submit:hover {
    background: #e6a100;
    border-color: #e6a100;
}

.rg-submit:focus-visible {
    outline: 2px solid #173f6b;
    outline-offset: 2px;
}

.rg-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.rg-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9aa8b8;
}

.rg-divider::before,
.rg-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e3e7ec;
}

.rg-signin-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #173f6b;
    border-radius: 6px;
    background: transparent;
    color: #173f6b;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease;
}

.rg-signin-btn:hover {
    background: #173f6b;
    color: #ffffff;
}

.rg-signin-btn:focus-visible {
    outline: 2px solid #173f6b;
    outline-offset: 2px;
}

@media (max-width: 860px) {
    .rg-brand-content {
        max-width: 380px;
    }
}

@media (max-width: 760px) {
    .rg-shell {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .rg-brand {
        padding: 32px 28px;
        min-height: 0;
    }

    .rg-brand-logo {
        width: 128px;
        margin-bottom: 16px;
    }

    .rg-brand-text {
        margin-bottom: 0;
    }

    /* Keep the new-user journey compact on mobile: the decorative
       onboarding sequence steps aside so the registration form isn't
       pushed below the fold. */
    .rg-steps {
        display: none;
    }

    .rg-blueprint {
        width: 220px;
        height: 170px;
        left: -30px;
        bottom: -40px;
    }

    .rg-form-panel {
        overflow-y: visible;
    }

    .rg-auth-box {
        max-width: 440px;
        margin: 0 auto;
    }
}



/* =========================================================
   PUBLIC FORGOT PASSWORD PAGE (redesign)
   Third sibling of the Login/Register auth family — same
   color/typography/spacing system, its own "reconnecting
   blueprint" composition and recovery-focused copy. All new
   structural classes are ".fp-*", exclusive to this page.
   ".login-page", ".back-link", ".login-container",
   ".reset-container", ".login-subtitle", ".login-form",
   ".form-message"/".form-message-error" and ".reset-submit"
   keep their exact names where still present (some are shared
   with Login/ResetPassword/VerifyNotice) but are not reused as
   this page's visual system — new markup uses fresh ".fp-*"
   classes instead, and the shared base rules are left
   byte-for-byte untouched.
   ========================================================= */

.fp-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.fp-shell,
.fp-shell * {
    font-family: 'Inter', Arial, sans-serif;
    box-sizing: border-box;
}

/* Brand panel (left) */

.fp-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
    background-color: #173f6b;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 34px 34px;
    color: #ffffff;
}

.fp-brand > * {
    position: relative;
    z-index: 1;
}

/* Decorative architectural "reconnecting" blueprint — two open
   structure fragments joined by a beam that draws in last, once
   both fragments are complete. Distinct from Login's house and
   Register's floor plan; abstract, no lock/key/shield/email icon.
   Same low-opacity static-draw SVG technique used elsewhere. */
.fp-blueprint {
    position: absolute;
    right: -50px;
    top: -30px;
    width: 320px;
    height: 240px;
    z-index: 0;
    fill: none;
    pointer-events: none;
}

.fp-blueprint-fragment,
.fp-blueprint-bridge,
.fp-blueprint-node {
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.fp-blueprint-fragment-left {
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: fp-blueprint-draw 1.1s ease-out 0.1s forwards;
}

.fp-blueprint-fragment-right {
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: fp-blueprint-draw 1.1s ease-out 0.5s forwards;
}

.fp-blueprint-bridge {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: fp-blueprint-draw 0.6s ease-out 1.3s forwards;
}

.fp-blueprint-node {
    stroke: rgba(255, 176, 0, 0.35);
    stroke-width: 1.5;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: fp-blueprint-draw 0.4s ease-out 1.7s forwards;
}

@keyframes fp-blueprint-draw {
    to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .fp-blueprint-fragment,
    .fp-blueprint-bridge,
    .fp-blueprint-node {
        animation: none;
        stroke-dashoffset: 0;
    }
}

.fp-brand > .fp-blueprint {
    position: absolute;
    z-index: 0;
}

.fp-brand-content {
    max-width: 420px;
}

.fp-brand-logo {
    display: block;
    width: 168px;
    height: auto;
    margin-bottom: 28px;
}

.fp-brand-label {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffb000;
}

.fp-brand-heading {
    margin: 0 0 16px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.15;
    color: #ffffff;
}

.fp-brand-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
}

/* Form panel (right) */

.fp-form-panel {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: clamp(28px, 4vw, 56px);
    overflow-y: auto;
}

.fp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-bottom: clamp(24px, 4vw, 48px);
    font-size: 14px;
    font-weight: 500;
    color: #45566d;
    text-decoration: none;
}

.fp-back-link:hover {
    color: #173f6b;
}

.fp-back-link:focus-visible {
    outline: 2px solid #173f6b;
    outline-offset: 2px;
}

.fp-auth-box {
    width: 100%;
    max-width: 380px;
    margin: auto;
    text-align: left;
}

.fp-form-heading {
    margin: 0 0 8px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: #173f6b;
}

.fp-form-subtitle {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.6;
    color: #45566d;
}

/* Status message — reuses the existing ".form-message"/".form-message-error"
   classes (unchanged, shared with Login/ResetPassword) with a scoped,
   higher-specificity visual refinement so it matches this page's new
   input/typography treatment without touching the shared base rule. */
.fp-auth-box .form-message {
    margin: 0 0 20px;
    padding: 13px 16px;
    border: 1px solid #bdddc8;
    border-radius: 8px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13.5px;
    line-height: 1.6;
}

.fp-auth-box .form-message.form-message-error {
    border-color: #efb9b9;
}

.fp-field-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #173f6b;
}

.fp-auth-box .login-form {
    display: block;
    width: 100%;
}

.fp-auth-box .login-form input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d7dee6;
    border-radius: 6px;
    background: #ffffff;
    color: #173f6b;
    font-size: 15px;
    font-family: 'Inter', Arial, sans-serif;
    box-sizing: border-box;
}

.fp-auth-box .login-form input::placeholder {
    color: #93a2b3;
}

.fp-auth-box .login-form input:focus-visible {
    outline: 2px solid #173f6b;
    outline-offset: 1px;
    border-color: #173f6b;
}

.fp-submit {
    width: 100%;
    margin-top: 18px;
    padding: 13px 20px;
    border: 1px solid #ffb000;
    border-radius: 6px;
    background: #ffb000;
    color: #173f6b;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.fp-submit:hover {
    background: #e6a100;
    border-color: #e6a100;
}

.fp-submit:focus-visible {
    outline: 2px solid #173f6b;
    outline-offset: 2px;
}

.fp-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9aa8b8;
}

.fp-divider::before,
.fp-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e3e7ec;
}

.fp-signin-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #173f6b;
    border-radius: 6px;
    background: transparent;
    color: #173f6b;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease;
}

.fp-signin-btn:hover {
    background: #173f6b;
    color: #ffffff;
}

.fp-signin-btn:focus-visible {
    outline: 2px solid #173f6b;
    outline-offset: 2px;
}

@media (max-width: 860px) {
    .fp-brand-content {
        max-width: 360px;
    }
}

@media (max-width: 760px) {
    .fp-shell {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .fp-brand {
        padding: 36px 32px;
        min-height: 200px;
    }

    .fp-brand-logo {
        width: 140px;
        margin-bottom: 18px;
    }

    .fp-blueprint {
        width: 240px;
        height: 180px;
        right: -40px;
        top: -30px;
    }

    .fp-form-panel {
        overflow-y: visible;
    }

    .fp-auth-box {
        max-width: 420px;
        margin: 0 auto;
    }
}


/* =========================================================
   PUBLIC RESET PASSWORD PAGE (redesign)
   Fourth sibling of the Login/Register/Forgot Password auth
   family — same color/typography/spacing system, its own
   "completing structure / new foundation" composition. All new
   structural classes are ".rp-*", exclusive to this page.
   ".login-page", ".back-link", ".login-container",
   ".reset-container", ".login-subtitle", ".login-form",
   ".password-container", ".toggle-password", ".form-message"/
   ".form-message-error" and ".reset-submit" keep their exact
   names where still present (shared with Forgot Password and/or
   Login/Register) but this page's new markup uses fresh ".rp-*"
   classes instead — the shared base rules are left byte-for-byte
   untouched.
   ========================================================= */

.rp-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.rp-shell,
.rp-shell * {
    font-family: 'Inter', Arial, sans-serif;
    box-sizing: border-box;
}

/* Brand panel (left) */

.rp-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
    background-color: #173f6b;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 34px 34px;
    color: #ffffff;
}

.rp-brand > * {
    position: relative;
    z-index: 1;
}

/* Decorative "completing structure" blueprint — a simple roof +
   walls outline that finishes with a reinforced foundation line
   (drawn last, in gold), suggesting a structure being completed on
   a new foundation. Distinct from Login's house, Register's floor
   plan and Forgot Password's reconnecting fragments. Same
   low-opacity static-draw SVG technique used elsewhere. */
.rp-blueprint {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 320px;
    height: 240px;
    z-index: 0;
    fill: none;
    pointer-events: none;
}

.rp-blueprint-roof,
.rp-blueprint-wall,
.rp-blueprint-foundation {
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.rp-blueprint-roof {
    stroke-dasharray: 250;
    stroke-dashoffset: 250;
    animation: rp-blueprint-draw 1s ease-out 0.1s forwards;
}

.rp-blueprint-wall {
    stroke-dasharray: 180;
    stroke-dashoffset: 180;
    animation: rp-blueprint-draw 0.7s ease-out 0.5s forwards;
}

.rp-blueprint-foundation-base {
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    animation: rp-blueprint-draw 0.7s ease-out 1s forwards;
}

.rp-blueprint-foundation-new {
    stroke: rgba(255, 176, 0, 0.4);
    stroke-width: 2;
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    animation: rp-blueprint-draw 0.6s ease-out 1.5s forwards;
}

@keyframes rp-blueprint-draw {
    to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .rp-blueprint-roof,
    .rp-blueprint-wall,
    .rp-blueprint-foundation-base,
    .rp-blueprint-foundation-new {
        animation: none;
        stroke-dashoffset: 0;
    }
}

.rp-brand > .rp-blueprint {
    position: absolute;
    z-index: 0;
}

.rp-brand-content {
    max-width: 420px;
}

.rp-brand-logo {
    display: block;
    width: 168px;
    height: auto;
    margin-bottom: 28px;
}

.rp-brand-label {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffb000;
}

.rp-brand-heading {
    margin: 0 0 16px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.15;
    color: #ffffff;
}

.rp-brand-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
}

/* Form panel (right) */

.rp-form-panel {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: clamp(28px, 4vw, 56px);
    overflow-y: auto;
}

.rp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-bottom: clamp(24px, 4vw, 48px);
    font-size: 14px;
    font-weight: 500;
    color: #45566d;
    text-decoration: none;
}

.rp-back-link:hover {
    color: #173f6b;
}

.rp-back-link:focus-visible {
    outline: 2px solid #173f6b;
    outline-offset: 2px;
}

.rp-auth-box {
    width: 100%;
    max-width: 380px;
    margin: auto;
    text-align: left;
}

.rp-form-heading {
    margin: 0 0 8px;
    font-family: 'Bebas Neue', 'Inter', Arial, sans-serif;
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: #173f6b;
}

.rp-form-subtitle {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.6;
    color: #45566d;
}

/* Status message — reuses the existing ".form-message"/".form-message-error"
   classes (unchanged, shared with Login/Forgot Password) with a scoped,
   higher-specificity visual refinement so it matches this page's new
   input/typography treatment without touching the shared base rule. */
.rp-auth-box .form-message {
    margin: 0 0 20px;
    padding: 13px 16px;
    border: 1px solid #efb9b9;
    border-radius: 8px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13.5px;
    line-height: 1.6;
}

.rp-field-label {
    display: block;
    margin: 14px 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #173f6b;
}

.rp-auth-box .login-form label:first-of-type {
    margin-top: 0;
}

.rp-hint {
    margin: 6px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #6b7c8d;
}

.rp-auth-box .login-form {
    display: block;
    width: 100%;
}

/* Combines three classes (.rp-form-panel .rp-auth-box .password-container)
   to reliably outrank the later, equally-common-specificity shared rule
   ".reset-container .password-container { width: 321px; }" regardless of
   source order, without editing that shared rule (also used implicitly
   via ".reset-container" on this page). */
.rp-form-panel .rp-auth-box .password-container {
    width: 100%;
    margin-top: 0;
}

.rp-auth-box .login-form input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d7dee6;
    border-radius: 6px;
    background: #ffffff;
    color: #173f6b;
    font-size: 15px;
    font-family: 'Inter', Arial, sans-serif;
    box-sizing: border-box;
}

.rp-auth-box .login-form input::placeholder {
    color: #93a2b3;
}

.rp-auth-box .login-form input:focus-visible {
    outline: 2px solid #173f6b;
    outline-offset: 1px;
    border-color: #173f6b;
}

.rp-form-panel .rp-auth-box .password-container input {
    padding-right: 46px;
}

.rp-submit {
    width: 100%;
    margin-top: 20px;
    padding: 13px 20px;
    border: 1px solid #ffb000;
    border-radius: 6px;
    background: #ffb000;
    color: #173f6b;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.rp-submit:hover {
    background: #e6a100;
    border-color: #e6a100;
}

.rp-submit:focus-visible {
    outline: 2px solid #173f6b;
    outline-offset: 2px;
}

.rp-request-link {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 12px 20px;
    border: 1px solid #173f6b;
    border-radius: 6px;
    background: transparent;
    color: #173f6b;
    font-size: 14.5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease;
}

.rp-request-link:hover {
    background: #173f6b;
    color: #ffffff;
}

.rp-request-link:focus-visible {
    outline: 2px solid #173f6b;
    outline-offset: 2px;
}

.rp-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9aa8b8;
}

.rp-divider::before,
.rp-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e3e7ec;
}

.rp-signin-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #173f6b;
    border-radius: 6px;
    background: transparent;
    color: #173f6b;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease;
}

.rp-signin-btn:hover {
    background: #173f6b;
    color: #ffffff;
}

.rp-signin-btn:focus-visible {
    outline: 2px solid #173f6b;
    outline-offset: 2px;
}

@media (max-width: 860px) {
    .rp-brand-content {
        max-width: 360px;
    }
}

@media (max-width: 760px) {
    .rp-shell {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .rp-brand {
        padding: 36px 32px;
        min-height: 200px;
    }

    .rp-brand-logo {
        width: 140px;
        margin-bottom: 18px;
    }

    .rp-blueprint {
        width: 240px;
        height: 180px;
        right: -30px;
        bottom: -50px;
    }

    .rp-form-panel {
        overflow-y: visible;
    }

    .rp-auth-box {
        max-width: 420px;
        margin: 0 auto;
    }
}


/* DASHBOARD */

.dashboard-page{
    --dashboard-sidebar-width:260px;
    display:flex;
    min-height:100vh;
    background:#f5f5f5;
}

.dashboard-sidebar{
    width:var(--dashboard-sidebar-width);
    background:#173f6b;
    color:white;
    display:flex;
    flex-direction:column;
}

.dashboard-logo{
    padding:25px;
    text-align:center;
}

.dashboard-logo img{
    width:200px;
    max-width:100%;
    height:auto;
    object-fit:contain;
}

.dashboard-menu{
    list-style:none;
    padding:0;
    margin:0;
}

.dashboard-menu li{
    padding:18px 28px;
    cursor:pointer;
    font-size:18px;
}

.dashboard-menu .active{
    background:#f4ae00;
}

.dashboard-menu li:not(.active):hover{
    background:rgba(255,255,255,.1);
}

.dashboard-sidebar .dashboard-menu li a {
    color: white !important;
    text-decoration: none !important;
}

.dashboard-menu li a {
    color: white;
    text-decoration: none;
    display: block;
}

.logout-btn{
    margin-top:36px;
    padding:18px 28px;
    color:white;
    text-decoration:none;
    display:block;
    cursor:pointer;
}

.logout-btn:hover{
    background:rgba(255,255,255,.1);
}

.logout-confirm-overlay{
    position:fixed;
    inset:0;
    z-index:2000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(0,0,0,.55);
}

/* The dialog is created on page load but must only appear after Logout is clicked. */
.logout-confirm-overlay[hidden]{
    display:none !important;
}

.logout-confirm-dialog{
    width:min(100%, 380px);
    padding:28px;
    border-radius:10px;
    background:#fff;
    box-shadow:0 12px 35px rgba(0,0,0,.28);
    text-align:center;
}

.logout-confirm-dialog p{
    margin:0 0 24px;
    color:#173f6b;
    font-size:20px;
    font-weight:700;
}

.logout-confirm-actions{
    display:flex;
    justify-content:center;
    gap:12px;
}

.logout-confirm-actions button{
    min-width:112px;
    padding:10px 14px;
    border:1px solid #173f6b;
    border-radius:5px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
}

.logout-confirm-yes{
    background:#173f6b;
    color:#fff;
}

.logout-confirm-cancel{
    background:#fff;
    color:#173f6b;
}

.logout-confirm-actions button:hover{
    filter:brightness(.92);
}

@media (max-width:420px){
    .logout-confirm-dialog{
        padding:24px 18px;
    }

    .logout-confirm-actions{
        flex-direction:column;
    }

    .logout-confirm-actions button{
        width:100%;
    }
}

.dashboard-content{
    flex:1;
    padding:35px;
}

/* Client desktop shell: the document scrolls beside a fixed sidebar. Keep the existing mobile
   layouts (including Settings' horizontal navigation) below this breakpoint. */
@media (min-width:701px){
    .dashboard-page{
        padding-left:var(--dashboard-sidebar-width);
    }

    .dashboard-page > .dashboard-sidebar{
        position:fixed;
        top:0;
        left:0;
        height:100vh;
        height:100dvh;
        overflow:hidden;
    }

    .dashboard-sidebar > .dashboard-logo,
    .dashboard-sidebar > .logout-btn{
        flex-shrink:0;
    }

    /* Share limited height between rows rather than scrolling the menu.
       Font size, label padding, and full-size rows remain unchanged. */
    .dashboard-sidebar > .dashboard-menu{
        display:flex;
        flex-direction:column;
        padding:0 13px;
        margin-bottom:37px;
        min-height:0;
    }

    /* Match the Admin navigation's 14px type and 44px rows, while retaining
       the Client colors and existing navigation structure. */
    .dashboard-sidebar .dashboard-menu li{
        flex:0 1 44px;
        min-height:18px;
        padding:0;
        font-size:14px;
        line-height:normal;
    }

    .dashboard-sidebar .dashboard-menu li + li{
        margin-top:5px;
    }

    .dashboard-sidebar .dashboard-menu li a{
        display:flex;
        align-items:center;
        padding:0 14px;
        min-height:18px;
        height:100%;
        font-size:14px;
        font-weight:500;
        line-height:normal;
        white-space:nowrap;
    }

    .dashboard-sidebar .dashboard-menu li.active{
        background:#f4ae00;
        border-radius:6px;
    }

    .dashboard-sidebar .dashboard-menu li.active a{
        color:#111827 !important;
        font-weight:600;
    }

    .dashboard-sidebar > .logout-btn{
        position:relative;
        margin-top:auto;
        margin-right:13px;
        margin-bottom:18px;
        margin-left:13px;
        padding:10px 14px;
        font-size:14px;
        font-weight:400;
        line-height:normal;
    }

    /* Match the Admin footer's full-width divider and 18px inner spacing
       without adding a wrapper or changing the existing Logout link. */
    .dashboard-sidebar > .logout-btn::before{
        content:"";
        position:absolute;
        top:-19px;
        left:-13px;
        right:-13px;
        border-top:1px solid rgba(255,255,255,.15);
        pointer-events:none;
    }

    .dashboard-page > .dashboard-content,
    .dashboard-page > .settings-main{
        min-width:0;
        min-height:0;
    }
}

.dashboard-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}

.dashboard-user{
    font-size:18px;
    font-weight:600;
}

.dashboard-subtitle{
    color:#666;
    margin-top:10px;
}

.dashboard-top{
    display:flex;
    gap:25px;
    margin-top:25px;
    align-items:flex-start;
}

.hero-card{
    flex:1;
    display:flex;
    overflow:hidden;
    border-radius:12px;
    background:white;
    box-shadow:0 0 10px rgba(0,0,0,.08);
}

.hero-left{
    width:45%;
    background:#173f6b;
    color:white;
    padding:40px;
}

/* Dashboard hero blueprint decoration */
.dashboard-page .hero-left{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    background-color:#173f6b;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size:34px 34px;
}

.dashboard-page .hero-left::before,
.dashboard-page .hero-left::after{
    content:"";
    position:absolute;
    pointer-events:none;
    z-index:0;
}

.dashboard-page .hero-left::before{
    width:172px;
    height:122px;
    right:-28px;
    bottom:-24px;
    border:1px solid rgba(255,255,255,.14);
    box-shadow:
        -34px 27px 0 -1px rgba(255,255,255,.09),
        -72px 54px 0 -1px rgba(244,174,0,.12);
    clip-path:polygon(0 0, 0 0, 0 0, 0 0);
    animation:
        blueprint-wall-draw 2.8s cubic-bezier(.4,0,.2,1) forwards,
        blueprint-line-pulse 6s 3.1s ease-in-out infinite;
}

.dashboard-page .hero-left::after{
    width:122px;
    height:122px;
    right:20px;
    bottom:28px;
    border-top:1px solid rgba(255,255,255,.18);
    border-left:1px solid rgba(255,255,255,.14);
    transform:rotate(45deg);
    transform-origin:center;
    clip-path:polygon(0 0, 0 0, 0 0, 0 0);
    animation:
        blueprint-roof-draw 2.1s .65s cubic-bezier(.4,0,.2,1) forwards,
        blueprint-roof-pulse 6s 3.1s ease-in-out infinite;
}

@keyframes blueprint-wall-draw{
    0%{clip-path:polygon(0 0, 0 0, 0 0, 0 0);}
    34%{clip-path:polygon(0 0, 100% 0, 100% 1px, 0 1px);}
    68%{clip-path:polygon(0 0, 100% 0, 100% 100%, 99% 100%);}
    100%{clip-path:polygon(0 0, 100% 0, 100% 100%, 0 100%);}
}

@keyframes blueprint-roof-draw{
    0%{clip-path:polygon(0 0, 0 0, 0 0, 0 0); transform:rotate(45deg);}
    45%{clip-path:polygon(0 0, 100% 0, 100% 1px, 0 1px); transform:rotate(45deg);}
    100%{clip-path:polygon(0 0, 100% 0, 100% 100%, 0 100%); transform:rotate(45deg);}
}

@keyframes blueprint-line-pulse{
    0%, 100%{filter:drop-shadow(0 0 0 rgba(244,174,0,0));}
    50%{filter:drop-shadow(0 0 3px rgba(244,174,0,.16));}
}

@keyframes blueprint-roof-pulse{
    0%, 100%{transform:rotate(45deg) translate3d(0,0,0);}
    50%{transform:rotate(45deg) translate3d(-1px,-1px,0);}
}

.dashboard-page .hero-left > *{
    position:relative;
    z-index:1;
}

@media(max-width:768px){
    .dashboard-page .hero-left{
        background-size:42px 42px;
    }

    .dashboard-page .hero-left::after{
        display:none;
    }

    .dashboard-page .hero-left::before{
        opacity:.65;
        right:-70px;
    }
}

@media(prefers-reduced-motion:reduce){
    .dashboard-page .hero-left::before,
    .dashboard-page .hero-left::after{
        animation:none;
        clip-path:none;
    }
}

.hero-left h2{
    margin-bottom:15px;
}

.hero-left p{
    line-height:1.6;
    margin-bottom:20px;
}

.hero-buttons{
    display:flex;
    gap:10px;
}

.inquiry-btn{
    background:#f4ae00;
    border:none;
    padding:10px 15px;
    border-radius:5px;
    cursor:pointer;
}

.estimate-btn{
    background:white;
    border:none;
    padding:10px 15px;
    border-radius:5px;
    cursor:pointer;
}

.hero-image{
    width:55%;
}

.hero-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* Dashboard hero image motion */
.dashboard-page .hero-image{
    overflow:hidden;
}

.dashboard-page .hero-image img{
    animation:dashboard-hero-pan 16s ease-in-out infinite alternate;
    will-change:transform;
}

@keyframes dashboard-hero-pan{
    from{
        transform:scale(1) translate3d(0, 0, 0);
    }

    to{
        transform:scale(1.045) translate3d(-1%, -0.6%, 0);
    }
}

@media(prefers-reduced-motion:reduce){
    .dashboard-page .hero-image img{
        animation:none;
    }
}

.dashboard-side{
    width:280px;
    display:flex;
    flex-direction:column;
    gap:20px;
}

.booking-card,
.progress-card{
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 0 10px rgba(0,0,0,.08);
}

.booking-card button{
    width:100%;
    padding:10px;
    margin-top:15px;
}

.progress-bar{
    width:100%;
    height:8px;
    background:#ddd;
    border-radius:20px;
    margin:15px 0;
}

.progress-fill{
    width:69%;
    height:100%;
    background:#1e90ff;
    border-radius:20px;
}

.quick-actions-panel{
    margin-top:25px;
    background:white;
    padding:25px;
    border-radius:10px;
    box-shadow:0 0 10px rgba(0,0,0,.08);
}

.action-grid{
    display:flex;
    justify-content:space-around;
    margin-top:20px;
}

.action-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-decoration:none;
    color:inherit;
    gap:10px;
}

.action-item:hover{
    text-decoration:none;
}
/* SERVICES PAGE */

.service-tabs{
    display:flex;
    gap:10px;
    margin-top:25px;
    margin-bottom:30px;
    flex-wrap:wrap;
}

.service-tabs button{
    padding:12px 20px;
    border:none;
    background:white;
    border-radius:8px;
    cursor:pointer;
    box-shadow:0 0 10px rgba(0,0,0,.08);
}

.active-tab{
    background:#173f6b !important;
    color:white;
}

.services-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.service-card{
    background:white;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 0 10px rgba(0,0,0,.08);
}

.service-card img{
    width:100%;
    height:180px;
    object-fit:cover;
}

.service-card h3{
    padding:15px 15px 5px;
    color:#173f6b;
}

.service-card p{
    padding:0 15px 20px;
    color:#666;
    line-height:1.5;
}
/* ESTIMATION PAGE */

.estimation-layout{
    display:flex;
    gap:25px;
    margin-top:25px;
}

.estimation-left{
    flex:1.1;
}

.estimation-right{
    flex:1;
}

/* Fit the client form and results beside the desktop sidebar on tablets. */
@media (min-width:701px) and (max-width:1300px){
    .dashboard-page .estimation-layout{
        flex-direction:column;
    }
}

.upload-card,
.project-details-card,
.history-card,
.result-card{
    background:white;
    border-radius:10px;
    padding:20px;
    margin-bottom:20px;
    box-shadow:0 0 10px rgba(0,0,0,.08);
}

.upload-box{
    border:2px dashed #cfd7e6;
    border-radius:10px;
    padding:40px;
    text-align:center;
}

.upload-icon{
    font-size:40px;
    color:#173f6b;
    margin-bottom:10px;
}

.project-form{
    display:flex;
    flex-direction:column;
    gap:15px;
    margin-top:15px;
}

.project-form input,
.project-form textarea{
    padding:12px;
    border:1px solid #ccc;
    border-radius:5px;
}

.project-form textarea{
    height:100px;
    resize:none;
}

.analyze-btn{
    width:100%;
    margin-top:15px;
    background:#2f5bff;
    color:white;
    border:none;
    padding:12px;
    border-radius:5px;
    cursor:pointer;
}

.history-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 0;
    border-bottom:1px solid #eee;
}

.result-card h2{
    color:#2f5bff;
    margin:15px 0;
}

.result-card table{
    width:100%;
    border-collapse:collapse;
    margin-top:15px;
}

.result-card td{
    padding:10px 0;
    border-bottom:1px solid #eee;
}

.result-card hr{
    margin:15px 0;
}
.estimate-row{
    display:flex;
    gap:15px;
}

.estimate-row input{
    flex:1;
}
/* DESIGN STUDIO */

.design-container{
    display:grid;
    grid-template-columns:250px 1fr 320px;
    gap:20px;
    margin-top:25px;
}

.design-sidebar-panel,
.design-preview-panel,
.design-estimate-panel{
    background:white;
    border-radius:12px;
    padding:20px;
    box-shadow:0 0 10px rgba(0,0,0,.08);
}

.design-sidebar-panel h3{
    margin-bottom:20px;
}

.design-option{
    margin-bottom:15px;
}

.design-option label{
    display:block;
    margin-bottom:5px;
    font-size:14px;
    font-weight:600;
}

.design-option select{
    width:100%;
    padding:10px;
    border:1px solid #ddd;
    border-radius:5px;
}

.save-template-btn{
    width:100%;
    margin-top:15px;
    padding:10px;
    border:none;
    border-radius:5px;
    background:#173f6b;
    color:white;
    cursor:pointer;
}

.design-preview-panel img{
    width:100%;
    height:450px;
    object-fit:cover;
    border-radius:10px;
}

.design-estimate-panel h2{
    color:#2f55ff;
    margin:15px 0;
}

.preview-section{
    background:white;
    margin-top:25px;
    padding:20px;
    border-radius:12px;
    box-shadow:0 0 10px rgba(0,0,0,.08);
}

.preview-section h3{
    margin-bottom:15px;
}

.preview-gallery{
    display:flex;
    gap:15px;
    overflow-x:auto;
}

.preview-gallery img{
    width:180px;
    height:120px;
    object-fit:cover;
    border-radius:10px;
}
/* =========================
   MESSAGES PAGE
========================= */

.messages-layout{
    display:flex;
    gap:20px;
    margin-top:25px;
}

.conversation-panel{
    width:22%;
    background:white;
    border-radius:15px;
    padding:20px;
    box-shadow:0 0 10px rgba(0,0,0,.06);
    display:flex;
    flex-direction:column;
    height:720px;
}

.chat-panel{
    width:56%;
    background:white;
    border-radius:15px;
    box-shadow:0 0 10px rgba(0,0,0,.06);
    display:flex;
    flex-direction:column;
    height:720px;
}

.details-panel{
    width:22%;
    background:white;
    border-radius:15px;
    padding:25px;
    box-shadow:0 0 10px rgba(0,0,0,.06);
    height:720px;
}

.search-conversation{
    width:100%;
    padding:14px;
    border:1px solid #ddd;
    border-radius:10px;
    margin-bottom:15px;
    font-size:14px;
}

.message-tabs{
    display:flex;
    gap:20px;
    margin-bottom:15px;
    font-size:14px;
}

.message-tabs span{
    cursor:pointer;
    color:#777;
}

.message-tabs .active-tab{
    color:#173f6b;
    font-weight:600;
    border-bottom:2px solid #173f6b;
    padding-bottom:4px;
}

.conversation-card{
    background:#f8f9fc;
    border-radius:12px;
    padding:18px;
    margin-bottom:12px;
    cursor:pointer;
    transition:.3s;
    border-left:4px solid #173f6b;
}

.conversation-card:hover{
    background:#eef4ff;
}

.conversation-card h4{
    margin-bottom:6px;
    font-size:16px;
}

.new-conversation-btn{
    margin-top:auto;
    background:#173f6b;
    color:white;
    border:none;
    padding:15px;
    border-radius:10px;
    cursor:pointer;
    font-size:15px;
}

.chat-header{
    background:white;
    border-bottom:1px solid #e5e5e5;
    padding:20px 25px;
    border-radius:15px 15px 0 0;
}

.chat-header h3{
    margin:0;
    color:#173f6b;
}

.chat-header span{
    color:#28a745;
    font-size:14px;
}

.chat-body{
    flex:1;
    padding:25px;
    overflow-y:auto;
    background:#fafafa;
}

.message-date{
    text-align:center;
    color:#777;
    font-size:13px;
    margin-bottom:20px;
}

.message{
    max-width:70%;
    padding:14px 18px;
    border-radius:14px;
    margin-bottom:18px;
    font-size:15px;
    line-height:1.5;
}

.received{
    background:#f2f4f7;
}

.sent{
    background:#dbeafe;
    margin-left:auto;
}

.chat-input{
    display:flex;
    gap:12px;
    padding:18px;
    border-top:1px solid #e5e5e5;
    background:white;
}

.chat-input input{
    flex:1;
    padding:14px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:15px;
}

.chat-input button{
    background:#173f6b;
    color:white;
    border:none;
    padding:0 25px;
    border-radius:10px;
    cursor:pointer;
    font-size:15px;
}

.admin-avatar{
    width:90px;
    height:90px;
    background:#173f6b;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:40px;
    margin:20px auto;
    color:white;
}

.details-panel h3{
    margin-bottom:20px;
}

.details-panel h4{
    text-align:center;
    margin-bottom:15px;
}

.details-panel p{
    margin:15px 0;
}

.details-panel hr{
    margin:20px 0;
    border:none;
    border-top:1px solid #ddd;
}
/* ==========================================
            INQUIRIES PAGE
========================================== */

.inquiry-layout{
    display:grid;
    grid-template-columns:320px 1fr;
    gap:30px;
    margin-top:25px;
    align-items:start;
}

/* LEFT PANEL */

.inquiry-history{

    background:#fff;
    border-radius:15px;
    padding:20px;
    box-shadow:0 5px 18px rgba(0,0,0,.08);
    min-height:720px;

}

.inquiry-history h3{

    font-size:22px;
    margin-bottom:25px;
    color:#173f6b;

}

.history-card{

    background:#f8f9fc;
    border-left:5px solid #173f6b;
    border-radius:12px;
    padding:18px;
    margin-bottom:18px;
    transition:.25s;
    cursor:pointer;

}

.history-card:hover{

    transform:translateY(-3px);
    box-shadow:0 10px 20px rgba(0,0,0,.08);

}

.history-card h4{

    margin-bottom:8px;
    font-size:18px;

}

.history-card p{

    font-size:14px;
    color:#777;
    margin-bottom:10px;

}

.pending-status,
.answered-status,
.closed-status{

    display:inline-block;
    padding:6px 14px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;

}

.pending-status{

    background:#FFF3CD;
    color:#856404;

}

.answered-status{

    background:#D4EDDA;
    color:#155724;

}

.closed-status{

    background:#F8D7DA;
    color:#721C24;

}


/* RIGHT PANEL */

.inquiry-form-panel{

    background:#fff;
    border-radius:15px;
    padding:35px;
    box-shadow:0 5px 18px rgba(0,0,0,.08);

}

.inquiry-form-panel h2{

    font-size:30px;
    margin-bottom:30px;
    color:#173f6b;

}

/* FORM */

.inquiry-form{

    display:flex;
    flex-direction:column;
    gap:22px;

}

.inquiry-field{

    min-width:0;

}

.inquiry-field-error{

    display:block;
    min-height:0;
    margin:4px 0 0;
    color:#b42318;
    font-size:12px;
    line-height:1.25;
    text-align:left;

}

.inquiry-field-error:empty{

    display:none;

}

.input-row{

    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:20px;

}

.input-row:nth-child(2){

    grid-template-columns:1fr 1fr;

}

.input-row:nth-child(3){

    grid-template-columns:1fr 1fr;

}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea{

    width:100%;
    padding:15px 16px;

    border:1px solid #d9d9d9;
    border-radius:10px;

    font-size:15px;
    outline:none;

    transition:.25s;

    font-family:inherit;
    background:white;

}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus{

    border-color:#173f6b;
    box-shadow:0 0 8px rgba(23,63,107,.18);

}

.full-width-input{

    width:100%;

}

.inquiry-form textarea{

    resize:none;
    min-height:170px;

}

.submit-inquiry-btn{

    margin-left:auto;

    width:220px;

    background:#173f6b;
    color:white;

    border:none;

    border-radius:10px;

    padding:15px;

    font-size:16px;
    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.submit-inquiry-btn:hover{

    background:#245286;

}


/* RESPONSIVE */

@media(max-width:1200px){

.inquiry-layout{

grid-template-columns:1fr;

}

.input-row{

grid-template-columns:1fr;

}

.input-row:nth-child(2),
.input-row:nth-child(3){

grid-template-columns:1fr;

}

.submit-inquiry-btn{

width:100%;
margin-left:0;

}

}
/* Send Inquiry only: persistent labels and the existing two-column field layout. */
.inquiry-form .input-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
.inquiry-form .inquiry-field > label { display:block; margin-bottom:7px; color:#173f6b; font-size:14px; font-weight:600; line-height:1.4; }
.inquiry-form .inquiry-field > :is(input,select,textarea) { box-sizing:border-box; min-width:0; }
@media(max-width:600px) {
    .inquiry-form .input-row { grid-template-columns:minmax(0,1fr); }
}

/* =======================================================
                    MY BOOKINGS PAGE
=======================================================*/

.dashboard-header-right{
    display:flex;
    align-items:center;
    gap:18px;
}

.dashboard-search{
    width:260px;
    box-sizing:border-box;
    padding:12px 16px;
    border:1px solid #d9d9d9;
    border-radius:8px;
    outline:none;
    font-size:14px;
    transition:.3s;
}

.booking-stats{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:15px;
    margin-top:25px;
    margin-bottom:25px;
}

.booking-stat-card{
    background:#fff;
    border-radius:14px;
    padding:18px;
    display:flex;
    align-items:center;
    gap:15px;
    box-shadow:0 3px 12px rgba(0,0,0,.08);
}

.booking-stat-icon{
    width:50px;
    height:50px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
}

.blue{
    background:#edf3ff;
}

.yellow{
    background:#fff6db;
}

.green{
    background:#e8fff1;
}

.purple{
    background:#f2ecff;
}

.gray{
    background:#f3f3f3;
}

.red{
    background:#ffeaea;
}

.booking-stat-card h4{
    font-size:13px;
    color:#666;
    margin-bottom:5px;
}

.booking-stat-card h2{
    color:#173f6b;
    font-size:24px;
}

.bookings-layout{
    display:grid;
    grid-template-columns:3fr 1fr;
    gap:25px;
}

.booking-list-panel,
.booking-side-panel{
    background:white;
    border-radius:16px;
    box-shadow:0 3px 12px rgba(0,0,0,.08);
}

.booking-list-panel{
    padding:25px;
}

.booking-tabs{
    display:flex;
    gap:15px;
    margin-bottom:25px;
    border-bottom:1px solid #eee;
    padding-bottom:18px;
}

.booking-tabs button{
    border:none;
    background:none;
    color:#666;
    cursor:pointer;
    font-size:14px;
    font-weight:600;
}

.booking-tabs .active-tab{
    color:#1d4e89;
}

.booking-item{
    display:grid;
    grid-template-columns:130px 1.5fr 1fr 140px;
    gap:20px;
    align-items:center;
    padding:18px 0;
    border-bottom:1px solid #ececec;
}

.booking-thumb{
    width:120px;
    height:90px;
    object-fit:cover;
    border-radius:12px;
}

.booking-main h3{
    color:#173f6b;
    margin-bottom:8px;
}

.booking-main p{
    color:#666;
    font-size:14px;
    margin:4px 0;
}

.booking-meta{
    font-size:14px;
}

.booking-meta p{
    color:#666;
    margin:3px 0;
}

.booking-meta strong{
    display:block;
    margin-bottom:10px;
}

.status{
    display:inline-block;
    padding:6px 12px;
    border-radius:30px;
    color:white;
    font-size:12px;
    font-weight:600;
}

.confirmed{
    background:#28a745;
}

.pending{
    background:#ffb400;
}

.progress{
    background:#5865f2;
}

.completed{
    background:#5c8dff;
}

.details-btn{
    background:white;
    border:1px solid #1d4e89;
    color:#1d4e89;
    padding:10px 18px;
    border-radius:8px;
    cursor:pointer;
    transition:.3s;
}

.details-btn:hover{
    background:#1d4e89;
    color:white;
}

.booking-pagination{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:30px;
}

.booking-pagination button{
    width:35px;
    height:35px;
    border:none;
    border-radius:8px;
    background:#eee;
    cursor:pointer;
}

.active-page{
    background:#173f6b !important;
    color:white;
}

.booking-side-panel{
    padding:25px;
}

.booking-manage-card,
.booking-help-card,
.booking-reminder-card{
    border:1px solid #eee;
    border-radius:14px;
    padding:22px;
    margin-bottom:20px;
}

.booking-calendar{
    width:70px;
    height:70px;
    background:#edf3ff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    margin:auto;
    margin-bottom:15px;
}

.booking-manage-card h3,
.booking-help-card h3,
.booking-reminder-card h3{
    color:#173f6b;
    margin-bottom:10px;
}

.booking-manage-card p,
.booking-help-card p,
.booking-reminder-card p{
    color:#666;
    line-height:1.6;
}

.booking-primary-btn{
    width:100%;
    margin-top:18px;
    border:none;
    background:#214c84;
    color:white;
    padding:12px;
    border-radius:8px;
    cursor:pointer;
}

.booking-help-card a{
    display:block;
    text-decoration:none;
    color:#214c84;
    margin-top:12px;
    font-weight:600;
}

.booking-reminder-card button{
    width:100%;
    margin-top:18px;
    background:#214c84;
    color:white;
    border:none;
    padding:12px;
    border-radius:8px;
    cursor:pointer;
}
/* ==========================================================
                    PROJECTS DASHBOARD
==========================================================*/

.dashboard-search:focus{
border-color:#214c84;
}

.project-stats{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:18px;
    margin-top:25px;
    margin-bottom:25px;
}

.project-stat-card{
    background:#fff;
    border-radius:14px;
    padding:18px;
    display:flex;
    align-items:center;
    gap:15px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    transition:.25s;
}

.project-stat-card:hover{
    transform:translateY(-3px);
}

.project-stat-icon{
    width:58px;
    height:58px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
}

.project-stat-card span{
    display:block;
    color:#666;
    font-size:13px;
    margin-bottom:4px;
}

.project-stat-card h2{
    color:#173f6b;
    font-size:18px;
}

.projects-layout{
    display:grid;
    grid-template-columns:3fr 1fr;
    gap:25px;
}

.projects-list-panel,
.projects-sidebar{
    background:#fff;
    border-radius:16px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.projects-list-panel{
    padding:25px;
}

.projects-tabs{
    display:flex;
    gap:22px;
    padding-bottom:18px;
    margin-bottom:25px;
    border-bottom:1px solid #ececec;
}

.projects-tabs button{
    background:none;
    border:none;
    color:#666;
    cursor:pointer;
    font-size:15px;
    font-weight:600;
    transition:.25s;
}

.projects-tabs button:hover{
    color:#214c84;
}

.projects-tabs .active-project-tab{
    color:#214c84;
    border-bottom:3px solid #214c84;
    padding-bottom:12px;
}
/* ==========================================================
                PROJECT CARDS
==========================================================*/

.project-card{
    display:grid;
    grid-template-columns:140px 2fr 1.2fr 150px;
    gap:25px;
    align-items:center;
    padding:24px 0;
    border-bottom:1px solid #ececec;
    transition:.25s;
}

.project-card:hover{
    background:#fafcff;
}

.project-image{
    width:140px;
    height:95px;
    object-fit:cover;
    border-radius:12px;
    box-shadow:0 3px 8px rgba(0,0,0,.10);
}

.project-info h3{
    color:#173f6b;
    font-size:18px;
    margin-bottom:10px;
}

.project-info p{
    color:#666;
    font-size:14px;
    margin:5px 0;
    line-height:1.5;
}

.project-details{
    font-size:14px;
}

.project-details p{
    color:#666;
    margin-bottom:5px;
}

.project-details strong{
    display:block;
    margin-bottom:12px;
    color:#111;
}

.project-status{
    display:inline-block;
    padding:7px 16px;
    border-radius:30px;
    color:#fff;
    font-size:12px;
    font-weight:600;
    letter-spacing:.3px;
}

.project-status.progress{
    background:#3b82f6;
}

.project-status.planning{
    background:#f59e0b;
}

.project-status.completed{
    background:#22c55e;
}

.project-status.pending{
    background:#ef4444;
}

.project-action{
    display:flex;
    justify-content:center;
    align-items:center;
}

.view-project-btn{
    background:#fff;
    color:#214c84;
    border:1px solid #214c84;
    border-radius:8px;
    padding:12px 22px;
    cursor:pointer;
    font-size:14px;
    font-weight:600;
    transition:.25s;
}

.view-project-btn:hover{
    background:#214c84;
    color:#fff;
}

.projects-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:30px;
}

.projects-footer p{
    color:#666;
    font-size:14px;
}

.pagination{
    display:flex;
    gap:10px;
}

.pagination button{
    width:36px;
    height:36px;
    border:none;
    background:#f2f2f2;
    border-radius:8px;
    cursor:pointer;
    transition:.25s;
}

.pagination button:hover{
    background:#214c84;
    color:#fff;
}

.active-page{
    background:#214c84 !important;
    color:#fff;
}
/* ==========================================================
                PROJECTS SIDEBAR
==========================================================*/

.projects-sidebar{
    padding:25px;
}

.projects-sidebar h3{
    color:#173f6b;
    font-size:18px;
    margin-bottom:15px;
}

.projects-sidebar p{
    color:#666;
    font-size:14px;
    line-height:1.7;
    margin-bottom:10px;
}

.projects-sidebar hr{
    border:none;
    border-top:1px solid #ececec;
    margin:25px 0;
}

.projects-sidebar .view-project-btn{
    width:100%;
    margin-top:12px;
}

.projects-sidebar .view-project-btn:first-of-type{
    margin-top:18px;
}

.projects-sidebar p:last-child{
    margin-bottom:0;
}

/* =============================
   PROJECT OVERVIEW CARD
=============================*/

.projects-sidebar{

    display:flex;
    flex-direction:column;
    gap:20px;

}

.project-overview-card,
.project-actions-card,
.project-updates-card{

    background:#ffffff;
    border:1px solid #ececec;
    border-radius:14px;
    padding:22px;

}

.project-overview-card h3,
.project-actions-card h3,
.project-updates-card h3{

    margin-bottom:15px;

}

.project-overview-card p,
.project-actions-card p,
.project-updates-card p{

    margin-bottom:12px;

}

/* =============================
   QUICK ACTION BUTTONS
=============================*/

.project-actions-card button{

    width:100%;
    padding:12px;
    margin-top:10px;

    border:none;
    border-radius:8px;

    background:#214c84;
    color:#fff;

    cursor:pointer;

    transition:.25s;

}

.project-actions-card button:hover{

    background:#173f6b;

}

/* =============================
   RECENT UPDATES
=============================*/

.project-updates-card p{

    padding:10px 0;

    border-bottom:1px solid #f0f0f0;

}

.project-updates-card p:last-child{

    border-bottom:none;

}
/* ==========================================================
                PROJECTS FINAL POLISH
==========================================================*/

/* ---------- Progress Bar ---------- */

.project-progress{

    margin-top:12px;

}

.project-progress-track{

    width:100%;
    height:8px;

    background:#e6e6e6;

    border-radius:50px;

    overflow:hidden;

}

.project-progress-fill{

    height:100%;

    background:#2d72d9;

    border-radius:50px;

}

/* ---------- Better Card Hover ---------- */

.project-card{

    transition:.30s;

}

.project-card:hover{

    transform:translateY(-3px);

    box-shadow:0 8px 20px rgba(0,0,0,.08);

}

/* ---------- Better Images ---------- */

.project-image{

    transition:.30s;

}

.project-card:hover .project-image{

    transform:scale(1.03);

}

/* ---------- Sidebar ---------- */

.projects-sidebar{

    position:sticky;

    top:25px;

    height:fit-content;

}

/* ---------- Better Typography ---------- */

.project-info h3{

    font-weight:700;

}

.project-info p{

    font-size:13px;

}

/* ---------- Responsive ---------- */

@media(max-width:1400px){

.project-stats{

grid-template-columns:repeat(3,1fr);

}

}

@media(max-width:1100px){

.projects-layout{

grid-template-columns:1fr;

}

.projects-sidebar{

margin-top:20px;

}

.project-card{

grid-template-columns:1fr;

}

.project-image{

width:100%;
height:220px;

}

.project-action{

justify-content:flex-start;

}

}

@media(max-width:768px){

.project-stats{

grid-template-columns:repeat(2,1fr);

}

.projects-tabs{

overflow-x:auto;

}

}

@media(max-width:560px){

.project-stats{

grid-template-columns:1fr;

}

.dashboard-header{

flex-direction:column;

align-items:flex-start;

gap:15px;

}

.dashboard-search{

width:100%;

}

}

/* USER DASHBOARD INTERACTIONS */
.dashboard-page button,
.dashboard-page .booking-menu a,
.dashboard-page a[class*="btn"]:not(.logout-btn) {
    transition: transform .25s ease, box-shadow .25s ease;
}

.dashboard-page button:hover,
.dashboard-page .booking-menu a:hover,
.dashboard-page a[class*="btn"]:not(.logout-btn):hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 14px rgba(23, 63, 107, .18);
}

/* Sidebar hover highlights must not inherit the content controls' movement. */
.dashboard-page .dashboard-menu li,
.dashboard-page .logout-btn {
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.dashboard-page .dashboard-menu li:not(.active):hover,
.dashboard-page .logout-btn:hover {
    box-shadow: inset 3px 0 0 #f4ae00;
}
/* ==========================================================
                    CONTRACTS PAGE
==========================================================*/

.contracts-layout{

    display:grid;
    grid-template-columns:2fr 1fr;
    gap:25px;
    margin-top:25px;

}

.contract-main-card{

    background:#fff;

    border-radius:16px;

    padding:28px;

    box-shadow:0 4px 14px rgba(0,0,0,.08);

}

.contracts-sidebar{

    display:flex;
    flex-direction:column;
    gap:20px;

}

.contract-side-card,
.contract-status-card{

    background:#fff;

    border-radius:16px;

    padding:22px;

    box-shadow:0 4px 14px rgba(0,0,0,.08);

}

.contract-header{

    display:flex;

    align-items:center;

    gap:18px;

}

.contract-icon{

    width:70px;

    height:70px;

    border-radius:16px;

    background:#eef4ff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:34px;

}

.contract-header h2{

    color:#173f6b;

    margin-bottom:6px;

}

.contract-header p{

    color:#666;

    font-size:14px;

}

.contract-main-card hr{

    margin:22px 0;

    border:none;

    border-top:1px solid #ececec;

}

.contract-description{

    color:#555;

    line-height:1.8;

    font-size:15px;

}
/* ==========================================================
            CONTRACT BUTTONS & SIGNING AREA
==========================================================*/

.contract-buttons{

    display:flex;

    gap:15px;

    margin:25px 0;

}

.contract-btn{

    flex:1;

    padding:13px 18px;

    border:1px solid #d8d8d8;

    background:#fff;

    color:#214c84;

    border-radius:10px;

    cursor:pointer;

    font-size:14px;

    font-weight:600;

    transition:.25s;

}

.contract-btn:hover{

    background:#214c84;

    color:#fff;

    border-color:#214c84;

}

.contract-note{

    background:#f7f9fc;

    border:1px solid #e5edf7;

    border-radius:12px;

    padding:16px;

    color:#555;

    font-size:14px;

    line-height:1.7;

    margin-bottom:20px;

}

.contract-note span{

    color:#777;

    font-size:13px;

}

.contract-checkbox{

    display:flex;

    align-items:center;

    gap:10px;

    margin-top:18px;

    font-size:14px;

    color:#444;

}

.contract-checkbox input{

    width:18px;

    height:18px;

    cursor:pointer;

}

.terms-link{

    display:inline-block;

    margin-top:10px;

    margin-left:28px;

    color:#214c84;

    font-size:13px;

    text-decoration:none;

}

.terms-link:hover{

    text-decoration:underline;

}

.sign-contract-btn{

    width:100%;

    margin-top:25px;

    padding:15px;

    border:none;

    border-radius:10px;

    background:#f6b100;

    color:#222;

    font-size:16px;

    font-weight:700;

    cursor:pointer;

    transition:.25s;

}

.sign-contract-btn:hover{

    background:#e2a100;

}
/* ==========================================================
            CONTRACT SIDEBAR
==========================================================*/

.contract-side-card h3,
.contract-status-card h3{

    color:#173f6b;
    margin-bottom:18px;

}

.party-item{

    display:flex;

    align-items:center;

    gap:15px;

    margin-bottom:18px;

}

.party-icon{

    width:50px;

    height:50px;

    border-radius:50%;

    background:#eef4ff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:22px;

}

.contract-side-card p{

    color:#666;

    font-size:14px;

    line-height:1.6;

    margin:6px 0;

}

.contract-side-card hr{

    border:none;

    border-top:1px solid #ececec;

    margin:15px 0;

}

/* ==========================
      STATUS CARD
==========================*/

.contract-status-card{

    display:flex;

    align-items:flex-start;

    gap:18px;

}

.status-icon{

    width:55px;

    height:55px;

    background:#fff5d8;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:28px;

}

.contract-status-card h4{

    color:#173f6b;

    margin-bottom:10px;

}

.pending-signature{

    display:inline-block;

    background:#ffe082;

    color:#7a5600;

    padding:7px 15px;

    border-radius:30px;

    font-size:13px;

    font-weight:600;

    margin-bottom:12px;

}

.contract-status-card p{

    color:#666;

    font-size:14px;

    line-height:1.6;

}
/* ==========================================================
            CONTRACT FINAL POLISH
==========================================================*/

/* Better Hover */

.contract-main-card,
.contract-side-card,
.contract-status-card{

    transition:.30s;

}

.contract-main-card:hover,
.contract-side-card:hover,
.contract-status-card:hover{

    transform:translateY(-3px);

    box-shadow:0 8px 20px rgba(0,0,0,.10);

}

/* Sticky Sidebar */

.contracts-sidebar{

    position:sticky;

    top:25px;

    height:fit-content;

}

/* Better Button Hover */

.sign-contract-btn{

    box-shadow:0 4px 12px rgba(246,177,0,.35);

}

.sign-contract-btn:hover{

    transform:translateY(-2px);

}

.contract-btn:hover{

    transform:translateY(-2px);

}

/* Better Party Card */

.party-item strong{

    color:#173f6b;

}

.party-item p{

    margin-top:2px;

}

/* Better Contract Details */

.contract-side-card strong{

    color:#173f6b;

}

/* Responsive */

@media(max-width:1200px){

.contracts-layout{

grid-template-columns:1fr;

}

.contracts-sidebar{

position:relative;

top:0;

}

}

@media(max-width:768px){

.contract-buttons{

flex-direction:column;

}

.contract-header{

flex-direction:column;

align-items:flex-start;

}

.contract-icon{

margin-bottom:10px;

}

}
/* =======================================================
                    ADMIN LOGIN PAGE
======================================================= */

.admin-login-page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #080808;

    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.admin-login-box {
    width: 100%;
    min-height: 100vh;

    background: #080808;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 40px;
    box-sizing: border-box;
}

.admin-login-box h1 {
    color: #ffffff;

    font-size: 25px;
    font-weight: 700;

    margin: 0 0 16px 0;
}

.admin-login-box form {
    width: 200px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-login-box input {
    width: 200px;
    height: 30px;

    box-sizing: border-box;

    margin-bottom: 14px;
    padding: 5px 8px;

    border: none;
    border-radius: 3px;

    background: #ffffff;
    color: #222222;

    font-size: 14px;
}

.admin-login-box input::placeholder {
    color: #333333;
}

.admin-login-box button {
    background: #bdbdbd;
    color: #ffffff;

    border: none;
    border-radius: 4px;

    padding: 4px 8px;

    font-size: 12px;

    cursor: pointer;
}

.admin-login-box button:hover {
    background: #999999;
}


/* =======================================================
                ADMIN LOGIN RESPONSIVE
======================================================= */

@media (max-width: 768px) {

    .admin-login-box {
        width: 100%;
        min-height: 100vh;
        padding: 20px;
    }

}
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}
/* =======================================================
                ADMIN DASHBOARD
======================================================= */

.admin-dashboard-page {
    width: 100%;
    min-height: 100vh;

    display: flex;

    background: #f5f7fa;

    font-family: Arial, Helvetica, sans-serif;

    color: #1f2937;

    box-sizing: border-box;
}


/* =======================================================
                    ADMIN SIDEBAR
======================================================= */

.admin-sidebar {
    width: 245px;
    min-height: 100vh;

    background: #071018;

    color: #ffffff;

    display: flex;
    flex-direction: column;

    flex-shrink: 0;

    box-sizing: border-box;
}


/* LOGO */

.admin-logo {
    width: 100%;

    padding: 18px 15px 20px;

    box-sizing: border-box;

    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-logo img {
    width: 190px;
    height: auto;

    display: block;

    object-fit: contain;
}


/* MENU TITLE */

.admin-menu-title {
    margin: 10px 20px 8px;

    font-size: 10px;

    font-weight: 700;

    color: #9ca3af;

    letter-spacing: 0.8px;
}


/* MENU */

.admin-menu {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 3px;

    padding: 0 12px;

    box-sizing: border-box;
}

.admin-menu a {
    width: 100%;

    display: flex;
    align-items: center;

    padding: 11px 12px;

    box-sizing: border-box;

    color: #d1d5db;

    text-decoration: none;

    font-size: 13px;

    border-radius: 5px;

    transition: 0.2s ease;
}

.admin-menu a:hover {
    background: #17212b;

    color: #ffffff;
}

.admin-menu a.active {
    background: #e5e7eb;

    color: #111827;

    font-weight: 600;
}


/* SIDEBAR BOTTOM */

.admin-sidebar-bottom {
    margin-top: auto;

    padding: 20px 12px;

    border-top: 1px solid #374151;
}

.admin-sidebar-bottom a {
    display: flex;
    align-items: center;

    padding: 10px 12px;

    color: #d1d5db;

    text-decoration: none;

    font-size: 13px;

    border-radius: 5px;
}

.admin-sidebar-bottom a:hover {
    background: #17212b;

    color: #ffffff;
}


/* =======================================================
                  ADMIN MAIN CONTENT
======================================================= */

.admin-main-content {
    flex: 1;

    min-width: 0;

    padding: 24px 28px 40px;

    box-sizing: border-box;

    overflow-x: hidden;
}


/* =======================================================
                       HEADER
======================================================= */

.admin-header {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.admin-header h1 {
    margin: 0;

    font-size: 22px;

    font-weight: 700;

    color: #111827;
}

.admin-header-right {
    display: flex;

    align-items: center;

    gap: 18px;

    flex-wrap: wrap;
}


/* SEARCH */

.admin-search input {
    width: 170px;
    height: 32px;

    padding: 0 12px;

    box-sizing: border-box;

    border: 1px solid #e5e7eb;

    border-radius: 4px;

    background: #ffffff;

    color: #374151;

    font-size: 11px;

    outline: none;
}

.admin-search input:focus {
    border-color: #315b91;
}


/* DATE */

.admin-date {
    font-size: 11px;

    color: #4b5563;

    white-space: nowrap;
}


/* NOTIFICATION */

.admin-notification {
    font-size: 15px;

    color: #374151;

    cursor: pointer;
}


/* USER */

.admin-user {
    font-size: 11px;

    color: #374151;

    white-space: nowrap;
}


/* =======================================================
                    WELCOME SECTION
======================================================= */

.admin-welcome {
    margin-bottom: 18px;
}

.admin-welcome h2 {
    margin: 0 0 4px;

    font-size: 15px;

    font-weight: 700;

    color: #111827;
}

.admin-welcome p {
    margin: 0;

    font-size: 10px;

    color: #6b7280;
}


/* =======================================================
                  STATISTICS CARDS
======================================================= */

.admin-stat-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 18px;
}

.admin-stat-card {
    min-height: 82px;

    background: #ffffff;

    border: 1px solid #edf0f3;

    border-radius: 6px;

    padding: 14px;

    display: flex;

    align-items: center;

    gap: 11px;

    box-sizing: border-box;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}


/* STAT ICON */

.admin-stat-icon {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 7px;

    font-size: 15px;
}


/* ICON COLORS */

.admin-stat-icon.blue {
    background: #eef4ff;

    color: #356dcc;
}

.admin-stat-icon.green {
    background: #ecfdf5;

    color: #15946a;
}

.admin-stat-icon.purple {
    background: #f4efff;

    color: #7954c6;
}

.admin-stat-icon.orange {
    background: #fff6e8;

    color: #d58a16;
}

.admin-stat-icon.red {
    background: #fff0f0;

    color: #dc4b4b;
}


/* STAT TEXT */

.admin-stat-card span {
    display: block;

    margin-bottom: 3px;

    font-size: 9px;

    color: #6b7280;
}

.admin-stat-card strong {
    display: block;

    font-size: 18px;

    line-height: 1;

    color: #111827;
}

.admin-stat-card small {
    display: block;

    margin-top: 4px;

    font-size: 8px;
}

.admin-stat-card small.positive {
    color: #16a36a;
}

.admin-stat-card small.negative {
    color: #dc4b4b;
}
/* =======================================================
                ADMIN DASHBOARD PANELS
======================================================= */

.admin-dashboard-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        1.5fr 1fr 1.15fr;

    gap: 14px;

    margin-bottom: 18px;
}


/* =======================================================
                    GENERAL PANEL
======================================================= */

.admin-panel {
    background: #ffffff;

    border: 1px solid #edf0f3;

    border-radius: 6px;

    box-sizing: border-box;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);

    overflow: hidden;
}


/* PANEL HEADER */

.admin-panel-header {
    min-height: 44px;

    padding: 12px 14px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    box-sizing: border-box;

    border-bottom: 1px solid #f0f2f5;
}

.admin-panel-header h3 {
    margin: 0;

    font-size: 11px;

    font-weight: 700;

    color: #1f2937;
}


/* PANEL SELECT */

.admin-panel-header select {
    height: 25px;

    padding: 0 7px;

    border: 1px solid #e5e7eb;

    border-radius: 4px;

    background: #ffffff;

    color: #6b7280;

    font-size: 9px;

    outline: none;
}


/* =======================================================
                  INQUIRIES CHART
======================================================= */

.inquiries-overview {
    min-height: 190px;
}

.admin-chart-placeholder {
    position: relative;

    height: 140px;

    margin: 8px 14px 12px;

    border-left: 1px solid #e5e7eb;

    border-bottom: 1px solid #e5e7eb;

    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 27px,
            #f1f3f5 28px
        );

    box-sizing: border-box;
}


/* BLUE LINE */

.chart-line {
    position: absolute;

    left: 8%;

    width: 82%;

    height: 2px;

    transform-origin: left center;

    border-radius: 2px;
}

.blue-line {
    top: 58px;

    background: #3978df;

    transform:
        rotate(-10deg)
        skewX(-18deg);
}


/* GREEN LINE */

.green-line {
    top: 95px;

    background: #27a878;

    transform:
        rotate(-4deg)
        skewX(-12deg);
}


/* CHART LABELS */

.chart-labels {
    position: absolute;

    left: 0;
    right: 0;

    bottom: -19px;

    display: flex;

    justify-content: space-between;

    padding: 0 3px;

    box-sizing: border-box;

    color: #9ca3af;

    font-size: 7px;
}


/* =======================================================
                  PROJECT STATUS
======================================================= */

.project-status-panel {
    min-height: 190px;
}

.project-status-content {
    height: 145px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    padding: 8px 12px;

    box-sizing: border-box;
}


/* CIRCLE */

.status-circle {
    width: 92px;
    height: 92px;

    flex-shrink: 0;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        conic-gradient(
            #3978df 0deg 150deg,
            #f5a623 150deg 240deg,
            #7954c6 240deg 300deg,
            #27a878 300deg 360deg
        );

    position: relative;
}


/* INNER CIRCLE */

.status-circle::before {
    content: "";

    position: absolute;

    width: 58px;
    height: 58px;

    border-radius: 50%;

    background: #ffffff;
}

.status-circle div {
    position: relative;

    z-index: 1;

    text-align: center;
}

.status-circle strong {
    display: block;

    font-size: 18px;

    color: #1f2937;
}

.status-circle span {
    display: block;

    margin-top: 1px;

    font-size: 7px;

    color: #9ca3af;
}


/* LEGEND */

.status-legend {
    flex: 1;

    min-width: 0;
}

.status-legend p {
    margin: 6px 0;

    display: flex;

    align-items: center;

    gap: 5px;

    font-size: 8px;

    color: #6b7280;

    white-space: nowrap;
}

.status-legend strong {
    margin-left: auto;

    color: #374151;

    font-weight: 600;
}


/* DOTS */

.legend-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;
}

.blue-dot {
    background: #3978df;
}

.orange-dot {
    background: #f5a623;
}

.purple-dot {
    background: #7954c6;
}

.green-dot {
    background: #27a878;
}


/* =======================================================
                  RECENT ACTIVITIES
======================================================= */

.recent-activities {
    min-height: 190px;
}

.activity-item {
    display: grid;

    grid-template-columns: 22px 1fr auto;

    align-items: center;

    gap: 7px;

    padding: 9px 14px;

    border-bottom: 1px solid #f1f2f4;

    box-sizing: border-box;
}

.activity-item > span {
    width: 22px;
    height: 22px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 5px;

    background: #f5f7fa;

    color: #4b5563;

    font-size: 10px;
}

.activity-item strong {
    display: block;

    font-size: 8px;

    color: #374151;
}

.activity-item p {
    margin: 2px 0 0;

    font-size: 7px;

    color: #9ca3af;
}

.activity-item small {
    font-size: 7px;

    color: #9ca3af;

    white-space: nowrap;
}


/* VIEW ALL */

.view-all-btn {
    display: block;

    width: calc(100% - 28px);

    margin: 10px 14px;

    height: 25px;

    border: 1px solid #dce4f0;

    border-radius: 4px;

    background: #ffffff;

    color: #356dcc;

    font-size: 8px;

    cursor: pointer;
}

.view-all-btn:hover {
    background: #f5f8ff;
}


/* =======================================================
                    TABLE GRID
======================================================= */

.admin-table-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        1fr 1fr 1fr;

    gap: 14px;

    margin-bottom: 20px;
}


/* TABLE PANEL */

.admin-table-panel {
    min-width: 0;
}


/* TABLE HEADER LINKS */

.admin-panel-header a {
    color: #356dcc;

    text-decoration: none;

    font-size: 8px;

    white-space: nowrap;
}

.admin-panel-header a:hover {
    text-decoration: underline;
}


/* =======================================================
                      TABLE
======================================================= */

.admin-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.admin-table-wrapper table {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;
}

.admin-table-wrapper th {
    padding: 8px 7px;

    background: #fafbfc;

    border-bottom: 1px solid #edf0f3;

    text-align: left;

    font-size: 7px;

    font-weight: 600;

    color: #6b7280;
}

.admin-table-wrapper td {
    padding: 8px 7px;

    border-bottom: 1px solid #f1f2f4;

    text-align: left;

    font-size: 7px;

    color: #4b5563;

    vertical-align: middle;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.admin-table-wrapper tbody tr:hover {
    background: #fafcff;
}


/* =======================================================
                  TABLE STATUS
======================================================= */

.table-status {
    display: inline-block;

    padding: 3px 6px;

    border-radius: 10px;

    font-size: 6px;

    font-weight: 600;

    white-space: nowrap;
}

.pending-status {
    background: #fff4d8;

    color: #b77900;
}

.approved-status {
    background: #e6f8ee;

    color: #168052;
}

.declined-status {
    background: #ffe8e8;

    color: #c53c3c;
}


/* =======================================================
                    TABLE FOOTER
======================================================= */

.table-footer {
    margin: 0;

    padding: 8px 10px;

    font-size: 7px;

    color: #9ca3af;

    border-top: 1px solid #f1f2f4;
}


/* =======================================================
                     RESPONSIVE
======================================================= */

@media (max-width: 1200px) {

    .admin-sidebar {
        width: 220px;
    }

    .admin-main-content {
        padding: 20px;
    }

    .admin-stat-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .admin-dashboard-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .recent-activities {
        grid-column: span 2;
    }

    .admin-table-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 768px) {

    .admin-dashboard-page {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;

        min-height: auto;
    }

    .admin-logo {
        justify-content: flex-start;
    }

    .admin-menu {
        flex-direction: row;

        overflow-x: auto;

        padding-bottom: 10px;
    }

    .admin-menu a {
        width: auto;

        white-space: nowrap;
    }

    .admin-sidebar-bottom {
        margin-top: 0;
    }

    .admin-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .admin-header-right {
        width: 100%;

        align-items: flex-start;
    }

    .admin-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .recent-activities {
        grid-column: auto;
    }

}


@media (max-width: 480px) {

    .admin-main-content {
        padding: 15px;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-header-right {
        flex-direction: column;

        gap: 8px;
    }

    .admin-search input {
        width: 100%;
    }

}
/* =========================================================
                ADMIN INQUIRIES PAGE
   ========================================================= */

/* Main inquiries panel */

.inquiries-panel {
    width: 100%;
    margin-top: 18px;
}


/* =========================================================
                    STATISTICS CARDS
   ========================================================= */

.inquiry-stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}


/* =========================================================
                    INQUIRY HEADER
   ========================================================= */

.inquiries-header {
    min-height: 48px;
}

.inquiries-header h3 {
    font-size: 12px;
    color: #1f2937;
}


/* Right-side controls */

.inquiry-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.inquiry-actions select,
.date-filter-btn,
.filter-btn,
.new-inquiry-btn {
    height: 27px;
    box-sizing: border-box;

    border-radius: 4px;

    font-family: inherit;
    font-size: 8px;

    cursor: pointer;
}


/* Status dropdown */

.inquiry-actions select {
    padding: 0 8px;

    min-width: 75px;

    border: 1px solid #e1e5ea;

    background: #ffffff;

    color: #6b7280;

    outline: none;
}


/* Date button */

.date-filter-btn {
    padding: 0 9px;

    border: 1px solid #e1e5ea;

    background: #ffffff;

    color: #6b7280;
}


/* Filter button */

.filter-btn {
    padding: 0 9px;

    border: 1px solid #e1e5ea;

    background: #ffffff;

    color: #4b5563;
}


/* New Inquiry */

.new-inquiry-btn {
    padding: 0 11px;

    border: 1px solid #2563eb;

    background: #2563eb;

    color: #ffffff;

    font-weight: 600;
}

.new-inquiry-btn:hover {
    background: #1d4ed8;
}


/* =========================================================
                    SEARCH AREA
   ========================================================= */

.inquiry-search-row {
    padding: 10px 14px;

    border-bottom: 1px solid #edf0f3;
}

.inquiry-search-row input {
    width: 130px;

    height: 27px;

    padding: 0 9px;

    box-sizing: border-box;

    border: 1px solid #e2e6eb;

    border-radius: 4px;

    background: #ffffff;

    color: #374151;

    font-family: inherit;

    font-size: 8px;

    outline: none;
}

.inquiry-search-row input:focus {
    border-color: #3978df;
}


/* =========================================================
                    INQUIRY TABLE
   ========================================================= */

.inquiries-panel .admin-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.inquiries-panel table {
    min-width: 900px;
}

.inquiries-panel th {
    height: 32px;

    padding: 6px 8px;

    font-size: 7px;

    font-weight: 600;

    color: #4b5563;

    background: #fafbfc;

    border-bottom: 1px solid #e8ebef;

    white-space: nowrap;
}

.inquiries-panel td {
    height: 42px;

    padding: 6px 8px;

    font-size: 7px;

    line-height: 1.35;

    color: #4b5563;

    border-bottom: 1px solid #f0f2f4;

    vertical-align: middle;
}


/* First column */

.inquiries-panel th:first-child,
.inquiries-panel td:first-child {
    width: 65px;
}


/* Client */

.inquiries-panel th:nth-child(2),
.inquiries-panel td:nth-child(2) {
    width: 105px;
}


/* Contact */

.inquiries-panel th:nth-child(3),
.inquiries-panel td:nth-child(3) {
    width: 145px;
}


/* Inquiry */

.inquiries-panel th:nth-child(4),
.inquiries-panel td:nth-child(4) {
    width: 165px;
}


/* Service */

.inquiries-panel th:nth-child(5),
.inquiries-panel td:nth-child(5) {
    width: 125px;
}


/* Date */

.inquiries-panel th:nth-child(6),
.inquiries-panel td:nth-child(6) {
    width: 100px;
}


/* Status */

.inquiries-panel th:nth-child(7),
.inquiries-panel td:nth-child(7) {
    width: 75px;
}


/* Action */

.inquiries-panel th:nth-child(8),
.inquiries-panel td:nth-child(8) {
    width: 65px;

    text-align: center;
}


/* =========================================================
                    ACTION BUTTONS
   ========================================================= */

.action-btn {
    width: 22px;
    height: 22px;

    padding: 0;

    margin: 0 2px;

    border: 1px solid #e1e5ea;

    border-radius: 4px;

    background: #ffffff;

    color: #6b7280;

    font-size: 8px;

    line-height: 20px;

    text-align: center;

    cursor: pointer;
}

.action-btn:hover {
    background: #f5f8ff;

    border-color: #cbd8ed;

    color: #2563eb;
}


/* =========================================================
                    TABLE FOOTER
   ========================================================= */

.inquiry-table-footer {
    min-height: 42px;

    padding: 8px 14px;

    box-sizing: border-box;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    color: #9ca3af;

    font-size: 7px;
}


/* =========================================================
                       PAGINATION
   ========================================================= */

.pagination {
    display: flex;

    align-items: center;

    gap: 4px;
}

.pagination button {
    width: 23px;
    height: 23px;

    padding: 0;

    border: 1px solid #e1e5ea;

    border-radius: 4px;

    background: #ffffff;

    color: #6b7280;

    font-family: inherit;

    font-size: 7px;

    cursor: pointer;
}

.pagination button:hover {
    background: #f5f8ff;

    color: #2563eb;
}

.pagination .active-page {
    background: #2563eb;

    border-color: #2563eb;

    color: #ffffff;
}

.pagination span {
    padding: 0 2px;

    color: #9ca3af;
}


/* =========================================================
                     STATUS BADGES
   ========================================================= */

.inquiries-panel .table-status {
    min-width: 42px;

    padding: 3px 7px;

    text-align: center;

    font-size: 6px;

    line-height: 1.2;
}


/* Pending */

.inquiries-panel .pending-status {
    background: #fff4d8;

    color: #c08300;
}


/* Approved */

.inquiries-panel .approved-status {
    background: #e5f7ee;

    color: #168052;
}


/* Declined */

.inquiries-panel .declined-status {
    background: #ffe7e7;

    color: #c53d3d;
}


/* =========================================================
                     RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    .inquiry-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .inquiries-header {
        align-items: flex-start;
    }

    .inquiry-actions {
        justify-content: flex-start;
    }
}


@media (max-width: 768px) {

    .inquiry-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inquiries-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 10px;
    }

    .inquiry-actions {
        width: 100%;

        justify-content: flex-start;
    }

    .inquiry-search-row input {
        width: 100%;
    }

    .inquiry-table-footer {
        flex-direction: column;

        align-items: flex-start;
    }
}


@media (max-width: 480px) {

    .inquiry-stat-grid {
        grid-template-columns: 1fr;
    }

    .inquiry-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .inquiry-actions select,
    .date-filter-btn,
    .filter-btn,
    .new-inquiry-btn {
        width: 100%;
    }
}
/* =========================================================
          ADMIN INQUIRIES — CSS PART 2
          VISUAL REFINEMENT
   ========================================================= */


/* =========================================================
                 INQUIRY STAT CARD REFINEMENT
   ========================================================= */

.inquiry-stat-grid .admin-stat-card {
    min-height: 74px;

    padding: 12px 13px;

    display: flex;

    align-items: center;

    gap: 10px;

    box-sizing: border-box;
}


/* Icon container */

.inquiry-stat-grid .stat-icon {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 7px;

    font-size: 12px;
}


/* Statistic text */

.inquiry-stat-grid .stat-info {
    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.inquiry-stat-grid .stat-info span {
    margin-bottom: 1px;

    font-size: 7px;

    color: #6b7280;

    white-space: nowrap;
}

.inquiry-stat-grid .stat-info strong {
    margin: 0;

    font-size: 17px;

    line-height: 18px;

    color: #111827;
}

.inquiry-stat-grid .stat-info small {
    margin-top: 2px;

    font-size: 6px;

    line-height: 8px;

    white-space: nowrap;
}


/* =========================================================
                    ICON COLORS
   ========================================================= */

.blue-icon {
    background: #edf4ff;

    color: #3978df;
}

.green-icon {
    background: #eaf9f1;

    color: #27a878;
}

.orange-icon {
    background: #fff5e5;

    color: #e9a126;
}

.red-icon {
    background: #ffeded;

    color: #e04b4b;
}


/* =========================================================
                    PERCENTAGE COLORS
   ========================================================= */

.positive {
    color: #1e9b68 !important;
}

.negative {
    color: #df4b4b !important;
}


/* =========================================================
                    PANEL SPACING
   ========================================================= */

.inquiries-panel {
    border-radius: 7px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.035);
}


/* =========================================================
                  PANEL HEADER ALIGNMENT
   ========================================================= */

.inquiries-panel .admin-panel-header {
    padding: 11px 14px;

    min-height: 45px;

    box-sizing: border-box;
}

.inquiries-panel .admin-panel-header h3 {
    font-size: 10px;

    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
                     TABLE HEADER
   ========================================================= */

.inquiries-panel table thead tr {
    height: 30px;
}

.inquiries-panel table thead th {
    padding-top: 7px;
    padding-bottom: 7px;

    background: #fafbfc;

    color: #596273;

    letter-spacing: 0;

    font-weight: 600;
}


/* =========================================================
                    TABLE BODY
   ========================================================= */

.inquiries-panel table tbody tr {
    height: 42px;

    transition: background 0.15s ease;
}

.inquiries-panel table tbody tr:hover {
    background: #fbfcff;
}

.inquiries-panel table tbody td {
    color: #4b5563;

    font-weight: 400;
}


/* ID */

.inquiries-panel table tbody td:first-child {
    color: #6b7280;

    font-weight: 500;
}


/* Client name */

.inquiries-panel table tbody td:nth-child(2) {
    color: #374151;

    font-weight: 500;
}


/* Contact */

.inquiries-panel table tbody td:nth-child(3) {
    color: #6b7280;

    line-height: 1.45;
}


/* Inquiry title */

.inquiries-panel table tbody td:nth-child(4) {
    color: #374151;
}


/* Service */

.inquiries-panel table tbody td:nth-child(5) {
    color: #6b7280;
}


/* Date */

.inquiries-panel table tbody td:nth-child(6) {
    color: #6b7280;

    line-height: 1.45;
}


/* =========================================================
                    TABLE STATUS
   ========================================================= */

.inquiries-panel .table-status {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 40px;

    height: 17px;

    padding: 0 7px;

    box-sizing: border-box;

    border-radius: 9px;

    font-size: 6px;

    font-weight: 600;
}


/* =========================================================
                     ACTION AREA
   ========================================================= */

.inquiries-panel td:last-child {
    white-space: nowrap;
}

.inquiries-panel .action-btn {
    width: 21px;
    height: 21px;

    margin: 0 1px;

    border-radius: 4px;

    font-size: 8px;

    background: #ffffff;
}


/* =========================================================
                     SEARCH FIELD
   ========================================================= */

.inquiry-search-row {
    display: flex;

    align-items: center;

    min-height: 43px;

    box-sizing: border-box;

    background: #ffffff;
}

.inquiry-search-row input {
    width: 145px;

    height: 25px;

    border-radius: 4px;

    font-size: 7px;

    color: #374151;
}

.inquiry-search-row input::placeholder {
    color: #a1a8b3;
}


/* =========================================================
                    FILTER CONTROLS
   ========================================================= */

.inquiry-actions select,
.inquiry-actions button {
    font-size: 7px;

    white-space: nowrap;
}

.inquiry-actions select:focus,
.inquiry-actions button:focus {
    outline: none;
}


/* =========================================================
                   NEW INQUIRY BUTTON
   ========================================================= */

.new-inquiry-btn {
    min-width: 75px;

    box-shadow:
        0 1px 2px rgba(37, 99, 235, 0.15);
}

.new-inquiry-btn:active {
    transform: translateY(1px);
}


/* =========================================================
                    PAGINATION
   ========================================================= */

.inquiry-table-footer {
    min-height: 43px;

    background: #ffffff;
}

.pagination button {
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.pagination .active-page {
    font-weight: 600;
}


/* =========================================================
                   DATE / FILTER BUTTONS
   ========================================================= */

.date-filter-btn:hover,
.filter-btn:hover {
    background: #f8fafc;

    border-color: #d5dbe4;
}


/* =========================================================
                   DESKTOP WIDTH CONTROL
   ========================================================= */

@media (min-width: 1201px) {

    .inquiries-panel {
        width: 100%;
    }

    .inquiry-stat-grid {
        gap: 14px;
    }

}


/* =========================================================
                   MEDIUM SCREEN
   ========================================================= */

@media (max-width: 1100px) {

    .inquiry-stat-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .inquiries-panel .admin-panel-header {
        flex-wrap: wrap;

        gap: 10px;
    }

    .inquiry-actions {
        width: 100%;

        justify-content: flex-start;
    }

}


/* =========================================================
                     SMALL SCREEN
   ========================================================= */

@media (max-width: 650px) {

    .inquiry-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .inquiry-actions {
        gap: 6px;
    }

    .date-filter-btn {
        max-width: 100%;

        overflow: hidden;

        text-overflow: ellipsis;
    }

}


/* =========================================================
                    VERY SMALL SCREEN
   ========================================================= */

@media (max-width: 420px) {

    .inquiry-stat-grid {
        grid-template-columns: 1fr;
    }

    .inquiry-stat-grid .admin-stat-card {
        width: 100%;
    }

}
/* =========================================================
             ADMIN PAGE MAIN LAYOUT FIX
   ========================================================= */

.admin-page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: row;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


/* Sidebar stays on the left */

.admin-page .admin-sidebar {
    flex: 0 0 263px;

    width: 263px;

    min-height: 100vh;

    box-sizing: border-box;
}


/* Main content stays beside sidebar */

.admin-page .admin-main-content {
    flex: 1 1 auto;

    min-width: 0;

    width: auto;

    box-sizing: border-box;
}


/* =========================================================
                    DESKTOP
   ========================================================= */

@media (min-width: 769px) {

    .admin-page {
        display: flex;
        flex-direction: row;
    }

    .admin-page .admin-sidebar {
        position: relative;

        left: auto;
        top: auto;

        flex-shrink: 0;
    }

    .admin-page .admin-main-content {
        margin-left: 0;
    }

}


/* =========================================================
                    MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .admin-page {
        flex-direction: column;
    }

    .admin-page .admin-sidebar {
        width: 100%;
        min-height: auto;

        flex: none;
    }

    .admin-page .admin-main-content {
        width: 100%;
    }

}
/* =========================================================
              ADMIN BOOKINGS — CSS PART 1
   ========================================================= */


/* =========================================================
                    MAIN BOOKING LAYOUT
   ========================================================= */

.booking-content-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 245px;

    gap: 16px;

    width: 100%;

    box-sizing: border-box;
}


/* =========================================================
                  BOOKING STATISTICS
   ========================================================= */

.booking-stat-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 16px;
}

.booking-stat-grid .admin-stat-card {
    min-height: 74px;

    padding: 12px 13px;

    display: flex;

    align-items: center;

    gap: 10px;

    box-sizing: border-box;
}


/* =========================================================
                     STAT ICONS
   ========================================================= */

.booking-stat-grid .stat-icon {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 7px;

    font-size: 12px;
}


/* Purple */

.purple-icon {
    background: #f1eaff;

    color: #7956d8;
}


/* =========================================================
                     STAT INFORMATION
   ========================================================= */

.booking-stat-grid .stat-info {
    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.booking-stat-grid .stat-info span {
    margin-bottom: 1px;

    font-size: 7px;

    color: #6b7280;

    white-space: nowrap;
}

.booking-stat-grid .stat-info strong {
    margin: 0;

    font-size: 17px;

    line-height: 18px;

    color: #111827;
}

.booking-stat-grid .stat-info small {
    margin-top: 2px;

    font-size: 6px;

    line-height: 8px;

    white-space: nowrap;
}


/* =========================================================
                   BOOKING MAIN PANEL
   ========================================================= */

.bookings-panel {
    min-width: 0;

    overflow: hidden;

    border-radius: 7px;

    background: #ffffff;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.035);
}


/* =========================================================
                    PANEL HEADER
   ========================================================= */

.bookings-header {
    min-height: 45px;

    padding: 10px 14px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    box-sizing: border-box;
}

.bookings-header h3 {
    margin: 0;

    font-size: 10px;

    font-weight: 700;

    color: #111827;

    white-space: nowrap;
}


/* =========================================================
                     BOOKING ACTIONS
   ========================================================= */

.booking-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 6px;

    flex-wrap: nowrap;
}

.booking-actions select,
.booking-actions button {
    height: 25px;

    padding: 0 8px;

    border: 1px solid #dfe4eb;

    border-radius: 4px;

    background: #ffffff;

    color: #596273;

    font-family: inherit;

    font-size: 7px;

    cursor: pointer;

    box-sizing: border-box;
}

.booking-actions select {
    min-width: 70px;
}

.date-filter-btn {
    min-width: 145px;

    text-align: center;
}

.filter-btn {
    min-width: 48px;
}

.new-booking-btn {
    min-width: 78px;

    border-color: #2563eb !important;

    background: #2563eb !important;

    color: #ffffff !important;

    font-weight: 600;
}


/* =========================================================
                    BOOKING SEARCH
   ========================================================= */

.booking-search-row {
    min-height: 43px;

    padding: 8px 14px;

    display: flex;

    align-items: center;

    border-top: 1px solid #f0f2f5;

    border-bottom: 1px solid #f0f2f5;

    box-sizing: border-box;
}

.booking-search-row input {
    width: 145px;

    height: 25px;

    padding: 0 9px;

    border: 1px solid #dfe4eb;

    border-radius: 4px;

    outline: none;

    background: #ffffff;

    color: #374151;

    font-family: inherit;

    font-size: 7px;

    box-sizing: border-box;
}

.booking-search-row input::placeholder {
    color: #a1a8b3;
}

.booking-search-row input:focus {
    border-color: #9dbcf1;
}


/* =========================================================
                     BOOKING TABLE
   ========================================================= */

.bookings-panel .admin-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.bookings-panel table {
    width: 100%;

    min-width: 720px;

    border-collapse: collapse;

    table-layout: auto;
}

.bookings-panel table thead tr {
    height: 30px;

    background: #fafbfc;
}

.bookings-panel table thead th {
    padding: 7px 8px;

    border-bottom: 1px solid #e9edf2;

    color: #596273;

    font-size: 6px;

    font-weight: 600;

    text-align: left;

    white-space: nowrap;
}

.bookings-panel table tbody tr {
    height: 43px;

    border-bottom: 1px solid #eef1f4;

    transition: background 0.15s ease;
}

.bookings-panel table tbody tr:hover {
    background: #fbfcff;
}

.bookings-panel table tbody td {
    padding: 7px 8px;

    color: #596273;

    font-size: 6px;

    line-height: 1.4;

    vertical-align: middle;

    white-space: nowrap;
}


/* =========================================================
                       TABLE TEXT
   ========================================================= */

.bookings-panel table tbody td:first-child {
    color: #6b7280;

    font-weight: 500;
}

.bookings-panel table tbody td:nth-child(2) {
    color: #374151;

    font-weight: 500;
}

.bookings-panel table tbody td:nth-child(3) {
    color: #596273;
}

.bookings-panel table tbody td:nth-child(4),
.bookings-panel table tbody td:nth-child(6) {
    color: #6b7280;

    line-height: 1.45;
}


/* =========================================================
                    STATUS BADGES
   ========================================================= */

.booking-status {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 42px;

    min-height: 17px;

    padding: 0 7px;

    border-radius: 9px;

    font-size: 6px;

    font-weight: 600;

    white-space: nowrap;
}


/* Upcoming */

.upcoming-booking {
    background: #eaf2ff;

    color: #3978df;
}


/* In Progress */

.progress-booking {
    background: #e8f8ef;

    color: #24a16c;
}


/* Completed */

.completed-booking {
    background: #eee9ff;

    color: #7456ce;
}


/* Cancelled */

.cancelled-booking {
    background: #ffeaea;

    color: #df4b4b;
}


/* =========================================================
                      ACTION BUTTONS
   ========================================================= */

.bookings-panel .action-btn {
    width: 21px;
    height: 21px;

    margin: 0 1px;

    padding: 0;

    border: 1px solid #e1e6ed;

    border-radius: 4px;

    background: #ffffff;

    color: #697386;

    font-size: 8px;

    cursor: pointer;
}

.bookings-panel .action-btn:hover {
    background: #f7f9fc;

    border-color: #cfd6e0;
}


/* =========================================================
                    TABLE FOOTER
   ========================================================= */

.booking-table-footer {
    min-height: 42px;

    padding: 8px 14px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    box-sizing: border-box;

    color: #9299a5;

    font-size: 6px;
}


/* =========================================================
                      PAGINATION
   ========================================================= */

.booking-table-footer .pagination {
    display: flex;

    align-items: center;

    gap: 3px;
}

.booking-table-footer .pagination button {
    width: 20px;
    height: 20px;

    padding: 0;

    border: 1px solid #e1e6ed;

    border-radius: 4px;

    background: #ffffff;

    color: #697386;

    font-size: 7px;

    cursor: pointer;
}

.booking-table-footer .pagination .active-page {
    border-color: #2563eb;

    background: #2563eb;

    color: #ffffff;
}


/* =========================================================
                    RIGHT SIDEBAR
   ========================================================= */

.booking-sidebar {
    display: flex;

    flex-direction: column;

    gap: 16px;

    min-width: 0;
}


/* =========================================================
                   QUICK FILTER PANEL
   ========================================================= */

.booking-filter-panel,
.top-services-panel {
    width: 100%;

    overflow: hidden;

    border-radius: 7px;

    background: #ffffff;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.035);

    box-sizing: border-box;
}

.booking-filter-panel .admin-panel-header,
.top-services-panel .admin-panel-header {
    min-height: 40px;

    padding: 10px 12px;

    box-sizing: border-box;
}

.booking-filter-panel .admin-panel-header h3,
.top-services-panel .admin-panel-header h3 {
    margin: 0;

    font-size: 9px;

    font-weight: 700;

    color: #111827;
}


/* =========================================================
                    FILTER CONTENT
   ========================================================= */

.quick-filter-content {
    padding: 10px 12px 13px;

    display: flex;

    flex-direction: column;

    gap: 6px;

    box-sizing: border-box;
}

.quick-filter-content label {
    margin-top: 2px;

    color: #6b7280;

    font-size: 6px;

    font-weight: 500;
}

.quick-filter-content select,
.quick-date {
    width: 100%;

    height: 25px;

    padding: 0 7px;

    border: 1px solid #dfe4eb;

    border-radius: 4px;

    background: #ffffff;

    color: #596273;

    font-family: inherit;

    font-size: 6px;

    box-sizing: border-box;
}

.quick-date {
    display: flex;

    align-items: center;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
                    CLEAR FILTERS
   ========================================================= */

.clear-filter-btn {
    width: 100%;

    height: 25px;

    margin-top: 5px;

    border: 1px solid #dfe4eb;

    border-radius: 4px;

    background: #ffffff;

    color: #3978df;

    font-family: inherit;

    font-size: 6px;

    cursor: pointer;
}

.clear-filter-btn:hover {
    background: #f7faff;
}


/* =========================================================
                     TOP SERVICES
   ========================================================= */

.top-services-list {
    padding: 9px 12px 12px;

    box-sizing: border-box;
}

.service-row {
    min-height: 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid #f0f2f5;

    color: #596273;

    font-size: 6px;
}

.service-row:last-of-type {
    border-bottom: none;
}

.service-row strong {
    color: #374151;

    font-size: 6px;
}


/* =========================================================
                  VIEW ALL SERVICES
   ========================================================= */

.view-services-btn {
    width: 100%;

    height: 25px;

    margin-top: 8px;

    border: 1px solid #dfe4eb;

    border-radius: 4px;

    background: #ffffff;

    color: #3978df;

    font-family: inherit;

    font-size: 6px;

    cursor: pointer;
}

.view-services-btn:hover {
    background: #f7faff;
}


/* =========================================================
                    LARGE DESKTOP
   ========================================================= */

@media (min-width: 1201px) {

    .booking-content-layout {
        grid-template-columns:
            minmax(0, 1fr) 245px;
    }

}


/* =========================================================
                    MEDIUM SCREEN
   ========================================================= */

@media (max-width: 1100px) {

    .booking-stat-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .booking-content-layout {
        grid-template-columns: 1fr;
    }

    .booking-sidebar {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        align-items: start;
    }

}


/* =========================================================
                    SMALL SCREEN
   ========================================================= */

@media (max-width: 700px) {

    .booking-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .bookings-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .booking-actions {
        width: 100%;

        flex-wrap: wrap;

        justify-content: flex-start;
    }

    .booking-sidebar {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
                   VERY SMALL SCREEN
   ========================================================= */

@media (max-width: 450px) {

    .booking-stat-grid {
        grid-template-columns: 1fr;
    }

    .booking-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .booking-actions select,
    .booking-actions button {
        width: 100%;
    }

    .booking-search-row input {
        width: 100%;
    }

}
/* =========================================================
              ADMIN BOOKINGS — CSS PART 2
              VISUAL REFINEMENT
   ========================================================= */


/* =========================================================
                 BOOKING PAGE SPACING
   ========================================================= */

.booking-content-layout {
    align-items: start;

    gap: 14px;
}

.booking-stat-grid {
    gap: 12px;

    margin-bottom: 15px;
}


/* =========================================================
                 STAT CARD REFINEMENT
   ========================================================= */

.booking-stat-grid .admin-stat-card {
    min-height: 72px;

    padding: 11px 12px;

    border: 1px solid #edf0f4;

    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.035);
}

.booking-stat-grid .stat-icon {
    width: 29px;
    height: 29px;

    border-radius: 7px;

    font-size: 11px;
}

.booking-stat-grid .stat-info span {
    font-size: 6.5px;

    line-height: 8px;
}

.booking-stat-grid .stat-info strong {
    font-size: 16px;

    line-height: 17px;
}

.booking-stat-grid .stat-info small {
    font-size: 5.5px;

    line-height: 7px;
}


/* =========================================================
                    MAIN BOOKING PANEL
   ========================================================= */

.bookings-panel {
    border: 1px solid #edf0f4;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.035);
}


/* =========================================================
                    PANEL HEADER REFINEMENT
   ========================================================= */

.bookings-header {
    min-height: 44px;

    padding: 9px 13px;
}

.bookings-header h3 {
    font-size: 9px;
}


/* =========================================================
                    BOOKING CONTROLS
   ========================================================= */

.booking-actions {
    gap: 5px;
}

.booking-actions select,
.booking-actions button {
    height: 25px;

    font-size: 6px;

    border-color: #dfe4eb;
}

.booking-actions select {
    min-width: 67px;
}

.date-filter-btn {
    min-width: 140px;
}

.filter-btn {
    min-width: 46px;
}

.new-booking-btn {
    min-width: 76px;
}


/* =========================================================
                    SEARCH REFINEMENT
   ========================================================= */

.booking-search-row {
    min-height: 41px;

    padding: 7px 13px;
}

.booking-search-row input {
    width: 142px;

    height: 24px;

    font-size: 6px;
}


/* =========================================================
                    TABLE REFINEMENT
   ========================================================= */

.bookings-panel table thead tr {
    height: 29px;
}

.bookings-panel table thead th {
    padding: 6px 8px;

    font-size: 5.7px;

    background: #fafbfc;
}

.bookings-panel table tbody tr {
    height: 41px;
}

.bookings-panel table tbody td {
    padding: 6px 8px;

    font-size: 5.7px;
}


/* Keep schedule/date on two lines */

.bookings-panel table tbody td:nth-child(4),
.bookings-panel table tbody td:nth-child(6) {
    line-height: 1.35;
}


/* =========================================================
                   TABLE COLUMN BALANCE
   ========================================================= */

.bookings-panel table th:nth-child(1),
.bookings-panel table td:nth-child(1) {
    width: 8%;
}

.bookings-panel table th:nth-child(2),
.bookings-panel table td:nth-child(2) {
    width: 16%;
}

.bookings-panel table th:nth-child(3),
.bookings-panel table td:nth-child(3) {
    width: 17%;
}

.bookings-panel table th:nth-child(4),
.bookings-panel table td:nth-child(4) {
    width: 15%;
}

.bookings-panel table th:nth-child(5),
.bookings-panel table td:nth-child(5) {
    width: 12%;
}

.bookings-panel table th:nth-child(6),
.bookings-panel table td:nth-child(6) {
    width: 17%;
}

.bookings-panel table th:nth-child(7),
.bookings-panel table td:nth-child(7) {
    width: 15%;
}


/* =========================================================
                    STATUS REFINEMENT
   ========================================================= */

.booking-status {
    min-width: 40px;

    min-height: 16px;

    padding: 0 6px;

    font-size: 5.5px;

    border-radius: 8px;
}


/* =========================================================
                    ACTION BUTTON REFINEMENT
   ========================================================= */

.bookings-panel .action-btn {
    width: 20px;
    height: 20px;

    font-size: 7px;

    border-color: #e2e7ed;
}


/* =========================================================
                    TABLE FOOTER
   ========================================================= */

.booking-table-footer {
    min-height: 40px;

    padding: 7px 13px;

    font-size: 5.7px;
}

.booking-table-footer .pagination {
    gap: 3px;
}

.booking-table-footer .pagination button {
    width: 19px;
    height: 19px;

    font-size: 6.5px;
}


/* =========================================================
                    RIGHT SIDEBAR
   ========================================================= */

.booking-sidebar {
    gap: 14px;
}

.booking-filter-panel,
.top-services-panel {
    border: 1px solid #edf0f4;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.035);
}


/* =========================================================
                  QUICK FILTER HEADER
   ========================================================= */

.booking-filter-panel .admin-panel-header,
.top-services-panel .admin-panel-header {
    min-height: 39px;

    padding: 9px 11px;
}

.booking-filter-panel .admin-panel-header h3,
.top-services-panel .admin-panel-header h3 {
    font-size: 8px;
}


/* =========================================================
                    QUICK FILTERS
   ========================================================= */

.quick-filter-content {
    padding: 9px 11px 11px;

    gap: 5px;
}

.quick-filter-content label {
    font-size: 5.5px;
}

.quick-filter-content select,
.quick-date {
    height: 24px;

    font-size: 5.5px;

    border-color: #dfe4eb;
}

.clear-filter-btn {
    height: 24px;

    margin-top: 4px;

    font-size: 5.5px;
}


/* =========================================================
                    TOP SERVICES
   ========================================================= */

.top-services-list {
    padding: 8px 11px 11px;
}

.service-row {
    min-height: 24px;

    font-size: 5.5px;
}

.service-row strong {
    font-size: 5.5px;
}

.view-services-btn {
    height: 24px;

    margin-top: 7px;

    font-size: 5.5px;
}


/* =========================================================
                 LARGE DESKTOP BALANCE
   ========================================================= */

@media (min-width: 1201px) {

    .booking-content-layout {
        grid-template-columns:
            minmax(0, 1fr) 242px;
    }

}


/* =========================================================
                  MEDIUM DESKTOP
   ========================================================= */

@media (max-width: 1200px) and (min-width: 901px) {

    .booking-content-layout {
        grid-template-columns:
            minmax(0, 1fr) 225px;
    }

    .booking-actions {
        gap: 4px;
    }

    .date-filter-btn {
        min-width: 125px;
    }

}


/* =========================================================
                  TABLET
   ========================================================= */

@media (max-width: 900px) {

    .booking-stat-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .booking-content-layout {
        grid-template-columns: 1fr;
    }

    .booking-sidebar {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
                    MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .booking-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .booking-sidebar {
        grid-template-columns: 1fr;
    }

    .bookings-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .booking-actions {
        width: 100%;

        flex-wrap: wrap;

        justify-content: flex-start;
    }

}


/* =========================================================
                 SMALL MOBILE
   ========================================================= */

@media (max-width: 450px) {

    .booking-stat-grid {
        grid-template-columns: 1fr;
    }

    .booking-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .booking-actions select,
    .booking-actions button {
        width: 100%;
    }

    .booking-search-row input {
        width: 100%;
    }

}
/* =========================================================
   ADMIN PROJECTS — CSS PART 1
   Main Layout + Sidebar + Header + Statistics
   ========================================================= */


/* =========================================================
   ADMIN PAGE BASE
   ========================================================= */

.admin-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #f5f7fa;
    font-family: Arial, Helvetica, sans-serif;
    color: #172033;
}


/* =========================================================
   ADMIN SIDEBAR
   ========================================================= */

.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: #07111c;
    color: #ffffff;

    display: flex;
    flex-direction: column;

    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;

    z-index: 100;
}


/* LOGO */

.admin-logo {
    padding: 20px 22px 24px;
}

.admin-logo img {
    width: 190px;
    height: auto;
    display: block;
}


/* MENU TITLE */

.admin-menu-title {
    padding: 0 22px 14px;

    font-size: 12px;
    font-weight: 600;

    color: #91a0b5;
    letter-spacing: 0.5px;
}


/* MENU */

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 0 13px;
}


/* MENU LINKS */

.admin-menu a {
    display: flex;
    align-items: center;

    min-height: 44px;
    padding: 0 14px;

    color: #e5eaf0;
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    border-radius: 6px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


/* ICON / TEXT */

.admin-menu a span {
    margin-left: 8px;
}


/* HOVER */

.admin-menu a:hover {
    background: #142231;
    color: #ffffff;
}


/* ACTIVE */

.admin-menu a.active {
    background: #e8ebef;
    color: #111827;
    font-weight: 600;
}


/* SIDEBAR BOTTOM */

.admin-sidebar-bottom {
    margin-top: auto;

    border-top: 1px solid #26313c;

    padding: 18px 13px;
}

.admin-sidebar-bottom a {
    display: flex;
    align-items: center;

    padding: 10px 14px;

    color: #ffffff;
    text-decoration: none;

    font-size: 14px;
}

.admin-sidebar-bottom a:hover {
    color: #dbe5ef;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.admin-main-content {
    margin-left: 260px;

    width: calc(100% - 260px);

    min-height: 100vh;

    padding: 28px 30px 40px;

    box-sizing: border-box;
}


/* =========================================================
   HEADER
   ========================================================= */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 25px;
}


/* PAGE TITLE */

.admin-page-title h1 {
    margin: 0;

    font-size: 27px;
    font-weight: 700;

    color: #172033;
}

.admin-page-title p {
    margin: 5px 0 0;

    font-size: 13px;
    color: #7b8798;
}


/* HEADER RIGHT */

.admin-header-right {
    display: flex;
    align-items: center;

    gap: 14px;

    color: #344054;

    font-size: 13px;
}


/* SEARCH */

.admin-search input {
    width: 220px;
    height: 38px;

    padding: 0 14px;

    border: 1px solid #dfe4ea;
    border-radius: 5px;

    background: #ffffff;

    outline: none;

    font-size: 12px;
    color: #344054;

    box-sizing: border-box;
}

.admin-search input:focus {
    border-color: #2f6fed;
}


/* DATE */

.admin-date,
.admin-time {
    white-space: nowrap;
}


/* NOTIFICATION */

.admin-notification {
    font-size: 17px;
}


/* USER */

.admin-user {
    white-space: nowrap;
    font-weight: 500;
}


/* =========================================================
   STATISTICS GRID
   ========================================================= */

.admin-stat-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 22px;
}


/* =========================================================
   STAT CARD
   ========================================================= */

.admin-stat-card {
    min-height: 90px;

    background: #ffffff;

    border: 1px solid #e7ebf0;

    border-radius: 7px;

    padding: 17px;

    display: flex;
    align-items: center;

    box-sizing: border-box;

    box-shadow:
        0 2px 7px rgba(16, 24, 40, 0.03);
}


/* STAT ICON */

.stat-icon {
    width: 42px;
    height: 42px;

    min-width: 42px;

    border-radius: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    margin-right: 12px;
}


/* ICON BACKGROUNDS */

.blue-icon {
    background: #edf4ff;
    color: #3676e8;
}

.orange-icon {
    background: #fff5e7;
    color: #e89a28;
}

.purple-icon {
    background: #f1eaff;
    color: #7956d8;
}

.green-icon {
    background: #eaf8f1;
    color: #21a36a;
}

.red-icon {
    background: #ffeded;
    color: #e45151;
}


/* STAT INFORMATION */

.stat-info {
    display: flex;
    flex-direction: column;

    min-width: 0;
}


/* LABEL */

.stat-info span {
    font-size: 10px;
    color: #667085;

    margin-bottom: 2px;
}


/* NUMBER */

.stat-info strong {
    font-size: 21px;
    line-height: 1.1;

    color: #101828;

    margin-bottom: 4px;
}


/* SMALL CHANGE */

.stat-info small {
    font-size: 8px;
    white-space: nowrap;
}


/* POSITIVE */

.positive {
    color: #18a56b;
}


/* NEGATIVE */

.negative {
    color: #e05252;
}


/* =========================================================
   PROJECT CONTENT LAYOUT
   ========================================================= */

.project-content-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: 18px;

    align-items: start;
}


/* =========================================================
   GENERAL ADMIN PANEL
   ========================================================= */

.admin-panel {
    background: #ffffff;

    border: 1px solid #e5e9ef;

    border-radius: 7px;

    box-shadow:
        0 2px 8px rgba(16, 24, 40, 0.025);

    overflow: hidden;
}


/* =========================================================
   PANEL HEADER
   ========================================================= */

.admin-panel-header {
    min-height: 58px;

    padding: 0 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #edf0f4;

    box-sizing: border-box;
}


.admin-panel-header h3 {
    margin: 0;

    font-size: 14px;
    font-weight: 600;

    color: #172033;
}


.admin-panel-header a {
    color: #2868d9;

    font-size: 11px;

    text-decoration: none;
}


.admin-panel-header a:hover {
    text-decoration: underline;
}


/* =========================================================
   PROJECT HEADER ACTIONS
   ========================================================= */

.projects-header {
    gap: 12px;
}


.project-actions {
    display: flex;
    align-items: center;

    gap: 7px;
}


.project-actions select,
.date-filter-btn,
.filter-btn,
.new-project-btn {
    height: 32px;

    border-radius: 5px;

    font-size: 10px;

    box-sizing: border-box;
}


/* SELECT */

.project-actions select {
    min-width: 105px;

    padding: 0 9px;

    border: 1px solid #dfe4ea;

    background: #ffffff;

    color: #667085;

    outline: none;
}


/* DATE */

.date-filter-btn {
    padding: 0 10px;

    border: 1px solid #dfe4ea;

    background: #ffffff;

    color: #667085;
}


/* FILTER */

.filter-btn {
    padding: 0 11px;

    border: 1px solid #dfe4ea;

    background: #ffffff;

    color: #667085;
}


/* NEW PROJECT */

.new-project-btn {
    padding: 0 13px;

    border: 1px solid #2868d9;

    background: #2868d9;

    color: #ffffff;

    font-weight: 600;

    cursor: pointer;
}

.new-project-btn:hover {
    background: #2159bd;
}


/* =========================================================
   PROJECT SEARCH
   ========================================================= */

.project-search-row {
    padding: 13px 17px;

    border-bottom: 1px solid #edf0f4;
}


.project-search-row input {
    width: 180px;
    height: 30px;

    padding: 0 11px;

    border: 1px solid #dfe4ea;

    border-radius: 5px;

    outline: none;

    font-size: 10px;

    color: #344054;

    box-sizing: border-box;
}


.project-search-row input:focus {
    border-color: #2868d9;
}
/* =========================================================
   ADMIN PROJECTS — CSS PART 2
   Project Table + Status + Progress + Right Sidebar
   ========================================================= */


/* =========================================================
   PROJECT TABLE
   ========================================================= */

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
}


.admin-table-wrapper table {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;

    font-size: 10px;
}


/* TABLE HEADER */

.admin-table-wrapper thead {
    background: #fbfcfd;
}


.admin-table-wrapper th {
    height: 42px;

    padding: 0 10px;

    border-bottom: 1px solid #e8edf2;

    text-align: left;

    color: #667085;

    font-size: 9px;
    font-weight: 600;

    white-space: nowrap;
}


/* TABLE BODY */

.admin-table-wrapper td {
    height: 58px;

    padding: 7px 10px;

    border-bottom: 1px solid #edf0f3;

    color: #344054;

    vertical-align: middle;
}


.admin-table-wrapper tbody tr:hover {
    background: #fafcff;
}


/* =========================================================
   PROJECT NAME CELL
   ========================================================= */

.project-name-cell {
    display: flex;

    align-items: center;

    gap: 8px;

    min-width: 0;
}


/* PROJECT IMAGE */

.project-name-cell img {
    width: 43px;
    height: 34px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 4px;

    border: 1px solid #e4e8ed;
}


/* PROJECT TEXT */

.project-name-cell div {
    min-width: 0;
}


.project-name-cell strong {
    display: block;

    color: #344054;

    font-size: 9px;
    font-weight: 600;

    line-height: 1.3;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.project-name-cell small {
    display: block;

    margin-top: 3px;

    color: #98a2b3;

    font-size: 8px;
}


/* =========================================================
   TABLE SMALL TEXT
   ========================================================= */

.admin-table-wrapper td small {
    color: #98a2b3;

    font-size: 8px;
}


/* =========================================================
   PROJECT STATUS BADGES
   ========================================================= */

.project-status {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 62px;

    height: 21px;

    padding: 0 8px;

    border-radius: 12px;

    font-size: 8px;
    font-weight: 600;

    white-space: nowrap;
}


/* IN PROGRESS */

.project-progress {
    background: #eaf2ff;
    color: #3271d9;
}


/* PLANNING */

.project-planning {
    background: #fff0d9;
    color: #d88b15;
}


/* ON HOLD */

.project-hold {
    background: #fff1dc;
    color: #d98816;
}


/* COMPLETED */

.project-completed {
    background: #e6f8ef;
    color: #159563;
}


/* CANCELLED */

.project-cancelled {
    background: #ffe8e8;
    color: #dc4c4c;
}


/* =========================================================
   PROGRESS CELL
   ========================================================= */

.progress-cell {
    display: flex;

    align-items: center;

    gap: 7px;
}


/* PROGRESS BAR */

.progress-bar {
    width: 50px;
    height: 4px;

    background: #e7edf4;

    border-radius: 10px;

    overflow: hidden;
}


/* PROGRESS FILL */

.progress-bar span {
    display: block;

    height: 100%;

    background: #3777e8;

    border-radius: 10px;
}


/* COMPLETED */

.completed-progress span {
    background: #20a36b;
}


/* CANCELLED */

.cancelled-progress span {
    background: #e45454;
}


/* PERCENTAGE */

.progress-cell small {
    color: #667085 !important;

    font-size: 8px;

    min-width: 25px;
}


/* =========================================================
   ACTION BUTTONS
   ========================================================= */

.action-btn {
    width: 25px;
    height: 25px;

    margin-right: 3px;

    padding: 0;

    border: 1px solid #dfe5ec;

    background: #ffffff;

    color: #667085;

    border-radius: 4px;

    font-size: 10px;

    cursor: pointer;
}


.action-btn:hover {
    background: #f4f7fb;

    border-color: #cbd5e1;

    color: #2868d9;
}


/* =========================================================
   PROJECT TABLE FOOTER
   ========================================================= */

.project-table-footer {
    min-height: 50px;

    padding: 0 17px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    box-sizing: border-box;

    color: #98a2b3;

    font-size: 9px;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
    display: flex;

    align-items: center;

    gap: 4px;
}


.pagination button {
    width: 26px;
    height: 26px;

    border: 1px solid #dfe5ec;

    background: #ffffff;

    color: #667085;

    border-radius: 4px;

    font-size: 9px;

    cursor: pointer;
}


.pagination button:hover {
    border-color: #2868d9;

    color: #2868d9;
}


.pagination .active-page {
    background: #2868d9;

    border-color: #2868d9;

    color: #ffffff;
}


.pagination span {
    padding: 0 2px;

    color: #98a2b3;
}


/* =========================================================
   RIGHT PROJECT SIDEBAR
   ========================================================= */

.project-sidebar {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


/* =========================================================
   TOP SERVICES
   ========================================================= */

.project-services-list {
    padding: 13px 17px 16px;
}


.service-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    min-height: 29px;

    border-bottom: 1px solid #f0f2f5;

    color: #667085;

    font-size: 9px;
}


.service-row:last-of-type {
    border-bottom: none;
}


.service-row strong {
    color: #344054;

    font-size: 9px;

    font-weight: 600;
}


/* VIEW SERVICES BUTTON */

.view-services-btn {
    width: 100%;

    height: 31px;

    margin-top: 11px;

    border: 1px solid #dce3ec;

    border-radius: 4px;

    background: #ffffff;

    color: #2868d9;

    font-size: 9px;

    cursor: pointer;
}


.view-services-btn:hover {
    background: #f6f9fd;

    border-color: #2868d9;
}


/* =========================================================
   RECENT UPDATES
   ========================================================= */

.recent-updates-list {
    padding: 13px 17px 16px;
}


.update-item {
    display: flex;

    gap: 9px;

    padding: 10px 0;

    border-bottom: 1px solid #f0f2f5;
}


.update-item:last-of-type {
    border-bottom: none;
}


/* UPDATE ICON */

.update-icon {
    width: 25px;
    height: 25px;

    min-width: 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eef4ff;

    color: #3976dc;

    font-size: 9px;
}


/* UPDATE CONTENT */

.update-content {
    display: flex;

    flex-direction: column;

    min-width: 0;
}


.update-content strong {
    color: #344054;

    font-size: 9px;

    font-weight: 600;

    line-height: 1.3;
}


.update-content span {
    margin-top: 3px;

    color: #98a2b3;

    font-size: 7px;
}


.update-content small {
    margin-top: 3px;

    color: #667085;

    font-size: 8px;

    line-height: 1.3;
}


/* =========================================================
   VIEW TIMELINE BUTTON
   ========================================================= */

.view-timeline-btn {
    width: 100%;

    height: 31px;

    margin-top: 11px;

    border: 1px solid #dce3ec;

    border-radius: 4px;

    background: #ffffff;

    color: #2868d9;

    font-size: 9px;

    cursor: pointer;
}


.view-timeline-btn:hover {
    background: #f6f9fd;

    border-color: #2868d9;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .admin-stat-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .project-content-layout {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        display: grid;

        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================================
   RESPONSIVE — SMALLER SCREENS
   ========================================================= */

@media (max-width: 900px) {

    .admin-sidebar {
        width: 210px;
    }

    .admin-main-content {
        margin-left: 210px;

        width: calc(100% - 210px);

        padding: 22px 20px 30px;
    }

    .admin-header {
        flex-direction: column;

        gap: 15px;
    }

    .admin-header-right {
        width: 100%;

        flex-wrap: wrap;
    }

    .project-actions {
        flex-wrap: wrap;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .admin-sidebar {
        position: relative;

        width: 100%;

        min-height: auto;
    }

    .admin-page {
        flex-direction: column;
    }

    .admin-main-content {
        margin-left: 0;

        width: 100%;

        padding: 18px;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   ADMIN DESIGN STUDIO
   PART 1 — MAIN STRUCTURE
   ========================================================= */


/* =========================================================
   DESIGN STATUS TABS
   ========================================================= */

.design-status-tabs {
    display: flex;
    align-items: center;

    background: #ffffff;

    border: 1px solid #e5e9ef;
    border-radius: 6px;

    height: 42px;

    padding: 0 10px;

    margin-bottom: 15px;

    overflow-x: auto;
}


.design-tab {
    height: 42px;

    padding: 0 12px;

    border: none;
    border-bottom: 2px solid transparent;

    background: transparent;

    color: #667085;

    font-size: 9px;
    font-weight: 500;

    white-space: nowrap;

    cursor: pointer;
}


.design-tab span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 16px;
    height: 16px;

    margin-left: 4px;

    border-radius: 8px;

    background: #edf2f7;

    color: #667085;

    font-size: 8px;
}


.design-tab.active {
    color: #2868d9;

    font-weight: 600;

    border-bottom-color: #2868d9;
}


.design-tab.active span {
    background: #e8f0ff;

    color: #2868d9;
}


/* =========================================================
   DESIGN WORKSPACE
   ========================================================= */

.design-workspace {
    display: grid;

    grid-template-columns:
        215px
        minmax(0, 1fr)
        235px;

    gap: 12px;

    align-items: start;
}


/* =========================================================
   DESIGN REQUEST PANEL
   ========================================================= */

.design-request-panel {
    background: #ffffff;

    border: 1px solid #e4e9ef;

    border-radius: 6px;

    overflow: hidden;
}


.design-request-header {
    padding: 13px 12px;

    border-bottom: 1px solid #edf0f4;
}


.design-request-header h3 {
    margin: 0 0 9px;

    color: #172033;

    font-size: 11px;
    font-weight: 600;
}


.design-search {
    display: flex;

    width: 100%;
}


.design-search input {
    width: 100%;
    height: 28px;

    padding: 0 8px;

    border: 1px solid #dfe4ea;
    border-radius: 4px 0 0 4px;

    outline: none;

    font-size: 8px;

    color: #344054;
}


.design-search button {
    width: 28px;
    height: 28px;

    border: 1px solid #dfe4ea;
    border-left: none;

    border-radius: 0 4px 4px 0;

    background: #ffffff;

    color: #667085;

    cursor: pointer;
}


/* =========================================================
   DESIGN REQUEST LIST
   ========================================================= */

.design-request-list {
    display: flex;

    flex-direction: column;
}


.design-request {
    display: flex;

    align-items: flex-start;

    gap: 7px;

    padding: 9px 8px;

    border-bottom: 1px solid #edf0f4;

    cursor: pointer;

    transition: background 0.2s ease;
}


.design-request:hover {
    background: #f8faff;
}


.design-request.active-request {
    background: #f0f5ff;

    border-left: 3px solid #2868d9;

    padding-left: 5px;
}


/* REQUEST IMAGE */

.design-request > img {
    width: 43px;
    height: 37px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 4px;

    border: 1px solid #e0e5eb;
}


/* REQUEST INFORMATION */

.request-info {
    display: flex;

    flex-direction: column;

    min-width: 0;

    flex: 1;
}


.request-info strong {
    color: #344054;

    font-size: 8px;

    line-height: 1.3;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.request-info span {
    margin-top: 2px;

    color: #667085;

    font-size: 7px;
}


.request-info small {
    margin-top: 2px;

    color: #98a2b3;

    font-size: 6.5px;
}


.request-status-progress {
    color: #3775db !important;

    font-weight: 600;
}


.request-status-review {
    color: #dc901f !important;

    font-weight: 600;
}


.request-status-revision {
    color: #d77b24 !important;

    font-weight: 600;
}


.request-status-approved {
    color: #18a267 !important;

    font-weight: 600;
}


/* REVISION NUMBER */

.design-request > small {
    color: #98a2b3;

    font-size: 6px;

    white-space: nowrap;
}


/* =========================================================
   REQUEST FOOTER
   ========================================================= */

.design-request-footer {
    min-height: 40px;

    padding: 0 9px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    color: #98a2b3;

    font-size: 7px;
}


.design-pagination {
    display: flex;

    align-items: center;

    gap: 3px;
}


.design-pagination button {
    width: 19px;
    height: 19px;

    padding: 0;

    border: 1px solid #dfe5ec;

    border-radius: 3px;

    background: #ffffff;

    color: #667085;

    font-size: 7px;

    cursor: pointer;
}


.design-pagination button.active-page {
    color: #ffffff;

    background: #2868d9;

    border-color: #2868d9;
}


/* =========================================================
   DESIGN MAIN PANEL
   ========================================================= */

.design-main-panel {
    min-width: 0;

    background: #ffffff;

    border: 1px solid #e4e9ef;

    border-radius: 6px;

    overflow: hidden;
}


/* =========================================================
   DESIGN MAIN HEADER
   ========================================================= */

.design-main-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    padding: 13px 14px;

    border-bottom: 1px solid #edf0f4;
}


.design-main-header h2 {
    margin: 0;

    color: #172033;

    font-size: 13px;
    font-weight: 600;
}


.design-main-header p {
    margin: 4px 0 0;

    color: #667085;

    font-size: 7px;
}


.more-actions-btn {
    height: 27px;

    padding: 0 9px;

    border: 1px solid #dfe4ea;

    border-radius: 4px;

    background: #ffffff;

    color: #667085;

    font-size: 7px;

    cursor: pointer;
}


/* =========================================================
   PREVIEW TABS
   ========================================================= */

.design-preview-tabs {
    display: flex;

    align-items: center;

    height: 36px;

    padding: 0 12px;

    border-bottom: 1px solid #edf0f4;
}


.preview-tab {
    height: 36px;

    padding: 0 10px;

    border: none;
    border-bottom: 2px solid transparent;

    background: transparent;

    color: #667085;

    font-size: 8px;

    cursor: pointer;
}


.preview-tab.active {
    color: #2868d9;

    font-weight: 600;

    border-bottom-color: #2868d9;
}


/* =========================================================
   LARGE DESIGN PREVIEW
   ========================================================= */

.design-preview {
    position: relative;

    margin: 12px;

    height: 245px;

    overflow: hidden;

    border-radius: 5px;

    background: #eef1f4;
}


.design-preview img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* EXPAND BUTTON */

.preview-expand {
    position: absolute;

    right: 9px;
    top: 9px;

    width: 27px;
    height: 27px;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    color: #344054;

    font-size: 11px;

    cursor: pointer;
}


/* =========================================================
   DESIGN THUMBNAILS
   ========================================================= */

.design-thumbnails {
    display: flex;

    align-items: center;

    gap: 7px;

    padding: 0 12px 12px;
}


.design-thumbnails img {
    width: 78px;
    height: 47px;

    object-fit: cover;

    border-radius: 4px;

    border: 2px solid transparent;

    cursor: pointer;
}


.design-thumbnails img.selected-thumbnail {
    border-color: #2868d9;
}


.thumbnail-arrow {
    width: 22px;
    height: 32px;

    flex-shrink: 0;

    border: none;

    background: transparent;

    color: #667085;

    font-size: 15px;

    cursor: pointer;
}
/* =========================================================
   ADMIN DESIGN STUDIO
   PART 2 — DETAILS + SUMMARY + ACTIONS
   ========================================================= */


/* =========================================================
   DESIGN DETAILS
   ========================================================= */

.design-details-grid {
    padding: 0 12px 14px;
}


.design-details {
    border-top: 1px solid #edf0f4;

    padding-top: 12px;
}


.design-details h3 {
    margin: 0 0 10px;

    color: #172033;

    font-size: 10px;
    font-weight: 600;
}


.details-grid {
    display: grid;

    grid-template-columns:
        1fr
        1.25fr;

    column-gap: 22px;

    row-gap: 8px;
}


.details-grid > div {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 10px;
}


.details-grid span {
    color: #98a2b3;

    font-size: 7px;
}


.details-grid strong {
    color: #475467;

    font-size: 7px;

    font-weight: 500;

    text-align: right;
}


/* =========================================================
   COLOR PALETTE
   ========================================================= */

.color-palette {
    display: flex;

    gap: 4px;
}


.color-palette i {
    width: 12px;
    height: 12px;

    border-radius: 2px;

    border: 1px solid #d9dee5;
}


.color-palette i:nth-child(1) {
    background: #d7d0c5;
}

.color-palette i:nth-child(2) {
    background: #8b765f;
}

.color-palette i:nth-child(3) {
    background: #ffffff;
}

.color-palette i:nth-child(4) {
    background: #4d4a46;
}


/* =========================================================
   ATTACHED FILES
   ========================================================= */

.design-files {
    display: flex;

    gap: 5px;
}


.design-files button {
    min-width: 105px;

    padding: 5px 6px;

    border: 1px solid #dfe5ec;

    border-radius: 4px;

    background: #ffffff;

    color: #475467;

    text-align: left;

    font-size: 7px;

    cursor: pointer;
}


.design-files button small {
    display: block;

    margin-top: 2px;

    color: #98a2b3;

    font-size: 6px;
}


/* =========================================================
   DESIGN SUMMARY
   ========================================================= */

.design-summary-panel {
    display: flex;

    flex-direction: column;

    gap: 12px;

    min-width: 0;
}


.summary-card,
.summary-cost-card {
    background: #ffffff;

    border: 1px solid #e4e9ef;

    border-radius: 6px;

    padding: 12px;

    box-sizing: border-box;
}


.summary-card h3 {
    margin: 0 0 11px;

    color: #172033;

    font-size: 10px;
    font-weight: 600;
}


/* SUMMARY ROW */

.summary-row {
    display: flex;

    justify-content: space-between;

    gap: 8px;

    padding: 6px 0;

    border-bottom: 1px solid #f0f2f5;
}


.summary-row:last-child {
    border-bottom: none;
}


.summary-row span {
    color: #98a2b3;

    font-size: 7px;
}


.summary-row strong {
    color: #475467;

    font-size: 7px;

    font-weight: 500;

    text-align: right;
}


.summary-row .summary-progress {
    color: #3474dd;

    font-weight: 600;
}


/* =========================================================
   COST CARD
   ========================================================= */

.summary-cost-card > span {
    display: block;

    color: #667085;

    font-size: 7px;

    margin-bottom: 4px;
}


.summary-cost-card > strong {
    display: block;

    color: #2868d9;

    font-size: 20px;

    margin-bottom: 12px;
}


.summary-cost-card > div {
    display: flex;

    justify-content: space-between;

    gap: 7px;

    padding: 5px 0;

    color: #667085;

    font-size: 7px;
}


.summary-cost-card > div b {
    color: #475467;

    font-weight: 600;
}


.summary-cost-card button {
    width: 100%;

    height: 27px;

    margin-top: 8px;

    border: 1px solid #b9d0f5;

    border-radius: 4px;

    background: #ffffff;

    color: #2868d9;

    font-size: 7px;

    cursor: pointer;
}


.summary-cost-card button:hover {
    background: #f5f8ff;
}


/* =========================================================
   MATERIALS
   ========================================================= */

.materials-card {
    padding-bottom: 10px;
}


.material-row {
    display: flex;

    align-items: center;

    gap: 6px;

    padding: 6px 0;

    border-bottom: 1px solid #f0f2f5;
}


.material-row img {
    width: 25px;
    height: 25px;

    object-fit: cover;

    border-radius: 3px;
}


.material-row span {
    flex: 1;

    color: #667085;

    font-size: 7px;

    line-height: 1.3;
}


.material-row strong {
    color: #475467;

    font-size: 7px;

    white-space: nowrap;
}


.view-materials-btn {
    width: 100%;

    height: 27px;

    margin-top: 9px;

    border: 1px solid #dce3ec;

    border-radius: 4px;

    background: #ffffff;

    color: #2868d9;

    font-size: 7px;

    cursor: pointer;
}


/* =========================================================
   ADMIN ACTIONS
   ========================================================= */

.design-admin-actions {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 10px;

    margin-top: 14px;
}


.admin-action {
    min-height: 54px;

    padding: 9px 11px;

    border: 1px solid #dfe5ec;

    border-radius: 5px;

    background: #ffffff;

    cursor: pointer;

    box-sizing: border-box;
}


.admin-action strong {
    display: block;

    font-size: 8px;

    font-weight: 600;

    color: #344054;
}


.admin-action span {
    display: block;

    margin-top: 4px;

    color: #98a2b3;

    font-size: 6.5px;
}


/* ACTION COLORS */

.approve-action {
    border-color: #c9eadb;
}


.approve-action strong {
    color: #159563;
}


.revision-action {
    border-color: #f2dfc0;
}


.revision-action strong {
    color: #d88b15;
}


.feedback-action {
    border-color: #cbdcf6;
}


.feedback-action strong {
    color: #2868d9;
}


.convert-action {
    border-color: #d9d0f5;
}


.convert-action strong {
    color: #7457c8;
}


.download-action {
    border-color: #cdddf3;
}


.download-action strong {
    color: #2868d9;
}


/* =========================================================
   HOVER
   ========================================================= */

.admin-action:hover {
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);

    transform: translateY(-1px);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1250px) {

    .design-workspace {
        grid-template-columns:
            190px
            minmax(0, 1fr)
            210px;
    }

    .design-thumbnails img {
        width: 65px;
    }

}


@media (max-width: 1050px) {

    .design-workspace {
        grid-template-columns:
            190px
            minmax(0, 1fr);
    }

    .design-summary-panel {
        grid-column: 1 / -1;

        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .design-admin-actions {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 800px) {

    .design-workspace {
        grid-template-columns: 1fr;
    }

    .design-request-panel {
        order: 1;
    }

    .design-main-panel {
        order: 2;
    }

    .design-summary-panel {
        order: 3;

        grid-template-columns: 1fr;
    }

    .design-admin-actions {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .design-status-tabs {
        overflow-x: auto;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .design-admin-actions {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   BUILDEASE ADMIN ESTIMATION PAGE
   ========================================================= */

.admin-estimation-page {
    margin: 0;
    padding: 0;
    background: #f4f6f9;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================
   SIDEBAR
   ========================= */

.admin-estimation-page .estimation-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 178px;
    height: 100vh;
    background: #06101a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.admin-estimation-page .estimation-logo {
    padding: 16px 18px 22px;
}

.admin-estimation-page .estimation-logo img {
    width: 145px;
    height: auto;
    display: block;
    background: #ffffff;
}

.admin-estimation-page .estimation-menu-title {
    padding: 5px 20px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #aab5c3;
}

.admin-estimation-page .estimation-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 10px;
}

.admin-estimation-page .estimation-nav a {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 5px;
    color: #e9edf2;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s ease;
}

.admin-estimation-page .estimation-nav a:hover {
    background: #172330;
}

.admin-estimation-page .estimation-nav a.active {
    background: #dfe3e8;
    color: #111827;
    font-weight: 700;
}

.admin-estimation-page .estimation-logout {
    margin-top: auto;
    border-top: 1px solid #27323d;
    padding: 18px 20px;
}

.admin-estimation-page .estimation-logout a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
}


/* =========================
   MAIN
   ========================= */

.admin-estimation-page .estimation-main {
    margin-left: 178px;
    padding: 0 18px 30px;
    min-height: 100vh;
}


/* =========================
   TOP BAR
   ========================= */

.admin-estimation-page .estimation-topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-estimation-page .estimation-topbar h1 {
    margin: 0 0 4px;
    font-size: 24px;
    color: #142033;
}

.admin-estimation-page .estimation-topbar p {
    margin: 0;
    font-size: 11px;
    color: #748094;
}

.admin-estimation-page .estimation-top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
    font-size: 11px;
    color: #3e4a5d;
}

.admin-estimation-page .estimation-time {
    color: #172033;
    font-weight: 700;
}

.admin-estimation-page .estimation-admin {
    font-weight: 500;
}


/* =========================
   STATUS TABS
   ========================= */

.admin-estimation-page .estimation-status-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    height: 43px;
    background: #ffffff;
    border: 1px solid #e4e8ee;
    border-radius: 4px 4px 0 0;
    overflow-x: auto;
}

.admin-estimation-page .estimation-status-tabs button {
    height: 100%;
    padding: 0 17px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #637085;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.admin-estimation-page .estimation-status-tabs button span {
    margin-left: 4px;
    color: inherit;   /* the count reads as part of its tab label: same colour in every state */
}

.admin-estimation-page .estimation-status-tabs button.selected {
    color: #2166e8;
    border-bottom-color: #2166e8;
}


/* =========================
   WORKSPACE
   ========================= */

.admin-estimation-page .estimation-workspace {
    display: grid;
    grid-template-columns: 235px minmax(500px, 1fr) 260px;
    gap: 12px;
    margin-top: 12px;
    align-items: start;
}


/* =========================
   LEFT REQUEST PANEL
   ========================= */

.admin-estimation-page .estimate-request-panel {
    background: #ffffff;
    border: 1px solid #e4e8ee;
    border-radius: 5px;
    overflow: hidden;
}

.admin-estimation-page .estimate-request-header {
    padding: 13px;
    border-bottom: 1px solid #e8ebf0;
}

.admin-estimation-page .estimate-request-header h2 {
    margin: 0 0 10px;
    font-size: 13px;
}

.admin-estimation-page .estimate-search {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 31px;
    border: 1px solid #dce2e9;
    border-radius: 4px;
    padding: 0 7px;
}

.admin-estimation-page .estimate-search input {
    width: 100%;
    border: 0;
    outline: none;
    font-size: 9px;
}

.admin-estimation-page .estimate-search button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.admin-estimation-page .estimate-request-item {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid #edf0f4;
    cursor: pointer;
}

.admin-estimation-page .estimate-request-item:hover {
    background: #f7f9fc;
}

.admin-estimation-page .estimate-request-item.selected {
    background: #eef4ff;
    border-left: 3px solid #2868e8;
}

.admin-estimation-page .estimate-request-item img {
    width: 52px;
    height: 42px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.admin-estimation-page .estimate-request-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-estimation-page .estimate-request-info strong {
    font-size: 9px;
    color: #253044;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-estimation-page .estimate-request-info small {
    font-size: 7px;
    color: #778399;
}

.admin-estimation-page .estimate-status {
    width: fit-content;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 6px;
    font-weight: 700;
}

.admin-estimation-page .estimate-status.review {
    background: #fff0d8;
    color: #c37b00;
}

.admin-estimation-page .estimate-status.progress {
    background: #e5f0ff;
    color: #3b75d8;
}

.admin-estimation-page .estimate-status.revised {
    background: #eee6ff;
    color: #7550c9;
}

.admin-estimation-page .estimate-status.approved {
    background: #e0f6eb;
    color: #198b5a;
}

.admin-estimation-page .estimate-status.sent {
    background: #e4edff;
    color: #416dcc;
}

.admin-estimation-page .estimate-request-footer {
    padding: 10px;
    font-size: 7px;
    color: #7b8799;
}

.admin-estimation-page .estimate-pagination {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 8px;
}

.admin-estimation-page .estimate-pagination button {
    width: 22px;
    height: 21px;
    border: 1px solid #dce2e9;
    background: #ffffff;
    border-radius: 3px;
    font-size: 8px;
    cursor: pointer;
}

.admin-estimation-page .estimate-pagination button.current {
    background: #2468e9;
    color: #ffffff;
    border-color: #2468e9;
}


/* =========================
   CENTER DETAILS
   ========================= */

.admin-estimation-page .estimate-details-panel {
    background: #ffffff;
    border: 1px solid #e4e8ee;
    border-radius: 5px;
    overflow: hidden;
}

.admin-estimation-page .estimate-project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 17px 11px;
}

.admin-estimation-page .estimate-project-header h2 {
    margin: 0 0 5px;
    font-size: 15px;
    color: #172033;
}

.admin-estimation-page .estimate-project-header p {
    margin: 0;
    font-size: 8px;
    color: #7b8798;
}

.admin-estimation-page .estimate-header-status {
    padding: 5px 8px;
    border-radius: 10px;
    background: #fff0d8;
    color: #bd7600;
    font-size: 7px;
    font-weight: 700;
}


/* =========================
   SECTIONS
   ========================= */

.admin-estimation-page .estimate-section {
    padding: 14px 17px;
    border-bottom: 1px solid #edf0f4;
}

.admin-estimation-page .estimate-section h3 {
    margin: 0 0 11px;
    font-size: 11px;
    color: #263246;
}

.admin-estimation-page .estimate-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.admin-estimation-page .estimate-info-grid > div,
.admin-estimation-page .estimate-summary-grid > div {
    border: 1px solid #e7ebf0;
    border-radius: 4px;
    padding: 8px;
}

.admin-estimation-page .estimate-info-grid label,
.admin-estimation-page .estimate-summary-grid label,
.admin-estimation-page .estimate-description label,
.admin-estimation-page .estimate-notes label {
    display: block;
    margin-bottom: 4px;
    font-size: 7px;
    color: #8290a3;
}

.admin-estimation-page .estimate-info-grid p {
    margin: 0;
    font-size: 8px;
    color: #354156;
    font-weight: 600;
}

.admin-estimation-page .estimate-description {
    margin-top: 8px;
    padding: 9px;
    border: 1px solid #e7ebf0;
    border-radius: 4px;
}

.admin-estimation-page .estimate-description p {
    margin: 0;
    font-size: 8px;
    color: #58657a;
}


/* =========================
   SUMMARY
   ========================= */

.admin-estimation-page .estimate-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.admin-estimation-page .estimate-summary-grid strong {
    font-size: 8px;
    color: #344055;
}

.admin-estimation-page .estimate-notes {
    margin-top: 8px;
    padding: 9px;
    background: #fafbfd;
    border: 1px solid #e8ecf1;
    border-radius: 4px;
}

.admin-estimation-page .estimate-notes p {
    margin: 0;
    font-size: 8px;
    color: #59667a;
}


/* =========================
   COST TABLE
   ========================= */

.admin-estimation-page .estimate-table-wrapper {
    overflow-x: auto;
}

.admin-estimation-page .estimate-cost-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 7px;
}

.admin-estimation-page .estimate-cost-table th {
    background: #f7f9fb;
    color: #5d6a7e;
    text-align: left;
    font-size: 7px;
    padding: 7px 6px;
    border-bottom: 1px solid #e1e6ec;
}

.admin-estimation-page .estimate-cost-table td {
    padding: 6px;
    border-bottom: 1px solid #edf0f4;
    color: #4b576a;
    vertical-align: top;
}

.admin-estimation-page .estimate-cost-table td:last-child,
.admin-estimation-page .estimate-cost-table th:last-child {
    text-align: right;
    white-space: nowrap;
}

.admin-estimation-page .estimate-cost-table tfoot td {
    font-weight: 700;
    color: #354054;
}

.admin-estimation-page .estimate-cost-table .total-row td {
    color: #2268e9;
    font-size: 9px;
    border-top: 1px solid #dbe2eb;
}


/* =========================
   RIGHT PANEL
   ========================= */

.admin-estimation-page .estimate-right-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-estimation-page .estimate-right-card {
    background: #ffffff;
    border: 1px solid #e4e8ee;
    border-radius: 5px;
    padding: 13px;
}

.admin-estimation-page .estimate-right-card h3 {
    margin: 0 0 10px;
    font-size: 10px;
    color: #263246;
}

.admin-estimation-page .estimate-preview-image {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 4px;
}

.admin-estimation-page .estimate-thumbnail-row {
    display: flex;
    gap: 4px;
    margin-top: 5px;
}

.admin-estimation-page .estimate-thumbnail-row img {
    width: 42px;
    height: 31px;
    object-fit: cover;
    border-radius: 3px;
}

.admin-estimation-page .estimate-thumbnail-row span {
    width: 42px;
    height: 31px;
    border-radius: 3px;
    background: #30343a;
    color: #ffffff;
    font-size: 7px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================
   CLIENT REQUIREMENTS
   ========================= */

.admin-estimation-page .estimate-right-card ul {
    margin: 0;
    padding-left: 15px;
}

.admin-estimation-page .estimate-right-card li {
    margin-bottom: 6px;
    font-size: 7px;
    line-height: 1.4;
    color: #566276;
}


/* =========================
   HISTORY
   ========================= */

.admin-estimation-page .estimate-history-item {
    display: flex;
    gap: 8px;
    position: relative;
}

.admin-estimation-page .history-dot {
    width: 7px;
    height: 7px;
    background: #2168e9;
    border-radius: 50%;
    margin-top: 3px;
    flex-shrink: 0;
}

.admin-estimation-page .estimate-history-item strong {
    display: block;
    font-size: 7px;
    color: #4d5a6e;
}

.admin-estimation-page .estimate-history-item p {
    margin: 4px 0 0;
    font-size: 7px;
    color: #8490a2;
}


/* =========================
   ACTIONS
   ========================= */

.admin-estimation-page .estimate-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.admin-estimation-page .estimate-actions button {
    min-height: 32px;
    padding: 5px;
    background: #ffffff;
    border: 1px solid #d9e0e8;
    border-radius: 4px;
    font-size: 7px;
    font-weight: 600;
    cursor: pointer;
}

.admin-estimation-page .estimate-actions button:hover {
    transform: translateY(-1px);
}

.admin-estimation-page .estimate-actions .action-blue {
    color: #286be8;
    border-color: #cbdcf9;
}

.admin-estimation-page .estimate-actions .action-orange {
    color: #d18415;
    border-color: #f2d9ae;
}

.admin-estimation-page .estimate-actions .action-green {
    color: #16895a;
    border-color: #c6e9d8;
}

.admin-estimation-page .estimate-actions .action-gray {
    color: #5d6879;
}

.admin-estimation-page .estimate-actions .action-purple {
    color: #7950c9;
    border-color: #ded1f5;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1200px) {

    .admin-estimation-page .estimation-workspace {
        grid-template-columns: 210px minmax(450px, 1fr);
    }

    .admin-estimation-page .estimate-right-panel {
        grid-column: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 900px) {

    .admin-estimation-page .estimation-sidebar {
        width: 150px;
    }

    .admin-estimation-page .estimation-main {
        margin-left: 150px;
    }

    .admin-estimation-page .estimation-workspace {
        grid-template-columns: 1fr;
    }

    .admin-estimation-page .estimate-right-panel {
        grid-column: auto;
        display: flex;
    }

    .admin-estimation-page .estimate-info-grid,
    .admin-estimation-page .estimate-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 650px) {

    .admin-estimation-page .estimation-sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .admin-estimation-page .estimation-main {
        margin-left: 0;
    }

    .admin-estimation-page .estimation-topbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }

    .admin-estimation-page .estimate-info-grid,
    .admin-estimation-page .estimate-summary-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   BUILDEASE ADMIN CONTRACTS PAGE
   ========================================================= */

.admin-contracts-page {
    margin: 0;
    padding: 0;
    background: #f4f6f9;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
}

/* ================= SIDEBAR ================= */

.admin-contracts-page .contracts-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 178px;
    height: 100vh;
    background: #06101a;
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.admin-contracts-page .contracts-logo {
    padding: 16px 18px 22px;
}

.admin-contracts-page .contracts-logo img {
    width: 145px;
    display: block;
    background: white;
}

.admin-contracts-page .contracts-menu-title {
    padding: 5px 20px 12px;
    font-size: 10px;
    font-weight: 700;
    color: #aab5c3;
    letter-spacing: .8px;
}

.admin-contracts-page .contracts-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 10px;
}

.admin-contracts-page .contracts-nav a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 5px;
    color: #e9edf2;
    text-decoration: none;
    font-size: 13px;
}

.admin-contracts-page .contracts-nav a:hover {
    background: #172330;
}

.admin-contracts-page .contracts-nav a.active {
    background: #dfe3e8;
    color: #111827;
    font-weight: 700;
}

.admin-contracts-page .contracts-logout {
    margin-top: auto;
    border-top: 1px solid #27323d;
    padding: 18px 20px;
}

.admin-contracts-page .contracts-logout a {
    color: white;
    text-decoration: none;
    font-size: 13px;
}


/* ================= MAIN ================= */

.admin-contracts-page .contracts-main {
    margin-left: 178px;
    padding: 0 18px 30px;
    min-height: 100vh;
}


/* ================= HEADER ================= */

.admin-contracts-page .contracts-topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-contracts-page .contracts-topbar h1 {
    margin: 0 0 4px;
    font-size: 24px;
}

.admin-contracts-page .contracts-topbar p {
    margin: 0;
    font-size: 11px;
    color: #748094;
}

.admin-contracts-page .contracts-top-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
    font-size: 11px;
    color: #4d596c;
}


/* ================= STATUS TABS ================= */

.admin-contracts-page .contracts-status-tabs {
    display: flex;
    height: 43px;
    background: white;
    border: 1px solid #e4e8ee;
    overflow-x: auto;
}

.admin-contracts-page .contracts-status-tabs button {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    padding: 0 17px;
    font-size: 9px;
    font-weight: 600;
    color: #667389;
    white-space: nowrap;
}

.admin-contracts-page .contracts-status-tabs button.selected {
    color: #2168e8;
    border-bottom-color: #2168e8;
}

.admin-contracts-page .contracts-status-tabs span {
    margin-left: 4px;
}


/* ================= WORKSPACE ================= */

.admin-contracts-page .contracts-workspace {
    display: grid;
    grid-template-columns: 235px minmax(500px, 1fr) 245px;
    gap: 12px;
    margin-top: 12px;
    align-items: start;
}


/* ================= PANELS ================= */

.admin-contracts-page .contract-list-panel,
.admin-contracts-page .contract-details-panel,
.admin-contracts-page .contract-right-card {
    background: white;
    border: 1px solid #e4e8ee;
    border-radius: 5px;
}

.admin-contracts-page .contract-list-panel {
    overflow: hidden;
}


/* ================= CONTRACT LIST ================= */

.admin-contracts-page .contract-list-header {
    padding: 13px;
    border-bottom: 1px solid #e8ebf0;
}

.admin-contracts-page .contract-list-header h2 {
    margin: 0 0 10px;
    font-size: 12px;
}

.admin-contracts-page .contract-search {
    display: flex;
    align-items: center;
    height: 31px;
    border: 1px solid #dce2e9;
    border-radius: 4px;
    padding: 0 7px;
}

.admin-contracts-page .contract-search input {
    width: 100%;
    border: 0;
    outline: 0;
    font-size: 8px;
    margin-left: 5px;
}

.admin-contracts-page .contract-search button {
    border: 0;
    background: transparent;
}

.admin-contracts-page .contract-list-item {
    display: flex;
    gap: 8px;
    padding: 9px;
    border-bottom: 1px solid #edf0f4;
}

.admin-contracts-page .contract-list-item.selected {
    background: #eef4ff;
    border-left: 3px solid #2868e8;
}

.admin-contracts-page .contract-list-item img {
    width: 48px;
    height: 40px;
    object-fit: cover;
    border-radius: 3px;
}

.admin-contracts-page .contract-list-item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.admin-contracts-page .contract-list-item strong {
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-contracts-page .contract-list-item small {
    font-size: 6px;
    color: #7b8799;
}


/* ================= CONTRACT STATUS ================= */

.contract-status.pending {
    background: #fff0d8;
    color: #bd7600;
}

.contract-status.review {
    background: #eee6ff;
    color: #7650c8;
}

.contract-status.active {
    background: #e1f5eb;
    color: #168a59;
}

.contract-status.completed {
    background: #e1ecff;
    color: #3d70cf;
}

.admin-contracts-page .contract-status {
    width: fit-content;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 6px;
    font-weight: 700;
}


/* ================= LIST FOOTER ================= */

.admin-contracts-page .contract-list-footer {
    padding: 9px;
    font-size: 7px;
    color: #7c8799;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-contracts-page .contract-list-footer button {
    width: 20px;
    height: 20px;
    border: 1px solid #dce2e9;
    background: white;
    font-size: 8px;
}

.admin-contracts-page .contract-list-footer button.current {
    background: #2168e8;
    color: white;
}


/* ================= CENTER DETAILS ================= */

.admin-contracts-page .contract-details-panel {
    overflow: hidden;
}

.admin-contracts-page .contract-details-header {
    padding: 14px 16px 10px;
    display: flex;
    justify-content: space-between;
}

.admin-contracts-page .contract-details-header h2 {
    margin: 0 0 4px;
    font-size: 14px;
}

.admin-contracts-page .contract-details-header p {
    margin: 0;
    font-size: 7px;
    color: #7b8799;
}

.admin-contracts-page .contract-main-status {
    background: #fff0d8;
    color: #bd7600;
    height: fit-content;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: 7px;
    font-weight: 700;
}


/* ================= DETAIL TABS ================= */

.admin-contracts-page .contract-detail-tabs {
    display: flex;
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
    overflow-x: auto;
}

.admin-contracts-page .contract-detail-tabs button {
    border: 0;
    background: transparent;
    padding: 9px 10px;
    font-size: 7px;
    color: #69768a;
    white-space: nowrap;
}

.admin-contracts-page .contract-detail-tabs button.active {
    color: #2168e8;
    border-bottom: 2px solid #2168e8;
    font-weight: 700;
}


/* ================= SECTIONS ================= */

.admin-contracts-page .contract-section {
    padding: 13px 16px;
    border-bottom: 1px solid #edf0f4;
}

.admin-contracts-page .contract-section h3 {
    margin: 0 0 10px;
    font-size: 10px;
}

.admin-contracts-page .contract-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.admin-contracts-page .contract-info-grid > div,
.admin-contracts-page .contract-summary-grid > div {
    padding: 8px;
    border: 1px solid #e7ebf0;
    border-radius: 4px;
}

.admin-contracts-page .contract-info-grid label,
.admin-contracts-page .contract-summary-grid label,
.admin-contracts-page .contract-description label,
.admin-contracts-page .contract-notes label {
    display: block;
    font-size: 6px;
    color: #8490a2;
    margin-bottom: 4px;
}

.admin-contracts-page .contract-info-grid strong,
.admin-contracts-page .contract-summary-grid strong {
    font-size: 8px;
}

.admin-contracts-page .contract-price {
    color: #2168e8;
}


/* ================= DESCRIPTION / NOTES ================= */

.admin-contracts-page .contract-description,
.admin-contracts-page .contract-notes {
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #e7ebf0;
    border-radius: 4px;
}

.admin-contracts-page .contract-description p,
.admin-contracts-page .contract-notes p {
    margin: 0;
    font-size: 7px;
    color: #59667a;
}


/* ================= SUMMARY ================= */

.admin-contracts-page .contract-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}


/* ================= SIGNATURE ================= */

.admin-contracts-page .signature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.admin-contracts-page .signature-box {
    border: 1px solid #e1e6ed;
    border-radius: 4px;
    padding: 10px;
}

.admin-contracts-page .signature-title {
    font-size: 8px;
    font-weight: 700;
}

.admin-contracts-page .signature-box > span {
    display: block;
    margin-top: 3px;
    font-size: 6px;
    color: #8994a5;
}

.admin-contracts-page .signature-status {
    margin-top: 7px;
    font-size: 7px;
    font-weight: 700;
}

.admin-contracts-page .signed .signature-status {
    color: #168a59;
}

.admin-contracts-page .waiting .signature-status {
    color: #c07a00;
}

.admin-contracts-page .signature-box small {
    display: block;
    margin-top: 5px;
    font-size: 6px;
    color: #788497;
}

.admin-contracts-page .signature-image {
    margin-top: 8px;
    height: 45px;
    border: 1px solid #edf0f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: #303b4d;
}

.admin-contracts-page .waiting-signature {
    color: #b8bec7;
}


/* ================= TIMELINE ================= */

.admin-contracts-page .contract-timeline > div {
    display: grid;
    grid-template-columns: 15px 1fr auto;
    gap: 7px;
    align-items: start;
    margin-bottom: 9px;
}

.admin-contracts-page .timeline-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-top: 3px;
}

.admin-contracts-page .timeline-dot.green {
    background: #1aa66b;
}

.admin-contracts-page .timeline-dot.orange {
    background: #e49a2f;
}

.admin-contracts-page .timeline-dot.gray {
    background: #9aa3af;
}

.admin-contracts-page .contract-timeline p {
    margin: 0;
    font-size: 7px;
    color: #667286;
}

.admin-contracts-page .contract-timeline p strong {
    color: #354054;
}

.admin-contracts-page .contract-timeline > div > span:last-child {
    font-size: 6px;
    color: #8994a5;
}


/* ================= RIGHT PANEL ================= */

.admin-contracts-page .contract-right-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-contracts-page .contract-right-card {
    padding: 12px;
}

.admin-contracts-page .contract-right-card h3 {
    margin: 0 0 10px;
    font-size: 9px;
}


/* ================= PARTIES ================= */

.admin-contracts-page .party-item {
    display: flex;
    gap: 7px;
    margin-bottom: 10px;
}

.admin-contracts-page .party-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #eef4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-contracts-page .party-item strong {
    display: block;
    font-size: 7px;
}

.admin-contracts-page .party-item small {
    font-size: 6px;
    color: #8994a5;
}


/* ================= PROJECT DETAILS ================= */

.admin-contracts-page .project-detail-row {
    display: flex;
    gap: 7px;
    margin-bottom: 9px;
    color: #3370db;
}

.admin-contracts-page .project-detail-row small,
.admin-contracts-page .project-detail-row strong {
    display: block;
}

.admin-contracts-page .project-detail-row small {
    font-size: 6px;
    color: #8994a5;
}

.admin-contracts-page .project-detail-row strong {
    font-size: 7px;
    color: #4b576a;
}


/* ================= STATUS ================= */

.admin-contracts-page .right-status.pending {
    display: inline-block;
    background: #fff0d8;
    color: #bd7600;
    padding: 4px 7px;
    border-radius: 10px;
    font-size: 7px;
    font-weight: 700;
}

.admin-contracts-page .status-description {
    font-size: 6px;
    color: #8994a5;
}


/* ================= PROGRESS ================= */

.admin-contracts-page .contract-progress {
    display: flex;
    align-items: flex-start;
    margin-top: 12px;
}

.admin-contracts-page .progress-step {
    text-align: center;
    flex: 1;
    color: #a1a9b4;
}

.admin-contracts-page .progress-step span {
    display: block;
    margin: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #d5dbe3;
    font-size: 9px;
    line-height: 15px;
}

.admin-contracts-page .progress-step.completed {
    color: #168a59;
}

.admin-contracts-page .progress-step.completed span {
    background: #e1f5eb;
    border-color: #bde5d1;
}

.admin-contracts-page .progress-step small {
    display: block;
    margin-top: 5px;
    font-size: 5px;
}

.admin-contracts-page .progress-line {
    height: 1px;
    background: #d9dee6;
    flex: .6;
    margin-top: 8px;
}

.admin-contracts-page .completed-line {
    background: #1aa66b;
}


/* ================= QUICK ACTIONS ================= */

.admin-contracts-page .contract-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-contracts-page .contract-actions button {
    min-height: 27px;
    background: white;
    border: 1px solid #dce2e9;
    border-radius: 4px;
    font-size: 7px;
    font-weight: 600;
    cursor: pointer;
}

.admin-contracts-page .contract-actions .preview {
    color: #286be8;
}

.admin-contracts-page .contract-actions .send {
    color: #168a59;
    border-color: #c9e9d8;
}

.admin-contracts-page .contract-actions .revision {
    color: #c17b0a;
}

.admin-contracts-page .contract-actions .download {
    color: #7750c7;
}

.admin-contracts-page .contract-actions .cancel {
    color: #d94a4a;
    border-color: #f1cccc;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1250px) {

    .admin-contracts-page .contracts-workspace {
        grid-template-columns: 210px minmax(450px, 1fr);
    }

    .admin-contracts-page .contract-right-panel {
        grid-column: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {

    .admin-contracts-page .contracts-sidebar {
        width: 150px;
    }

    .admin-contracts-page .contracts-main {
        margin-left: 150px;
    }

    .admin-contracts-page .contracts-workspace {
        grid-template-columns: 1fr;
    }

    .admin-contracts-page .contract-right-panel {
        grid-column: auto;
    }
}
/* =========================================================
   BUILDEASE ADMIN SCHEDULING PAGE
   ========================================================= */

.admin-scheduling-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f4f6f9;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.admin-scheduling-page .scheduling-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 178px;
    height: 100vh;
    background: #06101a;
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.admin-scheduling-page .scheduling-logo {
    padding: 16px 18px 20px;
}

.admin-scheduling-page .scheduling-logo img {
    display: block;
    width: 145px;
    height: auto;
    background: #fff;
}

.admin-scheduling-page .scheduling-menu-title {
    padding: 6px 20px 12px;
    font-size: 10px;
    font-weight: 700;
    color: #a9b4c1;
    letter-spacing: .7px;
}

.admin-scheduling-page .scheduling-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 10px;
}

.admin-scheduling-page .scheduling-nav a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    color: #e8edf3;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    transition: .15s ease;
}

.admin-scheduling-page .scheduling-nav a:hover {
    background: #17232e;
}

.admin-scheduling-page .scheduling-nav a.active {
    background: #dfe3e8;
    color: #111827;
    font-weight: 700;
}

.admin-scheduling-page .scheduling-logout {
    margin-top: auto;
    border-top: 1px solid #27323d;
    padding: 18px 20px;
}

.admin-scheduling-page .scheduling-logout a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}


/* =========================================================
   MAIN
   ========================================================= */

.admin-scheduling-page .scheduling-main {
    margin-left: 178px;
    min-height: 100vh;
    padding: 0 18px 30px;
}


/* =========================================================
   TOP HEADER
   ========================================================= */

.admin-scheduling-page .scheduling-topbar {
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-scheduling-page .scheduling-topbar h1 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
}

.admin-scheduling-page .scheduling-topbar p {
    margin: 0;
    font-size: 11px;
    color: #748094;
}

.admin-scheduling-page .scheduling-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #596579;
    font-size: 11px;
    white-space: nowrap;
}


/* =========================================================
   STATUS TABS
   ========================================================= */

.admin-scheduling-page .scheduling-tabs {
    height: 43px;
    background: #fff;
    border: 1px solid #e3e7ed;
    display: flex;
    align-items: stretch;
    overflow-x: auto;
}

.admin-scheduling-page .scheduling-tabs button {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    padding: 0 17px;
    color: #687589;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-scheduling-page .scheduling-tabs button.active {
    color: #2168e8;
    border-bottom-color: #2168e8;
}

.admin-scheduling-page .scheduling-tabs button span {
    margin-left: 4px;
    color: inherit;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.admin-scheduling-page .scheduling-toolbar {
    margin-top: 10px;
    min-height: 39px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-scheduling-page .schedule-view-tabs {
    display: flex;
    gap: 4px;
}

.admin-scheduling-page .schedule-view-tabs button {
    border: 0;
    background: transparent;
    color: #6b7789;
    font-size: 8px;
    padding: 7px 10px;
}

.admin-scheduling-page .schedule-view-tabs button.active {
    color: #2168e8;
    font-weight: 700;
    border-bottom: 2px solid #2168e8;
}

.admin-scheduling-page .schedule-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-scheduling-page .schedule-toolbar-actions button {
    min-height: 29px;
    border: 1px solid #dce2e9;
    background: #fff;
    border-radius: 4px;
    padding: 0 9px;
    font-size: 8px;
    color: #5c687b;
}

.admin-scheduling-page .schedule-toolbar-actions .create-schedule-btn {
    background: #2168e8;
    border-color: #2168e8;
    color: #fff;
    font-weight: 600;
}


/* =========================================================
   MAIN WORKSPACE
   ========================================================= */

.admin-scheduling-page .scheduling-workspace {
    display: grid;
    grid-template-columns: 220px minmax(500px, 1fr) 225px;
    gap: 10px;
    align-items: start;
}


/* =========================================================
   PROJECT LIST
   ========================================================= */

.admin-scheduling-page .schedule-project-panel,
.admin-scheduling-page .schedule-timeline-panel,
.admin-scheduling-page .schedule-task-panel {
    background: #fff;
    border: 1px solid #e2e6ec;
    border-radius: 5px;
}

.admin-scheduling-page .schedule-project-panel {
    overflow: hidden;
}

.admin-scheduling-page .schedule-project-header {
    padding: 12px;
    border-bottom: 1px solid #edf0f4;
}

.admin-scheduling-page .schedule-project-header h2 {
    margin: 0 0 9px;
    font-size: 10px;
}

.admin-scheduling-page .schedule-project-header input {
    width: 100%;
    height: 28px;
    box-sizing: border-box;
    border: 1px solid #dce2e9;
    border-radius: 4px;
    outline: none;
    padding: 0 8px;
    font-size: 7px;
}

.admin-scheduling-page .schedule-project-item {
    display: flex;
    gap: 7px;
    padding: 8px;
    border-bottom: 1px solid #edf0f4;
}

.admin-scheduling-page .schedule-project-item.active {
    background: #eef4ff;
    border-left: 3px solid #2168e8;
}

.admin-scheduling-page .schedule-project-item img {
    width: 48px;
    height: 40px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.admin-scheduling-page .schedule-project-item > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-scheduling-page .schedule-project-item strong {
    font-size: 7px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-scheduling-page .schedule-project-item span {
    font-size: 6px;
    color: #667286;
}

.admin-scheduling-page .schedule-project-item small {
    font-size: 5px;
    color: #8994a5;
}

.admin-scheduling-page .schedule-project-item b {
    width: fit-content;
    padding: 2px 5px;
    border-radius: 8px;
    background: #e6f5ed;
    color: #168a59;
    font-size: 5px;
}


/* =========================================================
   PROJECT PAGINATION
   ========================================================= */

.admin-scheduling-page .schedule-project-pagination {
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #8490a2;
    font-size: 6px;
}

.admin-scheduling-page .schedule-project-pagination div {
    display: flex;
    gap: 2px;
}

.admin-scheduling-page .schedule-project-pagination button {
    width: 18px;
    height: 18px;
    padding: 0;
    background: #fff;
    border: 1px solid #dce2e9;
    border-radius: 3px;
    font-size: 7px;
}

.admin-scheduling-page .schedule-project-pagination button.current {
    background: #2168e8;
    color: #fff;
    border-color: #2168e8;
}


/* =========================================================
   TIMELINE PANEL
   ========================================================= */

.admin-scheduling-page .schedule-timeline-panel {
    overflow: hidden;
}

.admin-scheduling-page .schedule-project-title {
    min-height: 57px;
    padding: 10px 13px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #edf0f4;
}

.admin-scheduling-page .schedule-project-title h2 {
    display: inline-block;
    margin: 0 7px 3px 0;
    font-size: 11px;
}

.admin-scheduling-page .schedule-project-title p {
    margin: 0;
    font-size: 6px;
    color: #7b8799;
}

.admin-scheduling-page .schedule-status {
    display: inline-block;
    background: #e1f5eb;
    color: #168a59;
    border-radius: 8px;
    padding: 3px 5px;
    font-size: 5px;
    font-weight: 700;
}

.admin-scheduling-page .schedule-project-title > button {
    height: 25px;
    padding: 0 8px;
    border: 1px solid #dce2e9;
    background: #fff;
    border-radius: 4px;
    font-size: 6px;
    color: #667286;
}


/* =========================================================
   TIMELINE TABS
   ========================================================= */

.admin-scheduling-page .timeline-tabs {
    display: flex;
    border-bottom: 1px solid #edf0f4;
}

.admin-scheduling-page .timeline-tabs button {
    border: 0;
    background: transparent;
    padding: 9px 10px;
    color: #788497;
    font-size: 6px;
    white-space: nowrap;
}

.admin-scheduling-page .timeline-tabs button.active {
    color: #2168e8;
    font-weight: 700;
    border-bottom: 2px solid #2168e8;
}


/* =========================================================
   TIMELINE HEADER
   ========================================================= */

.admin-scheduling-page .timeline-header {
    min-height: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid #edf0f4;
}

.admin-scheduling-page .timeline-period {
    font-size: 7px;
}

.admin-scheduling-page .timeline-controls {
    display: flex;
    gap: 3px;
}

.admin-scheduling-page .timeline-controls button {
    height: 20px;
    border: 1px solid #dce2e9;
    background: #fff;
    border-radius: 3px;
    padding: 0 5px;
    font-size: 5px;
    color: #667286;
}


/* =========================================================
   GANTT CHART
   ========================================================= */

.admin-scheduling-page .gantt-chart {
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 480px;
}

.admin-scheduling-page .gantt-column {
    border-right: 1px solid #e7ebf0;
}

.admin-scheduling-page .gantt-header-row {
    height: 29px;
    display: grid;
    grid-template-columns: 1fr 45px;
    align-items: center;
    padding: 0 8px;
    box-sizing: border-box;
    background: #fafbfd;
    border-bottom: 1px solid #e7ebf0;
    color: #7b8799;
    font-size: 6px;
    font-weight: 700;
}

.admin-scheduling-page .gantt-task {
    height: 28px;
    padding: 0 7px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 42px;
    align-items: center;
    border-bottom: 1px solid #f0f2f5;
}

.admin-scheduling-page .gantt-task strong {
    font-size: 5.5px;
    color: #4c586b;
    font-weight: 500;
}

.admin-scheduling-page .gantt-task span {
    font-size: 5px;
    color: #8994a5;
}


/* =========================================================
   GANTT AREA
   ========================================================= */

.admin-scheduling-page .gantt-area {
    position: relative;
    overflow: hidden;
}

.admin-scheduling-page .gantt-dates {
    height: 29px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: center;
    border-bottom: 1px solid #e7ebf0;
    background: #fafbfd;
}

.admin-scheduling-page .gantt-dates span {
    text-align: center;
    font-size: 5px;
    color: #7c8799;
}

.admin-scheduling-page .gantt-bars {
    position: relative;
}

.admin-scheduling-page .gantt-row {
    height: 28px;
    position: relative;
    border-bottom: 1px solid #f0f2f5;
    background-image: linear-gradient(
        to right,
        transparent calc(14.285% - 1px),
        #f0f2f5 calc(14.285% - 1px),
        #f0f2f5 14.285%
    );
    background-size: 14.285% 100%;
}

.admin-scheduling-page .bar {
    position: absolute;
    top: 8px;
    height: 11px;
    border-radius: 3px;
}

.admin-scheduling-page .bar.blue {
    background: #397be8;
}

.admin-scheduling-page .bar.green {
    background: #39b878;
}

.admin-scheduling-page .bar.orange {
    background: #f3a31a;
}

.admin-scheduling-page .bar.purple {
    background: #7955d8;
}

.admin-scheduling-page .bar.teal {
    background: #20aeb0;
}


/* GANTT BAR POSITIONS */

.admin-scheduling-page .bar-1 {
    left: 3%;
    width: 52%;
}

.admin-scheduling-page .bar-2 {
    left: 7%;
    width: 18%;
}

.admin-scheduling-page .bar-3 {
    left: 18%;
    width: 20%;
}

.admin-scheduling-page .bar-4 {
    left: 29%;
    width: 20%;
}

.admin-scheduling-page .bar-5 {
    left: 28%;
    width: 17%;
}

.admin-scheduling-page .bar-6 {
    left: 34%;
    width: 14%;
}

.admin-scheduling-page .bar-7 {
    left: 42%;
    width: 16%;
}

.admin-scheduling-page .bar-8 {
    left: 47%;
    width: 17%;
}

.admin-scheduling-page .bar-9 {
    left: 55%;
    width: 15%;
}

.admin-scheduling-page .bar-10 {
    left: 61%;
    width: 14%;
}

.admin-scheduling-page .bar-11 {
    left: 67%;
    width: 13%;
}

.admin-scheduling-page .bar-12 {
    left: 72%;
    width: 12%;
}

.admin-scheduling-page .bar-13 {
    left: 77%;
    width: 11%;
}

.admin-scheduling-page .bar-14 {
    left: 82%;
    width: 10%;
}

.admin-scheduling-page .bar-15 {
    left: 87%;
    width: 9%;
}

.admin-scheduling-page .bar-16 {
    left: 91%;
    width: 7%;
}


/* =========================================================
   TASK DETAILS
   ========================================================= */

.admin-scheduling-page .schedule-task-panel {
    padding: 12px;
}

.admin-scheduling-page .task-details-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #edf0f4;
}

.admin-scheduling-page .task-status {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 6px;
    border-radius: 8px;
    background: #e1f5eb;
    color: #168a59;
    font-size: 5px;
    font-weight: 700;
}

.admin-scheduling-page .task-details-header h2 {
    margin: 0 0 3px;
    font-size: 10px;
}

.admin-scheduling-page .task-details-header p {
    margin: 0;
    font-size: 6px;
    color: #8994a5;
}


/* =========================================================
   TASK DATE DETAILS
   ========================================================= */

.admin-scheduling-page .task-detail-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 11px 0;
    border-bottom: 1px solid #edf0f4;
}

.admin-scheduling-page .task-detail-section div:last-child {
    grid-column: 1 / -1;
}

.admin-scheduling-page .task-detail-section label,
.admin-scheduling-page .task-info label {
    display: block;
    margin-bottom: 4px;
    color: #8994a5;
    font-size: 5px;
}

.admin-scheduling-page .task-detail-section strong {
    font-size: 7px;
    color: #4c586b;
}


/* =========================================================
   PROGRESS
   ========================================================= */

.admin-scheduling-page .task-progress {
    padding: 11px 0;
    border-bottom: 1px solid #edf0f4;
}

.admin-scheduling-page .progress-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 6px;
    color: #6b7789;
}

.admin-scheduling-page .progress-heading strong {
    color: #2168e8;
}

.admin-scheduling-page .progress-track {
    height: 5px;
    border-radius: 5px;
    background: #e9edf2;
    overflow: hidden;
}

.admin-scheduling-page .progress-fill {
    width: 60%;
    height: 100%;
    background: #397be8;
}


/* =========================================================
   TASK INFORMATION
   ========================================================= */

.admin-scheduling-page .task-info {
    padding: 10px 0;
    border-bottom: 1px solid #edf0f4;
}

.admin-scheduling-page .task-info strong {
    font-size: 7px;
}

.admin-scheduling-page .task-info p {
    margin: 0;
    font-size: 6px;
    line-height: 1.5;
    color: #667286;
}


/* =========================================================
   ATTACHMENT
   ========================================================= */

.admin-scheduling-page .task-attachment {
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #e1e6ed;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-scheduling-page .task-attachment > span {
    font-size: 13px;
}

.admin-scheduling-page .task-attachment div {
    flex: 1;
}

.admin-scheduling-page .task-attachment strong {
    display: block;
    font-size: 6px;
}

.admin-scheduling-page .task-attachment small {
    font-size: 5px;
    color: #8994a5;
}

.admin-scheduling-page .task-attachment button {
    border: 0;
    background: transparent;
    color: #2168e8;
}


/* =========================================================
   PROJECT PROGRESS
   ========================================================= */

.admin-scheduling-page .project-progress-card {
    padding-top: 10px;
    border-top: 1px solid #edf0f4;
}

.admin-scheduling-page .project-progress-card h3 {
    margin: 0 0 10px;
    font-size: 8px;
}

.admin-scheduling-page .project-progress-circle {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 54%, transparent 55%),
        conic-gradient(#39b878 0 28%, #e8edf2 28% 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #172033;
}

.admin-scheduling-page .project-progress-circle small {
    margin-top: 2px;
    font-size: 4px;
    font-weight: 400;
    color: #8994a5;
}

.admin-scheduling-page .project-progress-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-scheduling-page .project-progress-card li {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
    font-size: 6px;
    color: #667286;
}

.admin-scheduling-page .project-progress-card li strong {
    margin-left: auto;
}

.admin-scheduling-page .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.admin-scheduling-page .dot.completed {
    background: #39b878;
}

.admin-scheduling-page .dot.progress {
    background: #397be8;
}

.admin-scheduling-page .dot.upcoming {
    background: #f3a31a;
}

.admin-scheduling-page .dot.overdue {
    background: #e65353;
}


/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.admin-scheduling-page .schedule-quick-actions {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #edf0f4;
}

.admin-scheduling-page .schedule-quick-actions h3 {
    margin: 0 0 8px;
    font-size: 8px;
}

.admin-scheduling-page .schedule-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.admin-scheduling-page .schedule-quick-actions h3 {
    grid-column: 1 / -1;
}

.admin-scheduling-page .schedule-quick-actions button {
    min-height: 25px;
    border: 1px solid #dce2e9;
    border-radius: 4px;
    background: #fff;
    font-size: 6px;
    font-weight: 600;
}

.admin-scheduling-page .schedule-quick-actions .edit-task {
    color: #2168e8;
}

.admin-scheduling-page .schedule-quick-actions .add-milestone {
    color: #168a59;
}

.admin-scheduling-page .schedule-quick-actions .add-task {
    color: #c17b0a;
}

.admin-scheduling-page .schedule-quick-actions .delete-task {
    color: #d94a4a;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1250px) {

    .admin-scheduling-page .scheduling-workspace {
        grid-template-columns: 200px minmax(450px, 1fr);
    }

    .admin-scheduling-page .schedule-task-panel {
        grid-column: 2;
    }
}

@media (max-width: 900px) {

    .admin-scheduling-page .scheduling-sidebar {
        width: 150px;
    }

    .admin-scheduling-page .scheduling-main {
        margin-left: 150px;
    }

    .admin-scheduling-page .scheduling-workspace {
        grid-template-columns: 1fr;
    }

    .admin-scheduling-page .schedule-task-panel {
        grid-column: auto;
    }
}
/* =========================================================
   BUILDEASE ADMIN RECORDS
   ========================================================= */

.admin-records-page {
    margin: 0;
    min-height: 100vh;
    background: #f5f7fa;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
}


/* SIDEBAR */

.admin-records-page .records-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 178px;
    height: 100vh;
    background: #06101a;
    color: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.admin-records-page .records-logo {
    padding: 16px 18px 20px;
}

.admin-records-page .records-logo img {
    display: block;
    width: 145px;
    height: auto;
    background: #fff;
}

.admin-records-page .records-menu-title {
    padding: 5px 20px 12px;
    color: #9ca8b6;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
}

.admin-records-page .records-nav {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
    gap: 2px;
}

.admin-records-page .records-nav a {
    min-height: 37px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 5px;
    color: #e7edf3;
    text-decoration: none;
    font-size: 12px;
}

.admin-records-page .records-nav a:hover {
    background: #17232e;
}

.admin-records-page .records-nav a.active {
    background: #dfe3e8;
    color: #111827;
    font-weight: 700;
}

.admin-records-page .records-logout {
    margin-top: auto;
    border-top: 1px solid #27323d;
    padding: 18px 20px;
}

.admin-records-page .records-logout a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
}


/* MAIN */

.admin-records-page .records-main {
    margin-left: 178px;
    min-height: 100vh;
    padding: 0 18px 30px;
}


/* HEADER */

.admin-records-page .records-topbar {
    min-height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-records-page .records-topbar h1 {
    margin: 0 0 4px;
    font-size: 23px;
}

.admin-records-page .records-topbar p {
    margin: 0;
    color: #7a8698;
    font-size: 10px;
}

.admin-records-page .records-top-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #596579;
    font-size: 10px;
}


/* SUMMARY */

.admin-records-page .records-summary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.admin-records-page .record-summary-card {
    min-height: 65px;
    box-sizing: border-box;
    padding: 12px;
    background: #fff;
    border: 1px solid #e4e8ed;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-records-page .record-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.admin-records-page .record-summary-card.blue .record-icon {
    background: #edf3ff;
    color: #397be8;
}

.admin-records-page .record-summary-card.green .record-icon {
    background: #e9f9f1;
    color: #20a86b;
}

.admin-records-page .record-summary-card.orange .record-icon {
    background: #fff4e5;
    color: #ee9b16;
}

.admin-records-page .record-summary-card.purple .record-icon {
    background: #f2edff;
    color: #7652d5;
}

.admin-records-page .record-summary-card.red .record-icon {
    background: #ffeded;
    color: #e45454;
}

.admin-records-page .record-summary-card span {
    display: block;
    font-size: 8px;
    color: #647186;
}

.admin-records-page .record-summary-card strong {
    display: block;
    margin: 1px 0;
    font-size: 18px;
}

.admin-records-page .record-summary-card small {
    display: block;
    font-size: 6px;
    color: #8994a5;
}


/* FILTER BAR */

.admin-records-page .records-filter-bar {
    min-height: 48px;
    background: #fff;
    border: 1px solid #e3e7ec;
    padding: 7px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-records-page .records-search {
    width: 190px;
    height: 28px;
    border: 1px solid #dce2e9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    box-sizing: border-box;
    color: #8490a1;
    font-size: 8px;
}

.admin-records-page .records-search input {
    border: 0;
    outline: none;
    width: 100%;
    font-size: 8px;
}

.admin-records-page .records-filter-bar select {
    height: 28px;
    min-width: 90px;
    border: 1px solid #dce2e9;
    border-radius: 4px;
    background: #fff;
    padding: 0 7px;
    font-size: 7px;
    color: #5d697b;
}

.admin-records-page .record-filter-btn,
.admin-records-page .record-upload-btn {
    height: 28px;
    border-radius: 4px;
    padding: 0 9px;
    font-size: 7px;
    white-space: nowrap;
}

.admin-records-page .record-filter-btn {
    border: 1px solid #dce2e9;
    background: #fff;
    color: #667286;
}

.admin-records-page .record-upload-btn {
    margin-left: auto;
    border: 1px solid #2168e8;
    background: #2168e8;
    color: #fff;
    font-weight: 600;
}


/* CONTENT */

.admin-records-page .records-content-layout {
    display: grid;
    grid-template-columns: minmax(600px, 1fr) 210px;
    gap: 10px;
    margin-top: 10px;
    align-items: start;
}

.admin-records-page .records-table-card,
.admin-records-page .records-side-card {
    background: #fff;
    border: 1px solid #e2e6ec;
    border-radius: 5px;
}


/* TABLE */

.admin-records-page .records-table-card {
    overflow: hidden;
}

.admin-records-page .records-table-header {
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid #edf0f4;
}

.admin-records-page .records-table-header h2 {
    margin: 0;
    font-size: 10px;
}

.admin-records-page .records-table-wrapper {
    overflow-x: auto;
}

.admin-records-page .records-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.admin-records-page .records-table th {
    height: 32px;
    background: #fafbfd;
    border-bottom: 1px solid #e6eaf0;
    color: #667286;
    text-align: left;
    padding: 0 7px;
    font-size: 6px;
    font-weight: 700;
}

.admin-records-page .records-table td {
    height: 48px;
    border-bottom: 1px solid #edf0f4;
    padding: 5px 7px;
    color: #566275;
    font-size: 6px;
    vertical-align: middle;
}

.admin-records-page .records-table th:first-child,
.admin-records-page .records-table td:first-child {
    width: 25px;
    text-align: center;
}

.admin-records-page .records-table th:nth-child(2) {
    width: 180px;
}

.admin-records-page .records-table th:nth-child(3) {
    width: 70px;
}

.admin-records-page .records-table th:nth-child(4) {
    width: 130px;
}

.admin-records-page .records-table th:nth-child(5) {
    width: 80px;
}

.admin-records-page .records-table th:nth-child(6) {
    width: 95px;
}

.admin-records-page .records-table th:nth-child(7) {
    width: 45px;
}

.admin-records-page .records-table th:nth-child(8) {
    width: 60px;
}


/* FILE NAME */

.admin-records-page .record-file {
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-records-page .file-icon {
    width: 24px;
    height: 28px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
}

.admin-records-page .file-icon.pdf {
    background: #fff0f0;
    color: #df4d4d;
}

.admin-records-page .file-icon.design {
    background: #eef5ff;
    color: #397be8;
}

.admin-records-page .file-icon.estimate {
    background: #f3edff;
    color: #7652d5;
}

.admin-records-page .file-icon.photo {
    background: #fff5e5;
    color: #e39a17;
}

.admin-records-page .file-icon.document {
    background: #eaf8f1;
    color: #1ca56a;
}

.admin-records-page .record-file strong {
    display: block;
    color: #39465a;
    font-size: 6.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-records-page .record-file small,
.admin-records-page .records-table td small {
    color: #8994a5;
    font-size: 5px;
}


/* FILE TYPE */

.admin-records-page .file-type {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 5px;
    font-weight: 600;
}

.admin-records-page .file-type.contract {
    background: #eaf0ff;
    color: #416fca;
}

.admin-records-page .file-type.design {
    background: #eaf5ff;
    color: #3477c8;
}

.admin-records-page .file-type.estimate {
    background: #f2ebff;
    color: #7652d5;
}

.admin-records-page .file-type.photo {
    background: #fff4e4;
    color: #c98512;
}

.admin-records-page .file-type.document {
    background: #e9f8f0;
    color: #168a59;
}


/* ACTIONS */

.admin-records-page .record-actions {
    white-space: nowrap;
}

.admin-records-page .record-actions button {
    width: 22px;
    height: 22px;
    margin-right: 2px;
    padding: 0;
    background: #fff;
    border: 1px solid #dce2e9;
    border-radius: 3px;
    color: #637084;
    font-size: 7px;
}


/* PAGINATION */

.admin-records-page .records-pagination {
    min-height: 38px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #8994a5;
    font-size: 6px;
}

.admin-records-page .records-pagination div {
    display: flex;
    gap: 3px;
    align-items: center;
}

.admin-records-page .records-pagination button {
    width: 21px;
    height: 21px;
    padding: 0;
    background: #fff;
    border: 1px solid #dce2e9;
    border-radius: 3px;
    font-size: 7px;
}

.admin-records-page .records-pagination button.current {
    background: #2168e8;
    border-color: #2168e8;
    color: #fff;
}


/* RIGHT PANEL */

.admin-records-page .records-right-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-records-page .records-side-card {
    padding: 11px;
}

.admin-records-page .records-side-card h2 {
    margin: 0 0 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid #edf0f4;
    font-size: 9px;
}


/* CATEGORIES */

.admin-records-page .category-item {
    min-height: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #637084;
    font-size: 6px;
    border-radius: 4px;
    padding: 0 6px;
}

.admin-records-page .category-item.active {
    background: #eef4ff;
    color: #2168e8;
}

.admin-records-page .category-item strong {
    margin-left: auto;
    font-size: 6px;
    color: #667286;
}


/* QUICK ACTIONS */

.admin-records-page .quick-actions-card button {
    width: 100%;
    height: 29px;
    margin-bottom: 6px;
    border-radius: 4px;
    font-size: 7px;
    font-weight: 600;
}

.admin-records-page .upload-file-btn {
    border: 1px solid #8cb6ff;
    background: #eef5ff;
    color: #2168e8;
}

.admin-records-page .create-folder-btn {
    border: 1px solid #a8dfc4;
    background: #eefaf4;
    color: #168a59;
}


/* RESPONSIVE */

@media (max-width: 1200px) {

    .admin-records-page .records-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-records-page .records-content-layout {
        grid-template-columns: 1fr;
    }

    .admin-records-page .records-right-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 800px) {

    .admin-records-page .records-sidebar {
        width: 150px;
    }

    .admin-records-page .records-main {
        margin-left: 150px;
    }

    .admin-records-page .records-summary {
        grid-template-columns: 1fr 1fr;
    }

    .admin-records-page .records-filter-bar {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }

    .admin-records-page .records-search {
        width: 100%;
    }

    .admin-records-page .record-upload-btn {
        margin-left: 0;
    }
}


.dashboard-menu li a,
.dashboard-menu li a:visited,
.dashboard-menu li a:hover,
.dashboard-menu li a:active {
    color: white !important;
    text-decoration: none !important;
}
.dashboard-view-btn{
    display:block;
    width:100%;
    box-sizing:border-box;
    padding:10px;
    margin-top:15px;
    text-align:center;
    color:#000;
    text-decoration:none;
    border:1px solid #888;
    background:#fff;
    cursor:pointer;
}

.dashboard-view-btn:hover{
    background:#f5f5f5;
}
/* Dashboard View Buttons */

.dashboard-view-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-top: 15px;
    text-align: center;
    color: #000;
    text-decoration: none;
    border: 1px solid #888;
    background: #fff;
    cursor: pointer;
}

.dashboard-view-btn:hover {
    background: #f5f5f5;
}

.dashboard-view-project {
    cursor: pointer;
}
#heroCard {
    cursor: pointer;
}
.dashboard-view-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-top: 15px;
    text-align: center;
    color: #000;
    text-decoration: none;
    border: 1px solid #888;
    background: #fff;
    cursor: pointer;
}

.dashboard-view-btn:hover {
    background: #f5f5f5;
}

.inquiry-btn {
    text-decoration: none;
}

.estimate-btn {
    text-decoration: none;
}


/* Shared authentication password toggle (BuildEase_JS/password-toggle.js): eye while hidden, eye-off while shown.
   Fixed 32px target, vertically centred inside the input's existing 45-46px right padding (no layout shift). */
.password-container button.toggle-password,
.password-container button.toggle-password:hover {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    color: #5b6b7d;
    font-size: 18px;
    font-weight: normal;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}

.password-container button.toggle-password:hover {
    color: #173f6b;
}

.password-container button.toggle-password:focus-visible {
    outline: 2px solid #173f6b;
    outline-offset: 1px;
}

.password-container .toggle-password-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.password-container .toggle-password .toggle-password-icon-hide,
.password-container .toggle-password.password-visible .toggle-password-icon-show {
    display: none;
}

.password-container .toggle-password.password-visible .toggle-password-icon-hide {
    display: block;
}

/* Change-password inline messages (Client Settings + Reset Password; moved here from settings.css unchanged). */
.password-validation-error { display: block; margin-top: 6px; margin-bottom: 0; padding: 0; color: #d93025; font-size: 13px; font-weight: 400; line-height: 1.4; text-align: left; }
.password-validation-error:empty { display: none; }

.password-container input::-ms-reveal {
    display: none;
}

.reset-container .password-container {
    width: 321px;
}

.admin-login-box .password-container {
    width: 200px;
    margin-bottom: 14px;
}

.admin-login-box .password-container input {
    display: block;
    margin-bottom: 0;
    padding-right: 45px;
}


/* ADMIN SIDEBAR SIZING ? Dashboard is the master template.
   Keep this after legacy page/media rules. Repeated class specificity matches
   page-specific selectors without changing their colors or interaction styles. */
.buildease-sidebar.buildease-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex: 0 0 260px;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}

.buildease-sidebar.buildease-sidebar > .admin-logo {
    width: 100%;
    margin: 0;
    padding: 20px 22px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.buildease-sidebar.buildease-sidebar > .admin-logo img {
    width: 190px;
    min-width: 190px;
    max-width: 190px;
    height: auto;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

.buildease-sidebar.buildease-sidebar > :is(.admin-menu-title, .estimation-menu-title, .contracts-menu-title, .scheduling-menu-title, .records-menu-title) {
    margin: 10px 20px 8px;
    padding: 0 22px 14px;
    font-size: 12px;
    line-height: normal;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.buildease-sidebar.buildease-sidebar > nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0 13px;
    gap: 5px;
    overflow: visible;
    flex-shrink: 0;
}

.buildease-sidebar.buildease-sidebar > nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    height: 44px;
    margin: 0;
    padding: 0 14px;
    gap: 0;
    font-size: 14px;
    line-height: normal;
    white-space: nowrap;
    flex-shrink: 0;
}

.buildease-sidebar.buildease-sidebar > :is(.admin-sidebar-bottom, .estimation-logout, .contracts-logout, .scheduling-logout, .records-logout) {
    margin: auto 0 0;
    padding: 18px 13px;
    flex-shrink: 0;
}

.buildease-sidebar.buildease-sidebar > :is(.admin-sidebar-bottom, .estimation-logout, .contracts-logout, .scheduling-logout, .records-logout) a {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 10px 14px;
    font-size: 14px;
    line-height: normal;
}

.buildease-admin-content.buildease-admin-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-width: 360px;
    box-sizing: border-box;
    padding: 28px 30px 40px;
    font-size: 14px;
    line-height: 1.5;
    container-type: inline-size;
}

/* Shared admin readability. Scope every override to the existing main class;
   repeated specificity wins over legacy page rules without touching sidebars. */
.buildease-admin-content.buildease-admin-content.buildease-admin-content :is(div, p, span, strong, b, a, li, label, input, select, textarea, button, table, th, td) {
    font-size: 14px;
    line-height: 1.5;
}

.buildease-admin-content.buildease-admin-content.buildease-admin-content h1 {
    font-size: 28px;
    line-height: 1.25;
}

.buildease-admin-content.buildease-admin-content.buildease-admin-content h2 {
    font-size: 20px;
    line-height: 1.35;
}

.buildease-admin-content.buildease-admin-content.buildease-admin-content h3 {
    font-size: 18px;
    line-height: 1.35;
}

.buildease-admin-content.buildease-admin-content.buildease-admin-content :is(small, .admin-date, .admin-user, .chart-labels span, .table-status, .booking-status, .project-status, .estimate-status, .contract-status, .contract-main-status, .schedule-status, .task-status, .file-type, .schedule-project-item b, .contract-timeline > div > span:last-child) {
    font-size: 12px;
    line-height: 1.5;
}

.buildease-admin-content.buildease-admin-content.buildease-admin-content :is(.admin-stat-card, .record-summary-card, .summary-cost-card) strong {
    font-size: 24px;
    line-height: 1.25;
}

.buildease-admin-content.buildease-admin-content.buildease-admin-content :is(.status-circle strong, .project-progress-circle, .project-progress-circle strong) {
    font-size: 18px;
}

.buildease-admin-content.buildease-admin-content :is(.admin-header, .estimation-topbar, .contracts-topbar, .scheduling-topbar, .records-topbar) {
    min-height: 0;
    padding: 0;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.buildease-admin-content.buildease-admin-content :is(.admin-header-right, .estimation-top-actions, .contracts-top-actions, .scheduling-top-actions, .records-top-actions, .admin-panel-header, .inquiry-actions, .booking-actions, .project-actions, .scheduling-toolbar, .schedule-toolbar-actions, .timeline-header, .timeline-controls, .records-filter-bar, .design-main-header, .estimate-project-header, .contract-details-header, .schedule-project-title) {
    flex-wrap: wrap;
    gap: 12px;
}

.buildease-admin-content.buildease-admin-content :is(.admin-stat-grid, .records-summary) {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.buildease-admin-content.buildease-admin-content :is(.admin-stat-card, .record-summary-card) {
    min-height: 90px;
    padding: 17px;
    gap: 12px;
}

.buildease-admin-content.buildease-admin-content .admin-stat-grid:not(.inquiry-stat-grid):not(.booking-stat-grid) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.buildease-admin-content.buildease-admin-content :is(.admin-dashboard-grid, .admin-table-grid, .booking-content-layout, .project-content-layout, .design-workspace, .estimation-workspace, .contracts-workspace, .scheduling-workspace, .records-content-layout, .design-summary-panel, .estimate-right-panel, .contract-right-panel, .records-right-panel) {
    gap: 20px;
}

.buildease-admin-content.buildease-admin-content :is(.admin-dashboard-grid, .admin-welcome, .design-status-tabs) {
    margin-bottom: 24px;
}

.buildease-admin-content.buildease-admin-content :is(.estimation-workspace, .contracts-workspace, .scheduling-workspace, .records-content-layout, .design-admin-actions) {
    margin-top: 20px;
}

.buildease-admin-content.buildease-admin-content :is(.admin-panel-header, .design-request-header, .design-main-header, .estimate-request-header, .estimate-project-header, .contract-list-header, .contract-details-header, .schedule-project-header, .schedule-project-title, .records-table-header) {
    height: auto;
    min-height: 58px;
    padding: 16px 18px;
}

.buildease-admin-content.buildease-admin-content :is(.summary-card, .summary-cost-card, .estimate-right-card, .contract-right-card, .schedule-task-panel, .records-side-card, .estimate-section, .contract-section) {
    padding: 18px;
}

.buildease-admin-content.buildease-admin-content :is(.design-request, .estimate-request-item, .contract-list-item, .schedule-project-item, .activity-item, .inquiry-search-row, .booking-search-row, .project-search-row, .records-filter-bar) {
    padding: 12px 16px;
    gap: 12px;
}

.buildease-admin-content.buildease-admin-content :is(.design-details-grid, .design-thumbnails) {
    padding: 0 18px 18px;
}

.buildease-admin-content.buildease-admin-content :is(.estimate-info-grid, .estimate-summary-grid, .contract-info-grid, .contract-summary-grid, .signature-grid) {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 16px;
}

.buildease-admin-content.buildease-admin-content .details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
}

.buildease-admin-content.buildease-admin-content :is(.estimate-info-grid, .estimate-summary-grid, .contract-info-grid, .contract-summary-grid) > div {
    padding: 12px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.buildease-admin-content.buildease-admin-content :is(.estimate-description, .estimate-notes, .contract-description, .contract-notes, .signature-box) {
    padding: 12px;
}

/* Controls keep their existing types, colors, borders and event handlers. */
.buildease-admin-content.buildease-admin-content.buildease-admin-content :is(button, select, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea) {
    min-height: 38px;
    height: auto;
    box-sizing: border-box;
    padding: 8px 12px;
    max-width: 100%;
}

.buildease-admin-content.buildease-admin-content.buildease-admin-content :is(.action-btn, .record-actions button, .pagination button, .design-pagination button, .estimate-pagination button, .contract-list-footer button, .schedule-project-pagination button, .records-pagination button, .design-search button, .preview-expand, .thumbnail-arrow) {
    min-width: 36px;
    min-height: 36px;
    padding: 6px;
    flex-shrink: 0;
}

.buildease-admin-content.buildease-admin-content :is(.estimate-search, .contract-search, .records-search) {
    height: auto;
    min-height: 38px;
    min-width: 0;
}

.buildease-admin-content.buildease-admin-content :is(.design-status-tabs, .design-preview-tabs, .estimation-status-tabs, .contracts-status-tabs, .scheduling-tabs, .contract-detail-tabs, .timeline-tabs, .schedule-view-tabs, .design-thumbnails) {
    height: auto;
    min-height: 44px;
    overflow-x: auto;
}

.buildease-admin-content.buildease-admin-content :is(.design-status-tabs, .design-preview-tabs, .estimation-status-tabs, .contracts-status-tabs, .scheduling-tabs, .contract-detail-tabs, .timeline-tabs) > button {
    flex-shrink: 0;
    min-height: 44px;
}

.buildease-admin-content.buildease-admin-content :is(.inquiry-table-footer, .booking-table-footer, .project-table-footer, .design-request-footer, .estimate-request-footer, .contract-list-footer, .schedule-project-pagination, .records-pagination) {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
}

/* Natural column widths and local scrolling preserve every table column. */
.buildease-admin-content.buildease-admin-content :is(.admin-table-wrapper, .estimate-table-wrapper, .records-table-wrapper) {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
}

.buildease-admin-content.buildease-admin-content table {
    table-layout: auto;
    width: 100%;
}

.buildease-admin-content.buildease-admin-content.buildease-admin-content :is(th, td) {
    padding: 12px 14px;
    height: auto;
    font-size: 14px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

/* Workspaces respond to the space left AFTER the fixed 260px sidebar. */
.buildease-admin-content.buildease-admin-content :is(.design-workspace, .estimation-workspace, .contracts-workspace, .scheduling-workspace) {
    grid-template-columns: 270px minmax(0, 1fr) 280px;
}

.buildease-admin-content.buildease-admin-content :is(.booking-content-layout, .project-content-layout, .records-content-layout) {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.buildease-admin-content.buildease-admin-content :is(.admin-dashboard-grid, .admin-table-grid, .design-workspace, .estimation-workspace, .contracts-workspace, .scheduling-workspace, .records-content-layout) > * {
    min-width: 0;
}

.buildease-admin-content.buildease-admin-content :is(.design-files, .design-thumbnails, .estimate-thumbnail-row) {
    flex-wrap: wrap;
}

.buildease-admin-content.buildease-admin-content .design-admin-actions {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 16px;
}

.buildease-admin-content.buildease-admin-content :is(.request-info strong, .estimate-request-info strong, .contract-list-item strong, .schedule-project-item strong) {
    white-space: normal;
    overflow-wrap: anywhere;
}

.buildease-admin-content.buildease-admin-content .record-file {
    min-width: 250px;
}

.buildease-admin-content.buildease-admin-content .admin-chart-placeholder {
    margin-bottom: 30px;
}

.buildease-admin-content.buildease-admin-content .project-progress-circle {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.buildease-admin-content.buildease-admin-content .quick-date {
    min-height: 38px;
    height: auto;
    padding: 8px 12px;
    white-space: normal;
}

.buildease-admin-content.buildease-admin-content .progress-step span {
    width: 24px;
    height: 24px;
    line-height: 22px;
}

.buildease-admin-content.buildease-admin-content :is(.pagination, .design-pagination, .estimate-pagination, .records-pagination > div, .schedule-project-pagination > div) {
    flex-wrap: wrap;
}

.buildease-admin-content.buildease-admin-content :is(.table-status, .booking-status, .project-status) {
    min-height: 24px;
    height: auto;
    padding: 3px 8px;
}

/* Keep task labels and bars aligned as timeline rows become readable. */
.buildease-admin-content.buildease-admin-content .schedule-timeline-panel {
    overflow-x: auto;
}

.buildease-admin-content.buildease-admin-content .gantt-chart {
    min-width: 780px;
    grid-template-columns: 300px minmax(480px, 1fr);
}

.buildease-admin-content.buildease-admin-content :is(.gantt-header-row, .gantt-dates) {
    height: 44px;
}

.buildease-admin-content.buildease-admin-content :is(.gantt-task, .gantt-row) {
    height: 52px;
}

.buildease-admin-content.buildease-admin-content :is(.gantt-task, .gantt-header-row) {
    grid-template-columns: minmax(0, 1fr) 80px;
    padding: 0 12px;
}

.buildease-admin-content.buildease-admin-content .bar {
    top: 17px;
    height: 18px;
}

@container (max-width: 1150px) {
    .buildease-admin-content.buildease-admin-content .admin-stat-grid:not(.inquiry-stat-grid):not(.booking-stat-grid) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .buildease-admin-content.buildease-admin-content :is(.design-workspace, .estimation-workspace, .contracts-workspace, .scheduling-workspace) {
        grid-template-columns: 270px minmax(0, 1fr);
    }

    .buildease-admin-content.buildease-admin-content :is(.design-summary-panel, .estimate-right-panel, .contract-right-panel, .schedule-task-panel) {
        grid-column: 1 / -1;
    }

    .buildease-admin-content.buildease-admin-content :is(.design-summary-panel, .estimate-right-panel, .contract-right-panel) {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    }

    .buildease-admin-content.buildease-admin-content :is(.admin-dashboard-grid, .admin-table-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (max-width: 850px) {
    .buildease-admin-content.buildease-admin-content :is(.design-workspace, .estimation-workspace, .contracts-workspace, .scheduling-workspace, .booking-content-layout, .project-content-layout, .records-content-layout, .admin-dashboard-grid, .admin-table-grid) {
        grid-template-columns: minmax(0, 1fr);
    }
}

@container (max-width: 600px) {
    .buildease-admin-content.buildease-admin-content .admin-stat-grid:not(.inquiry-stat-grid):not(.booking-stat-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .buildease-admin-content.buildease-admin-content :is(.details-grid, .project-sidebar, .records-right-panel) {
        grid-template-columns: minmax(0, 1fr);
    }
}

@container (max-width: 380px) {
    .buildease-admin-content.buildease-admin-content .admin-stat-grid:not(.inquiry-stat-grid):not(.booking-stat-grid) {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .buildease-admin-content.buildease-admin-content {
        padding: 20px 18px 32px;
    }
}

/* All admin headers reuse Dashboard's markup and sizing. Keep introductory
   page copy in the content area so it cannot change the top bar's height. */
.buildease-admin-content .admin-header {
    color: #1f2937;
}

.buildease-admin-content .admin-page-description {
    margin-bottom: 24px;
}

/* Wrap the shared controls together, independent of the page title length. */
@container (max-width: 760px) {
    .buildease-admin-content .admin-header {
        flex-direction: column;
    }
}

/* Center empty lists within their panel content, below the heading/search. */
.buildease-admin-content :is(.recent-activities, .design-request-list, .estimate-request-panel, .schedule-project-panel) > .admin-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 96px;
    margin: 0;
    padding: 24px 16px;
    text-align: center;
    color: #667085;
    overflow-wrap: anywhere;
}

/* Verification notice only: keep icon and copy proportional to the card. */
.verify-notice-page { padding: 32px 16px; }
.verify-notice-page .login-container { width: 100%; max-width: 760px; }
.verify-notice-page .login-container h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.2; }
.verify-notice-page .login-subtitle { font-size: 14px; line-height: 1.5; margin-bottom: 24px; }
.verify-notice-page .verify-notice-card {
    width: 100%; max-width: 420px; margin: 0 auto; padding: 26px 28px;
    background: #fff; color: #173f6b; border: 1px solid #e8edf2;
    border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.14);
    text-align: center; overflow-wrap: anywhere;
}
.verify-notice-page .verify-notice-icon {
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; margin: 0 auto 16px;
    border-radius: 50%; background: #fff5da; color: #173f6b;
}
.verify-notice-page .verify-notice-icon svg { display: block; width: 28px; height: 28px; flex-shrink: 0; }
.verify-notice-page .verify-notice-card h2 { font-size: 23px; line-height: 1.3; margin-bottom: 12px; color: #173f6b; }
.verify-notice-page .verify-notice-card p { font-size: 14px; line-height: 1.6; }
.verify-notice-page .verify-notice-success { margin-bottom: 12px; font-weight: 600; }
.verify-notice-page .verify-notice-instructions { color: #596675; }
.verify-notice-page .verify-notice-instructions strong { color: #173f6b; }
.verify-notice-page .verify-notice-reminder {
    margin-top: 18px; padding: 12px; border-radius: 6px;
    background: #f5f6f8; color: #596675; border-top: 2px solid #f4ae00;
}
.verify-notice-page .verify-notice-login {
    display: block; margin-top: 20px; padding: 11px 16px; border-radius: 7px;
    background: #f4ae00; color: #173f6b; text-decoration: none;
    font-size: 14px; font-weight: 700; line-height: 1.5;
}
.verify-notice-page .verify-notice-login:hover { background: #ffc332; }
.verify-notice-page .verify-notice-login:focus-visible { outline: 2px solid #173f6b; outline-offset: 3px; }
@media (max-width: 480px) {
    .verify-notice-page .verify-notice-card { padding: 24px 20px; }
    .verify-notice-page .verify-notice-card h2 { font-size: 22px; }
}

/* Inline client authentication feedback; reserve one line to limit movement. */
.register-form .auth-field-error, .user-login-container .auth-field-error {
    display: block; min-height: 1.25em; margin: -10px 0 0;
    color: #b42318; font-size: 12px; line-height: 1.25; text-align: left;
}
.user-login-container .auth-field-error { width: min(321px, 100%); }
.admin-login-box .auth-field-error {
    display: block; width: 100%; margin: -10px 0 14px;
    color: #b42318; font-size: 12px; line-height: 1.25; text-align: left;
}
.admin-login-box .auth-field-error:empty { display: none; }

/* Booking pages: consultation, management and project location map. */
:where(.booking-page) .consultation-layout { display: grid; grid-template-columns: minmax(280px, .95fr) minmax(320px, 1.15fr); gap: 26px; align-items: start; }
:where(.booking-page) .consultation-panel { background: #fff; border: 1px solid #e2e8ee; border-radius: 12px; padding: 26px; min-width: 0; }
:where(.booking-page) .consultation-panel h2 { color: #173f6b; font-size: 21px; margin: 0 0 8px; }
:where(.booking-page) .consultation-panel > p, :where(.booking-page) .consultation-form > p { color: #667085; font-size: 13px; line-height: 1.6; margin: 0 0 20px; }
:where(.booking-page) .consultation-form { display: flex; flex-direction: column; gap: 18px; }
:where(.booking-page) .consultation-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: #173f6b; min-width: 0; }
:where(.booking-page) .consultation-form input, :where(.booking-page) .consultation-form select, :where(.booking-page) .consultation-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #d4dce5; border-radius: 7px; padding: 12px; background: #fff; color: #253b50; font: inherit; font-size: 14px; min-width: 0; }
:where(.booking-page) .consultation-form textarea { resize: vertical; }
:where(.booking-page) .consultation-form-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
:where(.booking-page) .consultation-primary { border: 0; background: #f4ae00; color: #173f6b; border-radius: 7px; padding: 13px 18px; font: inherit; font-weight: 700; cursor: pointer; }
:where(.booking-page) .consultation-primary:disabled { opacity: .5; cursor: default; }
:where(.booking-page) .consultation-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
:where(.booking-page) .consultation-list-heading button, :where(.booking-page) .booking-card button, :where(.booking-page) .booking-dialog button, :where(.booking-page) .booking-list-filters button, :where(.client-estimation-page) .booking-menu :is(a,button):not(.history-more-actions) { border: 1px solid #d4dce5; border-radius: 6px; background: #fff; color: #173f6b; padding: 8px 12px; cursor: pointer; font: inherit; font-size: 13px; }
:where(.booking-page) .booking-card { border: 1px solid #e2e8ee; border-radius: 9px; padding: 18px; margin-bottom: 14px; }
:where(.booking-page) .booking-card-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
:where(.booking-page) .booking-card h3 { margin: 0 0 5px; font-size: 16px; color: #173f6b; overflow-wrap: anywhere; }
:where(.booking-page) .booking-reference { font-size: 12px; color: #667085; }
:where(.booking-page) .booking-card dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 7px 14px; margin: 16px 0; font-size: 13px; }
:where(.booking-page) .booking-card dt { color: #667085; }:where(.booking-page) .booking-card dd { margin: 0; color: #253b50; overflow-wrap: anywhere; }
:where(.booking-page) .booking-badge { display: inline-block; border-radius: 14px; padding: 4px 10px; font-size: 12px; background: #edf1f5; color: #344054; }
:where(.booking-page) .booking-badge[data-status="Pending"] { background: #fff4db; color: #895900; }
:where(.booking-page) .booking-badge[data-status="Confirmed"], :where(.booking-page) .booking-badge[data-status="Completed"] { background: #e6f4ed; color: #176b42; }
:where(.booking-page) .booking-badge[data-status="Declined"], :where(.booking-page) .booking-badge[data-status="Cancelled"] { background: #fbeaea; color: #9a3030; }
:where(.booking-page) .booking-reschedule-note { color: #895900; font-size: 12px; margin-top: 10px; }
:where(.booking-page) .booking-menu { position: relative; }:where(.booking-page) .booking-menu summary { cursor: pointer; list-style: none; padding: 0 8px; font-size: 24px; color: #173f6b; }
:where(.booking-page, .client-estimation-page) .booking-menu > div { position: absolute; right: 0; z-index: 5; min-width: 175px; padding: 6px; border: 1px solid #d4dce5; border-radius: 8px; background: #fff; box-shadow: 0 4px 16px #173f6b22; }
:where(.booking-page) .booking-menu button, :where(.client-estimation-page) .booking-menu :is(a,button):not(.history-more-actions) { display: block; width: 100%; border: 0; text-align: left; }
:where(.booking-page) .booking-feedback { color: #173f6b; font-size: 13px; line-height: 1.5; margin-top: 14px; }
:where(.booking-page) .booking-feedback[data-error="true"] { color: #a12525; }
:where(.booking-page) .booking-empty { padding: 28px 16px; text-align: center; color: #667085; }
:where(.booking-page, .client-estimation-page) .booking-dialog { width: min(620px, calc(100% - 32px)); max-height: 90vh; box-sizing: border-box; margin: auto; padding: 24px; border: 0; border-radius: 12px; background: #fff; color: #173f6b; }
:where(.booking-page, .client-estimation-page) .booking-dialog::backdrop { background: #0008; }
:where(.booking-page, .client-estimation-page) .booking-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
:where(.booking-page, .client-estimation-page) .booking-dialog header h2 { margin: 0; font-size: 22px; }
:where(.booking-page, .client-estimation-page) .booking-dialog dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px 18px; font-size: 14px; margin: 22px 0; }
:where(.booking-page, .client-estimation-page) .booking-dialog dt { font-weight: 600; }:where(.booking-page, .client-estimation-page) .booking-dialog dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #374151; }
:where(.booking-page) .booking-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
:where(.booking-page) #booking-dialog .booking-detail-heading { grid-column: 1 / -1; margin-top: 12px; font-weight: 600; }
:where(.booking-page) #booking-dialog dd { min-width: 0; }
:where(.booking-page) #booking-dialog .booking-related-records { flex-basis: 100%; min-width: 0; }
:where(.booking-page) #booking-dialog .booking-related-records h3 { margin: 12px 0 10px; font-size: 15px; }
:where(.booking-page) .booking-dialog .consultation-form { margin-top: 20px; }:where(.booking-page) .booking-dialog [hidden] { display: none !important; }
:where(.booking-page) .booking-dialog button:disabled { opacity: .5; cursor: default; }
:where(.booking-page) .booking-list-filters { display: grid; gap: 14px; padding: 16px; }
:where(.booking-page) .booking-list-filters label { display: grid; gap: 6px; }:where(.booking-page) .booking-list-filters input, :where(.booking-page) .booking-list-filters select { width: 100%; min-width: 0; padding: 8px; border: 1px solid #d4dce5; border-radius: 5px; }
@media (max-width: 1100px) { :where(.booking-page) .consultation-layout { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 600px) { :where(.booking-page) .consultation-panel { padding: 18px; }:where(.booking-page) .consultation-form-row { grid-template-columns: minmax(0,1fr); }:where(.booking-page) .booking-dialog dl { grid-template-columns: minmax(0,1fr); gap: 5px; }:where(.booking-page) .booking-dialog dd { margin-bottom: 10px; } }

:where(.booking-page) .booking-row-actions button { margin: 3px; border: 1px solid #d4dce5; border-radius: 6px; padding: 8px 12px; cursor: pointer; }
:where(.booking-page) .booking-row-actions [data-action="approve"], :where(.booking-page) .booking-dialog [data-action="approve"] { background: #187544; color: white; border-color: #187544; }
:where(.booking-page) .booking-row-actions [data-action="decline"], :where(.booking-page) .booking-dialog [data-action="decline"] { background: #b42318; color: white; border-color: #b42318; }
:where(.booking-page) .booking-badge[data-status="Approved"], :where(.booking-page) .booking-badge[data-status="Signed"] { background: #e6f4ed; color: #176b42; }

:where(.booking-page) .booking-row-actions [data-action="view"] { background: #1769aa; color: #fff; border-color: #1769aa; }
:where(.booking-page) .booking-row-actions button:disabled { opacity: .65; cursor: default; }

:where(.booking-page) .booking-confirmation { width: min(460px, calc(100% - 32px)); border: 1px solid #d4dce5; box-shadow: 0 12px 36px #173f6b33; }
:where(.booking-page) .booking-confirmation > p { font-size: 14px; line-height: 1.6; color: #667085; margin-top: 20px; }
:where(.booking-page) .booking-confirmation .booking-detail-actions { justify-content: flex-end; }
:where(.booking-page) .booking-confirmation .booking-detail-actions button { min-width: 100px; }
:where(.booking-page) .booking-confirmation[data-confirming-action="request_estimation"] > p { overflow-wrap:anywhere; }
:where(.booking-page) .booking-confirmation [data-action="request_estimation"] { background:#173f6b; border-color:#173f6b; color:#fff; }
:where(.booking-page) .booking-row-actions [data-action="create_contract"], :where(.booking-page) .booking-dialog [data-action="create_contract"] { background: #7536b5; border-color: #7536b5; color: #fff; }

:where(.booking-page) .booking-right-column { display: grid; gap: 26px; min-width: 0; }
:where(.booking-page) .booking-location-map { width: 100%; height: 340px; border-radius: 8px; margin-top: 14px; }
:where(.booking-page) .booking-location-map[hidden] { display: none; }
:where(.booking-page) .booking-map-panel [data-error="true"] { color: #b42318; }
:where(.booking-page) .booking-map-results { display: grid; gap: 8px; margin-top: 14px; }
:where(.booking-page) .booking-map-results button { background: #fff; color: #173f6b; border: 1px solid #d4dce5; border-radius: 6px; padding: 10px; text-align: left; cursor: pointer; }
:where(.booking-page, .client-estimation-page) .booking-map-suggestions { position: absolute; z-index: 1000; padding: 4px; background: #fff; border: 1px solid #d4dce5; border-radius: 6px; box-shadow: 0 6px 16px rgba(15, 38, 66, 0.16); max-height: 280px; overflow-y: auto; }
:where(.booking-page, .client-estimation-page) .booking-map-suggestions[hidden] { display: none; }
:where(.booking-page, .client-estimation-page) .booking-map-suggestion { display: block; width: 100%; background: transparent; color: #173f6b; border: 0; border-radius: 4px; padding: 8px 10px; text-align: left; cursor: pointer; }
:where(.booking-page, .client-estimation-page) .booking-map-suggestion:hover, :where(.booking-page, .client-estimation-page) .booking-map-suggestion[aria-selected="true"] { background: #eef4fb; }
:where(.booking-page, .client-estimation-page) .booking-map-suggestion-main { display: block; font-weight: 600; }
:where(.booking-page, .client-estimation-page) .booking-map-suggestion-secondary { display: block; font-size: 0.85em; color: #5b6b7c; }
:where(.booking-page) .booking-map-panel .booking-map-address { overflow-wrap: anywhere; margin-top: 12px; }

/* The shared Booking Details media area uses existing authenticated photo URLs. */
:where(.booking-page) #booking-dialog .booking-photos { margin-top: 20px; }
:where(.booking-page) #booking-dialog .booking-photos h3 { margin: 0 0 10px; font-size: 15px; }
:where(.booking-page) #booking-dialog .booking-photo-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,140px),1fr)); gap: 10px; }
:where(.booking-page) #booking-dialog .booking-photo-item { min-width: 0; overflow-wrap: anywhere; }
:where(.booking-page) #booking-dialog .booking-photo-item :is(img,video) { display: block; width: 100%; height: 120px; object-fit: contain; border-radius: 6px; background: #f4f7fa; }

/* Controlled booking review fields stay inside the existing details modal. */

/* Client booking actions match Client Inquiries; keyboard focus remains visible. */
:where(.booking-page) .booking-menu button { padding:8px 12px; border-radius:6px; font:inherit; font-size:13px; background:#fff; color:#173f6b; cursor:pointer; }
:where(.booking-page) .booking-menu button:hover { background:#f2f5f8; box-shadow:none; transform:none; }
:where(.booking-page) .booking-menu [data-action="cancel"] { color:#b42318; }
:where(.booking-page) .booking-menu summary::-webkit-details-marker { display:none; }
:where(.booking-page) .booking-menu :focus-visible { outline:2px solid #173f6b; outline-offset:2px; }
:where(.booking-page) #booking-cancellation-reason { display:block; box-sizing:border-box; width:100%; margin-top:10px; padding:10px; border:1px solid #d4dce5; border-radius:6px; font:inherit; resize:none; }
:where(.booking-page) #booking-cancellation-error { margin:4px 0 0; overflow-wrap:anywhere; }
:where(.booking-page) #booking-cancellation-error + .booking-detail-actions { margin-top:10px; }

:where(.booking-page) .booking-confirmation [data-action="cancel"] { background:#b42318; border-color:#b42318; color:#fff; }

/* Modal motion (opt-in). Only native <dialog> elements that carry the class "be-modal-motion" (and the Admin
   confirmation dialogs, .admin-confirm-dialog, 2026-11-24; the booking confirmation, the Admin Messages action
   confirmation and the message image viewer, 2026-11-24 consistency pass) are animated:
   opening = fade + slight rise + 97% to 100% scale, closing = fade + slight drop; the backdrop fades with them.
   Browsers without @starting-style / allow-discrete simply open and close without animation. */
dialog:is(.be-modal-motion, .admin-confirm-dialog, .booking-confirmation, .dm-action-confirm, .dm-image-viewer) {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, overlay .18s ease allow-discrete, display .18s ease allow-discrete;
}

dialog:is(.be-modal-motion, .admin-confirm-dialog, .booking-confirmation, .dm-action-confirm, .dm-image-viewer)[open] {
    opacity: 1;
    transform: none;
    transition: opacity .2s ease, transform .22s cubic-bezier(.2, .8, .2, 1), overlay .22s allow-discrete, display .22s allow-discrete;
}

@starting-style {
    dialog:is(.be-modal-motion, .admin-confirm-dialog, .booking-confirmation, .dm-action-confirm, .dm-image-viewer)[open] {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }
}

dialog:is(.be-modal-motion, .admin-confirm-dialog, .booking-confirmation, .dm-action-confirm, .dm-image-viewer)::backdrop {
    opacity: 0;
    transition: opacity .18s ease, overlay .18s allow-discrete, display .18s allow-discrete;
}

dialog:is(.be-modal-motion, .admin-confirm-dialog, .booking-confirmation, .dm-action-confirm, .dm-image-viewer)[open]::backdrop { opacity: 1; transition-duration: .2s; }

@starting-style {
    dialog:is(.be-modal-motion, .admin-confirm-dialog, .booking-confirmation, .dm-action-confirm, .dm-image-viewer)[open]::backdrop { opacity: 0; }
}

/* Logout confirmation overlay: plays its opening animation whenever it is shown; logout-confirmation.js adds
   "is-closing" for the closing animation before hiding it again. */
@keyframes be-overlay-in { from { opacity: 0; } }
@keyframes be-dialog-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }

.logout-confirm-overlay:not([hidden]) { animation: be-overlay-in .2s ease; }
.logout-confirm-overlay:not([hidden]) .logout-confirm-dialog { animation: be-dialog-in .22s cubic-bezier(.2, .8, .2, 1); }
.logout-confirm-overlay.is-closing { opacity: 0; transition: opacity .18s ease; }
.logout-confirm-overlay.is-closing .logout-confirm-dialog { opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }

@media (prefers-reduced-motion: reduce) {
    dialog:is(.be-modal-motion, .admin-confirm-dialog, .booking-confirmation, .dm-action-confirm, .dm-image-viewer),
    dialog:is(.be-modal-motion, .admin-confirm-dialog, .booking-confirmation, .dm-action-confirm, .dm-image-viewer)[open],
    dialog:is(.be-modal-motion, .admin-confirm-dialog, .booking-confirmation, .dm-action-confirm, .dm-image-viewer)::backdrop,
    .logout-confirm-overlay.is-closing,
    .logout-confirm-overlay.is-closing .logout-confirm-dialog { transition: none; }
    .logout-confirm-overlay:not([hidden]),
    .logout-confirm-overlay:not([hidden]) .logout-confirm-dialog { animation: none; }
}

/* =========================================================
   PUBLIC NAVBAR — phones and tablets (<= 900px)
   The logo and Login / Register stay on the first row and the
   page links wrap onto a second row, so nothing runs off-screen.
   ========================================================= */
@media (max-width: 900px) {
    .navbar {
        height: auto;
        flex-wrap: wrap;
        padding: 6px 14px;
        row-gap: 2px;
    }

    .navbar .logo {
        width: auto;
        height: 56px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .navbar .logo img {
        width: 200px;
        max-width: 100%;
    }

    .navbar .nav-links {
        order: 3;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        gap: 6px 22px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar .logo img {
        width: 150px;
    }

    .navbar .nav-links {
        gap: 4px 14px;
    }

    .navbar .nav-links a {
        font-size: 13px;
    }

    .navbar .buttons button {
        padding: 0 8px;
    }
}
