@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap");

:root {
    --deep-blue: #072a4a;
    --navy: #0d3b66;
    --cyan: #04bddb;
    --cyan-soft: #8ce4f2;
    --metal-grey: #7f8d99;
    --ink: #102131;
    --white: #ffffff;
    --surface: #f4f9fd;
    --surface-strong: #e7f2f9;
    --line: rgba(7, 42, 74, 0.12);
    --shadow-soft: 0 16px 35px rgba(4, 35, 63, 0.1);
    --shadow-strong: 0 24px 50px rgba(4, 35, 63, 0.2);
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
}

body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
svg,
canvas {
    max-width: 100%;
    height: auto;
}

body.site-body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(4, 189, 219, 0.14), transparent 28%),
        radial-gradient(circle at 87% 22%, rgba(7, 42, 74, 0.12), transparent 28%),
        linear-gradient(180deg, #f9fcff 0%, #edf5fb 62%, #e6eff7 100%);
    font-family: "Manrope", sans-serif;
    min-height: 100vh;
}

[dir="rtl"] body {
    font-family: "IBM Plex Sans Arabic", sans-serif;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.section-title,
.hero-title {
    font-family: "Sora", "Manrope", sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] .navbar-brand,
[dir="rtl"] .section-title,
[dir="rtl"] .hero-title {
    font-family: "IBM Plex Sans Arabic", sans-serif;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--cyan), #b8f4ff);
    box-shadow: 0 0 18px rgba(4, 189, 219, 0.8);
}

.top-strip {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(5, 38, 66, 0.55);
    color: rgba(236, 248, 255, 0.85);
    font-size: 0.82rem;
}

.top-strip .container {
    min-height: 38px;
}

.top-strip-item {
    letter-spacing: 0.2px;
}

.top-nav {
    background: rgba(7, 42, 74, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1100;
}

.navbar-brand {
    letter-spacing: 0.4px;
    font-size: 1rem;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 8px 16px rgba(3, 30, 52, 0.35);
}

.brand-copy {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy small {
    font-size: 0.62rem;
    color: rgba(224, 244, 255, 0.82);
    letter-spacing: 1.05px;
    font-weight: 700;
    text-transform: uppercase;
}

.brand-copy strong {
    font-size: 0.86rem;
    color: #f5fcff;
    font-weight: 800;
}

.top-nav .nav-link {
    font-weight: 600;
    color: rgba(236, 248, 255, 0.82);
    transition: color 0.2s ease, transform 0.2s ease;
}

.top-nav .nav-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.section-link.is-current {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(4, 189, 219, 0.65);
}

.nav-admin-btn {
    color: #05263f;
    border: none;
}

.lang-trigger {
    padding-inline: 0.7rem;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(5, 40, 73, 0.96), rgba(2, 102, 136, 0.85)),
        url("../images/water-grid.svg");
    background-size: cover;
    color: var(--white);
}

.hero-shell::before {
    content: "";
    position: absolute;
    inset: auto -12% -120px -12%;
    height: 220px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2), transparent 68%);
    pointer-events: none;
}

.hero-panel {
    min-height: 82vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-main {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-block;
    background: rgba(4, 189, 219, 0.23);
    border: 1px solid rgba(255, 255, 255, 0.34);
    padding: 0.36rem 0.86rem;
    border-radius: 999px;
    font-size: 0.78rem;
    margin-bottom: 1.2rem;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.hero-title {
    line-height: 1.1;
    text-wrap: balance;
}

.hero-subtitle {
    color: rgba(239, 251, 255, 0.88);
    max-width: 62ch;
}

.hero-actions .btn {
    min-width: 190px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 1.1rem;
    padding: 1.55rem;
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(3px);
}

.hero-card-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.05px;
    color: rgba(255, 255, 255, 0.74);
}

.hero-checklist {
    margin: 0;
    padding-inline-start: 1.2rem;
    display: grid;
    gap: 0.6rem;
    color: rgba(237, 249, 255, 0.9);
}

.metric-grid {
    margin-top: 1.3rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 0.9rem;
    padding: 0.8rem 0.9rem;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-number {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    color: #eafcff;
}

.metric-label {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: rgba(233, 249, 255, 0.86);
}

.btn-cyan {
    color: #062139;
    background-color: var(--cyan);
    border-color: var(--cyan);
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(4, 189, 219, 0.36);
    filter: brightness(1.04);
    color: #04273f;
}

.section-block {
    padding: 5.2rem 0;
}

.section-muted {
    background-color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    margin-bottom: 1.4rem;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 0.55rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy);
    background: rgba(4, 189, 219, 0.16);
}

.section-title {
    color: var(--deep-blue);
    margin-bottom: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-text {
    max-width: 72ch;
    color: #1a3246;
    line-height: 1.78;
}

.about-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.35rem 1.45rem;
    box-shadow: var(--shadow-soft);
}

.pillar-grid {
    display: grid;
    gap: 0.95rem;
}

.pillar-card,
.service-card,
.project-card,
.contact-grid,
.assurance-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.2rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pillar-card:hover,
.service-card:hover,
.project-card:hover,
.contact-grid:hover,
.assurance-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(4, 35, 63, 0.15);
    border-color: rgba(4, 189, 219, 0.42);
}

.pillar-card h3,
.service-card h3,
.assurance-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
}

.pillar-card p,
.service-card p,
.assurance-card p {
    margin: 0;
    color: #3b5569;
}

.service-card {
    position: relative;
    padding-top: 1.4rem;
}

.specialty-card {
    min-height: 184px;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--deep-blue);
    background: linear-gradient(135deg, var(--cyan-soft), #ffffff);
    border: 1px solid rgba(4, 189, 219, 0.4);
    margin-bottom: 0.6rem;
}

.process-lane {
    margin-top: 1.8rem;
    padding: 1.15rem;
    border-radius: 1rem;
    border: 1px dashed rgba(7, 42, 74, 0.28);
    background: rgba(255, 255, 255, 0.6);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.process-step {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.9rem;
}

.process-step span {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.7px;
}

.process-step h3 {
    margin: 0.45rem 0 0.45rem;
    font-size: 0.98rem;
}

.process-step p {
    margin: 0;
    color: #415b70;
    font-size: 0.92rem;
}

.filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.project-filter {
    border: 1px solid rgba(7, 42, 74, 0.22);
    background: #ffffff;
    color: var(--deep-blue);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.project-filter:hover {
    border-color: rgba(4, 189, 219, 0.6);
    color: var(--deep-blue);
}

.project-filter.is-active {
    background: var(--deep-blue);
    color: #ffffff;
    border-color: var(--deep-blue);
    box-shadow: 0 10px 24px rgba(7, 42, 74, 0.2);
}

.project-query-panel {
    margin-bottom: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.84);
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow-soft);
}

.project-query-panel .form-control {
    border-color: rgba(7, 42, 74, 0.24);
}

.project-query-panel .form-control:focus {
    border-color: rgba(4, 189, 219, 0.75);
    box-shadow: 0 0 0 0.2rem rgba(4, 189, 219, 0.13);
}

.project-query-panel .form-range {
    cursor: pointer;
}

.project-item.is-hidden {
    display: none;
}

.project-visual {
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid rgba(7, 42, 74, 0.18);
    background: linear-gradient(135deg, rgba(11, 76, 118, 0.14), rgba(4, 189, 219, 0.16));
    min-height: 170px;
}

.project-cover-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.project-cover-placeholder {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: #28506c;
    font-weight: 700;
    font-size: 0.9rem;
    background:
        radial-gradient(circle at 28% 24%, rgba(4, 189, 219, 0.26), transparent 42%),
        radial-gradient(circle at 82% 76%, rgba(11, 72, 114, 0.2), transparent 40%),
        linear-gradient(135deg, #edf8ff 0%, #d9effa 100%);
}

.project-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.project-code {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy);
    background: rgba(4, 189, 219, 0.14);
    border-radius: 999px;
    padding: 0.22rem 0.58rem;
}

.project-main-title {
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
}

.project-cover-link {
    display: block;
    border-radius: 0.85rem;
    overflow: hidden;
}

.project-meta,
.project-timeline {
    display: grid;
    gap: 0.3rem;
    color: #2a455b;
    font-size: 0.9rem;
}

.project-timeline span {
    font-size: 0.84rem;
    color: #4a6579;
}

.project-card .progress {
    height: 0.9rem;
    border-radius: 999px;
    background: rgba(4, 35, 63, 0.09);
}

.project-card .progress-bar {
    background: linear-gradient(90deg, #04bddb, #61d6ea);
    color: #04324a;
    font-weight: 700;
}

.project-actions {
    display: flex;
    justify-content: flex-end;
}

.project-timeline-board {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.1rem;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(4, 35, 63, 0.16);
}

.gallery-figure {
    margin: 0;
}

.gallery-lightbox-trigger {
    position: relative;
    display: block;
}

.gallery-lightbox-trigger span {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(4, 35, 63, 0.76);
    color: #e8f8ff;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

[dir="rtl"] .gallery-lightbox-trigger span {
    right: auto;
    left: 0.75rem;
}

.gallery-card:hover .gallery-lightbox-trigger span,
.gallery-lightbox-trigger:focus-visible span {
    opacity: 1;
    transform: translateY(0);
}

.gallery-figure img {
    width: 100%;
    height: 206px;
    object-fit: cover;
    display: block;
}

.gallery-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 1rem 0.35rem;
}

.gallery-ref {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #1f4f6d;
    background: rgba(4, 189, 219, 0.14);
    border-radius: 999px;
    padding: 0.28rem 0.58rem;
}

.gallery-card h3 {
    margin: 0.15rem 1rem 0.25rem;
    font-size: 0.96rem;
}

.gallery-card p {
    margin: 0 1rem 1rem;
    font-size: 0.86rem;
    color: #466177;
}

.gallery-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 1rem 1rem;
}

body.lightbox-open {
    overflow: hidden;
}

.project-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 15, 28, 0.82);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    padding: 1rem;
}

.project-lightbox.is-open {
    display: flex;
}

.project-lightbox-inner {
    position: relative;
    width: min(1080px, 100%);
    max-height: 94vh;
    background: #031d34;
    border: 1px solid rgba(98, 217, 238, 0.34);
    border-radius: 1rem;
    padding: 0.95rem 0.95rem 0.6rem;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.project-lightbox-media {
    width: 100%;
    border-radius: 0.8rem;
    overflow: hidden;
    background: #081724;
}

.project-lightbox-media img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    display: block;
}

.project-lightbox-caption {
    margin: 0.7rem 3rem 0.2rem;
    color: #d7f8ff;
    font-size: 0.92rem;
}

.project-lightbox-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

[dir="rtl"] .project-lightbox-close {
    right: auto;
    left: 0.5rem;
}

.project-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.1rem;
    height: 2.1rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.project-lightbox-nav.prev {
    left: 0.55rem;
}

.project-lightbox-nav.next {
    right: 0.55rem;
}

[dir="rtl"] .project-lightbox-nav.prev {
    left: auto;
    right: 0.55rem;
}

[dir="rtl"] .project-lightbox-nav.next {
    right: auto;
    left: 0.55rem;
}

.project-lightbox-nav:disabled {
    opacity: 0.4;
    cursor: default;
}

.project-page .hero-shell::before {
    opacity: 0.7;
}

.project-page-hero {
    padding: 1.1rem 0 0.2rem;
}

.project-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    font-size: 0.86rem;
}

.project-breadcrumb a {
    color: var(--deep-blue);
    text-decoration: none;
    font-weight: 700;
}

.project-detail-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    padding: 1.1rem 1.15rem;
}

.project-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
}

.project-detail-ref {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #1f4f6d;
    background: rgba(4, 189, 219, 0.15);
    border-radius: 999px;
    padding: 0.28rem 0.62rem;
}

.project-detail-title {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    margin: 0;
}

.project-detail-summary {
    margin: 0.65rem 0 1rem;
    color: #385366;
    line-height: 1.8;
}

.project-detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.95rem;
}

.project-detail-meta-grid div {
    border: 1px solid var(--line);
    border-radius: 0.72rem;
    background: #f7fbff;
    padding: 0.6rem 0.7rem;
}

.project-detail-meta-grid small {
    display: block;
    color: #557082;
    margin-bottom: 0.18rem;
}

.project-detail-meta-grid strong {
    color: #0a2f4e;
    font-size: 0.92rem;
}

.project-detail-progress {
    margin-bottom: 1rem;
}

.project-detail-progress span {
    color: #436176;
}

.project-scope-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.project-scope-tags span {
    border: 1px solid rgba(4, 189, 219, 0.35);
    background: rgba(4, 189, 219, 0.1);
    color: #0e4862;
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.project-media-lead {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    padding: 0.95rem;
    display: grid;
    gap: 0.8rem;
}

.project-media-lead-link {
    position: relative;
    display: block;
    border-radius: 0.85rem;
    overflow: hidden;
}

.project-media-lead-link img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.project-media-lead-link span {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    border-radius: 999px;
    background: rgba(6, 38, 65, 0.82);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.34rem 0.58rem;
}

[dir="rtl"] .project-media-lead-link span {
    right: auto;
    left: 0.75rem;
}

.project-media-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.project-media-kpis article {
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    padding: 0.55rem 0.6rem;
    background: #f7fbff;
}

.project-media-kpis small {
    display: block;
    font-size: 0.75rem;
    color: #5b7385;
    margin-bottom: 0.12rem;
}

.project-media-kpis strong {
    color: #092d4b;
    font-size: 0.95rem;
}

.project-media-empty {
    border: 1px dashed rgba(4, 189, 219, 0.6);
    border-radius: 0.8rem;
    background: #f6fcff;
    padding: 0.95rem;
}

.project-media-empty strong {
    color: #103f5e;
}

.project-media-empty p {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: #517085;
}

.project-media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.project-media-item {
    border: 1px solid var(--line);
    border-radius: 0.95rem;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.project-media-item a {
    display: block;
    position: relative;
}

.project-media-item img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.project-media-overlay {
    position: absolute;
    bottom: 0.65rem;
    right: 0.65rem;
    border-radius: 999px;
    background: rgba(3, 29, 52, 0.78);
    color: #e5f8ff;
    padding: 0.25rem 0.56rem;
    font-size: 0.71rem;
    font-weight: 700;
}

[dir="rtl"] .project-media-overlay {
    right: auto;
    left: 0.65rem;
}

.related-project-card {
    border: 1px solid var(--line);
    border-radius: 0.95rem;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    padding: 0.9rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.related-project-card img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    border-radius: 0.7rem;
}

.related-project-card h3 {
    margin: 0;
    font-size: 1rem;
}

.related-project-card p {
    margin: 0;
    font-size: 0.87rem;
    color: #4d687d;
}

.project-empty-state {
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
    background: #fff;
    padding: 1.2rem;
    max-width: 720px;
    margin: 0 auto;
}

.timeline-list {
    position: relative;
    display: grid;
    gap: 0.9rem;
}

.timeline-list::before {
    content: "";
    position: absolute;
    top: 0.35rem;
    bottom: 0.35rem;
    left: 0.48rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(4, 189, 219, 0.5), rgba(7, 42, 74, 0.25));
}

[dir="rtl"] .timeline-list::before {
    left: auto;
    right: 0.48rem;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1.2rem 1fr;
    gap: 0.8rem;
    align-items: flex-start;
}

.timeline-point {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #8ce4f2);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(4, 189, 219, 0.22);
    margin-top: 0.15rem;
}

.timeline-content {
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 0.75rem 0.8rem;
}

.timeline-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.86rem;
    color: #3b5568;
}

