/* Página principal Campitubos: tema independente dos estilos antigos. */
:root {
  --camp-primary: #0759a3;
  --camp-navy: #042d55;
  --camp-accent: #ffca28;
  --camp-ink: #14233a;
  --camp-soft: #f4f8fc;
}

body {
  background: var(--camp-soft) !important;
  color: var(--camp-ink) !important;
}

.hero_area {
  min-height: 720px !important;
  height: auto !important;
    background-image: linear-gradient(115deg, rgba(2, 34, 68, .94), rgba(7, 89, 163, .58)), url('../images/hero-bg.jpg') !important;
   /*background-image: url('../images/hero-bg.jpg') !important;*/
  background-position: center !important;
  background-size: cover !important;
}

/* Nas páginas internas a hero_area contém apenas o menu. Não deve criar uma
   faixa preta vazia antes do conteúdo (Contactos, áreas de cliente, etc.). */
.sub_page .hero_area {
  min-height: 0 !important;
  height: auto !important;
  background: #030303 !important;
  background-image: none !important;
}

/* Cabeçalho que reaparece quando o utilizador volta a subir a página. */
.header_section.scroll-reveal-header {
    transition: transform .24s ease, box-shadow .24s ease;
}

.header_section.scroll-reveal-header.is-fixed {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1100;
    background: #030303;
    box-shadow: 0 3px 16px rgba(0, 0, 0, .24);
}

.header_section.scroll-reveal-header.is-fixed.is-hidden {
    transform: translateY(-105%);
}

body.scroll-header-active {
    padding-top: 98px !important;
}

/* Projetos foi descontinuado: ocultar apenas o item da navegação em todas as páginas. */
.navbar-nav > .nav-item:has(> .nav-link[href*="/Home/Trabalho"]),
.navbar-nav > .nav-item:has(> .nav-link[href*="/home/trabalho"]) {
    display: none !important;
}

/* Seleção e contexto da obra */
.work-selection-page {
    /* Em páginas curtas, evita que o rodapé fique encostado ao cartão. */
    min-height: 680px;
    padding: 72px 24px 190px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 74%, #edf4fa 100%);
    border-bottom: 1px solid #d9e6f1;
}

.work-selection-card {
    width: min(100%, 760px);
    padding: 42px;
    border: 1px solid #dbe5ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(11, 55, 105, .11);
}

.work-selection-icon,
.work-context-bar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #005cab, #063978);
}

.work-selection-kicker,
.work-context-bar__label {
    display: block;
    margin: 18px 0 6px;
    color: #0879da;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.work-selection-card h1 {
    margin: 0;
    color: #092f64;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 800;
}

.work-selection-description {
    max-width: 590px;
    margin: 12px 0 30px;
    color: #536579;
    line-height: 1.6;
}

.work-selection-label {
    display: block;
    margin-bottom: 8px;
    color: #1e3652;
    font-size: .9rem;
    font-weight: 700;
}

.work-selection-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.work-selection-card #comboBox1 {
    width: 100% !important;
    height: 50px;
    margin: 0;
    border: 1px solid #cdd9e6;
    border-radius: 9px;
    box-shadow: none;
}

.work-selection-submit,
.work-context-bar__change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 21px;
    border: 0;
    border-radius: 9px;
    color: #fff !important;
    background: #075daf;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: transform .18s ease, background .18s ease;
}

.work-selection-submit:hover,
.work-context-bar__change:hover {
    color: #fff !important;
    background: #034a8c;
    transform: translateY(-1px);
}

.work-context-bar {
    padding: 20px 24px;
    border-bottom: 1px solid #dce5ef;
    background: #f4f7fb;
}

.work-context-bar__inner {
    display: flex;
    width: min(100%, 1100px);
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.work-context-bar__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.work-context-bar__identity .work-context-bar__label {
    margin: 0 0 3px;
}

.work-context-bar__identity strong {
    display: block;
    overflow: hidden;
    color: #112e53;
    font-size: 1.05rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-context-bar__change {
    min-height: 42px;
    flex: 0 0 auto;
    padding: 0 16px;
}

.work-analysis-page {
    min-height: 590px;
    padding: 58px 0 72px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
}

.work-analysis-heading {
    align-items: center;
    margin-bottom: 36px;
    text-align: center;
}

.work-analysis-heading span {
    color: #0879da;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.work-analysis-heading h2 {
    margin: 7px 0 9px;
    color: #0c3267;
    font-size: clamp(1.9rem, 3vw, 2.45rem);
    font-weight: 800;
}

.work-analysis-heading p {
    margin: 0;
    color: #607187;
}

.work-analysis-cards {
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}

.work-analysis-cards > div {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 0;
    padding: 0 14px;
}

.work-analysis-card {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 55, 102, .08);
    color: inherit !important;
    text-decoration: none !important;
    transition: box-shadow .2s ease, transform .2s ease;
}

.work-analysis-card:hover {
    color: inherit !important;
    box-shadow: 0 18px 36px rgba(16, 55, 102, .16);
    transform: translateY(-4px);
}

.work-analysis-card__image {
    display: flex;
    height: 198px;
    padding: 18px 26px 10px;
    align-items: center;
    justify-content: center;
    background: #f7f9fc;
}

.work-analysis-card__image img {
    display: block;
    width: 100% !important;
    height: 170px !important;
    margin: 0 !important;
    object-fit: contain;
}

.work-analysis-card__content {
    padding: 24px 26px 26px;
}

.work-analysis-card__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #0879da;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.work-analysis-card h3 {
    margin: 0;
    color: #083c7a;
    font-size: 1.22rem;
    font-weight: 800;
}

