/**
 * Project Info - Main Stylesheet
 * Mobile-first responsive design
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --primary-color: #436ecb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background: #ffffff;
    --background-light: #f9fafb;
    --border-color: #e5e7eb;
    --error-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --border-radius: 8px;
    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    min-height: calc(100vh - 200px);
}

.page-home main {
    min-height: auto;
}

.page-search main {
    min-height: auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    background: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu li a {
    font-weight: 500;
}

.nav-menu li a.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
}

.user-menu .dropdown {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
    min-width: 150px;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.user-menu:hover .dropdown,
.user-menu:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.user-menu .dropdown li a {
    display: block;
    padding: 0.5rem 1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-primary-nav {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.btn-primary-nav:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background: var(--background-light);
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #1e3a6e 0%, #2a528c 50%, #1e40af 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero .lead {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 0.5rem;
}

.hero-search-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    outline: none;
}

.hero-search-input:focus {
    border-color: var(--primary-color);
    background: #fff;
}

.hero-search .btn {
    white-space: nowrap;
}

.hero .btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

/* Steps Row */
.steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
    text-align: center;
}

.step-item h3 {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.125rem;
}

.step-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e3a6e 0%, #2a528c 50%, #1e40af 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.cta-box {
    text-align: center;
    color: #fff;
}

.cta-box h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.cta-box p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-box .btn-primary {
    background: #fff;
    color: var(--primary-color);
}

.cta-box .btn-primary:hover {
    background: #f0f4ff;
}

.cta-box .btn-outline {
    color: #fff;
    border-color: #fff;
}

.cta-box .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
    padding: 4rem 0;
}