.section-grid-dark {
    position: relative;
    background:
        linear-gradient(120deg, #062641 0%, #0b3a63 58%, #0a5375 100%),
        url("../images/water-grid.svg");
    color: #e9f8ff;
}

.section-grid-dark .section-eyebrow {
    color: #d0f4ff;
    background: rgba(4, 189, 219, 0.22);
}

.assurance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.assurance-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

.assurance-card p {
    color: rgba(235, 250, 255, 0.86);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.95rem;
}

.contact-item {
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.8rem 0.9rem;
    background: rgba(255, 255, 255, 0.72);
}

.contact-item span {
    display: block;
    font-size: 0.8rem;
    color: #567086;
    margin-bottom: 0.2rem;
}

.contact-item strong {
    color: var(--deep-blue);
}

.contact-actions {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.contact-form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
    padding: 1.2rem;
}

.contact-form-card .form-control {
    border-color: rgba(7, 42, 74, 0.22);
}

.contact-form-card .form-control:focus {
    border-color: rgba(4, 189, 219, 0.8);
    box-shadow: 0 0 0 0.2rem rgba(4, 189, 219, 0.18);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.cta-band {
    padding: 0 0 4.5rem;
}

.cta-band-inner {
    background: linear-gradient(130deg, #072a4a, #0b4771);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.1rem;
    color: #effaff;
    padding: 1.6rem 1.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.1rem;
}

.cta-band-inner h2 {
    margin: 0;
    font-size: 1.32rem;
    max-width: 760px;
}

.site-footer {
    background: linear-gradient(150deg, #041d33, #062845);
    color: #d5edfb;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-title {
    margin-bottom: 0.65rem;
    font-size: 1.25rem;
}

.footer-subtitle {
    margin-bottom: 0.7rem;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a2d8f1;
}

.footer-text {
    color: rgba(214, 235, 249, 0.85);
}

.footer-links,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.footer-links a {
    color: #d5edfb;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact li {
    color: rgba(214, 235, 249, 0.88);
    font-size: 0.93rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(214, 235, 249, 0.78);
    font-size: 0.9rem;
}

.footer-admin-link {
    color: #c0e9f9;
    font-weight: 700;
    text-decoration: none;
}

.footer-admin-link:hover {
    color: #ffffff;
}

.tech-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 15%, rgba(4, 189, 219, 0.12), transparent 30%),
        linear-gradient(180deg, #f2f8fc 0%, #edf5fb 100%);
    font-family: "Manrope", sans-serif;
    position: relative;
}

.tech-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(7, 42, 74, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 42, 74, 0.025) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: -1;
}

[dir="rtl"] .tech-shell {
    font-family: "IBM Plex Sans Arabic", sans-serif;
}

.tech-nav {
    background: linear-gradient(140deg, #082c50, #0b4b77);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 30px rgba(8, 44, 80, 0.25);
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(8px);
}

.tech-nav .navbar-brand {
    font-size: 1rem;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.tech-nav .nav-link {
    color: rgba(233, 246, 255, 0.86);
    font-weight: 600;
    padding: 0.4rem 0.62rem;
    border-radius: 0.48rem;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.tech-nav .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.tech-nav .nav-link.active {
    color: #ffffff;
    background: rgba(4, 189, 219, 0.22);
    border-radius: 0.5rem;
}

.tech-main {
    max-width: 1320px;
}

.tech-dashboard .tech-main {
    max-width: 1400px;
}

.tech-main h1,
.tech-main h2,
.tech-main h3,
.tech-main h4 {
    font-family: "Sora", "Manrope", sans-serif;
}

[dir="rtl"] .tech-main h1,
[dir="rtl"] .tech-main h2,
[dir="rtl"] .tech-main h3,
[dir="rtl"] .tech-main h4 {
    font-family: "IBM Plex Sans Arabic", sans-serif;
}

[dir="rtl"] .tech-backoffice,
[dir="rtl"] .tech-backoffice .btn,
[dir="rtl"] .tech-backoffice .form-control,
[dir="rtl"] .tech-backoffice .form-select,
[dir="rtl"] .tech-backoffice .form-label,
[dir="rtl"] .tech-backoffice .badge,
[dir="rtl"] .tech-backoffice .table,
[dir="rtl"] .tech-backoffice .alert {
    font-family: "IBM Plex Sans Arabic", sans-serif;
}

.tech-login-main .tech-card {
    max-width: 640px;
    margin-inline: auto;
}

.tech-card {
    border: 1px solid rgba(10, 45, 79, 0.12);
    border-radius: 1rem;
    box-shadow: 0 14px 30px rgba(10, 45, 79, 0.08);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tech-card:hover {
    transform: translateY(-2px);
    border-color: rgba(4, 189, 219, 0.32);
    box-shadow: 0 18px 36px rgba(10, 45, 79, 0.14);
}

.tech-card .card-body {
    padding: 1.2rem;
}

.tech-main .display-6 {
    font-weight: 800;
    letter-spacing: -0.4px;
}

.tech-analytics-card {
    border-color: rgba(7, 42, 74, 0.14);
    box-shadow: 0 16px 34px rgba(8, 44, 80, 0.09);
}

.kpi-grid {
    display: grid;
    gap: 0.65rem;
}

.kpi-chip {
    border: 1px solid rgba(7, 42, 74, 0.12);
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #f8fcff, #eef7fd);
    padding: 0.7rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.kpi-chip span {
    font-size: 0.85rem;
    color: #456079;
}

.kpi-chip strong {
    font-size: 1.1rem;
    color: #0a3253;
}

.tech-dashboard .kpi-chip {
    border-color: rgba(4, 189, 219, 0.22);
    background: linear-gradient(135deg, #ffffff, #edf8ff);
}

.status-breakdown {
    display: grid;
    gap: 0.7rem;
}

.status-breakdown-item .progress {
    height: 0.58rem;
    background: rgba(7, 42, 74, 0.12);
}

.status-breakdown-item .progress-bar {
    background: linear-gradient(90deg, #0b4b77, #04bddb);
}

.tech-chart-wrap {
    position: relative;
    width: 100%;
    min-height: 248px;
    border: 1px solid rgba(7, 42, 74, 0.12);
    border-radius: 0.9rem;
    background: linear-gradient(180deg, #fcfeff 0%, #f3f9fe 100%);
    padding: 0.35rem;
}

.tech-chart {
    display: block;
    width: 100%;
    height: 248px;
}

.tech-command-bar {
    border-color: rgba(4, 189, 219, 0.24);
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.tech-shortcut-hint {
    gap: 0.45rem;
    border-color: rgba(10, 45, 79, 0.2);
    background: #f4f9fd;
    color: #355570;
    font-size: 0.78rem;
    font-weight: 700;
}

.tech-kbd {
    border: 1px solid rgba(10, 45, 79, 0.25);
    border-bottom-width: 2px;
    border-radius: 0.35rem;
    padding: 0.04rem 0.35rem;
    font-size: 0.72rem;
    background: #ffffff;
    color: #14364f;
}

.tech-ops-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.tech-op-tile {
    border: 1px solid rgba(7, 42, 74, 0.14);
    border-radius: 0.9rem;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9fe 100%);
    padding: 0.85rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tech-op-tile h3 {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f3655;
}

.tech-op-tile p {
    margin: 0;
    font-size: 0.84rem;
    color: #4a667b;
    min-height: 2rem;
}

.tech-op-tile .tech-op-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem;
}

.tech-op-tile .tech-op-count {
    font-size: 0.82rem;
    color: #1a4565;
    font-weight: 700;
}

.tech-alert-board {
    border-color: rgba(7, 42, 74, 0.18);
    background: linear-gradient(180deg, #fbfdff 0%, #f2f8fd 100%);
}

.tech-alert-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.tech-alert-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tech-alert-summary .badge {
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.32rem 0.58rem;
}

.tech-alert {
    border: 1px solid rgba(7, 42, 74, 0.14);
    border-radius: 0.85rem;
    background: #ffffff;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.tech-alert h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
}

.tech-alert p {
    margin: 0;
    font-size: 0.86rem;
    color: #456079;
    min-height: 2.5rem;
}

.tech-alert-danger {
    border-color: rgba(176, 32, 47, 0.32);
    background: linear-gradient(180deg, #fff7f8 0%, #ffecee 100%);
}

.tech-alert-warning {
    border-color: rgba(186, 120, 16, 0.3);
    background: linear-gradient(180deg, #fffaf0 0%, #fff1d9 100%);
}

.tech-alert-info {
    border-color: rgba(13, 109, 253, 0.25);
    background: linear-gradient(180deg, #f7fbff 0%, #edf6ff 100%);
}

.tech-alert-success {
    border-color: rgba(25, 135, 84, 0.28);
    background: linear-gradient(180deg, #f6fff9 0%, #ebfff2 100%);
}

.tech-delivery-card {
    border-color: rgba(4, 189, 219, 0.28);
    background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
}

.tech-focus-card {
    border-color: rgba(7, 42, 74, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}

.tech-timeline-summary,
.tech-focus-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tech-timeline-summary .badge,
.tech-focus-summary .badge {
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.32rem 0.6rem;
}

.tech-op-timeline {
    display: grid;
    gap: 0.72rem;
    max-height: 540px;
    overflow: auto;
    padding-right: 0.2rem;
}

[dir="rtl"] .tech-op-timeline {
    padding-right: 0;
    padding-left: 0.2rem;
}

.tech-timeline-entry {
    position: relative;
    display: grid;
    grid-template-columns: 1rem 1fr;
    gap: 0.75rem;
    align-items: stretch;
}

.tech-timeline-dot {
    width: 0.84rem;
    height: 0.84rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #04bddb, #8ce4f2);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(4, 189, 219, 0.2);
    margin-top: 0.4rem;
}

.tech-timeline-content {
    border: 1px solid rgba(7, 42, 74, 0.12);
    border-radius: 0.88rem;
    background: #ffffff;
    padding: 0.8rem;
}

.tech-timeline-overdue .tech-timeline-content {
    border-color: rgba(176, 32, 47, 0.35);
    background: linear-gradient(180deg, #fff9fa 0%, #fff2f4 100%);
}

.tech-timeline-critical .tech-timeline-content {
    border-color: rgba(186, 120, 16, 0.34);
    background: linear-gradient(180deg, #fffdf7 0%, #fff8eb 100%);
}

.tech-timeline-soon .tech-timeline-content {
    border-color: rgba(13, 109, 253, 0.24);
    background: linear-gradient(180deg, #fbfdff 0%, #f0f7ff 100%);
}

.tech-timeline-title,
.tech-focus-title {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f3655;
}

.tech-ref-chip {
    display: inline-block;
    margin-inline-end: 0.28rem;
    padding: 0.08rem 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(7, 42, 74, 0.24);
    background: #f2f8fd;
    font-size: 0.73rem;
    font-weight: 700;
    color: #1f4d70;
    vertical-align: middle;
}

.tech-timeline-engineer,
.tech-focus-meta-item {
    font-size: 0.78rem;
    color: #4b677c;
}

.tech-timeline-meta,
.tech-focus-foot {
    margin-top: 0.36rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    font-size: 0.78rem;
    color: #4a657a;
}

.tech-mini-progress {
    margin-top: 0.42rem;
    height: 0.52rem;
    background: rgba(7, 42, 74, 0.12);
}

.tech-mini-progress .progress-bar {
    background: linear-gradient(90deg, #0b4b77, #04bddb);
}

.tech-urgency-pill,
.tech-risk-pill {
    border-radius: 999px;
    padding: 0.2rem 0.52rem;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.tech-urgency-pill-overdue,
.tech-risk-pill-high {
    color: #8f1d2f;
    background: rgba(247, 211, 216, 0.86);
    border: 1px solid rgba(176, 32, 47, 0.35);
}

.tech-urgency-pill-critical,
.tech-risk-pill-medium {
    color: #8a5a12;
    background: rgba(255, 233, 191, 0.92);
    border: 1px solid rgba(186, 120, 16, 0.34);
}

.tech-urgency-pill-soon {
    color: #16548d;
    background: rgba(210, 233, 255, 0.9);
    border: 1px solid rgba(13, 109, 253, 0.28);
}

.tech-urgency-pill-normal,
.tech-risk-pill-normal {
    color: #1f6a4d;
    background: rgba(207, 243, 224, 0.86);
    border: 1px solid rgba(25, 135, 84, 0.28);
}

.tech-focus-list {
    display: grid;
    gap: 0.68rem;
    max-height: 540px;
    overflow: auto;
    padding-right: 0.2rem;
}

[dir="rtl"] .tech-focus-list {
    padding-right: 0;
    padding-left: 0.2rem;
}

.tech-focus-item {
    border: 1px solid rgba(7, 42, 74, 0.13);
    border-radius: 0.88rem;
    padding: 0.74rem 0.78rem;
    background: #ffffff;
}

.tech-focus-high {
    border-color: rgba(176, 32, 47, 0.35);
    background: linear-gradient(180deg, #fff9fa 0%, #fff3f5 100%);
}

.tech-focus-medium {
    border-color: rgba(186, 120, 16, 0.34);
    background: linear-gradient(180deg, #fffdf8 0%, #fff8ed 100%);
}

.tech-focus-normal {
    border-color: rgba(25, 135, 84, 0.25);
    background: linear-gradient(180deg, #fbfffc 0%, #f1fff6 100%);
}

.tech-main .form-control,
.tech-main .form-select {
    border-color: rgba(10, 45, 79, 0.2);
}

.tech-main .form-control:focus,
.tech-main .form-select:focus {
    border-color: rgba(4, 189, 219, 0.8);
    box-shadow: 0 0 0 0.2rem rgba(4, 189, 219, 0.14);
}

.tech-main .btn-outline-primary {
    border-color: rgba(7, 42, 74, 0.35);
}

.tech-main .badge {
    font-weight: 700;
}

.badge.tech-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    padding: 0.3rem 0.62rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1.1;
}

.badge.tech-status-badge::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.78;
    flex-shrink: 0;
}

.badge.tech-status-badge.status-planned {
    color: #4d6275;
    border-color: rgba(86, 107, 125, 0.26);
    background: linear-gradient(135deg, rgba(86, 107, 125, 0.16), rgba(86, 107, 125, 0.08));
}

.badge.tech-status-badge.status-progress {
    color: #0f5676;
    border-color: rgba(15, 113, 152, 0.3);
    background: linear-gradient(135deg, rgba(15, 140, 191, 0.2), rgba(4, 189, 219, 0.12));
}

.badge.tech-status-badge.status-hold {
    color: #7a5310;
    border-color: rgba(169, 119, 20, 0.32);
    background: linear-gradient(135deg, rgba(252, 192, 72, 0.28), rgba(228, 157, 22, 0.12));
}

.badge.tech-status-badge.status-completed {
    color: #0f6847;
    border-color: rgba(15, 138, 88, 0.28);
    background: linear-gradient(135deg, rgba(26, 186, 123, 0.2), rgba(29, 220, 152, 0.1));
}

.badge.tech-status-badge.status-cancelled {
    color: #8a2a35;
    border-color: rgba(175, 55, 68, 0.3);
    background: linear-gradient(135deg, rgba(224, 94, 109, 0.2), rgba(189, 58, 72, 0.12));
}

.badge.tech-status-badge.status-default {
    color: #28465f;
    border-color: rgba(40, 70, 95, 0.25);
    background: linear-gradient(135deg, rgba(40, 70, 95, 0.14), rgba(40, 70, 95, 0.08));
}

.tech-table {
    --bs-table-striped-bg: rgba(4, 189, 219, 0.05);
    --bs-table-hover-bg: rgba(4, 189, 219, 0.08);
    border-radius: 0.9rem;
    overflow: hidden;
}

.tech-table thead th {
    background: rgba(7, 42, 74, 0.08);
    color: #123149;
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1;
}

.tech-table tbody td {
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.tech-table tbody tr:hover td {
    background: rgba(4, 189, 219, 0.12);
}

.tech-table .btn {
    white-space: nowrap;
}

.tech-tabs {
    border-bottom-color: rgba(10, 45, 79, 0.18);
}

.tech-tabs .nav-link {
    color: #23465f;
    font-weight: 700;
    border: 1px solid transparent;
    border-bottom: 0;
}

.tech-tabs .nav-link:hover {
    border-color: rgba(10, 45, 79, 0.2);
}

.tech-tabs .nav-link.active {
    color: #0a3557;
    background: #ffffff;
    border-color: rgba(10, 45, 79, 0.18);
}

.tech-mini-tabs .nav-link {
    font-size: 0.83rem;
    font-weight: 700;
    color: #123f5f;
    border: 1px solid rgba(10, 45, 79, 0.22);
    background: #f6fafd;
}

.tech-mini-tabs .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #0b4a74, #0b638f);
    border-color: transparent;
}

.tech-form-tabs .tab-content {
    border-color: rgba(10, 45, 79, 0.15) !important;
}

.tech-accordion .accordion-item {
    border: 1px solid rgba(10, 45, 79, 0.18);
    border-radius: 0.8rem;
    overflow: hidden;
}

.tech-accordion .accordion-button {
    background: rgba(4, 189, 219, 0.08);
    color: #103a58;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: none;
}

.tech-accordion .accordion-button:not(.collapsed) {
    background: rgba(4, 189, 219, 0.14);
    color: #0b3e5d;
}

.tech-accordion .accordion-body {
    background: #f8fbff;
}

.tech-table-tools {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tech-export-panel {
    border: 1px solid rgba(10, 45, 79, 0.14);
    border-radius: 0.85rem;
    background: #f7fbff;
    padding: 0.9rem;
}

.tech-export-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem 0.8rem;
}

.tech-export-grid .form-check-label {
    font-size: 0.9rem;
}

.tech-table-filter {
    min-width: min(420px, 100%);
}

.table-empty-state {
    border-radius: 0.75rem;
}

.flash {
    border-radius: 0.75rem;
}

.reveal-card {
    opacity: 0;
    transform: translateY(18px);
}

.reveal-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.55s ease var(--reveal-delay, 0ms),
        transform 0.55s ease var(--reveal-delay, 0ms);
}

@media (max-width: 1199px) {
    .assurance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .project-media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tech-alert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tech-ops-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tech-backoffice .tech-kanban-grid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
}

@media (max-width: 991px) {
    .hero-panel {
        min-height: auto;
        padding-bottom: 2.8rem;
    }

    .process-lane {
        grid-template-columns: 1fr;
    }

    .assurance-grid {
        grid-template-columns: 1fr;
    }

    .project-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-media-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-band-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .tech-nav .navbar-nav {
        padding-top: 0.5rem;
        gap: 0.2rem;
    }

    .tech-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .tech-alert-grid {
        grid-template-columns: 1fr;
    }

    .tech-ops-grid {
        grid-template-columns: 1fr;
    }

    .tech-backoffice .tech-kanban-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .tech-table-mobile thead {
        display: none;
    }

    .tech-table-mobile,
    .tech-table-mobile tbody,
    .tech-table-mobile tr,
    .tech-table-mobile td {
        display: block;
        width: 100%;
    }

    .tech-table-mobile tr {
        position: relative;
        border: 1px solid rgba(10, 45, 79, 0.15);
        border-radius: 0.9rem;
        padding: 0.9rem 0.95rem 0.85rem;
        margin-bottom: 0.75rem;
        background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
        box-shadow: 0 10px 20px rgba(10, 45, 79, 0.08);
        overflow: hidden;
    }

    .tech-table-mobile tr::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 3px;
        background: linear-gradient(180deg, rgba(4, 189, 219, 0.75), rgba(11, 79, 120, 0.82));
    }

    [dir="rtl"] .tech-table-mobile tr::before {
        inset: 0 0 0 auto;
    }

    .tech-table-mobile td {
        border: 0;
        padding: 0.42rem 0;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.9rem;
        white-space: normal;
        text-align: end;
    }

    [dir="rtl"] .tech-table-mobile td {
        text-align: start;
    }

    .tech-table-mobile td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #10314a;
        text-align: start;
        flex: 0 0 40%;
        max-width: 40%;
    }

    [dir="rtl"] .tech-table-mobile td::before {
        text-align: end;
    }

    .tech-table-mobile td .badge,
    .tech-table-mobile td .btn,
    .tech-table-mobile td form {
        margin-inline-start: auto;
    }

    .tech-table-mobile td form .col-6,
    .tech-table-mobile td form .col-12,
    .tech-table-mobile td form .col-md-3,
    .tech-table-mobile td form .col-md-4,
    .tech-table-mobile td form .col-md-5 {
        width: 100%;
    }

    .tech-table-mobile td .d-flex {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .tech-table-mobile td .btn {
        width: auto;
        min-width: 112px;
    }

    .tech-table-mobile td[data-bulk-cell] {
        justify-content: flex-start;
        text-align: start;
        gap: 0.55rem;
    }

    .tech-table-mobile td[data-bulk-cell]::before {
        flex: 0 0 auto;
        max-width: none;
        margin-inline-end: 0.3rem;
    }

    .tech-bulk-head {
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .tech-table-filter {
        min-width: min(100%, 320px);
    }

    .tech-export-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-dates {
        flex-direction: column;
        gap: 0.25rem;
    }

    .tech-media-sort-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .tech-media-sort-toolbar .btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .tech-backoffice .tech-kanban-grid {
        grid-template-columns: 1fr;
    }

    .tech-mobile-section-nav {
        padding-bottom: 0.2rem;
        gap: 0.34rem;
    }

    .tech-mobile-section-link {
        font-size: 0.72rem;
        padding: 0.32rem 0.62rem;
    }

    .tech-table-mobile td .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .top-strip {
        font-size: 0.74rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        min-width: 0;
        flex: 1 1 auto;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
    }

    .brand-copy small {
        display: none;
    }

    .brand-copy strong {
        font-size: 0.78rem;
    }

    .section-block {
        padding: 4.2rem 0;
    }

    .tech-export-grid {
        grid-template-columns: 1fr;
    }

    .project-query-panel {
        padding: 0.8rem 0.85rem;
    }

    .timeline-item {
        grid-template-columns: 1rem 1fr;
        gap: 0.65rem;
    }

    .project-gallery-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .project-media-grid {
        grid-template-columns: 1fr;
    }

    .project-media-kpis {
        grid-template-columns: 1fr;
    }

    .project-lightbox-inner {
        padding-inline: 0.6rem;
    }

    .project-lightbox-caption {
        margin-inline: 2.2rem;
    }
}

/* Backoffice Redesign */
:root {
    --tech-sidebar-width: 292px;
    --tech-sidebar-width-collapsed: 214px;
    --tech-panel-bg: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
    --tech-panel-border: rgba(7, 42, 74, 0.14);
    --tech-panel-shadow: 0 18px 36px rgba(7, 42, 74, 0.12);
}

.tech-shell.tech-backoffice {
    --tech-module-accent: #04bddb;
    --tech-module-accent-strong: #0b4d79;
    --tech-module-accent-soft: #8de4f1;
    --tech-module-rgb: 4, 189, 219;
    --tech-module-highlight-rgb: 11, 77, 121;
    --tech-module-surface-a: rgba(255, 255, 255, 0.95);
    --tech-module-surface-b: rgba(234, 247, 255, 0.9);
    overflow-x: hidden;
    background:
        radial-gradient(circle at 7% 8%, rgba(var(--tech-module-rgb), 0.17), transparent 34%),
        radial-gradient(circle at 92% 85%, rgba(var(--tech-module-highlight-rgb), 0.13), transparent 32%),
        linear-gradient(180deg, #f2f7fc 0%, #edf4fb 45%, #e9f1f8 100%);
}

.tech-shell.tech-backoffice.tech-module-users {
    --tech-module-accent: #0dc4de;
    --tech-module-accent-strong: #0e5f8d;
    --tech-module-accent-soft: #91e9f6;
    --tech-module-rgb: 13, 196, 222;
    --tech-module-highlight-rgb: 14, 95, 141;
    --tech-module-surface-a: rgba(255, 255, 255, 0.96);
    --tech-module-surface-b: rgba(228, 249, 255, 0.9);
}

.tech-shell.tech-backoffice.tech-module-projects {
    --tech-module-accent: #11c2ad;
    --tech-module-accent-strong: #0f5f86;
    --tech-module-accent-soft: #8beddd;
    --tech-module-rgb: 17, 194, 173;
    --tech-module-highlight-rgb: 15, 95, 134;
    --tech-module-surface-a: rgba(255, 255, 255, 0.96);
    --tech-module-surface-b: rgba(226, 248, 244, 0.9);
}

.tech-shell.tech-backoffice.tech-module-documents {
    --tech-module-accent: #41b0f1;
    --tech-module-accent-strong: #1a4f8a;
    --tech-module-accent-soft: #b7def9;
    --tech-module-rgb: 65, 176, 241;
    --tech-module-highlight-rgb: 26, 79, 138;
    --tech-module-surface-a: rgba(255, 255, 255, 0.96);
    --tech-module-surface-b: rgba(231, 243, 255, 0.9);
}

.tech-shell.tech-backoffice.tech-module-chat {
    --tech-module-accent: #19c3cf;
    --tech-module-accent-strong: #0f5c92;
    --tech-module-accent-soft: #9beaf0;
    --tech-module-rgb: 25, 195, 207;
    --tech-module-highlight-rgb: 15, 92, 146;
    --tech-module-surface-a: rgba(255, 255, 255, 0.96);
    --tech-module-surface-b: rgba(226, 249, 252, 0.9);
}

.tech-shell.tech-login-screen {
    background:
        radial-gradient(circle at 15% 12%, rgba(4, 189, 219, 0.2), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(10, 57, 96, 0.22), transparent 32%),
        linear-gradient(180deg, #f0f7fd 0%, #e9f2fa 100%);
}

.tech-backoffice .tech-main {
    max-width: none;
    min-width: 0;
    width: 100%;
}

.tech-backoffice .tech-main > * {
    max-width: 100%;
    min-width: 0;
}

.tech-backoffice .tech-main > h1.h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.35rem !important;
    padding: 0.66rem 1rem;
    border-radius: 0.92rem;
    border: 1px solid rgba(7, 42, 74, 0.16);
    background: linear-gradient(135deg, #ffffff 0%, #edf7ff 100%);
    box-shadow: 0 12px 24px rgba(7, 42, 74, 0.08);
}

.tech-backoffice .tech-main > h1.h3::before {
    content: "";
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #04bddb, #0a4f7d);
    box-shadow: 0 0 0 6px rgba(4, 189, 219, 0.16);
}

.tech-backoffice .tech-page-head {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.95rem;
    margin-bottom: 1.35rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(var(--tech-module-highlight-rgb), 0.25);
    border-radius: 0.96rem;
    background: linear-gradient(138deg, var(--tech-module-surface-a), var(--tech-module-surface-b));
    box-shadow: 0 14px 28px rgba(7, 42, 74, 0.1);
}

.tech-backoffice .tech-page-head::after {
    content: "";
    position: absolute;
    inset: auto -18px -20px auto;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 35%, rgba(var(--tech-module-rgb), 0.24), transparent 68%),
        radial-gradient(circle at 70% 70%, rgba(var(--tech-module-highlight-rgb), 0.22), transparent 72%);
    pointer-events: none;
    opacity: 0.8;
}

[dir="rtl"] .tech-backoffice .tech-page-head::after {
    inset: auto auto -20px -18px;
}

.tech-backoffice .tech-page-head > .tech-page-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.tech-backoffice .tech-page-head h1.h3 {
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tech-backoffice .tech-page-head h1.h3::before {
    content: "";
    width: 0.64rem;
    height: 0.64rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tech-module-accent), var(--tech-module-accent-strong));
    box-shadow: 0 0 0 6px rgba(var(--tech-module-rgb), 0.18);
}

.tech-backoffice .tech-page-sub {
    margin: 0.38rem 0 0;
    color: #4d6b82;
    font-size: 0.91rem;
    font-weight: 500;
}

.tech-backoffice .tech-context-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.95rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(var(--tech-module-highlight-rgb), 0.2);
    border-radius: 0.95rem;
    background: linear-gradient(
        138deg,
        rgba(255, 255, 255, 0.98),
        rgba(var(--tech-module-rgb), 0.08)
    );
    box-shadow: 0 14px 26px rgba(7, 42, 74, 0.09);
}

.tech-backoffice .tech-context-copy {
    min-width: 0;
}

.tech-backoffice .tech-context-lead {
    color: #3c5f78;
    font-size: 0.94rem;
    font-weight: 600;
}

.tech-backoffice .tech-context-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

[dir="rtl"] .tech-backoffice .tech-context-chips {
    justify-content: flex-start;
}

.tech-backoffice .tech-context-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.36rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(7, 42, 74, 0.16);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.tech-backoffice .tech-context-chip strong {
    color: #0b446e;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-backoffice .tech-context-chip strong[data-context-clock] {
    min-width: 136px;
    text-align: end;
    font-variant-numeric: tabular-nums;
}

[dir="rtl"] .tech-backoffice .tech-context-chip strong[data-context-clock] {
    text-align: start;
}

.tech-backoffice .tech-context-chip small {
    color: #49677f;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.tech-backoffice .tech-context-chip--status {
    border-color: rgba(7, 129, 84, 0.28);
    background: linear-gradient(135deg, rgba(8, 166, 108, 0.12), rgba(31, 127, 170, 0.08));
}

.tech-backoffice .tech-context-chip--status strong {
    color: #0e6a51;
}

.tech-backoffice .tech-context-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.tech-backoffice .tech-context-lang-switch a {
    text-decoration: none;
    padding: 0.12rem 0.34rem;
    border-radius: 0.38rem;
    border: 1px solid rgba(7, 42, 74, 0.22);
    color: #0c446d;
    font-size: 0.71rem;
    font-weight: 800;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.85);
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.tech-backoffice .tech-context-lang-switch a:hover {
    background: rgba(4, 189, 219, 0.14);
    border-color: rgba(4, 118, 154, 0.48);
}

.tech-backoffice .tech-context-lang-switch a.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #0b4d79, #04bddb);
}

.tech-backoffice .tech-main > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-2.mb-4 {
    margin-bottom: 1.35rem !important;
    padding: 0.86rem 0.98rem;
    border: 1px solid rgba(7, 42, 74, 0.14);
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 248, 255, 0.88));
    box-shadow: 0 14px 26px rgba(7, 42, 74, 0.09);
}

.tech-backoffice .tech-page-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.7rem 0.82rem;
    border: 1px solid rgba(var(--tech-module-highlight-rgb), 0.23);
    border-radius: 0.88rem;
    background: linear-gradient(
        138deg,
        rgba(255, 255, 255, 0.94),
        rgba(var(--tech-module-rgb), 0.07)
    );
    box-shadow: 0 12px 22px rgba(7, 42, 74, 0.08);
}

.tech-backoffice .tech-page-actions-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    color: #44647b;
    white-space: nowrap;
}

.tech-backoffice .tech-page-actions-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

[dir="rtl"] .tech-backoffice .tech-page-actions-wrap {
    justify-content: flex-start;
}

.tech-backoffice .tech-auto-kpi {
    margin-bottom: 1rem;
    padding: 0.72rem 0.82rem;
    border: 1px solid rgba(var(--tech-module-highlight-rgb), 0.19);
    border-radius: 0.9rem;
    background: linear-gradient(
        138deg,
        rgba(255, 255, 255, 0.95),
        rgba(var(--tech-module-rgb), 0.08)
    );
    box-shadow: 0 12px 24px rgba(7, 42, 74, 0.08);
}

.tech-backoffice .tech-auto-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.tech-backoffice .tech-auto-kpi-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0.56rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(var(--tech-module-highlight-rgb), 0.18);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.94),
        rgba(var(--tech-module-rgb), 0.08)
    );
}

.tech-backoffice .tech-auto-kpi-item strong {
    color: var(--tech-module-accent-strong);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.1;
}

.tech-backoffice .tech-auto-kpi-item small {
    color: #4b687f;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    font-weight: 700;
}

.tech-backoffice .tech-card {
    position: relative;
    max-width: 100%;
    min-width: 0;
    border-radius: 1.1rem;
    border: 1px solid var(--tech-panel-border);
    background: var(--tech-panel-bg);
    box-shadow: var(--tech-panel-shadow);
    overflow: hidden;
}

.tech-backoffice .tech-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--tech-module-accent),
        var(--tech-module-accent-strong),
        var(--tech-module-accent-soft)
    );
    opacity: 0.86;
}

.tech-backoffice .tech-card .card-body {
    padding: 1.25rem;
}

.tech-backoffice .tech-card .row > [class*="col-"] {
    min-width: 0;
}

.tech-backoffice .tech-main .display-6 {
    color: #0b3559;
}

.tech-backoffice .tech-main .form-control,
.tech-backoffice .tech-main .form-select {
    border-radius: 0.7rem;
    border: 1px solid rgba(10, 45, 79, 0.24);
    background: #fbfdff;
}

.tech-backoffice .tech-main textarea.form-control {
    min-height: 122px;
}

.tech-backoffice .tech-main .form-control:focus,
.tech-backoffice .tech-main .form-select:focus {
    border-color: rgba(4, 189, 219, 0.92);
    box-shadow: 0 0 0 0.21rem rgba(4, 189, 219, 0.2);
    background: #ffffff;
}

.tech-backoffice .btn-cyan {
    color: #04263e;
    border: none;
    background: linear-gradient(135deg, #07cae9, #06a8cb);
    font-weight: 800;
    letter-spacing: 0.2px;
}

.tech-backoffice .btn-cyan:hover {
    color: #05233a;
    box-shadow: 0 12px 26px rgba(4, 189, 219, 0.38);
}

.tech-backoffice .tech-main .btn-primary,
.tech-backoffice .tech-main .btn-outline-primary,
.tech-backoffice .tech-main .btn-outline-secondary,
.tech-backoffice .tech-main .btn-outline-dark,
.tech-backoffice .tech-main .btn-outline-info {
    border-radius: 0.66rem;
}

.tech-backoffice .tech-main .btn-outline-primary {
    color: #0a4e7a;
    border-color: rgba(10, 69, 107, 0.34);
}

.tech-backoffice .tech-main .btn-outline-primary:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #0b4a76, #0c678f);
    border-color: transparent;
}

.tech-backoffice .flash {
    border: 0;
    border-left: 4px solid rgba(10, 88, 202, 0.45);
    box-shadow: 0 10px 20px rgba(7, 42, 74, 0.1);
}

[dir="rtl"] .tech-backoffice .flash {
    border-left: 0;
    border-right: 4px solid rgba(10, 88, 202, 0.45);
}

.tech-backoffice .tech-draft-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
    padding: 0.34rem 0.56rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 45, 79, 0.2);
    background: linear-gradient(135deg, rgba(4, 189, 219, 0.16), rgba(11, 91, 132, 0.13));
    color: #0a3f63;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.tech-backoffice .tech-tabs {
    border-bottom: 1px solid rgba(10, 45, 79, 0.16);
    gap: 0.3rem;
}

.tech-backoffice .tech-tabs .nav-link {
    border-radius: 0.72rem 0.72rem 0 0;
    background: rgba(255, 255, 255, 0.5);
}

.tech-backoffice .tech-tabs .nav-link.active {
    color: #07395f;
    border-color: rgba(10, 45, 79, 0.18);
    border-bottom-color: #ffffff;
    background: #ffffff;
    box-shadow: 0 -1px 0 rgba(4, 189, 219, 0.42) inset;
}

.tech-backoffice .tech-form-tabs .tab-content {
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
    border: 1px solid rgba(10, 45, 79, 0.14) !important;
}

.tech-backoffice .tech-mini-tabs .nav-link {
    border-radius: 0.62rem;
    background: linear-gradient(180deg, #ffffff 0%, #eef6fd 100%);
}

.tech-backoffice .tech-mini-tabs .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #0b4d79, #0c6b93);
}

.tech-backoffice .tech-accordion .accordion-button {
    border-radius: 0.62rem !important;
    padding: 0.68rem 0.84rem;
}

.tech-backoffice .tech-accordion .accordion-button:not(.collapsed) {
    box-shadow: inset 0 -1px 0 rgba(4, 189, 219, 0.35);
}

.tech-backoffice .tech-table-tools {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.8rem 0.88rem;
    border: 1px solid rgba(var(--tech-module-highlight-rgb), 0.2);
    border-radius: 0.84rem;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.92),
        rgba(var(--tech-module-rgb), 0.08)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.tech-backoffice .tech-table-tools .d-flex {
    flex-wrap: wrap;
}

.tech-backoffice .tech-table-tools .btn-group {
    flex-wrap: wrap;
}

.tech-backoffice .tech-bulk-toolbar {
    border: 1px solid rgba(var(--tech-module-highlight-rgb), 0.2);
    border-radius: 0.86rem;
    background: linear-gradient(180deg, #ffffff 0%, rgba(var(--tech-module-rgb), 0.09) 100%);
    box-shadow: 0 8px 18px rgba(7, 42, 74, 0.08);
    padding: 0.78rem 0.84rem;
    display: grid;
    gap: 0.68rem;
}

.tech-backoffice .tech-bulk-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.tech-backoffice .tech-bulk-head strong {
    color: var(--tech-module-accent-strong);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.32px;
    text-transform: uppercase;
}

.tech-backoffice .tech-bulk-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 45, 79, 0.18);
    background: rgba(255, 255, 255, 0.95);
    color: #2d4d66;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.tech-backoffice .bulk-select-col {
    width: 48px;
    min-width: 48px;
    text-align: center;
}

.tech-backoffice .bulk-row-check {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.tech-backoffice .tech-table-shell {
    position: relative;
}

.tech-backoffice .tech-table-uxbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.56rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(var(--tech-module-highlight-rgb), 0.2);
    border-radius: 0.8rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95),
        rgba(var(--tech-module-rgb), 0.08)
    );
}

.tech-backoffice .tech-table-ux-title {
    color: var(--tech-module-accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.38px;
}

.tech-backoffice .tech-table-ux-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.tech-backoffice .tech-table-ux-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 45, 79, 0.16);
    background: rgba(255, 255, 255, 0.86);
    color: #2f5066;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.tech-backoffice .tech-table-ux-actions {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tech-backoffice .tech-table-ux-btn.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #0b4d79, #04bddb);
    box-shadow: 0 8px 16px rgba(8, 68, 104, 0.25);
}

.tech-backoffice .tech-table-col-panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(360px, 72vw);
    max-height: 280px;
    overflow-y: auto;
    padding: 0.58rem;
    border: 1px solid rgba(10, 45, 79, 0.2);
    border-radius: 0.78rem;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(8, 44, 80, 0.18);
    z-index: 30;
    display: none;
}

[dir="rtl"] .tech-backoffice .tech-table-col-panel {
    right: auto;
    left: 0;
}

.tech-backoffice .tech-table-col-panel.is-open {
    display: block;
}

.tech-backoffice .tech-table-col-item {
    display: flex;
    align-items: center;
    gap: 0.46rem;
    padding: 0.34rem 0.2rem;
    font-size: 0.82rem;
    color: #23475f;
    border-bottom: 1px solid rgba(10, 45, 79, 0.08);
}

.tech-backoffice .tech-table-col-item:last-child {
    border-bottom: 0;
}

.tech-backoffice .tech-table-col-item input[type="checkbox"] {
    transform: translateY(-1px);
}

.tech-backoffice .tech-mail-table td,
.tech-backoffice .tech-mail-table th {
    vertical-align: top;
}

.tech-backoffice .tech-mail-row.is-unread {
    background: linear-gradient(90deg, rgba(4, 189, 219, 0.09), rgba(255, 255, 255, 0.98));
}

.tech-backoffice .tech-mail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
}

.tech-backoffice .tech-mail-setup-card .card-body,
.tech-backoffice .tech-mail-ops-card .card-body,
.tech-backoffice .tech-mail-list-card .card-body {
    display: grid;
    gap: 0.9rem;
}

.tech-backoffice .tech-mail-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-backoffice .tech-mail-inline-form {
    padding: 0.72rem;
    border: 1px solid rgba(10, 45, 79, 0.14);
    border-radius: 0.82rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 249, 255, 0.9));
}

