html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 0;
    background-color: #10253f;
}

.page-wrapper {
    min-height: 100vh;
    background-color: #10253f;
}

.body-wrapper {
    min-height: 100vh;
    background-color: #10253f;
}
.body-wrapper-inner > .container-fluid {
    padding-top: 1rem !important;
}

/* Brittany */
@font-face {
    font-family: 'Brittany';
    src: url('../fonts/BrittanySignature.ttf') format('truetype');
    font-display: block;
}

/* Garet */
@font-face {
    font-family: 'Garet';
    src: url('../fonts/Garet-Book.ttf') format('truetype');
    font-weight: 400; /* Book/Regular */
    font-display: block;
}

@font-face {
    font-family: 'Garet';
    src: url('../fonts/Garet-Heavy.ttf') format('truetype');
    font-weight: 800; /* Heavy */
    font-display: block;
}

/* Glacial Indifference */
@font-face {
    font-family: 'Glacial';
    src: url('../fonts/GlacialIndifference-Regular.otf') format('opentype');
    font-weight: 400;
    font-display: block;
}

@font-face {
    font-family: 'Glacial';
    src: url('../fonts/GlacialIndifference-Bold.otf') format('opentype');
    font-weight: 700;
    font-display: block;
}

/* Copperplate */
@font-face {
    font-family: 'Copperplate';
    src: url('../fonts/Copperplate-Gothic-Std-31-BC.ttf') format('truetype');
    font-display: block;
}

.contact-hero-footer {
    width: 100%;
    /* Default: Normal document flow (stacks naturally on mobile) */
    position: relative;
    padding: 1rem;
}

@media (min-width: 768px) {
    .contact-hero-footer {
        position: absolute !important;
        left: 0;
        bottom: 0;
        width: 50%;
        padding: 1rem;
        margin-bottom: 3rem;
    }
}

.contact-glass {
    background: rgba(10, 20, 35, 0.32);
    -webkit-backdrop-filter: blur(10px);
/*    border: 1px solid rgba(255, 255, 255, 0.10);*/
    border-radius: 0px 12px 12px 0px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.9);
}

.responsive-height {
    min-height: auto !important;
}

@media (min-width: 768px) {
    .responsive-height {
        min-height: 100vh !important;
    }
}



/* ── Fixed header: sits to the right of the sidebar ── */
.body-wrapper header {
    position: fixed;
    top: 0;
    left: 270px;
    right: 0;
    z-index: 600;
}

/* ── Top navbar ── */
.body-wrapper header .navbar {
    background-color: var(--rockwell-blue);
    border-bottom: 2px solid var(--rockwell);
    height: 70px;
}

/* ── Sidebar: fixed full-height, overlaps header (higher z-index) ── */
.left-sidebar {
    position: fixed !important;
    top: 0 !important;
    height: 100vh !important;
    z-index: 1050;
}

/* ── Brand logo: same height as navbar + matching bottom border ── */
.brand-logo {
    min-height: unset;
    padding: 6px 16px;
    height: 70px;
    border-bottom: 2px solid var(--rockwell);
}

/* ── Push body content below fixed header ── */
.body-wrapper-inner {
    padding-top: 70px;
}

/* ── Mobile: full-width header when sidebar is hidden ── */
@media (max-width: 1199.98px) {
    .body-wrapper header {
        left: 0;
    }
}

/* ── Global dashboard body background ── */
.body-wrapper-inner {
    background-color: var(--rockwell-blue);
}

/* ── Navbar user avatar (small) ── */
.nav-user-avatar {
    width: clamp(28px, 5vw, 36px);
    height: clamp(28px, 5vw, 36px);
    border-radius: 50%;
    background-color: var(--rockwell);
    color: var(--rockwell-blue);
    font-family: 'Copperplate Gothic', serif;
    font-weight: 600;
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0;
    border: 3px solid rgba(255,192,0,0.35);
    object-fit: cover;
}


/* ── Navbar dropdown user header ── */
.dropdown-user-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f3f5;
}

.dropdown-user-header .user-name {
    font-weight: 500;
    font-size: 0.88rem;
    color: #1a1a2e;
    margin-bottom: 0.1rem;
}

.dropdown-user-header .user-email {
    font-size: 0.75rem;
    color: #6c757d;
}

.nav-type-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    letter-spacing: 0.03em;
    margin-top: 0.25rem;
}

.nav-type-badge.individual {
    background-color: rgba(255, 192, 0, 0.15);
    color: #b8860b;
    border: 1px solid rgba(255, 192, 0, 0.4);
}

.nav-type-badge.corporate {
    background-color: #e8edf3;
    color: #10253f;
    border: 1px solid #ccd6e0;
}