.section-light {
    background: var(--background-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ==========================================================================
   Projects & Companies Grids
   ========================================================================== */
.projects-grid,
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card,
.company-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.project-card:hover,
.company-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-card h3,
.company-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.project-status {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.project-location,
.company-location {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.project-type {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.category-pill {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    background: linear-gradient(135deg, #436ecb, #5a85e0);
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.project-description {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-in.progress,
.badge-planning {
    background: #dbeafe;
    color: #1e40af;
}

.badge-completed {
    background: #d1fae5;
    color: #065f46;
}

.badge-on.hold {
    background: #fef3c7;
    color: #92400e;
}

/* ==========================================================================
   Authentication Pages
   ========================================================================== */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: var(--background-light);
}

.auth-box {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    width: 100%;
    max-width: 450px;
}

.auth-box h1 {
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-box .subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.auth-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    resize: vertical;
    min-height: 140px;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

/* ==========================================================================
   Alerts
   ========================================================================== */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* ==========================================================================
   Pricing Page
   ========================================================================== */
.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-layout {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 2rem;
    align-items: start;
}

.pricing-license-selector {
    max-width: 100%;
    margin: 0;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #f0fdf4 100%);
    border: 1px solid #dbeafe;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
    display: grid;
    gap: 0.5rem;
}

.pricing-license-selector label {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.pricing-license-selector small {
    color: var(--text-light);
}

.pricing-license-selector select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid #c7d2fe;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pricing-license-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1fr);
    gap: 2rem;
    margin: 0;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-lg);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.access-selector {
    margin: 0 auto 1rem;
    text-align: left;
}

.access-selector label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}

.access-selector select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.65rem 2.25rem 0.65rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.access-selector select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.license-note {
    font-size: 0.9rem;
    color: var(--text-light);
}

.price {
    margin: 1.5rem 0;
}

.price .currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price .period {
    color: var(--text-light);
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--background-light);
}

.features-list li.features-note {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

.pricing-footer {
    margin-top: 4rem;
    text-align: center;
}

@media (max-width: 900px) {
    .pricing-layout {
        grid-template-columns: 1fr;
    }

    .pricing-license-selector {
        order: 0;
    }
}

.included-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.included-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.included-feature .icon {
    color: var(--success-color);
    font-weight: 700;
}

/* ==========================================================================
   Dashboard
   ========================================================================== */
.dashboard {
    padding: 2rem 0;
}

.dashboard-title {
    margin-bottom: 0.25rem;
    font-size: 2rem;
    color: var(--text-dark);
}

.dashboard-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.dashboard-panel {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.panel-header {
    padding: 1rem 1.5rem;
    background: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

.panel-header h2,
.panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.panel-body {
    padding: 1.5rem;
}

.data-table {
    display: grid;
    gap: 0.75rem;
}

.data-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.data-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.data-label {
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.data-value {
    color: var(--text-dark);
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    color: #065f46;
    background: #d1fae5;
}

.status-inactive {
    color: #991b1b;
    background: #fee2e2;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
}

.action-table {
    display: grid;
    gap: 0.75rem;
}

.action-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.action-row:last-child {
    border-bottom: none;
}

.action-row.highlight {
    background: #f5f3ff;
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid #ddd6fe;
}

.action-title {
    font-weight: 600;
    color: var(--text-dark);
}

.action-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

.action-cta {
    display: flex;
    align-items: center;
}

/* ====================================================================== */
/* Legal Pages */
/* ====================================================================== */
.legal-page {
    background: var(--background-light);
    padding: 3.5rem 0 4rem;
}

.legal-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--box-shadow-lg);
}

.legal-hero {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
}

.legal-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--text-light);
    margin-top: 0.4rem;
}

.legal-intro {
    margin-top: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.legal-disclaimer {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    color: #1e3a8a;
    font-size: 0.95rem;
}

.legal-body h2 {
    margin-top: 1.75rem;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.legal-body p {
    margin-top: 0.75rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.legal-body ul {
    margin: 0.75rem 0 0.5rem 1.25rem;
    color: var(--text-dark);
}

.legal-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .legal-card {
        padding: 1.75rem;
    }
}

@media (max-width: 640px) {
    .data-row,
    .action-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .data-label {
        font-size: 0.8rem;
    }

    .action-cta {
        justify-content: flex-start;
    }
}

/* ======================================================================
   Search Page
   ====================================================================== */
.search-page {
    padding: 2.5rem 0 3rem;
}

.search-header {
    margin-bottom: 2rem;
}

.search-title {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.search-subtitle {
    color: var(--text-light);
}

.search-form {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.search-input label,
.search-filter label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.search-scope label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.search-input input,
.search-filter select,
.search-scope select,
.filter-field select,
.filter-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input input:focus,
.search-filter select:focus,
.search-scope select:focus,
.filter-field select:focus,
.filter-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-main {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr;
    gap: 1rem;
    align-items: end;
}

@media (max-width: 640px) {
    .search-main {
        grid-template-columns: 1fr;
    }
}

.advanced-filters {
    display: grid;
    gap: 1rem;
}

.advanced-toggle {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.advanced-filter-set {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.advanced-filter-set[hidden] {
    display: none;
}

.filter-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.search-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-results {
    display: grid;
    gap: 1.5rem;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.results-header h2 {
    margin: 0;
}

.results-count {
    color: var(--text-light);
    font-weight: 600;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.result-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.result-title {
    margin: 0;
    font-size: 1.1rem;
}

.result-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #dbeafe;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.result-location,
.result-type {
    color: var(--text-light);
}

.result-actions {
    display: flex;
    align-items: center;
}

@media (max-width: 640px) {
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Project/Company Detail Pages
   ========================================================================== */
.breadcrumb {
    padding: 1rem 0;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
}

.project-header-section,
.company-header-section,
.contact-header-section {
    background: var(--background-light);
    background-image: none;
    color: var(--text-dark);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.project-header-content h1,
.company-header-content h1,
.contact-header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-meta,
.company-meta,
.contact-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.project-header-section .project-location,
.company-header-section .company-location,
.contact-header-section .contact-location {
    color: var(--text-light);
}

.project-content,
.company-content,
.contact-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin: 2rem 0;
}

.project-main,
.company-main,
.contact-main {
    min-width: 0;
}

.info-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.info-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item strong {
    display: block;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Data Tables
   ========================================================================== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.data-table th {
    width: 30%;
    color: var(--text-light);
    font-weight: 600;
    background: #f8fafc;
}

.data-table td {
    color: var(--text-dark);
}

.data-table .value-row th,
.data-table .value-row td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.login-note {
    color: var(--text-light);
    font-style: italic;
}

.data-table-striped {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.data-table-striped thead {
    display: table-header-group;
}

.data-table-striped tbody {
    display: table-row-group;
}

.data-table-striped thead tr {
    display: table-row;
}

.data-table-striped tbody tr {
    display: table-row;
}

.data-table-striped thead th {
    display: table-cell;
    width: auto;
    background: #f3f4f6;
    color: var(--text-dark);
    font-weight: 700;
    white-space: nowrap;
    text-align: left;
    vertical-align: middle;
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table-striped tbody tr:nth-child(even) {
    background: #f9fafb;
}

.data-table-striped td {
    display: table-cell;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-phone {
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: normal;
}

/* Contacts table with thead/tbody structure */
.data-table-contacts {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table-contacts thead th {
    text-align: left;
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    color: var(--text-light);
    font-weight: 600;
    background: #f8fafc;
}

.data-table-contacts tbody td {
    text-align: left;
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    color: var(--text-dark);
}

.data-table-contacts tbody tr:last-child td {
    border-bottom: none;
}

/* Alternative Contacts Table Style */
.contacts-table-alt {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.contacts-table-alt thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.contacts-table-alt thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    border: none;
}

.contacts-table-alt tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.contacts-table-alt tbody tr:last-child {
    border-bottom: none;
}

.contacts-table-alt tbody tr:hover {
    background: #f9fafb;
}

.contacts-table-alt tbody td {
    padding: 1.25rem 1.25rem;
    vertical-align: top;
}

.contact-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.contact-company-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-phone-alt {
    margin-top: 6px;
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.contact-region {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.table-note {
    color: var(--text-light);
    background: #f8fafc;
    border: 1px dashed var(--border-color);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.premium-section {
    border: 2px solid var(--primary-color);
}

.contacts-list {
    display: grid;
    gap: 1rem;
}

.contact-card {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.contact-card h3 {
    margin-bottom: 0.5rem;
}

.contact-role {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.related-companies,
.related-projects {
    display: grid;
    gap: 1.5rem;
}

.related-company-card,
.related-project-card {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.sidebar-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    margin-bottom: 1rem;
}

.upgrade-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

.upgrade-cta h3 {
    color: white;
}

.upgrade-cta ul {
    list-style: none;
    margin: 1rem 0 1.5rem;
}

.upgrade-cta li {
    padding: 0.5rem 0;
}

/* ==========================================================================
   Workspace Page
   ========================================================================== */
.workspace-page {
    padding: 2rem 0;
}

.workspace-header {
    margin-bottom: 2rem;
}

.workspace-header h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.workspace-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.workspace-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 140px;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 3px solid var(--border-color);
}

.stat-card.stat-overdue {
    border-top-color: var(--error-color);
}

.stat-card.stat-upcoming {
    border-top-color: var(--primary-color);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.stat-card.stat-overdue .stat-number {
    color: var(--error-color);
}

.stat-card.stat-upcoming .stat-number {
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.workspace-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.workspace-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.section-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.section-toggle:hover {
    color: var(--primary-color);
}

.toggle-icon {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    transition: transform 0.15s ease;
}

.workspace-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.text-overdue {
    color: var(--error-color);
    font-weight: 600;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

.input-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.btn-danger {
    background: var(--error-color);
    color: white;
    border: none;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.btn-danger:hover {
    background: #dc2626;
}

.sidebar-form {
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   Contact Detail Page
   ========================================================================== */
.contact-title-badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.contact-company {
    color: var(--text-dark);
    font-weight: 600;
}

.contact-company a {
    color: var(--primary-color);
}

.contact-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

.project-sidebar,
.company-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

/* ==========================================================================
   Company Detail - Branch & Contact Subrows
   ========================================================================== */
.branch-region {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

.subsection-title {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.project-subrow td {
    background: #f8fafc;
    padding: 0.5rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-projects-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-project-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.contact-project-item a {
    font-weight: 500;
}

.project-value-inline {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* ==========================================================================
   Search Results Value
   ========================================================================== */
.result-value {
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 0.25rem;
}

.no-results {
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
}

/* ==========================================================================
   Badge Variants
   ========================================================================== */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-planning {
    background: #fef3c7;
    color: #92400e;
}

.badge-on-site,
.badge-in-progress {
    background: #d1fae5;
    color: #065f46;
}

.badge-out-to-tender,
.badge-tender {
    background: #dbeafe;
    color: #1e40af;
}

.badge-complete,
.badge-completed {
    background: #e5e7eb;
    color: #374151;
}

.badge-on-hold {
    background: #fde8e8;
    color: #991b1b;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    color: #9ca3af;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--box-shadow);
        display: none;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-content,
    .company-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .project-sidebar,
    .company-sidebar,
    .contact-sidebar {
        order: -1;
    }
    
    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

    .hero-search {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .auth-box {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Workspace Enhancements
   ========================================================================== */
.workspace-controls {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
}

.workspace-filter-form .filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    align-items: end;
}

.workspace-filter-form .filter-field label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.workspace-filter-form .filter-field input,
.workspace-filter-form .filter-field select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.section-count {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.9em;
}

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.col-check {
    width: 36px;
    text-align: center;
}

.actions-cell {
    min-width: 200px;
}

.action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.action-group .inline-form {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-breakdown-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.status-breakdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--background-light);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.status-count {
    font-weight: 700;
    font-size: 1.1rem;
}

.empty-workspace-prompt {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--background-light);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
}

.empty-workspace-prompt h2 {
    margin-bottom: 0.5rem;
}

.empty-workspace-prompt p {
    color: var(--text-light);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   Notes
   ========================================================================== */
.note-form {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.note-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.note-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-row {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.notes-list {
    display: grid;
    gap: 0.75rem;
}

.note-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.note-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.note-author {
    font-weight: 600;
    color: var(--text-dark);
}

.note-followup {
    color: var(--primary-color);
    font-weight: 500;
}

.note-text {
    line-height: 1.6;
}

.badge-checkin {
    background: #d1fae5;
    color: #065f46;
}

/* ==========================================================================
   Product Specifications Grid
   ========================================================================== */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.spec-group h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

.spec-list li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Profile Page
   ========================================================================== */
.profile-page {
    padding: 2.5rem 0 3rem;
}

.profile-header {
    margin-bottom: 2rem;
}

.profile-header h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.profile-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.profile-sidebar .sidebar-card {
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
    .profile-sidebar {
        order: -1;
    }
}

/* ==========================================================================
   Company Admin Page
   ========================================================================== */
.company-admin-page {
    padding: 2.5rem 0 3rem;
}

.company-admin-header {
    margin-bottom: 2rem;
}

.company-admin-header h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.company-admin-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.company-map {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Input helpers
   ========================================================================== */
.input-full {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.input-full:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.sidebar-form + .sidebar-form {
    margin-top: 0.5rem;
}

.text-overdue {
    color: var(--error-color);
    font-weight: 600;
}

@media (max-width: 640px) {
    .workspace-filter-form .filter-row {
        grid-template-columns: 1fr;
    }

    .actions-cell {
        min-width: auto;
    }

    .action-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .bulk-actions {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Print Profile (Contact)
   ========================================================================== */
.print-profile {
    display: none;
}

@media print {
    body.printing-profile * {
        visibility: hidden;
    }
    body.printing-profile .print-profile,
    body.printing-profile .print-profile * {
        visibility: visible;
    }
    body.printing-profile .print-profile {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 1.5cm;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 11pt;
        color: #000;
    }
    .print-header h1 {
        font-size: 18pt;
        margin: 0 0 2pt;
    }
    .print-subtitle {
        font-size: 9pt;
        color: #666;
        margin: 0 0 14pt;
    }
    .print-profile h2 {
        font-size: 13pt;
        margin: 18pt 0 6pt;
        border-bottom: 1px solid #ccc;
        padding-bottom: 3pt;
    }
    .print-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 10pt;
    }
    .print-details th {
        width: 100pt;
        text-align: left;
        padding: 3pt 8pt 3pt 0;
        font-weight: 600;
        vertical-align: top;
        color: #333;
    }
    .print-details td {
        padding: 3pt 0;
    }
    .print-projects th,
    .print-projects td {
        text-align: left;
        padding: 3pt 8pt;
        border-bottom: 0.5pt solid #ddd;
    }
    .print-projects thead th {
        font-weight: 600;
        border-bottom: 1pt solid #999;
    }
    .print-projects td:first-child,
    .print-projects th:first-child {
        width: 24pt;
        text-align: right;
    }
    .print-footer {
        margin-top: 24pt;
        font-size: 8pt;
        color: #999;
        text-align: right;
    }
}