.tech-backoffice .tech-mail-state-tabs {
    display: flex;
    align-items: center;
    gap: 0.44rem;
    flex-wrap: wrap;
}

.tech-backoffice .tech-mail-state-tab {
    border: 1px solid rgba(10, 45, 79, 0.16);
    border-radius: 999px;
    padding: 0.3rem 0.6rem;
    color: #1f4965;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.44rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.tech-backoffice .tech-mail-state-tab strong {
    min-width: 1.34rem;
    height: 1.34rem;
    border-radius: 999px;
    background: rgba(10, 45, 79, 0.1);
    color: #123e5c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
}

.tech-backoffice .tech-mail-state-tab.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #0b4d79, #04bddb);
    box-shadow: 0 10px 20px rgba(8, 68, 104, 0.24);
}

.tech-backoffice .tech-mail-state-tab.is-active strong {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.tech-backoffice .tech-mail-sender {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.tech-backoffice .tech-mail-sender-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 45, 79, 0.2);
    background: linear-gradient(145deg, rgba(4, 189, 219, 0.25), rgba(7, 42, 74, 0.12));
    color: #124362;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.tech-backoffice .tech-mail-sender-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.tech-backoffice .tech-mail-sender-copy strong {
    font-size: 0.87rem;
    color: #0f3e5c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-backoffice .tech-mail-sender-copy small {
    font-size: 0.74rem;
    color: #5c7284;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-backoffice .tech-mail-subject {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.tech-backoffice .tech-mail-subject strong,
.tech-backoffice .tech-mail-subject small,
.tech-backoffice .tech-mail-subject span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-backoffice .tech-mail-subject strong {
    color: #0f3e5c;
    font-size: 0.87rem;
}

.tech-backoffice .tech-mail-subject small {
    color: #5a7083;
    font-size: 0.78rem;
}

.tech-backoffice .tech-mail-subject span {
    color: #2f5f7d;
    font-size: 0.73rem;
    font-weight: 700;
}

.tech-backoffice .tech-mail-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    border-radius: 999px;
    padding: 0.18rem 0.54rem;
    border: 1px solid rgba(10, 45, 79, 0.18);
    font-size: 0.72rem;
    font-weight: 800;
}