/* ── Burger button: vertically centered, visible on all sizes ── */
.nav-burger-btn {
    padding: 0.4rem 0.65rem !important;
/*    height: 70px;
    display: flex !important;
    align-items: center !important;
    padding: 0 0.85rem !important;*/
}

.nav-burger-btn i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ── Desktop: adjust header when sidebar is minimized ── */
/*@media (min-width: 1200px) {
    #main-wrapper.mini-sidebar .body-wrapper header {
        left: 80px;
    }
}*/

/* ── Sidebar overlay: z-index 550 keeps it below header (600) and above content ── */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 550;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

#sidebar-overlay.active {
    display: block;
}

/* ── Navbar: user info text constrained, badge hidden on xs ── */
.nav-user-info {
    max-width: 130px;
    overflow: hidden;
}

.nav-user-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

@media (max-width: 575.98px) {
    /* Hide badge from nav trigger on very small screens to keep within 70px height */
    .nav-user-info .nav-type-badge {
        display: none;
    }
    .nav-user-name {
        max-width: 90px;
    }
}

/* ── Mobile: dropdown menu stays within viewport ── */
@media (max-width: 767.98px) {
    .dropdown-menu.dropdown-menu-end {
        right: 0;
        left: auto;
        max-width: calc(100vw - 1rem);
    }
}

/* ── Document Modal (shared PDF viewer) ── */
.doc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.doc-modal-overlay.active {
    display: flex;
}

.doc-modal {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.97) 0%, rgba(10, 15, 25, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: min(95vw, 1500px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.doc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.doc-modal-title {
    font-family: 'Brittany', cursive;
    font-size: 1.6rem;
    letter-spacing: 3px;
    color: var(--rockwell);
}

.doc-modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.2rem 0.5rem;
    line-height: 1;
}

.doc-modal-close:hover {
    color: #fff;
}

.doc-modal-body {
    padding: 1.2rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

.doc-selector-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.doc-date-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.doc-date-pill {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.doc-date-pill:hover {
    background: rgba(255, 192, 0, 0.1);
    border-color: rgba(255, 192, 0, 0.4);
    color: var(--rockwell);
}

.doc-date-pill.active {
    background: rgba(255, 192, 0, 0.15);
    border-color: var(--rockwell);
    color: var(--rockwell);
    font-weight: 600;
}

.doc-selector-msg {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    padding: 0.3rem 0;
}

.doc-disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    padding: 0.2rem 0;
}

.doc-date-select {
    appearance: none;
    -webkit-appearance: none;
    width: auto;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 192, 0, 0.25);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,192,0,0.6)' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    backdrop-filter: blur(4px);
}

.doc-date-select:hover {
    border-color: rgba(255, 192, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.09);
}

.doc-date-select:focus {
    border-color: var(--rockwell);
    background-color: rgba(255, 192, 0, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 192, 0, 0.1);
}

.doc-date-select option {
    background: #0e1c2f;
    color: rgba(255, 255, 255, 0.85);
}

.doc-soa-selectors {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.doc-viewer-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 0;
}

.doc-viewer-toolbar {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.doc-viewer-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    cursor: pointer;
    padding: 0.3rem 0.45rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.doc-viewer-btn:hover:not(:disabled) {
    color: var(--rockwell);
    background: rgba(255, 192, 0, 0.1);
}

.doc-viewer-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.doc-zoom-input,
.doc-page-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    outline: none;
    font-size: 0.78rem;
    padding: 0.1rem 0.2rem;
    transition: border-color 0.15s, color 0.15s;
}

.doc-zoom-input {
    width: 52px;
}

.doc-page-input {
    width: 36px;
}

.doc-zoom-input:focus,
.doc-page-input:focus {
    border-color: rgba(255, 192, 0, 0.5);
    color: var(--rockwell);
}

.doc-page-sep {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.2rem;
}

.doc-toolbar-sep {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 0.15rem;
    flex-shrink: 0;
}

.doc-page-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin-left: auto;
    white-space: nowrap;
}

.doc-canvas-container {
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1rem;
    min-height: 280px;
    max-height: 52vh;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-x pan-y;
}

.doc-canvas-container canvas {
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.doc-viewer-msg {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.88rem;
    width: 100%;
    min-height: 200px;
}

@media print {
    .doc-modal-overlay { display: none !important; }
}

@media (max-width: 640px) {
    .doc-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .doc-modal {
        width: 100%;
        max-height: 92vh;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .doc-modal-header {
        padding: 1rem 1.2rem;
    }

    .doc-modal-body {
        padding: 0.8rem 1rem;
    }

    .doc-canvas-container {
        max-height: none;
        min-height: 160px;
    }

    .doc-viewer-toolbar {
        gap: 0.15rem;
        padding: 0.3rem 0.5rem;
    }
}