.work-analysis-card p {
    min-height: 52px;
    margin: 10px 0 18px;
    color: #586a80;
    font-size: .86rem;
    line-height: 1.5;
}

.work-analysis-card__action {
    color: #0068ca;
    font-size: .86rem;
    font-weight: 800;
}

.work-analysis-card__action i { margin-left: 5px; }

@media (max-width: 767px) {
    .work-analysis-cards > div {
        flex-basis: 100%;
        max-width: 480px;
        margin: 0 auto 20px;
    }
}

/* Painel de análise de peças */
.analysis-dashboard {
    min-height: 650px;
    padding: 38px clamp(16px, 3vw, 48px) 54px;
    background: #f4f7fb;
}

.analysis-dashboard__header,
.analysis-dashboard__toolbar,
.analysis-dashboard__table-card,
.analysis-summary-grid {
    width: min(100%, 1500px);
    margin-right: auto;
    margin-left: auto;
}

.analysis-dashboard__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.analysis-dashboard__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #0879da;
    font-size: .77rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.analysis-dashboard h1 { margin: 0; color: #0a3265; font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 800; }
.analysis-dashboard__header p { margin: 8px 0 0; color: #64748b; }

.analysis-dashboard__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid #c8d7e6;
    border-radius: 8px;
    background: #fff;
    color: #0c5ca9 !important;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none !important;
}

.analysis-dashboard__toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    background: #fff;
}