.tech-backoffice .tech-mail-status-pill.is-unread {
    background: rgba(4, 189, 219, 0.16);
    border-color: rgba(4, 189, 219, 0.38);
    color: #0d607f;
}

.tech-backoffice .tech-mail-status-pill.is-read {
    background: rgba(108, 117, 125, 0.14);
    border-color: rgba(108, 117, 125, 0.32);
    color: #4f5d6a;
}

.tech-backoffice .tech-mail-status-pill.is-archived {
    background: rgba(42, 85, 114, 0.16);
    border-color: rgba(42, 85, 114, 0.3);
    color: #294d68;
}

.tech-backoffice .tech-mail-body {
    max-height: 420px;
    overflow: auto;
    padding: 0.75rem;
    border: 1px solid rgba(10, 45, 79, 0.14);
    border-radius: 0.72rem;
    background: linear-gradient(180deg, #ffffff, #f3f9ff);
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.85rem;
}

.tech-backoffice .tech-mail-html-frame {
    width: 100%;
    min-height: 420px;
    border: 1px solid rgba(10, 45, 79, 0.14);
    border-radius: 0.72rem;
    background: #ffffff;
}

@media (max-width: 991.98px) {
    .tech-backoffice .tech-mail-table {
        min-width: 760px;
    }

    .tech-backoffice .tech-mail-state-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
        padding-bottom: 0.1rem;
    }

    .tech-backoffice .tech-mail-state-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .tech-backoffice .tech-mail-inline-form {
        padding: 0.62rem;
    }
}

.tech-backoffice .tech-table .tech-th-sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-inline-end: 1.28rem !important;
}

.tech-backoffice .tech-table .tech-th-sortable::after {
    content: "\2195";
    position: absolute;
    top: 50%;
    right: 0.42rem;
    transform: translateY(-50%);
    opacity: 0.45;
    font-size: 0.78rem;
}

[dir="rtl"] .tech-backoffice .tech-table .tech-th-sortable {
    padding-inline-end: 0.75rem !important;
    padding-inline-start: 1.28rem !important;
}

[dir="rtl"] .tech-backoffice .tech-table .tech-th-sortable::after {
    right: auto;
    left: 0.42rem;
}

.tech-backoffice .tech-table .tech-th-sortable.is-sorted-asc::after {
    content: "\2191";
    opacity: 0.95;
}

.tech-backoffice .tech-table .tech-th-sortable.is-sorted-desc::after {
    content: "\2193";
    opacity: 0.95;
}

.tech-backoffice .tech-table-shell.is-fullscreen {
    position: fixed;
    inset: 0.72rem;
    z-index: 2500;
    padding: 0.72rem;
    border-radius: 0.96rem;
    border: 1px solid rgba(10, 45, 79, 0.2);
    background: rgba(242, 248, 254, 0.98);
    box-shadow: 0 18px 36px rgba(8, 44, 80, 0.24);
    overflow: hidden;
}

.tech-backoffice .tech-table-shell.is-fullscreen .table-responsive {
    max-height: calc(100vh - 8.2rem);
}

body.tech-table-fs-open {
    overflow: hidden;
}

.tech-backoffice .tech-export-panel {
    max-width: 100%;
    border-radius: 0.95rem;
    border: 1px solid rgba(10, 45, 79, 0.16);
    background: linear-gradient(180deg, #ffffff 0%, #f2f9ff 100%);
    box-shadow: 0 10px 20px rgba(7, 42, 74, 0.08);
}

.tech-backoffice .tech-export-grid .form-check {
    min-height: 30px;
}

.tech-backoffice .tech-table {
    border: 1px solid rgba(var(--tech-module-highlight-rgb), 0.22);
    border-radius: 0.95rem;
    overflow: hidden;
}

.tech-backoffice .tech-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(var(--tech-module-highlight-rgb), 0.98),
        rgba(var(--tech-module-rgb), 0.9)
    );
    color: #e9f7ff;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.62px;
}

.tech-backoffice .tech-table tbody td {
    border-bottom: 1px solid rgba(10, 45, 79, 0.09);
    font-size: 0.9rem;
    word-break: break-word;
}

.tech-backoffice .tech-table.tech-table-compact thead th {
    font-size: 0.71rem;
    letter-spacing: 0.45px;
    padding-top: 0.44rem;
    padding-bottom: 0.44rem;
}

.tech-backoffice .tech-table.tech-table-compact tbody td {
    font-size: 0.82rem;
    padding-top: 0.36rem;
    padding-bottom: 0.36rem;
}

.tech-backoffice .tech-table.tech-table-compact .btn {
    padding: 0.2rem 0.44rem;
    font-size: 0.74rem;
}

.tech-backoffice .tech-table tbody tr:hover td {
    background: rgba(var(--tech-module-rgb), 0.14);
}

[dir="rtl"] .tech-backoffice .tech-context-chip small,
[dir="rtl"] .tech-backoffice .tech-page-actions-title,
[dir="rtl"] .tech-backoffice .tech-bulk-head strong,
[dir="rtl"] .tech-backoffice .tech-table-ux-title,
[dir="rtl"] .tech-backoffice .tech-auto-kpi-item small,
[dir="rtl"] .tech-notify-summary-title,
[dir="rtl"] .tech-notify-group-head h4 {
    letter-spacing: 0;
    text-transform: none;
}

[dir="rtl"] .tech-backoffice .tech-nav .nav-link,
[dir="rtl"] .tech-backoffice .tech-table thead th {
    letter-spacing: 0.12px;
}

[dir="rtl"] .tech-backoffice .tech-page-head h1.h3,
[dir="rtl"] .tech-backoffice .tech-page-sub,
[dir="rtl"] .tech-backoffice .tech-context-lead,
[dir="rtl"] .tech-backoffice .tech-main .h5,
[dir="rtl"] .tech-backoffice .tech-main .h6 {
    text-align: right;
}

@media print {
    body.tech-backoffice {
        background: #ffffff !important;
    }

    .tech-backoffice .tech-nav,
    .tech-backoffice .tech-page-actions,
    .tech-backoffice .tech-context-strip,
    .tech-backoffice .tech-table-uxbar,
    .tech-backoffice .tech-table-tools,
    .tech-backoffice .tech-bulk-toolbar,
    .tech-backoffice .flash,
    .tech-backoffice .btn,
    .tech-backoffice form {
        display: none !important;
    }

    .tech-backoffice .tech-main {
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
    }

    .tech-backoffice .tech-card {
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .tech-backoffice .table-responsive {
        overflow: visible !important;
    }

    .tech-backoffice .tech-table {
        border: 1px solid #cad8e5 !important;
    }

    .tech-backoffice .tech-table thead th {
        color: #113853 !important;
        background: #eef5fb !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .tech-backoffice .tech-table tbody td {
        font-size: 11px !important;
    }
}

.tech-backoffice .tech-kanban-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 0.72rem;
}

.tech-backoffice .tech-kanban-column {
    border: 1px solid rgba(10, 45, 79, 0.16);
    border-radius: 0.82rem;
    background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
    box-shadow: 0 8px 18px rgba(7, 42, 74, 0.08);
    padding: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 320px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.tech-backoffice .tech-kanban-column.is-drop-target {
    border-color: rgba(4, 189, 219, 0.72);
    box-shadow: 0 0 0 3px rgba(4, 189, 219, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #ebf8ff 100%);
}

.tech-backoffice .tech-kanban-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-bottom: 1px dashed rgba(10, 45, 79, 0.2);
    padding: 0.2rem 0.2rem 0.45rem;
}

.tech-backoffice .tech-kanban-column-head h3 {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 800;
    color: #123f5f;
}

.tech-backoffice .tech-kanban-list {
    display: grid;
    gap: 0.55rem;
    align-content: start;
    min-height: 120px;
}

.tech-backoffice .tech-kanban-card {
    border: 1px solid rgba(10, 45, 79, 0.16);
    border-radius: 0.72rem;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(7, 42, 74, 0.08);
    padding: 0.62rem;
    display: grid;
    gap: 0.44rem;
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tech-backoffice .tech-kanban-card:hover {
    transform: translateY(-2px);
    border-color: rgba(4, 189, 219, 0.5);
    box-shadow: 0 12px 22px rgba(7, 42, 74, 0.14);
}

.tech-backoffice .tech-kanban-card.is-dragging {
    opacity: 0.5;
    transform: rotate(1deg);
    cursor: grabbing;
}

.tech-backoffice .tech-kanban-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
}

.tech-backoffice .tech-kanban-card-head strong {
    font-size: 0.8rem;
    color: #0f3655;
}

.tech-backoffice .tech-kanban-card-title {
    margin: 0;
    font-size: 0.86rem;
    color: #163f5d;
    line-height: 1.45;
}

.tech-backoffice .tech-kanban-progress {
    height: 0.52rem;
    background: rgba(7, 42, 74, 0.12);
}

.tech-backoffice .tech-kanban-progress .progress-bar {
    background: linear-gradient(90deg, #0b4b77, #04bddb);
}

.tech-backoffice .tech-kanban-card-meta {
    font-size: 0.76rem;
    color: #4a657a;
}

.tech-backoffice .tech-kanban-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.tech-backoffice .tech-kanban-empty {
    border: 1px dashed rgba(10, 45, 79, 0.24);
    border-radius: 0.68rem;
    background: rgba(255, 255, 255, 0.82);
    color: #567489;
    font-size: 0.8rem;
    padding: 0.62rem;
    text-align: center;
}

.project-media-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 0.6rem;
    border: 1px solid rgba(10, 45, 79, 0.18);
    box-shadow: 0 8px 14px rgba(10, 45, 79, 0.12);
}

.tech-media-sort-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid rgba(10, 45, 79, 0.14);
    border-radius: 0.8rem;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
    padding: 0.65rem 0.75rem;
}

.tech-media-sort-toolbar p {
    font-size: 0.86rem;
}

.tech-branding-preview {
    border: 1px dashed rgba(10, 45, 79, 0.28);
    border-radius: 0.84rem;
    background: linear-gradient(180deg, #f8fcff 0%, #eef6fc 100%);
    min-height: 172px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.tech-branding-preview-img {
    width: 100%;
    max-width: 220px;
    max-height: 132px;
    object-fit: contain;
    border-radius: 0.7rem;
    border: 1px solid rgba(10, 45, 79, 0.14);
    background: rgba(255, 255, 255, 0.75);
    padding: 0.35rem;
}

.tech-color-input-group .form-control-color {
    width: 3.2rem;
    min-width: 3.2rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-inline-end: 0;
}

[dir="rtl"] .tech-color-input-group .form-control-color {
    border-top-right-radius: 0.66rem;
    border-bottom-right-radius: 0.66rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-inline-end: 1px solid rgba(10, 45, 79, 0.2);
    border-inline-start: 0;
}

.tech-color-input-group .form-control.is-invalid {
    border-color: rgba(217, 53, 83, 0.66);
    box-shadow: 0 0 0 0.18rem rgba(217, 53, 83, 0.16);
}

.media-upload-preview {
    border: 1px dashed rgba(10, 45, 79, 0.28);
    border-radius: 0.72rem;
    background: #f8fcff;
    min-height: 126px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem;
    overflow: hidden;
}

.media-upload-placeholder {
    font-size: 0.83rem;
    color: #4f6a7d;
    text-align: center;
}

.media-upload-preview-img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 0.52rem;
}

.media-sort-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.media-row-handle {
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid rgba(10, 45, 79, 0.26);
    border-radius: 0.5rem;
    background: #f3f9ff;
    color: #10476a;
    font-weight: 700;
    line-height: 1;
    cursor: grab;
}

.media-row-order {
    font-weight: 700;
    color: #0f3f60;
}

.tech-backoffice [data-media-sort-row] {
    cursor: grab;
}

.tech-backoffice [data-media-sort-row].is-dragging {
    opacity: 0.55;
}

.tech-backoffice [data-media-sort-row].is-dragging td {
    background: rgba(4, 189, 219, 0.2);
}

.tech-backoffice .table-responsive {
    border-radius: 0.95rem;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tech-backoffice .badge {
    border-radius: 0.56rem;
    padding: 0.38rem 0.52rem;
}

.tech-backoffice .kpi-chip {
    border-radius: 0.88rem;
    border: 1px solid rgba(4, 189, 219, 0.28);
}

.tech-backoffice .tech-chart-wrap {
    border-radius: 0.95rem;
    border: 1px solid rgba(10, 45, 79, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.tech-login-screen .tech-nav {
    background: linear-gradient(135deg, rgba(7, 42, 74, 0.96), rgba(12, 77, 118, 0.9));
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.tech-login-screen .tech-main {
    max-width: 1180px;
}

.tech-login-screen .tech-card {
    border-radius: 1.2rem;
    border: 1px solid rgba(7, 42, 74, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 250, 255, 0.96));
    box-shadow: 0 22px 48px rgba(7, 42, 74, 0.18);
}

.tech-login-screen .tech-card .form-control {
    border-radius: 0.72rem;
}

.tech-backoffice .tech-notify-toggle {
    position: relative;
    width: 2rem;
    height: 2rem;
    border-radius: 0.66rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #dff6ff;
    box-shadow: 0 8px 14px rgba(3, 30, 52, 0.22);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.tech-backoffice .tech-notify-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(141, 228, 242, 0.8);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.tech-notify-count {
    position: absolute;
    top: -0.36rem;
    right: -0.32rem;
    min-width: 1rem;
    height: 1rem;
    border-radius: 999px;
    padding: 0 0.24rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: linear-gradient(135deg, #ff6d7f, #c32140);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 0.95rem;
    text-align: center;
}

[dir="rtl"] .tech-notify-count {
    right: auto;
    left: -0.32rem;
}

.tech-backoffice .tech-nav-badge {
    justify-self: start;
    min-width: 1.22rem;
    height: 1.22rem;
    border-radius: 999px;
    padding: 0 0.32rem;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: linear-gradient(135deg, #ff6f82, #b91f3b);
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.08rem;
    text-align: center;
    box-shadow: 0 6px 12px rgba(28, 8, 16, 0.3);
}

[dir="rtl"] .tech-backoffice .tech-nav-badge {
    justify-self: end;
}

.tech-backoffice .tech-nav .nav-link.active .tech-nav-badge {
    border-color: rgba(255, 255, 255, 0.74);
    box-shadow: 0 8px 14px rgba(10, 22, 39, 0.26);
}

.tech-mobile-dock {
    position: fixed;
    left: 0.55rem;
    right: 0.55rem;
    bottom: calc(env(safe-area-inset-bottom) + 0.5rem);
    z-index: 2050;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.34rem;
    padding: 0.34rem;
    border-radius: 1rem;
    border: 1px solid rgba(8, 47, 80, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(243, 250, 255, 0.95));
    box-shadow: 0 16px 30px rgba(7, 42, 74, 0.18);
    backdrop-filter: blur(4px);
}

.tech-mobile-dock-item {
    position: relative;
    border: 1px solid rgba(7, 42, 74, 0.12);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.92);
    color: #144061;
    min-height: 3.2rem;
    padding: 0.26rem 0.2rem 0.22rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.tech-mobile-dock-item:hover,
.tech-mobile-dock-item:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(4, 189, 219, 0.48);
    background: linear-gradient(145deg, rgba(4, 189, 219, 0.14), rgba(7, 42, 74, 0.08));
    color: #0f3a59;
}

.tech-mobile-dock-item.is-active {
    border-color: rgba(4, 189, 219, 0.6);
    background: linear-gradient(145deg, rgba(4, 189, 219, 0.22), rgba(7, 42, 74, 0.11));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.66);
}

.tech-mobile-dock-icon {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 58, 95, 0.18);
    background: linear-gradient(150deg, rgba(4, 189, 219, 0.2), rgba(7, 42, 74, 0.12));
    color: #0e3c5d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.tech-mobile-dock-icon::before {
    content: "DB";
}

.tech-mobile-dock-icon[data-icon="projects"]::before {
    content: "PR";
}

.tech-mobile-dock-icon[data-icon="chat"]::before {
    content: "CH";
}

.tech-mobile-dock-icon[data-icon="notify"]::before {
    content: "NT";
}

.tech-mobile-dock-icon[data-icon="menu"]::before {
    content: "MN";
}

.tech-mobile-dock-label {
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.1;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-mobile-dock-badge {
    position: absolute;
    top: 0.16rem;
    right: 0.18rem;
    min-width: 0.98rem;
    height: 0.98rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: linear-gradient(135deg, #ff6f82, #b91f3b);
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 0.9rem;
    text-align: center;
    padding: 0 0.2rem;
}

[dir="rtl"] .tech-mobile-dock-badge {
    right: auto;
    left: 0.18rem;
}

.tech-mobile-section-nav {
    display: none;
    align-items: center;
    gap: 0.42rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.2rem 0.1rem 0.35rem;
    scrollbar-width: thin;
}

.tech-mobile-section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 700;
    color: #124363;
    border: 1px solid rgba(10, 52, 86, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 255, 0.92));
    border-radius: 999px;
    padding: 0.36rem 0.72rem;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.tech-mobile-section-link:hover,
.tech-mobile-section-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(var(--tech-module-rgb), 0.52);
    background: linear-gradient(
        180deg,
        rgba(var(--tech-module-rgb), 0.12),
        rgba(var(--tech-module-rgb), 0.18)
    );
    color: var(--tech-module-accent-strong);
}

.tech-mobile-section-link.is-active {
    color: #ffffff;
    border-color: rgba(var(--tech-module-highlight-rgb), 0.66);
    background: linear-gradient(135deg, var(--tech-module-accent-strong), var(--tech-module-accent));
    box-shadow: 0 8px 16px rgba(var(--tech-module-highlight-rgb), 0.28);
}

.tech-notify-layer[hidden] {
    display: none !important;
}

.tech-notify-layer {
    position: fixed;
    inset: 0;
    z-index: 2700;
    display: flex;
    justify-content: flex-end;
}

.tech-notify-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 35, 58, 0.44);
    backdrop-filter: blur(2px);
}

.tech-notify-panel {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    height: 100%;
    border-left: 1px solid rgba(8, 44, 80, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 249, 255, 0.98));
    box-shadow: -22px 0 48px rgba(7, 42, 74, 0.22);
    display: grid;
    grid-template-rows: auto auto 1fr;
}

.tech-notify-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #18c2cf, #0f5b92, #94e8ef);
    opacity: 0.9;
    pointer-events: none;
}

