/* CSS Variables */
:root {
    --primary-color: #1a56db;
    --primary-dark: #1e429f;
    --primary-light: #3b82f6;
    --secondary-color: #6366f1;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark-color);
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* Login Screen */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.login-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.login-logo p {
    color: var(--gray-500);
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.login-form label i {
    margin-right: 6px;
    color: var(--gray-400);
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.login-hint {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--gray-400);
}

/* Main App */
.main-app {
    min-height: 100vh;
    background: var(--gray-100);
}

/* Header */
.header {
    background: var(--white);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
    color: var(--primary-color);
}

.company-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 14px;
}

.user-info i {
    font-size: 20px;
    color: var(--primary-color);
}

.btn-logout {
    padding: 8px 16px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-600);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-logout:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: var(--white);
}

/* Tabs */
.tabs {
    background: var(--white);
    padding: 0 30px;
    display: flex;
    gap: 5px;
    border-bottom: 1px solid var(--gray-200);
}

.tab-btn {
    padding: 15px 25px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.cart-count {
    background: var(--danger-color);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Content */
.content {
    padding: 25px 30px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Configurator */
.configurator-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 25px;
}

.panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
}

.panel h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel h2 i {
    color: var(--primary-color);
}

/* Client Form */
.client-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.client-form .form-group {
    margin-bottom: 0;
}

.client-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.client-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s ease;
}

.client-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.discount-input {
    width: 70px !important;
    padding: 8px 10px !important;
    text-align: center;
    font-size: 14px !important;
}

.discount-input:disabled {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
}

/* Search Container */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-container input {
    width: 100%;
    padding: 12px 40px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.btn-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 5px;
}

.btn-clear:hover {
    color: var(--gray-600);
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--gray-200);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.products-grid::-webkit-scrollbar {
    width: 6px;
}

.products-grid::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.products-grid::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.product-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-card .product-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-card .product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 6px;
}

.product-card .product-specs {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.product-card .product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--success-color);
}

.product-card .product-price span {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-500);
}

/* Pricelist Tab */
.pricelist-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
}

.pricelist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.pricelist-header h2 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricelist-header h2 i {
    color: var(--primary-color);
}

.pricelist-search {
    position: relative;
    width: 300px;
}

.pricelist-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.pricelist-search input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
}

.pricelist-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.pricelist-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pricelist-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricelist-section h3 i {
    color: var(--secondary-color);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.price-table th {
    background: var(--gray-100);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.price-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
}

.price-table tbody tr:hover {
    background: var(--gray-50);
}

.price-table .price-cell {
    font-weight: 600;
    color: var(--success-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-table .price-cell:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.price-table .btn-add-small {
    padding: 6px 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-table .btn-add-small:hover {
    background: var(--primary-dark);
}

/* Preview Tab */
.preview-container {
    max-width: 900px;
    margin: 0 auto;
}

.preview-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-pdf {
    background: var(--danger-color);
    color: var(--white);
}

.btn-pdf:hover {
    background: #dc2626;
}

.btn-email {
    background: var(--primary-color);
    color: var(--white);
}

.btn-email:hover {
    background: var(--primary-dark);
}

.btn-print {
    background: var(--gray-600);
    color: var(--white);
}

.btn-print:hover {
    background: var(--gray-700);
}

.btn-clear-cart {
    background: var(--white);
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

.btn-clear-cart:hover {
    background: var(--danger-color);
    color: var(--white);
    border-color: var(--danger-color);
}

/* Document Preview */
.document-preview {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.document-content {
    padding: 50px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
}

.doc-header {
    border-bottom: 2px solid #1a56db;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.doc-header .company-info p {
    margin-bottom: 5px;
    font-size: 13px;
}

.doc-title {
    text-align: center;
    margin-bottom: 30px;
}

.doc-title h1 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.doc-title p {
    font-size: 14px;
    color: #666;
}

.doc-client {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.doc-client p {
    margin-bottom: 5px;
}

.doc-products {
    margin-bottom: 25px;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.doc-table th,
.doc-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
}

.doc-table th {
    background: #f0f0f0;
    font-weight: bold;
    font-size: 13px;
}

.doc-table td {
    font-size: 13px;
}

.doc-table .empty-row td {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 30px;
}

.doc-totals {
    text-align: right;
    margin-bottom: 25px;
}

.doc-totals p {
    margin-bottom: 5px;
    font-size: 14px;
}

.doc-totals .total-sum {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.doc-totals .total-words {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

.doc-validity {
    margin-bottom: 40px;
    padding: 10px 15px;
    background: #fff3cd;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
}

.doc-signature {
    margin-top: 50px;
}

.doc-signature .signature-line {
    margin-top: 30px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 450px;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-400);
    cursor: pointer;
    padding: 5px;
}

.modal-close:hover {
    color: var(--gray-600);
}

.modal-body {
    padding: 25px;
}

.modal-body .product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.modal-body .product-price,
.modal-body .product-sum {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 15px;
}

.modal-body .product-price span,
.modal-body .product-sum span {
    font-weight: 600;
    color: var(--success-color);
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: var(--gray-100);
}

.quantity-input input {
    width: 80px;
    text-align: center;
    padding: 8px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid var(--gray-200);
}

.btn-cancel {
    padding: 10px 20px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: var(--gray-200);
}

.btn-confirm,
.btn-send {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-confirm:hover,
.btn-send:hover {
    background: var(--primary-dark);
}

/* Variant Selection Modal */
.variant-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.variant-option {
    padding: 15px 20px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.variant-option:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.variant-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-color);
}

.variant-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--success-color);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 20px;
    background: var(--dark-color);
    color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s ease;
    min-width: 280px;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--danger-color);
}

.toast.warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

/* Responsive */
@media (max-width: 1200px) {
    .configurator-container {
        grid-template-columns: 1fr;
    }
    
    .client-panel {
        order: 1;
    }
    
    .products-panel {
        order: 2;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .company-name {
        font-size: 16px;
    }
    
    .tabs {
        padding: 0 10px;
        overflow-x: auto;
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .content {
        padding: 15px;
    }
    
    .panel {
        padding: 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .pricelist-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .pricelist-search {
        width: 100%;
    }
    
    .preview-actions {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    .document-content {
        padding: 20px;
    }
    
    .price-table {
        font-size: 12px;
    }
    
    .price-table th,
    .price-table td {
        padding: 8px 10px;
    }
}

/* Fence Calculator Styles */
.fence-calc-container {
    max-width: 1000px;
    margin: 0 auto;
}

.fence-calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.fence-form-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fence-calc-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.fence-calc-form .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.3s ease;
}

.fence-calc-form .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.fence-calc-form select.form-input {
    cursor: pointer;
    background: var(--white);
}

.fence-calc-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

#fence-calc-results h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#fence-calc-results h3 i {
    color: var(--primary-color);
}

.fence-total-row td {
    background: var(--gray-100);
    font-size: 15px;
    padding: 15px !important;
}

.fence-item-name {
    font-weight: 600;
    color: var(--dark-color);
}

.fence-item-desc {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

.fence-item-qty {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.fence-item-price {
    font-weight: 600;
    color: var(--success-color);
}

@media (max-width: 768px) {
    .fence-calc-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .fence-calc-buttons {
        flex-direction: column;
    }
    
    .fence-calc-buttons .btn-action {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .header,
    .tabs,
    .preview-actions,
    .modal {
        display: none !important;
    }
    
    .main-app {
        min-height: auto;
    }
    
    .content {
        padding: 0;
    }
    
    .document-preview {
        box-shadow: none;
        border-radius: 0;
    }
    
    .document-content {
        padding: 20px;
    }
}