.analysis-date-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.analysis-date-field { display: flex; flex-direction: column; gap: 5px; }
.analysis-date-field label { margin: 0; color: #496078; font-size: .76rem; font-weight: 700; }
.analysis-date-field input { height: 38px; padding: 0 9px; border: 1px solid #cbd8e5; border-radius: 7px; color: #1b3654; }

.analysis-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: .84rem;
    font-weight: 700;
}
.analysis-button--primary { color: #fff; background: #0765ba; }
.analysis-button--secondary { border-color: #cbd8e5; background: #f8fafc; color: #31516f; }
.analysis-button--excel { color: #fff; background: #1d9b50; }

.analysis-dashboard__table-card { overflow: hidden; border: 1px solid #dbe5ef; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(24, 56, 90, .06); }
.analysis-dashboard__table-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #e3ebf3; }
.analysis-dashboard__table-heading strong { display: block; color: #153c6e; font-size: 1rem; }
.analysis-dashboard__table-heading span { display: block; margin-top: 2px; color: #718096; font-size: .76rem; }
.analysis-dashboard__legend { margin: 0 !important; white-space: nowrap; }
.analysis-dashboard__legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; background: #52c773; }
.analysis-dashboard__table-scroll { max-height: min(54vh, 520px); overflow: auto; }
.analysis-dashboard #table1 { width: 100% !important; min-width: 980px; margin: 0 !important; border: 0; font-size: .8rem; }
.analysis-dashboard #table1 thead th { position: sticky; top: 0; z-index: 2; padding: 10px 11px; background: #173c63; border-color: #2b537b; vertical-align: middle; }
.analysis-dashboard #table1 .resizable-input { width: calc(100% - 32px); min-width: 70px; height: 29px; padding: 4px 7px; border: 0; border-radius: 4px; background: #edf3f8; color: #284764; font-size: .73rem; }
.analysis-dashboard #table1 td { padding: 11px 12px; border-color: #dde6ee; color: #283e54; vertical-align: middle; }
.analysis-dashboard #table1 tbody tr:nth-child(even) { background: #f8fafc; }
.analysis-dashboard #table1 tbody tr:hover { background: #eef6ff; }
.analysis-dashboard .analysis-picking-complete { color: #176b35; background: #e1f7e7; font-weight: 800; }

.analysis-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.analysis-summary-card { padding: 21px 24px; border: 1px solid #dbe5ef; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(24, 56, 90, .05); }
.analysis-summary-card span { display: block; color: #526a84; font-size: .84rem; font-weight: 700; }
.analysis-summary-card strong { display: block; margin-top: 6px; color: #123d73; font-size: 1.65rem; font-weight: 800; }
.analysis-summary-card--success strong { color: #168447; }
.analysis-summary-card--period { grid-column: 1 / -1; border-color: #a9cdf0; background: #eef7ff; }

@media (max-width: 700px) {
    .analysis-dashboard { padding: 28px 14px 44px; }
    .analysis-dashboard__header, .analysis-dashboard__toolbar { align-items: stretch; flex-direction: column; }
    .analysis-dashboard__back, .analysis-button--excel { justify-content: center; }
    .analysis-date-filters { display: grid; grid-template-columns: 1fr 1fr; }
    .analysis-date-field { grid-column: span 1; }
    .analysis-date-filters .analysis-button { grid-column: span 1; justify-content: center; }
    .analysis-summary-grid { grid-template-columns: 1fr; }
    .analysis-summary-card--period { grid-column: auto; }
    .analysis-dashboard__table-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
    .work-selection-page { min-height: 440px; padding: 42px 16px 64px; }
    .work-selection-card { padding: 28px 22px; }
    .work-selection-control { grid-template-columns: 1fr; }
    .work-context-bar { padding: 16px; }
    .work-context-bar__inner { align-items: flex-start; flex-direction: column; }
    .work-context-bar__identity strong { max-width: min(100%, 290px); }
}

/* Área de cliente: serviços */
.camp-client-menu {
    padding: 64px 0 82px;
    background: linear-gradient(180deg, #f5f8fc 0%, #ffffff 42%);
}

.camp-client-menu__heading {
    max-width: 680px;
    margin: 0 auto 34px;
    text-align: center;
}

.camp-client-menu__heading span {
    display: inline-block;
    margin-bottom: 8px;
    color: #1679d3;
    font-size: .77rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.camp-client-menu__heading h1 {
    margin: 0;
    color: #073b75;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 800;
}

.camp-client-menu__heading p {
    margin: 10px auto 0;
    color: #5e7186;
    font-size: 1rem;
}

.camp-client-menu__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
}

.camp-client-card {
    position: relative;
    display: flex;
    min-height: 216px;
    padding: 25px 25px 22px;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    border: 1px solid #dce6f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(23, 65, 109, .08);
    color: #12385e !important;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.camp-client-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0b5498, #1e92db);
    content: "";
}

.camp-client-card:hover,
.camp-client-card:focus {
    transform: translateY(-5px);
    border-color: #91c7ec;
    box-shadow: 0 16px 34px rgba(20, 75, 125, .16);
    color: #12385e !important;
}

.camp-client-card__icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eaf4fd;
    color: #0876c9;
    font-size: 1.55rem;
}

.camp-client-card__title {
    padding-right: 24px;
    color: #073b75;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.28;
}

.camp-client-card__text {
    margin-top: 9px;
    color: #66798d;
    font-size: .91rem;
    line-height: 1.5;
}

.camp-client-card__arrow {
    position: absolute;
    right: 23px;
    bottom: 18px;
    color: #0b72bd;
    font-size: 1.35rem;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .camp-client-menu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .camp-client-menu { padding: 44px 0 58px; }
    .camp-client-menu__grid { grid-template-columns: 1fr; gap: 14px; }
    .camp-client-card { min-height: 190px; }
}

/* Painel de análise de tubos e acessórios */
.tube-dashboard {
  min-height: 650px;
  padding: 38px clamp(16px, 3vw, 48px) 54px;
  background: #f4f7fb;
}

.tube-dashboard__header,
.tube-dashboard__toolbar,
.tube-dashboard__table-card,
.tube-kpi-grid { width: min(100%, 1500px); margin-inline: auto; }

.tube-dashboard__header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.tube-dashboard__eyebrow { display: block; margin-bottom: 7px; color: #0877d1; font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.tube-dashboard h1 { margin: 0; color: #0a3265; font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 800; }
.tube-dashboard__header p { margin: 8px 0 0; color: #64748b; }
.tube-dashboard__back,
.tube-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 0; border-radius: 7px; font-weight: 700; transition: .2s ease; }
.tube-dashboard__back { background: #e8f0f8; color: #123f6e !important; white-space: nowrap; }
.tube-dashboard__back:hover { background: #d5e6f5; }
.tube-dashboard__toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid #dbe5ef; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(24,56,90,.05); }
.tube-date-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.tube-date-field { display: flex; flex-direction: column; gap: 5px; }
.tube-date-field label { margin: 0; color: #38536f; font-size: .78rem; font-weight: 700; }
.tube-date-field input { height: 40px; padding: 7px 10px; border: 1px solid #cbd9e6; border-radius: 6px; color: #263e56; }
.tube-action--primary { background: #086bc4; color: #fff; }
.tube-action--primary:hover { background: #075ba6; color: #fff; }
.tube-action--secondary { background: #eef3f8; color: #254b70; }
.tube-action--excel { background: #1d9c50; color: #fff; white-space: nowrap; }
.tube-kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; margin-bottom: 20px; }
.tube-kpi { padding: 19px 22px; border: 1px solid #dbe5ef; border-radius: 11px; background: #fff; box-shadow: 0 5px 14px rgba(24,56,90,.04); }
.tube-kpi span { display: block; color: #64748b; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tube-kpi strong { display: block; margin-top: 5px; color: #113c6d; font-size: clamp(1.35rem, 2vw, 1.85rem); }
.tube-kpi--success strong { color: #177447; }
.tube-dashboard__table-card { overflow: hidden; border: 1px solid #dbe5ef; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(24,56,90,.06); }
.tube-dashboard__table-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #e3ebf3; }
.tube-dashboard__table-heading strong { display: block; color: #153c6e; font-size: 1rem; }
.tube-dashboard__table-heading span { display: block; margin-top: 2px; color: #718096; font-size: .76rem; }
.tube-dashboard__legend { margin: 0 !important; white-space: nowrap; }
.tube-dashboard__legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; background: #52c773; }
.tube-dashboard__table-scroll { max-height: min(54vh, 520px); overflow: auto; }
.tube-dashboard #table1 { width: 100% !important; min-width: 1240px; margin: 0 !important; border: 0; font-size: .8rem; }
.tube-dashboard #table1 thead th { position: sticky; top: 0; z-index: 2; padding: 10px 11px; background: #173c63 !important; border-color: #2b537b; vertical-align: middle; }
.tube-dashboard #table1 .resizable-input { width: calc(100% - 32px); min-width: 70px; height: 29px; padding: 4px 7px; border: 0; border-radius: 4px; background: #edf3f8; color: #284764; font-size: .73rem; }
.tube-dashboard #table1 td { padding: 11px 12px; border-color: #dde6ee; color: #283e54; vertical-align: middle; }
.tube-dashboard #table1 tbody tr:nth-child(even) { background: #f8fafc; }
.tube-dashboard #table1 tbody tr:hover { background: #eef6ff; }
.tube-status { font-weight: 800; }
.tube-status--complete { color: #176b35 !important; background: #e1f7e7; }
.tube-status--pending { color: #9a4d05 !important; background: #fff4df; }
.tube-dashboard__total { width: min(100%, 1500px); margin: 14px auto 0 !important; color: #173c63; text-align: right; }
.tube-next-steps { width: min(100%, 1500px); display: grid; grid-template-columns: 1.12fr 1fr 1fr; gap: 14px; margin: 20px auto 0; padding: 16px 18px; border: 1px solid #cfe0f0; border-radius: 12px; background: #eaf3fb; }
.tube-next-steps__intro { display: flex; flex-direction: column; justify-content: center; }
.tube-next-steps__intro > span { color: #0877d1; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tube-next-steps__intro strong { margin-top: 3px; color: #153c6e; font-size: 1rem; }
.tube-next-steps__intro small { margin-top: 3px; color: #64748b; }
.tube-next-steps__link { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 11px 13px; border: 1px solid #d3e1ed; border-radius: 9px; background: #fff; color: #174b82 !important; box-shadow: 0 3px 8px rgba(24,56,90,.04); }
.tube-next-steps__link > i:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: #e9f3ff; color: #0877d1; }
.tube-next-steps__link span { display: flex; flex: 1; flex-direction: column; }
.tube-next-steps__link strong { font-size: .84rem; }
.tube-next-steps__link small { color: #6b7e92; font-size: .72rem; line-height: 1.25; }
.tube-next-steps__link:hover { border-color: #79abd7; color: #075da9 !important; transform: translateY(-2px); }

.tube-summary-section { min-height: 0 !important; max-height: none !important; padding: 48px 0 !important; background: #fff; }
.tube-summary-section .container { max-width: 1500px; }
.tube-summary-section .heading_container { margin-bottom: 20px; }
.tube-summary-section .heading_container h2 { color: #0a3265; font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 800; }
.tube-summary-section .heading_container p { color: #62748a; }
.tube-summary-section .card { overflow: auto; border: 1px solid #dbe5ef !important; border-radius: 12px !important; box-shadow: 0 7px 18px rgba(24,56,90,.05); }
.tube-summary-section table { display: table !important; width: 100% !important; height: auto !important; margin: 0 !important; }

@media (max-width: 700px) {
  .tube-dashboard { padding: 28px 14px 44px; }
  .tube-dashboard__header, .tube-dashboard__toolbar { align-items: stretch; flex-direction: column; }
  .tube-dashboard__back, .tube-action--excel { width: 100%; }
  .tube-date-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .tube-date-field { grid-column: span 1; }
  .tube-kpi-grid { grid-template-columns: 1fr; }
  .tube-dashboard__table-heading { align-items: flex-start; flex-direction: column; }
  .tube-next-steps { grid-template-columns: 1fr; }
}

.header_section {
  background: #030303 !important;
  border-bottom: 2px solid rgba(77, 160, 229, .60);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .20);
}

.header_section .container-fluid {
  max-width: 1400px;
  padding: 0 42px;
}

.custom_nav-container {
  min-height: 100px;
  padding: 18px 0 !important;
}

.custom_nav-container.navbar-expand-lg .navbar-nav .nav-link {
  margin: 3px 6px !important;
  padding: 9px 13px !important;
  border-radius: 8px;
  color: #f1f3f7 !important;
  font-size: .92rem;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}

.custom_nav-container.navbar-expand-lg .navbar-nav .nav-link::before { display: none !important; }

.custom_nav-container.navbar-expand-lg .navbar-nav .nav-link:hover,
.custom_nav-container.navbar-expand-lg .navbar-nav .active .nav-link {
  background: #2a2a2c;
  color: #fff !important;
  transform: translateY(-1px);
}

.navbar-brand img,
.custom_nav-container > span img:first-child {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain;
}

.navbar-brand img:hover,
.custom_nav-container > span img:hover {
  transform: none !important;
}

.flag {
  margin-left: 12px !important;
  padding: 5px 8px;
  border-radius: 6px;
  color: #c9d8e7;
}

.flag:hover { background: rgba(255,255,255,.12); }

.slider_section {
  min-height: 600px !important;
  height: auto !important;
  padding: 96px 0 130px !important;
}

.slider_section .detail-box {
  margin: 0 auto !important;
  max-width: 920px;
  padding: 35px 25px;
  text-shadow: 0 3px 20px rgba(0,0,0,.35);
}

.slider_section .detail-box h1 {
  color: #9bddff !important;
  font-size: clamp(3rem, 7.5vw, 6rem) !important;
  letter-spacing: .055em;
  line-height: 1 !important;
  margin: 14px 0 20px !important;
}

.slider_section .detail-box h2 {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  letter-spacing: .1em;
}

.slider_section .detail-box h10 {
  display: block;
  font-size: clamp(1rem, 2vw, 1.3rem) !important;
  font-weight: 500;
  margin: 0 auto;
}

.slider_section .detail-box a {
  margin-top: 34px !important;
  padding: 13px 36px !important;
  border-radius: 8px !important;
  background: var(--camp-accent) !important;
  color: #0d3158 !important;
  border: 1px solid var(--camp-accent) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.23);
  font-weight: 700;
}

.slider_section .detail-box a:hover {
  background: transparent !important;
  border-color: #fff !important;
  color: #fff !important;
}

.service_section,
.work_section,
.who_section,
.target_section,
.contact_section {
  background: #fff !important;
}

.who_section,
.target_section {
  background: #edf5fc !important;
}

.layout_padding { padding: 84px 0 !important; }

.heading_container { margin-bottom: 36px !important; }

.heading_container h2 {
  color: var(--camp-navy) !important;
  font-size: clamp(1.8rem, 4vw, 2.45rem) !important;
  letter-spacing: -.025em;
}

.heading_container h2::before,
.heading_container h2::after {
  background-color: var(--camp-accent) !important;
}

.service_section .box {
  height: 100%;
  margin-bottom: 25px;
  background: #fff;
  border: 1px solid rgba(6, 70, 128, .12);
  border-radius: 14px !important;
  box-shadow: 0 12px 28px rgba(13, 57, 101, .12) !important;
  transition: transform .25s ease, box-shadow .25s ease;
}

.service_section .box:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 38px rgba(13, 57, 101, .20) !important;
}

.service_section .img-box img {
  display: block;
  width: 100% !important;
  height: 270px !important;
  object-fit: cover;
}

.info_section { background: var(--camp-navy) !important; }
.footer_section { background: #032442 !important; color: rgba(255,255,255,.75); }

.camp-quality-section {
  padding: 96px 0;
  background: #fff;
}

.camp-quality-intro {
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
}

.camp-quality-reverse { margin-top: 76px; }

.camp-quality-image {
  display: block;
  width: 100%;
  min-height: 300px;
  max-height: 360px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 16px 38px rgba(7, 57, 104, .16);
}

.camp-quality-copy { padding: 18px 44px; }

.camp-eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--camp-primary);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .09em;
}

.camp-quality-copy h2 {
  max-width: 430px;
  margin: 0 0 16px;
  color: var(--camp-primary);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.08;
}

.camp-quality-copy p {
  margin: 0 0 24px;
  color: #526277;
  font-size: .97rem;
  line-height: 1.7;
  text-align: left;
}

.camp-primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 9px 18px;
  border-radius: 20px;
  background: var(--camp-primary);
  color: #fff !important;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
  transition: background .2s ease, transform .2s ease;
}

.camp-primary-link:hover {
  background: var(--camp-navy);
  color: #fff !important;
  transform: translateY(-2px);
}

.camp-quality-stats {
  max-width: 1040px;
  margin: 42px auto 0;
}

.camp-quality-stats > div { margin-bottom: 16px; }

/* Projetos em destaque na página Menu */
.camp-featured-projects { padding: 78px 0; background: #fff; }
.camp-featured-projects__heading { max-width: 1040px; display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 auto 26px; }
.camp-featured-projects__heading h2 { max-width: 590px; margin: 0; color: var(--camp-primary); font-size: clamp(1.55rem, 3vw, 2.35rem); font-weight: 800; line-height: 1.1; }
.camp-featured-projects__grid { max-width: 1064px; margin: 0 auto; }
.camp-featured-projects__grid > div { margin-bottom: 20px; }
.camp-project-card { height: 100%; overflow: hidden; border: 1px solid #dce6ef; border-radius: 14px; background: #fff; box-shadow: 0 9px 24px rgba(20,53,89,.09); transition: transform .2s ease, box-shadow .2s ease; }
.camp-project-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(20,53,89,.14); }
.camp-project-card img { width: 100%; height: 235px; display: block; object-fit: cover; }
.camp-project-card__body { padding: 20px 22px 23px; }
.camp-project-card__body > span { color: #0877d1; font-size: .71rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.camp-project-card__body h3 { margin: 7px 0 8px; color: #103b6e; font-size: 1.2rem; font-weight: 800; }
.camp-project-card__body p { margin: 0; color: #5d6e81; font-size: .9rem; line-height: 1.55; }

/* Galeria e mapa de projetos na página Menu */
.camp-project-gallery { padding: 74px 0 64px !important; background: #fff; }
.camp-section-heading { display: block !important; max-width: 760px; margin: 0 auto 30px !important; text-align: center; }
.camp-section-heading > span { display: block; margin-bottom: 7px; color: #0877d1; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.camp-section-heading h2 { margin: 0 !important; color: #0a3265 !important; font-size: clamp(1.6rem, 3vw, 2.35rem) !important; font-weight: 800; }
.camp-section-heading p { margin: 10px 0 0 !important; color: #63758b; font-size: .95rem; line-height: 1.55; text-align: center !important; }
.camp-project-gallery #projectCarousel { max-width: 1040px; margin: 0 auto; padding: 0 54px 30px; }
.camp-project-gallery .work_container { gap: 22px; }
.camp-project-gallery .work_container .box { flex: 1 1 0; height: 285px; border: 1px solid #d9e5ef; border-radius: 14px; background: #f3f7fb; box-shadow: 0 10px 22px rgba(19,53,89,.1); }
.camp-project-gallery .camp-gallery-card { position: relative; isolation: isolate; }
.camp-project-gallery .camp-gallery-card::after { content: ""; position: absolute; inset: 40% 0 0; z-index: 1; background: linear-gradient(transparent, rgba(4,31,59,.86)); pointer-events: none; }
.camp-project-gallery .work_container img { width: 100% !important; height: 100% !important; display: block; object-fit: cover; }
.camp-gallery-card__caption { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 18px 19px; color: #fff; }
.camp-gallery-card__caption span { display: block; margin-bottom: 3px; color: #9ed0ff; font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.camp-gallery-card__caption strong { display: block; font-size: 1rem; line-height: 1.18; }
.camp-project-gallery .carousel-control-prev,
.camp-project-gallery .carousel-control-next { width: 42px; height: 42px; top: 50%; bottom: auto; transform: translateY(-50%); border-radius: 50%; background: #0b66b4; opacity: 1; }
.camp-project-gallery .carousel-control-prev { left: 0; }
.camp-project-gallery .carousel-control-next { right: 0; }
.camp-project-gallery .carousel-control-prev-icon,
.camp-project-gallery .carousel-control-next-icon { width: 13px; height: 13px; background-color: transparent; }
.camp-gallery-indicators { bottom: -4px; margin: 0; }
.camp-gallery-indicators li { width: 8px; height: 8px; margin: 0 4px; border: 0; border-radius: 50%; background: #b4c4d3; }
.camp-gallery-indicators .active { background: #0877d1; }
.camp-gallery-divider { min-height: 12px !important; padding: 0 !important; background: #edf5fc !important; }
.camp-locations-section { padding: 74px 0 !important; background: #f8fafc; }
.camp-map-card { position: relative; max-width: 1040px; margin: 0 auto; overflow: hidden; border: 1px solid #d8e4ee; border-radius: 15px; background: #fff; box-shadow: 0 10px 26px rgba(19,53,89,.1); }
.camp-map-card__label { position: absolute; z-index: 500; top: 14px; left: 14px; padding: 9px 13px; border-radius: 7px; background: rgba(8,48,91,.92); color: #fff; font-size: .78rem; font-weight: 700; box-shadow: 0 3px 10px rgba(0,0,0,.16); }
.camp-map-card__label i { margin-right: 6px; color: #75caff; }
.camp-map-card #map { width: 100%; height: 460px; }

/* Página de contactos */
.camp-contact-page {
  padding: 78px 0 90px !important;
  background: linear-gradient(180deg, #f3f7fb 0, #fff 42%) !important;
}

.camp-contact-heading { max-width: 720px; margin: 0 auto 34px !important; }
.camp-contact-heading h2 { margin-bottom: 10px !important; }
.camp-contact-heading p { margin: 0; color: #62748a; font-size: 1rem; line-height: 1.6; }
.camp-contact-grid { max-width: 1080px; margin: 0 auto; overflow: hidden; border: 1px solid #d8e4ee; border-radius: 16px; background: #fff; box-shadow: 0 20px 46px rgba(16, 57, 105, .12); }
.camp-contact-page .form_container { min-height: 100%; padding: 42px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.camp-contact-panel-title, .camp-contact-map__heading { margin-bottom: 27px; }
.camp-contact-panel-title > span, .camp-contact-map__heading > span { display: block; margin-bottom: 6px; color: #0877d1; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.camp-contact-panel-title h3, .camp-contact-map__heading h3 { margin: 0; color: #0a3265; font-size: 1.45rem; font-weight: 800; }
.camp-contact-page .form-control, .camp-contact-page #serviço { min-height: 48px; border: 1px solid #cbd9e7; border-radius: 8px; background: #fbfdff; color: #173d67; font-size: .94rem; }
.camp-contact-page textarea.form-control { min-height: 132px !important; padding-top: 13px; resize: vertical; }
.camp-contact-page .form-control:focus { border-color: #0877d1; box-shadow: 0 0 0 3px rgba(8,119,209,.12); }
.camp-contact-page .btn_box { margin: 22px 0 0; text-align: left; }
.camp-contact-page .btn_box button { min-height: 46px; padding: 11px 24px; border-radius: 8px; background: #0866b7; font-weight: 700; }
.camp-contact-page .btn_box button:hover { background: #063f77; }
.camp-contact-map { height: 100%; margin: 0; background: #0a3565; }
.camp-contact-map__heading { padding: 36px 40px 25px; margin: 0; color: rgba(255,255,255,.9); }
.camp-contact-map__heading > span { color: #7bc7ff; }
.camp-contact-map__heading h3 { color: #fff; }
.camp-contact-map__heading p { margin: 10px 0 0; color: #dcecff; font-size: .88rem; line-height: 1.5; }
.camp-contact-map__heading i { width: 18px; color: #7bc7ff; text-align: center; }
.camp-contact-map .map iframe { display: block; height: 330px !important; filter: saturate(.8) contrast(.96); }
.camp-contact-page .alert1 { margin-top: 18px; }

/* Portal de clientes */
.camp-login-page {
  min-height: calc(100vh - 260px);
  display: flex;
  align-items: center;
  padding: 74px 0 !important;
  background: radial-gradient(circle at 85% 15%, rgba(12,115,209,.11), transparent 30%), #f4f8fc !important;
}
.camp-login-card { padding: 42px 46px !important; border: 1px solid #dce6ef; border-radius: 16px !important; box-shadow: 0 18px 45px rgba(18,57,100,.13) !important; }
.camp-login-card__heading { display: flex; gap: 17px; align-items: flex-start; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid #e1e9f1; }
.camp-login-card__icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; flex: 0 0 48px; border-radius: 12px; background: #0967b8; color: #fff; font-size: 1.15rem; }
.camp-login-card__heading > div > span { display: block; margin-bottom: 4px; color: #0877d1; font-size: .7rem; font-weight: 800; letter-spacing: .13em; }
.camp-login-card__heading h1 { margin: 0; color: #0b3464; font-size: clamp(1.45rem, 3vw, 1.95rem); font-weight: 800; line-height: 1.18; }
.camp-login-card__heading p { margin: 7px 0 0; color: #64768c; font-size: .88rem; }
.camp-login-card .form-group { margin-bottom: 18px; }
.camp-login-card label { margin-bottom: 7px; color: #183e69; font-size: .86rem; font-weight: 700; }
.camp-login-card .form-control { min-height: 48px; border: 1px solid #cbd9e7; border-radius: 8px; background: #fbfdff; color: #173d67; }
.camp-login-card .form-control:focus { border-color: #0877d1; box-shadow: 0 0 0 3px rgba(8,119,209,.12); }
.camp-login-submit { width: 100%; min-height: 48px; border-radius: 8px; background: #0866b7 !important; font-weight: 700; }
.camp-login-submit i { margin-left: 8px; }
.camp-login-submit:hover { background: #063f77 !important; }
.camp-login-note { margin: 17px 0 0 !important; color: #718196; font-size: .78rem; text-align: center; }
.camp-login-card .alert1 { margin-top: 18px; border-radius: 7px; }

/* Gestão de obras */
.obras-page {
  min-height: 620px;
  padding: 62px 24px 112px;
  background: linear-gradient(180deg, #f3f7fb 0%, #fff 70%, #edf4fa 100%);
}
.obras-shell { width: min(100%, 1040px); margin: 0 auto; }
.obras-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.obras-kicker { display: block; margin-bottom: 9px; color: #0877d1; font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.obras-kicker i { margin-right: 7px; }
.obras-heading h1 { margin: 0; color: #0a3265; font-size: clamp(1.8rem, 3.2vw, 2.45rem); font-weight: 800; }
.obras-heading p { margin: 8px 0 0; color: #62748a; }
.obras-create-button, .obras-save-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 0; border-radius: 8px; background: #0866b7; color: #fff; font-weight: 700; white-space: nowrap; }
.obras-create-button { padding: 0 19px; }
.obras-create-button:hover, .obras-save-button:hover { background: #063f77; color: #fff; }
.obras-create-panel { margin: -4px 0 24px; padding: 20px; border: 1px solid #d9e5ef; border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(15, 55, 96, .08); }
.obras-create-panel label { display: block; margin-bottom: 8px; color: #173d67; font-size: .86rem; font-weight: 700; }
.obras-create-control { display: flex; gap: 12px; }
.obras-create-panel input[type="text"] { width: 100% !important; height: 46px; margin: 0 !important; padding: 0 14px; border: 1px solid #cbd9e7; border-radius: 8px; font-size: .95rem; }
.obras-save-button { padding: 0 18px; }
.obras-list-card { overflow: hidden; border: 1px solid #d9e5ef; border-radius: 14px; background: #fff; box-shadow: 0 15px 35px rgba(15, 55, 96, .1); }
.obras-list-card__header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 25px 28px 20px; border-bottom: 1px solid #e3ebf3; }
.obras-list-card__header h2 { margin: 0; color: #0a3265; font-size: 1.25rem; font-weight: 800; }
.obras-list-card__header p { margin: 5px 0 0; color: #738399; font-size: .85rem; }
.obras-count { padding: 7px 11px; border-radius: 20px; background: #eaf4fd; color: #0866b7; font-size: .78rem; font-weight: 800; }
.obras-table-wrap { max-height: 440px; overflow: auto; }
.obras-table { width: 100%; margin: 0; font-size: .93rem; }
.obras-table thead th { position: sticky; top: 0; z-index: 1; padding: 13px 18px; border: 0; background: #123f6c; color: #fff; vertical-align: middle; }
.obras-filter-control { display: flex; align-items: center; gap: 8px; }
.obras-filter-control input { width: min(100%, 580px) !important; height: 36px; margin: 0 !important; padding: 0 11px; border: 0; border-radius: 6px; background: #f1f5f9; color: #243b53; font-size: .88rem !important; }
.obras-filter-control button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #d9ecff; }
.obras-filter-control button:hover { background: rgba(255,255,255,.14); }
.obras-actions-heading { width: 142px; text-align: center; }
.obras-table td { padding: 14px 18px; border-color: #e0e8f0; color: #243b53; vertical-align: middle; }
.obras-table tbody tr:hover { background: #f3f8fd; }
.obras-actions-cell { text-align: center; }
.obras-delete-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1px solid #f2b8b5; border-radius: 6px; background: #fff7f7; color: #c4332c; font-size: .78rem; font-weight: 700; }
.obras-delete-button:hover { background: #d8372f; color: #fff; }

@media (max-width: 640px) {
  .obras-page { min-height: 0; padding: 42px 16px 70px; }
  .obras-heading, .obras-list-card__header { align-items: flex-start; flex-direction: column; }
  .obras-create-button { width: 100%; }
  .obras-create-control { flex-direction: column; }
  .obras-save-button { width: 100%; }
  .obras-actions-heading { width: 58px; font-size: 0; }
  .obras-actions-heading::after { content: '\\f013'; font-family: 'Font Awesome 5 Free'; font-size: .85rem; }
  .obras-delete-button span:last-child { display: none; }
  .obras-delete-button { width: 34px; padding: 0; }
}

.camp-stat {
  display: flex;
  min-height: 132px;
  padding: 24px;
  flex-direction: column;
  justify-content: center;
  border-radius: 14px;
  background: #f1f5f9;
  text-align: center;
}

.camp-stat strong {
  color: var(--camp-primary);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1;
}

.camp-stat span {
  margin-top: 9px;
  color: #66758a;
  font-size: .72rem;
}

@media (max-width: 991.98px) {
  .header_section .container-fluid { padding: 0 18px; }
  .navbar-collapse { margin-top: 10px; padding: 10px; border-radius: 10px; background: rgba(2, 35, 70, .96); }
  .custom_nav-container.navbar-expand-lg .navbar-nav .nav-link { margin: 2px 0 !important; text-align: left; }
  .slider_section { min-height: 540px !important; padding: 60px 0 90px !important; }
}

@media (max-width: 575.98px) {
  .hero_area { min-height: 640px !important; }
  .layout_padding { padding: 58px 0 !important; }
  .service_section .img-box img { height: 215px !important; }
  .camp-quality-section { padding: 58px 0; }
  .camp-quality-copy { padding: 18px 6px; }
  .camp-quality-image { min-height: 230px; }
  .camp-quality-reverse { margin-top: 44px; }
  .camp-featured-projects { padding: 55px 18px; }
  .camp-featured-projects__heading { align-items: flex-start; flex-direction: column; }
  .camp-project-card img { height: 205px; }
  .camp-project-gallery #projectCarousel { padding: 0 42px; }
  .camp-project-gallery .work_container { gap: 12px; }
  .camp-project-gallery .work_container .box { height: 190px; }
  .camp-map-card #map { height: 340px; }
}