[dir="rtl"] .tech-notify-panel {
    border-left: 0;
    border-right: 1px solid rgba(8, 44, 80, 0.18);
    box-shadow: 22px 0 48px rgba(7, 42, 74, 0.22);
}

.tech-notify-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.9rem 0.9rem 0.75rem;
    border-bottom: 1px solid rgba(9, 47, 79, 0.13);
}

.tech-notify-head h3 {
    margin: 0;
    font-size: 1rem;
    color: #0f3858;
}

.tech-notify-head p {
    margin: 0.32rem 0 0;
    color: #4f6c82;
    font-size: 0.82rem;
}

.tech-notify-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tech-notify-updated {
    font-size: 0.68rem;
    color: #4d6f86;
    background: rgba(4, 119, 169, 0.08);
    border: 1px solid rgba(5, 88, 132, 0.16);
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    line-height: 1;
}

.tech-notify-updated.is-syncing {
    color: #0d5f8d;
    background: rgba(13, 110, 253, 0.12);
}

.tech-notify-updated.is-error {
    color: #8d2030;
    background: rgba(176, 32, 47, 0.14);
    border-color: rgba(176, 32, 47, 0.28);
}

.tech-notify-summary {
    padding: 0.74rem 0.9rem;
    border-bottom: 1px solid rgba(9, 47, 79, 0.13);
    background: rgba(255, 255, 255, 0.86);
}

.tech-notify-summary-title {
    margin-bottom: 0.42rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #39617f;
}

.tech-notify-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    margin-bottom: 0.52rem;
}

.tech-notify-total-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    border: 1px solid rgba(9, 56, 92, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    padding: 0.22rem 0.56rem;
}

.tech-notify-total-pill small {
    color: #4c6e86;
    font-size: 0.64rem;
    font-weight: 700;
}

.tech-notify-total-pill strong {
    min-width: 1.08rem;
    text-align: center;
    color: #0f527d;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

.tech-notify-shortcut-pill {
    border: 1px dashed rgba(10, 58, 95, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: #4a6b82;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.22rem 0.5rem;
}

.tech-notify-summary-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.tech-notify-summary-chips .badge {
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.28rem 0.54rem;
}

.tech-notify-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    margin-top: 0.58rem;
}

.tech-notify-search {
    margin-top: 0.58rem;
}

.tech-notify-search .form-control {
    border-radius: 0.7rem;
    border-color: rgba(10, 50, 84, 0.2);
    font-size: 0.8rem;
}

.tech-notify-search .input-group {
    border-radius: 0.7rem;
    overflow: hidden;
}

.tech-notify-search [data-notify-search-clear] {
    min-width: 4.4rem;
    font-size: 0.71rem;
    font-weight: 700;
}

.tech-notify-actions {
    margin-top: 0.58rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.38rem;
}

.tech-notify-actions .btn {
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.33rem 0.65rem;
}

.tech-notify-filter {
    border: 1px solid rgba(10, 51, 85, 0.18);
    border-radius: 999px;
    background: #ffffff;
    color: #24506f;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.34rem 0.62rem;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.tech-notify-filter:hover {
    border-color: rgba(12, 108, 161, 0.46);
    background: rgba(4, 189, 219, 0.1);
    color: #153f5c;
}

.tech-notify-filter.is-active {
    border-color: rgba(8, 76, 123, 0.52);
    background: linear-gradient(135deg, rgba(14, 140, 196, 0.96), rgba(9, 95, 149, 0.96));
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(7, 42, 74, 0.2);
}

.tech-notify-list {
    overflow-y: auto;
    padding: 0.7rem;
    display: grid;
    gap: 0.55rem;
    background:
        radial-gradient(circle at 90% 10%, rgba(14, 130, 175, 0.06), transparent 30%),
        linear-gradient(180deg, rgba(248, 253, 255, 0.82), rgba(243, 250, 255, 0.9));
}

.tech-notify-group {
    display: grid;
    gap: 0.42rem;
}

.tech-notify-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0 0.08rem;
}

.tech-notify-group-head h4 {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #2f5672;
}

.tech-notify-group-count {
    min-width: 1.32rem;
    height: 1.32rem;
    border-radius: 999px;
    border: 1px solid rgba(9, 56, 92, 0.18);
    background: rgba(255, 255, 255, 0.84);
    color: #1b4967;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.2rem;
    text-align: center;
    padding-inline: 0.24rem;
}

.tech-notify-group-list {
    display: grid;
    gap: 0.5rem;
}

.tech-notify-item.is-hidden {
    display: none;
}

.tech-notify-item {
    display: block;
    position: relative;
    text-decoration: none;
    border: 1px solid rgba(9, 47, 79, 0.12);
    border-radius: 0.82rem;
    background: #ffffff;
    padding: 0.7rem 0.75rem 0.7rem 1.15rem;
    color: #163f5f;
    box-shadow: 0 6px 14px rgba(8, 44, 80, 0.08);
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

[dir="rtl"] .tech-notify-item {
    padding: 0.7rem 1.15rem 0.7rem 0.75rem;
}

.tech-notify-item::before {
    content: "";
    position: absolute;
    top: 0.88rem;
    left: 0.48rem;
    width: 0.44rem;
    height: 0.44rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6f82, #b91f3b);
    box-shadow: 0 0 0 4px rgba(255, 111, 130, 0.18);
    opacity: 0;
    transition: opacity 0.16s ease;
}

[dir="rtl"] .tech-notify-item::before {
    left: auto;
    right: 0.48rem;
}

.tech-notify-item[data-unread="1"]::before {
    opacity: 1;
}

.tech-notify-item.is-read {
    opacity: 0.82;
}

.tech-notify-item.is-read::before {
    opacity: 0;
}

.tech-notify-item:hover {
    transform: translateY(-1px);
    border-color: rgba(4, 189, 219, 0.4);
    background: linear-gradient(135deg, rgba(4, 189, 219, 0.13), rgba(20, 116, 160, 0.08));
    color: #0f3d60;
    box-shadow: 0 10px 18px rgba(8, 44, 80, 0.12);
}

.tech-notify-item strong {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 0.18rem;
}

.tech-notify-item p {
    margin: 0;
    font-size: 0.79rem;
    color: #4d687d;
}

.tech-notify-item.is-read p {
    color: #5c7386;
}

.tech-notify-item-main {
    cursor: pointer;
}

.tech-notify-item-actions {
    margin-top: 0.56rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.36rem;
}

.tech-notify-item-actions .btn {
    border-radius: 999px;
    font-size: 0.69rem;
    font-weight: 700;
    line-height: 1.15;
    padding: 0.28rem 0.6rem;
}

.tech-notify-item-danger,
.tech-notify-item-critical {
    border-color: rgba(176, 32, 47, 0.3);
    background: linear-gradient(180deg, #fff7f8 0%, #fff2f4 100%);
}

.tech-notify-item-warning {
    border-color: rgba(186, 120, 16, 0.28);
    background: linear-gradient(180deg, #fffdf6 0%, #fff8ea 100%);
}

.tech-notify-item-info {
    border-color: rgba(13, 109, 253, 0.24);
    background: linear-gradient(180deg, #f8fcff 0%, #eef7ff 100%);
}

.tech-notify-item-success {
    border-color: rgba(25, 135, 84, 0.24);
    background: linear-gradient(180deg, #f8fffb 0%, #eefcf4 100%);
}

.tech-notify-empty {
    border: 1px dashed rgba(10, 51, 85, 0.24);
    border-radius: 0.82rem;
    background: rgba(255, 255, 255, 0.74);
    padding: 0.75rem 0.8rem;
    color: #3b5d74;
    font-size: 0.8rem;
}

.tech-command-palette[hidden] {
    display: none !important;
}

.tech-command-palette {
    position: fixed;
    inset: 0;
    z-index: 2800;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: min(10vh, 5.2rem) 1rem 1rem;
}

.tech-command-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 35, 58, 0.56);
    backdrop-filter: blur(4px);
}

.tech-command-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: calc(100vh - 3rem);
    border-radius: 1rem;
    border: 1px solid rgba(205, 230, 247, 0.85);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 249, 255, 0.98));
    box-shadow: 0 28px 56px rgba(5, 32, 58, 0.3);
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
}

.tech-command-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    padding: 0.72rem;
    border-bottom: 1px solid rgba(9, 47, 79, 0.13);
    background: rgba(255, 255, 255, 0.9);
}

.tech-command-head .form-control {
    border-radius: 0.75rem;
    border-color: rgba(9, 47, 79, 0.2);
}

.tech-command-head .btn {
    border-radius: 0.68rem;
    min-width: 56px;
}

.tech-command-body {
    overflow-y: auto;
    padding: 0.58rem;
    display: grid;
    gap: 0.35rem;
}

.tech-command-item {
    text-decoration: none;
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.58rem;
    padding: 0.52rem 0.66rem;
    border-radius: 0.74rem;
    border: 1px solid rgba(9, 47, 79, 0.08);
    background: rgba(255, 255, 255, 0.78);
    color: #0f3858;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.tech-command-item:hover,
.tech-command-item.is-active {
    color: #0b3f62;
    border-color: rgba(5, 162, 197, 0.4);
    background: linear-gradient(135deg, rgba(4, 189, 219, 0.15), rgba(20, 116, 160, 0.1));
    transform: translateY(-1px);
}

.tech-command-item.is-recent {
    border-color: rgba(10, 120, 152, 0.26);
    background: linear-gradient(135deg, rgba(8, 166, 199, 0.12), rgba(20, 116, 160, 0.07));
}

.tech-command-item.is-recent::after {
    content: "#" attr(data-recent-rank);
    justify-self: end;
    padding: 0.06rem 0.34rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 120, 152, 0.35);
    color: #0f587d;
    font-size: 0.67rem;
    font-weight: 800;
    line-height: 1.1;
}

.tech-command-item-label {
    font-size: 0.9rem;
    font-weight: 700;
}

.tech-command-item-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.38rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(9, 47, 79, 0.18);
    background: #f4fbff;
    color: #0a4a71;
    font-size: 0.72rem;
    font-weight: 800;
}

.tech-command-empty {
    padding: 1rem;
    text-align: center;
    color: #4d677c;
    font-size: 0.9rem;
}

.tech-command-foot {
    padding: 0.52rem 0.72rem;
    border-top: 1px solid rgba(9, 47, 79, 0.13);
    color: #527086;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.88);
}

body.tech-command-open {
    overflow: hidden;
}

body.tech-notify-open {
    overflow: hidden;
}

body.tech-chat-widget-open {
    overflow: hidden;
}

.tech-module-chat .tech-chat-toolbar {
    display: grid;
    gap: 0.54rem;
    padding: 0.72rem 0.84rem;
    border: 1px solid rgba(var(--tech-module-highlight-rgb), 0.24);
    border-radius: 0.9rem;
    background: linear-gradient(
        136deg,
        rgba(255, 255, 255, 0.96),
        rgba(var(--tech-module-rgb), 0.08)
    );
    box-shadow: 0 14px 24px rgba(var(--tech-module-highlight-rgb), 0.14);
}

.tech-module-chat .tech-chat-toolbar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.44rem;
    align-items: center;
}

.tech-module-chat .tech-chat-toolbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.24rem;
    padding: 0.22rem 0.56rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--tech-module-highlight-rgb), 0.16);
    background: rgba(255, 255, 255, 0.88);
    color: #24526d;
    font-size: 0.72rem;
    font-weight: 700;
}

.tech-module-chat .tech-chat-layout {
    align-items: stretch;
}

.tech-module-chat .tech-chat-card {
    border-color: rgba(var(--tech-module-highlight-rgb), 0.24);
    box-shadow: 0 20px 34px rgba(var(--tech-module-highlight-rgb), 0.14);
}

.tech-module-chat .tech-chat-card .card-body {
    padding: 1.05rem;
}

.tech-module-chat .tech-chat-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.56rem;
}

.tech-module-chat .tech-chat-card-head .badge {
    border: 1px solid rgba(var(--tech-module-highlight-rgb), 0.22);
    background: rgba(var(--tech-module-rgb), 0.16) !important;
    color: #0f567d;
}

.tech-module-chat .tech-chat-card-users .tech-chat-user-tools {
    position: sticky;
    top: -0.2rem;
    z-index: 3;
    padding: 0.56rem;
    border: 1px solid rgba(var(--tech-module-highlight-rgb), 0.16);
    border-radius: 0.86rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(var(--tech-module-rgb), 0.08));
}

.tech-module-chat .tech-chat-card-thread .tech-chat-live-tools,
.tech-module-chat .tech-chat-card-thread .tech-chat-thread-tools {
    border-color: rgba(var(--tech-module-highlight-rgb), 0.2);
    background: linear-gradient(
        140deg,
        rgba(255, 255, 255, 0.94),
        rgba(var(--tech-module-rgb), 0.08)
    );
}

.tech-module-chat .tech-chat-card-thread .tech-chat-messages {
    border-color: rgba(var(--tech-module-highlight-rgb), 0.22);
    background:
        radial-gradient(circle at 18% 4%, rgba(var(--tech-module-rgb), 0.1), transparent 28%),
        radial-gradient(circle at 84% 96%, rgba(var(--tech-module-highlight-rgb), 0.08), transparent 26%),
        #f7fcff;
}

.tech-chat-layout {
    align-items: stretch;
}

.tech-chat-users {
    max-height: clamp(320px, 56vh, 640px);
    overflow-y: auto;
    padding-inline-end: 0.12rem;
}

.tech-chat-user {
    border: 1px solid rgba(7, 42, 74, 0.12);
    border-radius: 0.88rem;
    margin-bottom: 0.52rem;
    background: rgba(255, 255, 255, 0.92);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.tech-chat-user:last-child {
    margin-bottom: 0;
}

.tech-chat-user:hover {
    transform: translateY(-1px);
    border-color: rgba(4, 189, 219, 0.45);
    box-shadow: 0 12px 22px rgba(7, 42, 74, 0.1);
}

.tech-chat-user.active,
.tech-chat-user.active:hover {
    border-color: rgba(4, 189, 219, 0.65);
    background: linear-gradient(145deg, rgba(4, 189, 219, 0.18), rgba(7, 42, 74, 0.12));
    color: #0e334f;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44), 0 10px 18px rgba(7, 42, 74, 0.14);
}

.tech-chat-user-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.tech-chat-user-identity {
    display: inline-flex;
    align-items: center;
    gap: 0.56rem;
    min-width: 0;
}

.tech-chat-avatar {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    border: 1px solid rgba(8, 67, 106, 0.2);
    background: linear-gradient(160deg, rgba(4, 189, 219, 0.22), rgba(7, 42, 74, 0.16));
    color: #0f3d5d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.tech-chat-avatar.tech-chat-avatar-lg {
    width: 2.28rem;
    height: 2.28rem;
    font-size: 0.88rem;
}

.tech-chat-user-badges {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tech-chat-presence {
    font-size: 0.64rem;
}

.tech-chat-user-head strong {
    font-size: 0.92rem;
    line-height: 1.28;
    min-width: 0;
}

.tech-chat-user-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.38rem;
}

.tech-chat-user-sub > .text-secondary {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-chat-user.is-hidden {
    display: none;
}

.tech-chat-user-tools {
    display: grid;
    gap: 0.5rem;
}

.tech-chat-user-tools .form-control {
    border-radius: 0.72rem;
}

.tech-chat-user-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.85rem;
}

.tech-chat-user-filters .form-check {
    margin-bottom: 0;
}

.tech-chat-thread {
    overflow: hidden;
}

.tech-chat-thread .card-body {
    min-height: clamp(420px, 62vh, 780px);
}

.tech-chat-thread-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.tech-chat-thread-person {
    display: inline-flex;
    align-items: center;
    gap: 0.66rem;
    min-width: 0;
}

.tech-chat-thread-person > div {
    min-width: 0;
}

.tech-chat-live-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.64rem 0.9rem;
    padding: 0.58rem 0.64rem;
    border: 1px solid rgba(10, 56, 92, 0.14);
    border-radius: 0.84rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(243, 250, 255, 0.88));
}

.tech-chat-live-tools .form-check {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.tech-chat-live-tools .form-check-label {
    font-size: 0.78rem;
    color: #2a4f69;
    font-weight: 600;
}

.tech-chat-thread-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
}

.tech-chat-thread-tools .form-control {
    border-radius: 0.72rem;
}

.tech-chat-thread-tools .btn {
    border-radius: 0.72rem;
}

.tech-chat-messages {
    flex: 1 1 auto;
    min-height: 320px;
    overflow-y: auto;
    border: 1px solid rgba(10, 58, 95, 0.14);
    border-radius: 1rem;
    padding: 0.86rem;
    background:
        radial-gradient(circle at 18% 4%, rgba(4, 189, 219, 0.07), transparent 28%),
        radial-gradient(circle at 84% 96%, rgba(7, 42, 74, 0.06), transparent 26%),
        #f7fcff;
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
}

.tech-chat-message {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    max-width: min(84%, 620px);
}

.tech-chat-message.is-hidden {
    display: none !important;
}

.tech-chat-message.is-me {
    margin-left: auto;
    align-items: flex-end;
}

.tech-chat-message.is-peer {
    margin-right: auto;
    align-items: flex-start;
}

[dir="rtl"] .tech-chat-message.is-me {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .tech-chat-message.is-peer {
    margin-right: 0;
    margin-left: auto;
}

.tech-chat-bubble {
    border-radius: 1rem;
    padding: 0.62rem 0.8rem;
    border: 1px solid rgba(9, 63, 102, 0.14);
    background: rgba(255, 255, 255, 0.96);
    color: #12304a;
}

.tech-chat-message.is-me .tech-chat-bubble {
    border-color: rgba(4, 189, 219, 0.42);
    background: linear-gradient(150deg, rgba(4, 189, 219, 0.2), rgba(26, 126, 169, 0.12));
}

.tech-chat-bubble p {
    margin: 0;
    line-height: 1.42;
    white-space: pre-wrap;
    word-break: break-word;
}

.tech-chat-attachments {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.54rem;
}

.tech-chat-attachment-item {
    border: 1px solid rgba(9, 63, 102, 0.16);
    border-radius: 0.72rem;
    background: rgba(255, 255, 255, 0.84);
    padding: 0.42rem 0.52rem;
    display: grid;
    gap: 0.28rem;
}

.tech-chat-attachment-preview {
    display: block;
    border-radius: 0.54rem;
    overflow: hidden;
    border: 1px solid rgba(9, 63, 102, 0.16);
    max-width: 200px;
}

.tech-chat-attachment-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.tech-chat-attachment-link {
    color: #0b4f7d;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.tech-chat-attachment-link:hover {
    color: #0a6ea5;
    text-decoration: underline;
}

.tech-chat-attachment-meta {
    font-size: 0.66rem;
    color: #547088;
}

.tech-chat-compose-tools {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    border: 1px dashed rgba(11, 79, 125, 0.2);
    border-radius: 0.78rem;
    padding: 0.42rem 0.46rem;
    background: rgba(11, 79, 125, 0.03);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.tech-chat-compose-tools.is-drop-target {
    border-color: rgba(6, 150, 182, 0.8);
    background: rgba(6, 150, 182, 0.08);
    box-shadow: 0 0 0 2px rgba(6, 150, 182, 0.2);
}

.tech-chat-meta {
    font-size: 0.73rem;
    color: #5e7182;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.tech-chat-seen-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(25, 135, 84, 0.14);
    color: #1d7e55;
    border: 1px solid rgba(25, 135, 84, 0.28);
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.18rem 0.4rem;
}

.tech-chat-filter-empty {
    border-radius: 0.76rem;
    border-color: rgba(200, 126, 20, 0.24);
    color: #72531f;
    background: rgba(255, 242, 217, 0.72);
    font-size: 0.8rem;
    padding: 0.5rem 0.68rem;
}

.tech-chat-jump-latest {
    align-self: flex-end;
    border-radius: 999px;
    min-width: 118px;
}

[dir="rtl"] .tech-chat-jump-latest {
    align-self: flex-start;
}

.tech-chat-compose .form-control {
    min-height: 96px;
    resize: vertical;
}

.tech-chat-compose .btn {
    min-width: 128px;
}

.tech-chat-hint {
    display: inline-block;
    margin-top: 0.36rem;
    font-size: 0.72rem;
}

.tech-chat-mode-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.52rem;
}

.tech-chat-sender-name {
    display: block;
    margin-bottom: 0.24rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #265573;
}

.tech-chat-float {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 2600;
    display: grid;
    justify-items: end;
    gap: 0.48rem;
    pointer-events: none;
}

.tech-chat-float > * {
    pointer-events: auto;
}

.tech-chat-float:not(.is-open) .tech-chat-float-widget {
    display: none !important;
}

[dir="rtl"] .tech-chat-float {
    right: auto;
    left: 1.1rem;
    justify-items: start;
}

.tech-chat-float-toggle {
    position: relative;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(145deg, #08b8d9, #0a4f7d);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(7, 42, 74, 0.34);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.tech-chat-float-toggle:hover {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.04);
}

.tech-chat-float-toggle.is-alert {
    animation: tech-chat-float-alert 1.25s ease;
}

@keyframes tech-chat-float-alert {
    0% {
        transform: scale(1);
        box-shadow: 0 14px 28px rgba(7, 42, 74, 0.34);
    }
    28% {
        transform: scale(1.08);
        box-shadow: 0 16px 34px rgba(7, 42, 74, 0.42), 0 0 0 9px rgba(4, 189, 219, 0.18);
    }
    62% {
        transform: scale(0.98);
        box-shadow: 0 14px 28px rgba(7, 42, 74, 0.34), 0 0 0 2px rgba(4, 189, 219, 0.08);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 14px 28px rgba(7, 42, 74, 0.34);
    }
}

.tech-chat-float-glyph {
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.tech-chat-float-badge {
    position: absolute;
    top: -0.3rem;
    right: -0.2rem;
    min-width: 1.12rem;
    height: 1.12rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: linear-gradient(135deg, #ff6f83, #b71d3a);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.04rem;
    text-align: center;
    padding: 0 0.24rem;
}

[dir="rtl"] .tech-chat-float-badge {
    right: auto;
    left: -0.2rem;
}

.tech-chat-float-menu {
    width: min(250px, calc(100vw - 2rem));
    border: 1px solid rgba(8, 47, 80, 0.2);
    border-radius: 0.9rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 255, 0.98));
    box-shadow: 0 18px 30px rgba(7, 42, 74, 0.2);
    padding: 0.46rem;
    display: grid;
    gap: 0.34rem;
}

.tech-chat-float-menu[hidden] {
    display: none !important;
}

.tech-chat-float-link {
    text-decoration: none;
    color: #143a58;
    border: 1px solid rgba(8, 47, 80, 0.16);
    border-radius: 0.72rem;
    padding: 0.52rem 0.6rem;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.tech-chat-float-link:hover {
    transform: translateY(-1px);
    border-color: rgba(4, 189, 219, 0.45);
    background: linear-gradient(145deg, rgba(4, 189, 219, 0.12), rgba(7, 42, 74, 0.06));
    color: #0f3a5a;
}

.tech-chat-float-link strong {
    font-size: 0.82rem;
}

.tech-chat-float-link-muted {
    font-size: 0.76rem;
    color: #406079;
}

.tech-chat-float-widget {
    width: min(368px, calc(100vw - 1.4rem));
    max-height: min(72vh, 580px);
    border: 1px solid rgba(8, 47, 80, 0.22);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 251, 255, 0.98));
    box-shadow: 0 22px 34px rgba(7, 42, 74, 0.22);
    padding: 0.62rem;
    display: grid;
    grid-template-rows: auto auto auto minmax(180px, 1fr) auto;
    gap: 0.52rem;
}

[dir="rtl"] .tech-chat-float-widget {
    text-align: right;
}

.tech-chat-float-widget[hidden] {
    display: none !important;
}

.tech-chat-float-widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.tech-chat-float-widget-head strong {
    font-size: 0.85rem;
    color: #173d5b;
    font-weight: 800;
}

.tech-chat-float-widget-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.48rem;
}

.tech-chat-float-widget-direct .form-label {
    font-size: 0.7rem;
    color: #2f556f;
    font-weight: 700;
}

.tech-chat-float-widget-direct {
    display: grid;
    gap: 0.42rem;
}

.tech-chat-float-widget-contact-search {
    border-radius: 0.72rem;
}

.tech-chat-widget-peer-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.42rem;
    border: 1px solid rgba(8, 47, 80, 0.14);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.34rem 0.4rem;
}

.tech-chat-widget-peer-summary-copy {
    min-width: 0;
    color: #1a4767;
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-chat-widget-peer-summary .btn {
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    line-height: 1.2;
    font-size: 0.62rem;
}

.tech-chat-widget-quick-wrap {
    display: grid;
    gap: 0.22rem;
}

.tech-chat-widget-quick-title {
    color: #4f6f84;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08px;
}

.tech-chat-widget-quick-list {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: thin;
}

.tech-chat-widget-quick-item {
    border: 1px solid rgba(8, 47, 80, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #173f5e;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.2rem 0.52rem;
    font-size: 0.62rem;
    font-weight: 700;
    white-space: nowrap;
    transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.tech-chat-widget-quick-item:hover {
    border-color: rgba(4, 189, 219, 0.52);
    transform: translateY(-1px);
}

.tech-chat-widget-quick-item.is-active {
    border-color: rgba(4, 189, 219, 0.68);
    background: linear-gradient(135deg, rgba(4, 189, 219, 0.2), rgba(8, 56, 90, 0.08));
}

.tech-chat-widget-quick-item-name {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-chat-widget-quick-item-unread {
    min-width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: linear-gradient(135deg, #ff6f83, #b71d3a);
    color: #ffffff;
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 0.94rem;
    text-align: center;
    padding-inline: 0.14rem;
}

.tech-chat-float-widget-filter {
    display: flex;
    align-items: center;
    gap: 0.34rem;
    flex-wrap: wrap;
}

.tech-chat-float-widget-filter .btn {
    min-width: 5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.26rem 0.64rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.36rem;
}

.tech-chat-widget-filter-count {
    min-width: 1.12rem;
    height: 1.12rem;
    border-radius: 999px;
    padding-inline: 0.22rem;
    border: 1px solid rgba(11, 60, 98, 0.2);
    background: rgba(255, 255, 255, 0.7);
    color: #10435f;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.02rem;
    text-align: center;
}

.tech-chat-float-widget-filter .btn.btn-cyan .tech-chat-widget-filter-count {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.tech-chat-float-widget-contact-list {
    max-height: 134px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: grid;
    gap: 0.34rem;
}

.tech-chat-widget-contact-item {
    border: 1px solid rgba(8, 47, 80, 0.16);
    border-radius: 0.74rem;
    background: rgba(255, 255, 255, 0.92);
    color: #173e5d;
    padding: 0.34rem 0.44rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.44rem;
    align-items: center;
    text-align: inherit;
    transition: border-color 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.tech-chat-widget-contact-item:hover {
    transform: translateY(-1px);
    border-color: rgba(4, 189, 219, 0.5);
}

.tech-chat-widget-contact-item.is-active {
    border-color: rgba(4, 189, 219, 0.6);
    background: linear-gradient(140deg, rgba(4, 189, 219, 0.18), rgba(7, 42, 74, 0.08));
}

.tech-chat-widget-contact-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(8, 67, 106, 0.2);
    background: linear-gradient(160deg, rgba(4, 189, 219, 0.2), rgba(7, 42, 74, 0.14));
    color: #0f3d5d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    font-weight: 800;
}

.tech-chat-widget-contact-copy {
    min-width: 0;
    display: grid;
    gap: 0.08rem;
}

.tech-chat-widget-contact-copy strong {
    font-size: 0.73rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-chat-widget-contact-copy small {
    font-size: 0.62rem;
    color: #567188;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-chat-widget-contact-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.tech-chat-widget-contact-secondary {
    display: inline-block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tech-chat-widget-contact-secondary.is-typing {
    color: #0a7fa9;
    font-weight: 700;
}

.tech-chat-widget-contact-item.is-typing {
    border-color: rgba(4, 189, 219, 0.62);
    background: linear-gradient(135deg, rgba(4, 189, 219, 0.2), rgba(8, 56, 90, 0.09));
}

.tech-chat-widget-contact-presence {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(12, 77, 121, 0.2);
    padding: 0.02rem 0.3rem;
    line-height: 1.2;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.tech-chat-widget-contact-presence.is-online {
    background: rgba(25, 135, 84, 0.16);
    color: #1c7f56;
    border-color: rgba(25, 135, 84, 0.32);
}

.tech-chat-widget-contact-presence.is-offline {
    background: rgba(108, 117, 125, 0.16);
    color: #57606b;
    border-color: rgba(108, 117, 125, 0.3);
}

.tech-chat-widget-contact-time {
    font-size: 0.58rem;
    color: #5b768b;
    font-weight: 700;
    line-height: 1;
}

.tech-chat-widget-contact-unread {
    min-width: 1.08rem;
    height: 1.08rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    background: linear-gradient(135deg, #ff6f83, #b71d3a);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.02rem;
    text-align: center;
    padding-inline: 0.18rem;
}

.tech-chat-widget-contact-empty {
    border: 1px dashed rgba(8, 47, 80, 0.26);
    border-radius: 0.74rem;
    background: rgba(255, 255, 255, 0.8);
    color: #4b677d;
    font-size: 0.72rem;
    text-align: center;
    padding: 0.5rem 0.58rem;
}

.tech-chat-float-widget-thread {
    border: 1px solid rgba(8, 47, 80, 0.15);
    border-radius: 0.84rem;
    padding: 0.54rem;
    background:
        radial-gradient(circle at 18% 4%, rgba(4, 189, 219, 0.07), transparent 28%),
        radial-gradient(circle at 84% 96%, rgba(7, 42, 74, 0.06), transparent 26%),
        #f7fcff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
    min-height: 200px;
}

.tech-chat-float-widget-empty {
    border: 1px dashed rgba(8, 47, 80, 0.24);
    border-radius: 0.72rem;
    padding: 0.55rem;
    background: rgba(255, 255, 255, 0.82);
    color: #44627a;
    font-size: 0.76rem;
}

.tech-chat-float-widget-typing {
    min-height: 1rem;
    font-size: 0.72rem;
    color: #4f7087;
    font-weight: 700;
    padding-inline: 0.2rem;
}

.tech-chat-widget-message {
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
    max-width: 94%;
}

.tech-chat-widget-message.is-me {
    align-self: flex-end;
}

.tech-chat-widget-message.is-peer {
    align-self: flex-start;
}

.tech-chat-widget-bubble {
    border-radius: 0.86rem;
    border: 1px solid rgba(10, 58, 95, 0.15);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.44rem 0.58rem;
    color: #143a57;
}

.tech-chat-widget-message.is-me .tech-chat-widget-bubble {
    border-color: rgba(4, 189, 219, 0.45);
    background: linear-gradient(150deg, rgba(4, 189, 219, 0.2), rgba(26, 126, 169, 0.11));
}

.tech-chat-widget-bubble p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.33;
    white-space: pre-wrap;
    word-break: break-word;
}

.tech-chat-widget-attachments {
    display: grid;
    gap: 0.32rem;
    margin-top: 0.44rem;
}

.tech-chat-widget-attachment-item {
    border: 1px solid rgba(10, 58, 95, 0.16);
    border-radius: 0.62rem;
    background: rgba(255, 255, 255, 0.86);
    padding: 0.34rem 0.42rem;
    display: grid;
    gap: 0.2rem;
}

.tech-chat-widget-attachment-preview {
    display: block;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(10, 58, 95, 0.16);
    max-width: 170px;
}

.tech-chat-widget-attachment-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.tech-chat-widget-attachment-link {
    color: #0b4f7d;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tech-chat-widget-attachment-link:hover {
    color: #0a6ea5;
    text-decoration: underline;
}

.tech-chat-widget-attachment-meta {
    font-size: 0.61rem;
    color: #556f86;
}

.tech-chat-widget-sender {
    display: block;
    margin-bottom: 0.16rem;
    font-size: 0.66rem;
    font-weight: 700;
    color: #2c5a78;
}

.tech-chat-widget-meta {
    font-size: 0.66rem;
    color: #5e7182;
    align-self: flex-end;
}

[dir="rtl"] .tech-chat-widget-meta {
    align-self: flex-start;
}

.tech-chat-float-widget-compose .form-control {
    min-height: 70px;
    resize: none;
    border-radius: 0.72rem;
}

.tech-chat-float-widget-attach {
    margin-top: 0.42rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.36rem;
    border: 1px dashed rgba(11, 79, 125, 0.24);
    border-radius: 0.74rem;
    padding: 0.4rem 0.46rem;
    background: rgba(11, 79, 125, 0.03);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.tech-chat-float-widget-attach.is-drop-target {
    border-color: rgba(6, 150, 182, 0.85);
    background: rgba(6, 150, 182, 0.08);
    box-shadow: 0 0 0 2px rgba(6, 150, 182, 0.2);
}

.tech-chat-float-widget-attach.is-drop-target::after {
    content: attr(data-drop-label);
    font-size: 0.68rem;
    font-weight: 700;
    color: #0a6ea5;
}

.tech-chat-float-widget-attach.is-uploading {
    border-color: rgba(11, 79, 125, 0.56);
    background: rgba(11, 79, 125, 0.08);
}

.tech-chat-float-widget-attach.has-error {
    border-color: rgba(176, 48, 63, 0.6);
    background: rgba(176, 48, 63, 0.08);
}

.tech-chat-float-widget-attach.is-disabled {
    opacity: 0.7;
    pointer-events: none;
}

.tech-chat-float-widget-upload {
    margin-top: 0.34rem;
}

.tech-chat-float-widget-upload-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.44rem;
    margin-bottom: 0.22rem;
}

.tech-chat-float-widget-upload-progress {
    height: 0.34rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(11, 79, 125, 0.12);
}

.tech-chat-float-widget-upload .progress-bar {
    transition: width 0.18s linear;
}

.tech-chat-float-widget-upload.is-error .progress-bar {
    background-color: #c0485f;
}

.tech-chat-float-widget-hint {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.64rem;
}

.tech-chat-float-widget-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.44rem;
    margin-top: 0.44rem;
}

.tech-chat-float-widget-actions .tech-chat-float-link {
    margin: 0;
    padding: 0.34rem 0.52rem;
}

[dir="rtl"] .tech-chat-float-widget-actions {
    flex-direction: row-reverse;
}

/* Backoffice visual stability guardrails */
.tech-backoffice .tech-main,
.tech-backoffice .tech-main > *,
.tech-backoffice .tech-main .row,
.tech-backoffice .tech-main [class*="col-"] {
    min-width: 0;
}

.tech-backoffice .tech-card,
.tech-backoffice .tech-page-head,
.tech-backoffice .tech-context-strip,
.tech-backoffice .tech-page-actions {
    max-width: 100%;
    overflow: visible;
}

.tech-backoffice .table-responsive,
.tech-backoffice .tech-table-shell,
.tech-backoffice .tech-card .card-body {
    max-width: 100%;
}

.tech-backoffice img,
.tech-backoffice svg,
.tech-backoffice canvas {
    max-width: 100%;
    height: auto;
}

.tech-module-users #create-user-section,
.tech-module-projects #create-project-section,
.tech-module-documents #upload-document-section {
    border-color: rgba(var(--tech-module-highlight-rgb), 0.28);
}

.tech-module-users #users-table-section,
.tech-module-projects #projects-list-section,
.tech-module-documents #documents-table-section {
    border-color: rgba(var(--tech-module-highlight-rgb), 0.26);
    box-shadow: 0 22px 38px rgba(var(--tech-module-highlight-rgb), 0.12);
}

.tech-module-users .tech-auto-kpi-item:nth-child(1),
.tech-module-projects .tech-auto-kpi-item:nth-child(1),
.tech-module-documents .tech-auto-kpi-item:nth-child(1) {
    background: linear-gradient(
        180deg,
        rgba(var(--tech-module-rgb), 0.18),
        rgba(255, 255, 255, 0.95)
    );
}

@media (min-width: 992px) {
    .tech-module-users #users-table-section .tech-table-tools,
    .tech-module-projects #projects-list-section .tech-table-tools,
    .tech-module-documents #documents-table-section .tech-table-tools {
        position: sticky;
        top: 0.72rem;
        z-index: 14;
        backdrop-filter: blur(6px);
    }

    .tech-module-users #users-table-section .tech-bulk-toolbar,
    .tech-module-projects #projects-list-section .tech-bulk-toolbar,
    .tech-module-documents #documents-table-section .tech-bulk-toolbar {
        position: sticky;
        top: 5.85rem;
        z-index: 13;
    }
}

@media (max-width: 991px) {
    .tech-module-chat .tech-chat-toolbar {
        padding: 0.6rem 0.66rem;
    }

    .tech-module-chat .tech-chat-toolbar-meta {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.14rem;
        scrollbar-width: thin;
    }

    .tech-module-chat .tech-chat-toolbar-chip {
        flex: 0 0 auto;
    }

    .tech-module-chat .tech-chat-card .card-body {
        padding: 0.86rem;
    }

    .tech-module-chat .tech-chat-card-users .tech-chat-user-tools {
        position: static;
        top: auto;
    }

    .tech-chat-users {
        max-height: 280px;
    }

    .tech-chat-thread .card-body {
        min-height: 460px;
    }

    .tech-chat-messages {
        min-height: 280px;
        max-height: 52vh;
    }

    .tech-chat-live-tools {
        gap: 0.48rem 0.68rem;
        padding: 0.5rem 0.55rem;
    }

    .tech-chat-thread-tools {
        grid-template-columns: 1fr;
    }

    .tech-chat-thread-tools .btn {
        justify-self: flex-start;
    }

    .tech-chat-compose-tools .btn {
        width: 100%;
    }

    .tech-chat-live-tools .form-check-label {
        font-size: 0.74rem;
    }

    .tech-chat-user-head {
        gap: 0.36rem;
    }

    .tech-chat-user-identity {
        gap: 0.44rem;
    }

    .tech-chat-avatar {
        width: 1.74rem;
        height: 1.74rem;
    }

    .tech-chat-user-badges {
        justify-content: flex-start;
    }

    .tech-chat-message {
        max-width: 100%;
    }

    .tech-chat-mode-switch {
        gap: 0.44rem;
    }

    .tech-chat-mode-switch .small {
        width: 100%;
        margin: 0 !important;
    }

    .tech-chat-float {
        right: 0.8rem;
        bottom: 0.8rem;
    }

    [dir="rtl"] .tech-chat-float {
        right: auto;
        left: 0.8rem;
    }

    .tech-chat-float-toggle {
        width: 2.8rem;
        height: 2.8rem;
    }

    .tech-chat-float-widget {
        width: min(356px, calc(100vw - 1rem));
        max-height: min(76vh, 600px);
        padding: 0.52rem;
    }

    .tech-chat-float-widget-thread {
        min-height: 176px;
    }

    .tech-chat-float-widget-attach {
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .tech-module-chat .tech-chat-toolbar {
        border-radius: 0.82rem;
    }

    .tech-module-chat .tech-chat-toolbar-chip {
        font-size: 0.69rem;
        padding: 0.2rem 0.46rem;
    }

    .tech-chat-float {
        right: 0.5rem;
        left: 0.5rem;
        bottom: 0.5rem;
        justify-items: stretch;
    }

    [dir="rtl"] .tech-chat-float {
        left: 0.5rem;
        right: 0.5rem;
        justify-items: stretch;
    }

    .tech-backoffice .tech-chat-float:not(.is-open) {
        bottom: calc(4.8rem + env(safe-area-inset-bottom));
    }

    .tech-chat-float-toggle {
        justify-self: end;
    }

    [dir="rtl"] .tech-chat-float-toggle {
        justify-self: start;
    }

    .tech-chat-float-widget {
        width: 100%;
        max-height: calc(100dvh - 4.8rem);
        border-radius: 1.08rem;
        box-shadow: 0 18px 30px rgba(7, 42, 74, 0.26);
    }

    .tech-chat-float-widget-contact-list {
        max-height: 158px;
    }

    .tech-chat-widget-peer-summary {
        padding: 0.32rem 0.36rem;
    }

    .tech-chat-widget-peer-summary-copy {
        font-size: 0.64rem;
    }

    .tech-chat-widget-quick-item-name {
        max-width: 78px;
    }

    .tech-chat-float-widget-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.16rem;
        scrollbar-width: thin;
    }

    .tech-chat-float-widget-filter .btn {
        min-width: max-content;
        flex: 0 0 auto;
    }

    .tech-chat-float-widget-attach {
        padding: 0.44rem;
        gap: 0.34rem;
    }

    .tech-chat-float-widget-attach [data-chat-widget-file-name] {
        width: 100%;
        order: 3;
        margin-top: 0.04rem;
    }

    .tech-chat-float.is-open {
        right: 0;
        left: 0;
        bottom: 0;
        top: 0;
        padding: 0.44rem;
        align-items: end;
        justify-items: stretch;
        z-index: 3400;
    }

    .tech-chat-float.is-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(7, 34, 58, 0.38);
        backdrop-filter: blur(2px);
    }

    .tech-chat-float.is-open > * {
        position: relative;
        z-index: 1;
    }

    .tech-chat-float.is-open .tech-chat-float-toggle {
        width: 2.9rem;
        height: 2.9rem;
    }

    .tech-chat-float.is-open .tech-chat-float-widget {
        width: 100%;
        height: calc(100dvh - 5rem - env(safe-area-inset-bottom));
        max-height: calc(100dvh - 5rem - env(safe-area-inset-bottom));
        border-radius: 1.08rem;
    }

    .tech-chat-mode-switch {
        gap: 0.44rem;
    }

    .tech-chat-mode-switch .btn {
        flex: 1 1 calc(50% - 0.3rem);
        min-height: 2.4rem;
    }

    .tech-chat-mode-switch .text-secondary.small {
        width: 100%;
        margin-inline-start: 0 !important;
    }

    .tech-chat-layout {
        gap: 0.72rem;
    }

    .tech-chat-user-filters {
        gap: 0.36rem 0.72rem;
    }

    .tech-chat-users {
        max-height: min(34vh, 320px);
    }

    .tech-chat-thread .card-body {
        min-height: calc(100dvh - 14rem);
    }

    .tech-chat-messages {
        min-height: 250px;
        max-height: calc(100dvh - 27rem);
    }

    .tech-chat-compose {
        position: sticky;
        bottom: calc(env(safe-area-inset-bottom) + 0.1rem);
        z-index: 2;
        padding-top: 0.54rem;
        background: linear-gradient(180deg, rgba(247, 252, 255, 0), rgba(247, 252, 255, 0.95) 24%, rgba(247, 252, 255, 0.98) 100%);
    }

    .tech-chat-compose .form-control {
        min-height: 78px;
        max-height: 30vh;
    }

    .tech-backoffice .tech-nav .navbar-collapse {
        max-height: calc(100dvh - 4.4rem);
        overflow-y: auto;
    }

    .tech-backoffice .tech-main {
        padding-bottom: calc(7.2rem + env(safe-area-inset-bottom)) !important;
    }

    .tech-backoffice .btn,
    .tech-backoffice .form-control,
    .tech-backoffice .form-select {
        min-height: 2.45rem;
    }

    .tech-mobile-dock {
        left: 0.42rem;
        right: 0.42rem;
        gap: 0.26rem;
        padding: 0.26rem;
    }

    .tech-mobile-dock-item {
        min-height: 3rem;
        border-radius: 0.72rem;
    }

    .tech-mobile-dock-label {
        font-size: 0.56rem;
    }
}

@media (min-width: 992px) {
    .tech-backoffice .tech-nav {
        position: fixed;
        top: 1rem;
        bottom: 1rem;
        left: 1rem;
        width: var(--tech-sidebar-width);
        padding: 0;
        border-radius: 1.25rem;
        border: 1px solid rgba(255, 255, 255, 0.22);
        background:
            radial-gradient(circle at 88% 9%, rgba(141, 228, 242, 0.14), transparent 32%),
            linear-gradient(165deg, #062945 0%, #083758 44%, #0b4d79 100%);
        box-shadow: 0 22px 46px rgba(7, 42, 74, 0.3);
        overflow: hidden;
        transition: width 0.24s ease;
    }

    [dir="rtl"] .tech-backoffice .tech-nav {
        left: auto;
        right: 1rem;
    }

    .tech-backoffice .tech-nav .container {
        max-width: none;
        width: 100%;
        height: 100%;
        padding: 1rem 0.9rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .tech-backoffice .tech-nav .navbar-brand {
        margin: 0;
        padding: 0.84rem 0.9rem;
        border-radius: 0.94rem;
        border: 1px solid rgba(255, 255, 255, 0.24);
        background: rgba(255, 255, 255, 0.08);
        color: #ecfaff;
        font-size: 0.9rem;
        text-transform: none;
        letter-spacing: 0.3px;
    }

    .tech-backoffice .tech-sidebar-toggle {
        margin: 0.48rem 0.16rem 0 auto;
        width: 2rem;
        height: 2rem;
        border-radius: 0.66rem;
        border: 1px solid rgba(255, 255, 255, 0.28);
        background: rgba(255, 255, 255, 0.08);
        color: #dff6ff;
        box-shadow: 0 8px 14px rgba(3, 30, 52, 0.22);
        transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    }

    .tech-backoffice .tech-command-toggle {
        margin: 0.48rem 0.34rem 0 0.16rem;
        width: 2rem;
        height: 2rem;
        border-radius: 0.66rem;
        border: 1px solid rgba(255, 255, 255, 0.28);
        background: rgba(255, 255, 255, 0.08);
        color: #dff6ff;
        box-shadow: 0 8px 14px rgba(3, 30, 52, 0.22);
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.2px;
        transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    }

    .tech-backoffice .tech-notify-toggle {
        margin: 0.48rem 0.34rem 0 0;
    }

    .tech-backoffice .tech-command-toggle:hover {
        transform: translateY(-1px);
        border-color: rgba(141, 228, 242, 0.8);
        background: rgba(255, 255, 255, 0.14);
        color: #ffffff;
    }

    [dir="rtl"] .tech-backoffice .tech-command-toggle {
        margin: 0.48rem 0.16rem 0 0.34rem;
    }

    [dir="rtl"] .tech-backoffice .tech-notify-toggle {
        margin: 0.48rem 0 0 0.34rem;
    }

    [dir="rtl"] .tech-backoffice .tech-sidebar-toggle {
        margin: 0.48rem auto 0 0.16rem;
    }

    .tech-backoffice .tech-sidebar-toggle:hover {
        transform: translateY(-1px);
        border-color: rgba(141, 228, 242, 0.8);
        background: rgba(255, 255, 255, 0.14);
        color: #ffffff;
    }

    .tech-backoffice .tech-sidebar-toggle span {
        position: relative;
        display: block;
        width: 0.92rem;
        height: 0.12rem;
        border-radius: 999px;
        background: currentColor;
        transition: transform 0.2s ease;
    }

    .tech-backoffice .tech-sidebar-toggle span::before,
    .tech-backoffice .tech-sidebar-toggle span::after {
        content: "";
        position: absolute;
        left: 0;
        width: 0.92rem;
        height: 0.12rem;
        border-radius: 999px;
        background: currentColor;
    }

    .tech-backoffice .tech-sidebar-toggle span::before {
        top: -0.28rem;
    }

    .tech-backoffice .tech-sidebar-toggle span::after {
        top: 0.28rem;
    }

    .tech-backoffice .tech-nav .navbar-brand.brand-lockup {
        display: flex;
        align-items: center;
        gap: 0.56rem;
    }

    .tech-backoffice .tech-nav .brand-logo {
        width: 34px;
        height: 34px;
        border-radius: 0.62rem;
        border: 1px solid rgba(255, 255, 255, 0.36);
        box-shadow: 0 8px 14px rgba(3, 30, 52, 0.28);
        flex-shrink: 0;
    }

    .tech-backoffice .tech-nav .brand-copy {
        min-width: 0;
        gap: 0.12rem;
    }

    .tech-backoffice .tech-nav .brand-copy small {
        font-size: 0.54rem;
        letter-spacing: 0.92px;
        opacity: 0.95;
    }

    .tech-backoffice .tech-nav .brand-copy strong {
        font-size: 0.74rem;
        line-height: 1.16;
        white-space: normal;
    }

    .tech-backoffice .tech-nav .navbar-toggler {
        display: none;
    }

    .tech-backoffice .tech-nav .navbar-collapse {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        flex: 1 1 auto;
        overflow-y: auto;
        overflow-x: hidden;
        margin-top: 0.55rem;
        padding-right: 0.1rem;
    }

    .tech-backoffice .tech-nav .navbar-nav {
        margin: 0 !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.36rem;
        padding-bottom: 0.35rem;
    }

    .tech-backoffice .tech-nav .nav-item {
        width: 100%;
    }

    .tech-backoffice .tech-nav .nav-link {
        width: 100%;
        padding: 0.68rem 0.8rem;
        border-radius: 0.78rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.06);
        color: rgba(234, 247, 255, 0.92);
        display: grid;
        grid-template-columns: 1.02rem minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 0.55rem;
        font-size: 0.9rem;
        font-weight: 650;
        transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    }

    .tech-backoffice .tech-nav .tech-nav-link-text {
        min-width: 0;
        line-height: 1.28;
    }

    .tech-backoffice .tech-nav .nav-link[data-icon]::before,
    .tech-command-item-icon[data-icon]::before {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.02rem;
        height: 1.02rem;
        border-radius: 0.35rem;
        border: 1px solid currentColor;
        font-size: 0.58rem;
        font-weight: 800;
        line-height: 1;
        content: "\25CF";
        opacity: 0.86;
    }

    .tech-backoffice .tech-nav .nav-link[data-icon="dashboard"]::before,
    .tech-command-item-icon[data-icon="dashboard"]::before {
        content: "\25A3";
    }

    .tech-backoffice .tech-nav .nav-link[data-icon="users"]::before,
    .tech-command-item-icon[data-icon="users"]::before {
        content: "\2630";
    }

    .tech-backoffice .tech-nav .nav-link[data-icon="projects"]::before,
    .tech-command-item-icon[data-icon="projects"]::before {
        content: "\25A6";
    }

    .tech-backoffice .tech-nav .nav-link[data-icon="media"]::before,
    .tech-command-item-icon[data-icon="media"]::before {
        content: "\25A7";
    }

    .tech-backoffice .tech-nav .nav-link[data-icon="documents"]::before,
    .tech-command-item-icon[data-icon="documents"]::before {
        content: "\25A4";
    }

    .tech-backoffice .tech-nav .nav-link[data-icon="chat"]::before,
    .tech-command-item-icon[data-icon="chat"]::before {
        content: "\2709";
    }

    .tech-backoffice .tech-nav .nav-link[data-icon="settings"]::before,
    .tech-command-item-icon[data-icon="settings"]::before {
        content: "\25C8";
    }

    .tech-backoffice .tech-nav .nav-link[data-icon="reports"]::before,
    .tech-command-item-icon[data-icon="reports"]::before {
        content: "\25F4";
    }

    .tech-backoffice .tech-nav .nav-link[data-icon="audit"]::before,
    .tech-command-item-icon[data-icon="audit"]::before {
        content: "\25EF";
    }

    .tech-backoffice .tech-nav .nav-link[data-icon="export"]::before,
    .tech-command-item-icon[data-icon="export"]::before {
        content: "\25C9";
    }

    .tech-backoffice .tech-nav .nav-link[data-icon="password"]::before,
    .tech-command-item-icon[data-icon="password"]::before {
        content: "\25B3";
    }

    .tech-backoffice .tech-nav .nav-link[data-icon="logout"]::before,
    .tech-command-item-icon[data-icon="logout"]::before {
        content: "\2715";
    }

    .tech-backoffice .tech-nav .nav-link[data-icon="home"]::before,
    .tech-command-item-icon[data-icon="home"]::before {
        content: "\2302";
    }

    .tech-backoffice .tech-nav .nav-link[data-icon="lang"]::before,
    .tech-command-item-icon[data-icon="lang"]::before {
        content: "\25CC";
    }

    .tech-backoffice .tech-nav .nav-link::after {
        content: "";
        width: 0.42rem;
        height: 0.42rem;
        border-radius: 999px;
        background: rgba(234, 247, 255, 0.36);
        transform: scale(0.65);
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

    .tech-backoffice .tech-nav .nav-link:hover {
        transform: translateX(1px);
        background: rgba(255, 255, 255, 0.11);
        border-color: rgba(255, 255, 255, 0.26);
    }

    [dir="rtl"] .tech-backoffice .tech-nav .nav-link:hover {
        transform: translateX(-1px);
    }

    .tech-backoffice .tech-nav .nav-link:hover::after {
        transform: scale(1);
        background: rgba(234, 247, 255, 0.88);
    }

    .tech-backoffice .tech-nav .nav-link.active {
        border-color: rgba(141, 228, 242, 0.7);
        background: linear-gradient(135deg, rgba(5, 198, 228, 0.28), rgba(31, 127, 170, 0.2));
        color: #ffffff;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    }

    .tech-backoffice .tech-nav .nav-link.active::after {
        transform: scale(1);
        background: #c4f4ff;
    }

    .tech-backoffice .tech-nav .nav-link[href*="logout"] {
        margin-top: 0.55rem;
        border-color: rgba(255, 170, 182, 0.34);
        background: rgba(143, 28, 50, 0.28);
        color: #ffdbe2;
    }

    .tech-backoffice .tech-nav .nav-link[href*="logout"]::after {
        background: rgba(255, 203, 214, 0.75);
    }

.tech-backoffice .tech-main {
        width: auto;
        min-width: 0;
        max-width: none !important;
        margin-left: calc(var(--tech-sidebar-width) + 2.3rem);
        margin-right: 1.2rem;
        padding-inline: clamp(0.55rem, 1vw, 1rem) !important;
        padding-top: 1.4rem !important;
        padding-bottom: 2.2rem !important;
        transition: margin 0.24s ease;
    }

    [dir="rtl"] .tech-backoffice .tech-main {
        width: auto;
        min-width: 0;
        max-width: none !important;
        margin-left: 1.2rem;
        margin-right: calc(var(--tech-sidebar-width) + 2.3rem);
    }

    body.tech-sidebar-collapsed.tech-backoffice .tech-nav {
        width: var(--tech-sidebar-width-collapsed);
    }

    body.tech-sidebar-collapsed.tech-backoffice .tech-main {
        margin-left: calc(var(--tech-sidebar-width-collapsed) + 2rem);
    }

    [dir="rtl"] body.tech-sidebar-collapsed.tech-backoffice .tech-main {
        margin-left: 1.2rem;
        margin-right: calc(var(--tech-sidebar-width-collapsed) + 2rem);
    }

    body.tech-sidebar-collapsed.tech-backoffice .tech-sidebar-toggle span {
        transform: rotate(180deg);
    }
}

@media (max-width: 991px) {
    .tech-mobile-section-nav {
        display: flex;
        position: sticky;
        top: 4.3rem;
        z-index: 21;
        margin-bottom: 0.78rem !important;
        border: 1px solid rgba(var(--tech-module-highlight-rgb), 0.2);
        border-radius: 0.86rem;
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.94),
            rgba(var(--tech-module-rgb), 0.1)
        );
        box-shadow: 0 10px 20px rgba(var(--tech-module-highlight-rgb), 0.18);
        backdrop-filter: blur(4px);
        padding: 0.38rem;
    }

    .tech-backoffice .tech-page-head {
        padding: 0.75rem 0.82rem;
    }

    .tech-backoffice .tech-page-sub {
        font-size: 0.84rem;
    }

    .tech-backoffice .tech-context-strip {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 0.82rem;
    }

    .tech-backoffice .tech-context-chips {
        justify-content: flex-start;
    }

    .tech-backoffice .tech-page-actions {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.68rem 0.75rem;
        position: sticky;
        top: 4.65rem;
        z-index: 18;
        border-color: rgba(var(--tech-module-highlight-rgb), 0.22);
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.96),
            rgba(var(--tech-module-rgb), 0.09)
        );
        backdrop-filter: blur(3px);
    }

    .tech-backoffice .tech-page-actions-wrap {
        width: 100%;
        justify-content: flex-start;
    }

    .tech-backoffice .tech-page-actions-wrap .btn {
        flex: 1 1 calc(50% - 0.45rem);
        min-width: 120px;
    }

    .tech-op-timeline,
    .tech-focus-list {
        max-height: none;
    }

    .tech-timeline-content,
    .tech-focus-item {
        padding: 0.72rem;
    }

    .tech-timeline-meta,
    .tech-focus-foot {
        gap: 0.48rem;
    }

    .tech-backoffice .tech-auto-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tech-backoffice .tech-table-uxbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .tech-backoffice .tech-table-col-panel {
        width: min(360px, 86vw);
    }

    .tech-backoffice .tech-nav {
        border-radius: 0 0 1rem 1rem;
        position: sticky;
        top: 0;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        margin: 0;
        box-shadow: 0 14px 28px rgba(8, 44, 80, 0.22);
        z-index: 1045;
    }

    .tech-backoffice .tech-nav .container {
        max-width: 960px;
        padding: 0.72rem 0.84rem;
    }

    .tech-backoffice .tech-nav .brand-logo {
        width: 36px;
        height: 36px;
    }

    .tech-backoffice .tech-nav .brand-copy small {
        font-size: 0.56rem;
    }

    .tech-backoffice .tech-nav .brand-copy strong {
        font-size: 0.78rem;
    }

    .tech-backoffice .tech-nav .tech-notify-toggle {
        margin-inline-start: auto;
        margin-inline-end: 0.42rem;
    }

    [dir="rtl"] .tech-backoffice .tech-nav .tech-notify-toggle {
        margin-inline-end: auto;
        margin-inline-start: 0.42rem;
    }

    .tech-backoffice .tech-nav .navbar-collapse {
        background: rgba(7, 42, 74, 0.34);
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 0.88rem;
        padding: 0.52rem;
        margin-top: 0.55rem;
    }

    .tech-backoffice .tech-nav .navbar-nav {
        margin: 0 !important;
    }

    .tech-backoffice .tech-nav .nav-link {
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.06);
    }

    .tech-backoffice .tech-main {
        width: 100%;
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
        padding-inline: 0.78rem !important;
        padding-top: 1rem !important;
        padding-bottom: calc(6.4rem + env(safe-area-inset-bottom)) !important;
    }

    .tech-backoffice .tech-chat-float:not(.is-open) {
        bottom: calc(4.9rem + env(safe-area-inset-bottom));
    }

    [dir="rtl"] .tech-backoffice .tech-chat-float:not(.is-open) {
        bottom: calc(4.9rem + env(safe-area-inset-bottom));
    }

    .tech-mobile-dock {
        left: 0.5rem;
        right: 0.5rem;
        bottom: calc(env(safe-area-inset-bottom) + 0.45rem);
    }

    .tech-mobile-dock-item {
        min-height: 3.1rem;
    }

    .tech-mobile-dock-label {
        font-size: 0.6rem;
    }

    .tech-notify-panel {
        width: 100%;
        max-width: 100%;
        border-left: 0;
        box-shadow: none;
    }

    [dir="rtl"] .tech-notify-panel {
        border-right: 0;
        box-shadow: none;
    }

    .tech-notify-head {
        position: sticky;
        top: 0;
        z-index: 3;
        background: rgba(247, 252, 255, 0.98);
        backdrop-filter: blur(4px);
        flex-direction: column;
        align-items: stretch;
    }

    .tech-notify-tools {
        justify-content: space-between;
    }

    .tech-notify-summary {
        position: sticky;
        top: 4rem;
        z-index: 2;
    }

    .tech-notify-meta-line {
        flex-wrap: wrap;
    }

    .tech-notify-total-pill {
        order: 1;
    }

    .tech-notify-shortcut-pill {
        order: 2;
    }

    .tech-notify-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.14rem;
        scrollbar-width: thin;
    }

    .tech-notify-filter {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .tech-notify-actions {
        gap: 0.34rem;
    }

    .tech-notify-search .input-group {
        flex-wrap: nowrap;
    }

    .tech-notify-search [data-notify-search-clear] {
        min-width: 3.5rem;
    }

    .tech-notify-actions .tech-notify-filter,
    .tech-notify-actions .btn {
        flex: 1 1 calc(50% - 0.34rem);
        justify-content: center;
        text-align: center;
    }

    .tech-notify-item-actions .btn {
        flex: 1 1 calc(50% - 0.34rem);
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .tech-backoffice .tech-auto-kpi-grid {
        grid-template-columns: 1fr;
    }

    .tech-backoffice .tech-page-actions-wrap .btn {
        flex: 1 1 100%;
    }

    .tech-backoffice .tech-page-actions {
        top: 4.15rem;
    }

    .tech-timeline-entry {
        grid-template-columns: 0.86rem 1fr;
        gap: 0.55rem;
    }

    .tech-timeline-title,
    .tech-focus-title {
        font-size: 0.87rem;
    }

    .tech-ref-chip {
        font-size: 0.68rem;
    }

    .tech-urgency-pill,
    .tech-risk-pill {
        font-size: 0.67rem;
        padding: 0.18rem 0.45rem;
    }

    .tech-backoffice .tech-table-shell.is-fullscreen {
        inset: 0.32rem;
        padding: 0.42rem;
    }

    .tech-backoffice .tech-table-shell.is-fullscreen .table-responsive {
        max-height: calc(100vh - 6.4rem);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    :root {
        --tech-sidebar-width: 220px;
        --tech-sidebar-width-collapsed: 168px;
    }

    .tech-backoffice .tech-nav .nav-link {
        font-size: 0.84rem;
        padding: 0.6rem 0.68rem;
    }

    .tech-backoffice .tech-main {
        margin-left: calc(var(--tech-sidebar-width) + 1.8rem);
        margin-right: 0.9rem;
    }

    [dir="rtl"] .tech-backoffice .tech-main {
        margin-left: 0.9rem;
        margin-right: calc(var(--tech-sidebar-width) + 1.8rem);
    }
}

@media (min-width: 1200px) and (max-width: 1279px) {
    :root {
        --tech-sidebar-width: 244px;
        --tech-sidebar-width-collapsed: 188px;
    }
}

/* 2026-02 chat + mobile menu stability overrides */
:root {
    --tech-mobile-menu-offset: 4.8rem;
}

body.tech-mobile-menu-open {
    overflow: hidden;
}

body.tech-mobile-menu-open .tech-chat-float {
    opacity: 0;
    pointer-events: none;
}

body.tech-mobile-menu-open .tech-mobile-dock {
    z-index: 3000;
}

.tech-chat-float {
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 2900;
    gap: 0.56rem;
}

[dir="rtl"] .tech-chat-float {
    right: auto;
    left: 1.15rem;
}

.tech-chat-float-toggle {
    width: 3.3rem;
    height: 3.3rem;
    border: 1px solid rgba(255, 255, 255, 0.54);
    background: linear-gradient(148deg, #08c0df 0%, #0a5888 56%, #083a61 100%);
    box-shadow: 0 18px 34px rgba(4, 30, 50, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.tech-chat-float-glyph {
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1;
}

.tech-chat-float-widget {
    width: min(430px, calc(100vw - 1.2rem));
    max-height: min(84vh, 760px);
    border: 1px solid rgba(8, 47, 80, 0.24);
    border-radius: 1.12rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 251, 255, 0.98));
    box-shadow: 0 24px 42px rgba(7, 42, 74, 0.27);
    padding: 0.68rem;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 0.58rem;
    overflow: hidden;
}

.tech-chat-float-widget-body {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.56rem;
    overflow: hidden;
}

.tech-chat-float-widget.is-direct .tech-chat-float-widget-body {
    grid-template-columns: minmax(172px, 42%) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
        "direct thread"
        "direct typing";
    gap: 0.54rem;
}

.tech-chat-float-widget.is-direct .tech-chat-float-widget-direct {
    grid-area: direct;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.44rem;
    padding-inline-end: 0.26rem;
    border-inline-end: 1px solid rgba(8, 47, 80, 0.12);
    position: relative;
    z-index: 1;
}

[dir="rtl"] .tech-chat-float-widget.is-direct .tech-chat-float-widget-direct {
    padding-inline-end: 0;
    padding-inline-start: 0.26rem;
    border-inline-end: 0;
    border-inline-start: 1px solid rgba(8, 47, 80, 0.12);
}

.tech-chat-float-widget.is-direct .tech-chat-float-widget-contact-list {
    flex: 1 1 auto;
    min-height: 84px;
    max-height: none;
}

.tech-chat-float-widget.is-direct .tech-chat-float-widget-thread {
    grid-area: thread;
    min-height: 240px;
    position: relative;
    z-index: 2;
}

.tech-chat-float-widget.is-direct .tech-chat-float-widget-typing {
    grid-area: typing;
}

.tech-chat-float-widget-head {
    padding-bottom: 0.1rem;
    border-bottom: 1px solid rgba(8, 47, 80, 0.1);
}

.tech-chat-float-widget-head strong {
    font-size: 0.9rem;
}

.tech-chat-float-widget-modes .btn {
    min-height: 2.1rem;
    border-radius: 0.74rem;
}

.tech-chat-float-widget-direct {
    min-height: 0;
    display: grid;
    gap: 0.46rem;
}

.tech-chat-float-widget-direct .form-select,
.tech-chat-float-widget-direct .form-control {
    border-radius: 0.72rem;
}

.tech-chat-float-widget-contact-list {
    max-height: 156px;
}

.tech-chat-float-widget-thread {
    min-height: 0;
    height: 100%;
    border-radius: 0.9rem;
}

.tech-chat-widget-message {
    max-width: 88%;
}

.tech-chat-widget-bubble {
    border-radius: 1rem;
    padding: 0.5rem 0.64rem;
    box-shadow: 0 8px 16px rgba(8, 47, 80, 0.08);
}

.tech-chat-widget-message.is-me .tech-chat-widget-bubble {
    border-color: rgba(4, 189, 219, 0.52);
    background: linear-gradient(155deg, rgba(4, 189, 219, 0.26), rgba(18, 126, 170, 0.15));
}

.tech-chat-widget-bubble p {
    font-size: 0.8rem;
    line-height: 1.4;
}

.tech-chat-float-widget-typing {
    min-height: 1.1rem;
    padding-inline: 0.2rem;
}

.tech-chat-float-widget-compose {
    border-top: 1px solid rgba(8, 47, 80, 0.1);
    padding-top: 0.56rem;
    background: linear-gradient(180deg, rgba(248, 253, 255, 0), rgba(248, 253, 255, 0.94) 28%, rgba(248, 253, 255, 1) 100%);
}

.tech-chat-float-widget-compose.is-disabled {
    opacity: 0.84;
}

.tech-chat-float-widget-compose .form-control {
    min-height: 80px;
    max-height: min(26vh, 180px);
}

.tech-chat-float-widget-attach {
    margin-top: 0.44rem;
}

.tech-chat-float-widget-actions {
    margin-top: 0.4rem;
}

@media (max-width: 991.98px) {
    .tech-backoffice .tech-nav .navbar-collapse {
        max-height: calc(100dvh - var(--tech-mobile-menu-offset) - 5rem - env(safe-area-inset-bottom));
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: calc(5rem + env(safe-area-inset-bottom));
        scrollbar-width: thin;
    }

    .tech-backoffice .tech-nav .navbar-collapse.show,
    .tech-backoffice .tech-nav .navbar-collapse.collapsing {
        position: fixed;
        left: 0.5rem;
        right: 0.5rem;
        top: var(--tech-mobile-menu-offset);
        bottom: calc(4.55rem + env(safe-area-inset-bottom));
        z-index: 3450;
        margin-top: 0;
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.22);
        background: linear-gradient(180deg, rgba(10, 52, 84, 0.98), rgba(8, 42, 69, 0.98));
        box-shadow: 0 24px 40px rgba(3, 17, 28, 0.42);
        padding: 0.68rem 0.62rem calc(1.1rem + env(safe-area-inset-bottom));
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }

    .tech-backoffice .tech-nav .navbar-nav {
        padding-bottom: 0.5rem;
        gap: 0.44rem;
    }

    .tech-backoffice .tech-nav .nav-link {
        min-height: 2.58rem;
        display: inline-flex;
        align-items: center;
        width: 100%;
        justify-content: flex-start;
    }

    .tech-backoffice .tech-nav .navbar-nav .btn {
        width: 100%;
    }

    .tech-backoffice .tech-nav .nav-item:last-child {
        margin-bottom: 0.2rem;
    }
}

@media (max-width: 767px) {
    .tech-chat-float {
        left: 0.45rem;
        right: 0.45rem;
        bottom: calc(4.95rem + env(safe-area-inset-bottom));
        justify-items: end;
    }

    [dir="rtl"] .tech-chat-float {
        left: 0.45rem;
        right: 0.45rem;
        justify-items: start;
    }

    .tech-chat-float-toggle {
        width: 3.05rem;
        height: 3.05rem;
    }

    .tech-chat-float-widget {
        width: 100%;
        max-height: calc(100dvh - 5.2rem - env(safe-area-inset-bottom));
        border-radius: 1.08rem;
        padding: 0.58rem;
    }

    .tech-chat-float-widget-body {
        grid-template-rows: auto minmax(0, 1fr) auto;
        gap: 0.5rem;
    }

    .tech-chat-float-widget.is-direct .tech-chat-float-widget-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "direct"
            "thread"
            "typing";
        gap: 0.5rem;
    }

    .tech-chat-float-widget.is-direct .tech-chat-float-widget-direct {
        display: grid;
        border-inline-end: 0;
        border-inline-start: 0;
        padding-inline-start: 0;
        padding-inline-end: 0;
    }

    .tech-chat-float-widget.is-direct .tech-chat-float-widget-contact-list {
        max-height: min(22vh, 170px);
    }

    .tech-chat-float-widget-contact-list {
        max-height: min(24vh, 180px);
    }

    .tech-chat-float-widget-compose .form-control {
        min-height: 70px;
        max-height: min(22vh, 160px);
    }

    .tech-chat-float.is-open {
        right: 0;
        left: 0;
        bottom: 0;
        top: 0;
        padding: 0.46rem;
        align-items: end;
        justify-items: stretch;
        z-index: 3500;
    }

    .tech-chat-float.is-open .tech-chat-float-widget {
        width: 100%;
        height: calc(100dvh - 5.05rem - env(safe-area-inset-bottom));
        max-height: calc(100dvh - 5.05rem - env(safe-area-inset-bottom));
    }
}

/* 2026-02 direct mobile chat visibility fix */
@media (max-width: 767px) {
    .tech-chat-float-widget.is-direct .tech-chat-float-widget-body {
        min-height: 0;
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .tech-chat-float-widget.is-direct .tech-chat-float-widget-direct {
        max-height: min(40vh, 248px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: 0.12rem;
    }

    .tech-chat-float-widget.is-direct .tech-chat-float-widget-contact-list {
        max-height: min(16vh, 118px);
    }

    .tech-chat-float-widget.is-direct .tech-chat-float-widget-thread {
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tech-chat-float-widget.is-direct .tech-chat-float-widget-compose {
        position: sticky;
        bottom: 0;
        z-index: 3;
        padding-bottom: calc(0.26rem + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(248, 253, 255, 0.16), rgba(248, 253, 255, 0.98) 34%, #f8fdff 100%);
    }

    .tech-chat-float-widget.is-direct.is-mobile-direct-focus .tech-chat-float-widget-direct {
        max-height: 8.6rem;
        overflow: auto;
        border-inline-end: 0;
        border-inline-start: 0;
        border-bottom: 1px solid rgba(8, 47, 80, 0.14);
        padding-bottom: 0.2rem;
    }

    .tech-chat-float-widget.is-direct.is-mobile-direct-focus .tech-chat-float-widget-contact-search,
    .tech-chat-float-widget.is-direct.is-mobile-direct-focus .tech-chat-float-widget-filter,
    .tech-chat-float-widget.is-direct.is-mobile-direct-focus .tech-chat-widget-quick-wrap,
    .tech-chat-float-widget.is-direct.is-mobile-direct-focus .tech-chat-float-widget-contact-list {
        display: none !important;
    }

    .tech-chat-float-widget.is-direct.is-mobile-direct-focus .tech-chat-widget-peer-summary {
        display: flex !important;
        margin: 0;
    }
}
