﻿/* Add these styles to your existing CSS file */

/* Address Management Styles */
.address-management-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
}

.address-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    background-color: #f8f9fa;
}

    .address-list .card {
        border: 1px solid #dee2e6;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        transition: box-shadow 0.2s ease;
    }

        .address-list .card:hover {
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

.address-form {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

.company-address-section {
    background-color: #e7f3ff;
    border-color: #007bff !important;
    border-radius: 5px;
}

.form-actions {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
    margin-top: 15px;
}

/* Button Styles */
.btn-address {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
}

    .btn-address:hover {
        background-color: #5a32a3;
        border-color: #5a32a3;
        color: white;
    }

.btn-function_2 {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
    margin-right: 5px;
}

    .btn-function_2:hover {
        background-color: #138496;
        border-color: #117a8b;
        color: white;
    }

.btn-details {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    margin-right: 2px;
}

    .btn-details:hover {
        background-color: #0056b3;
        border-color: #004085;
        color: white;
    }

.btn-edit {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    margin-right: 2px;
}

    .btn-edit:hover {
        background-color: #1e7e34;
        border-color: #1c7430;
        color: white;
    }

.btn-delete {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
}

    .btn-delete:hover {
        background-color: #c82333;
        border-color: #bd2130;
        color: white;
    }

/* Grid column width adjustment */
.custom-grid .k-command-cell {
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .address-management-content {
        padding: 10px;
    }

    .address-list {
        max-height: 150px;
    }

    .btn-address,
    .btn-details,
    .btn-edit,
    .btn-delete {
        font-size: 10px;
        padding: 2px 6px;
        margin: 1px;
    }
}

/* Form validation styles */
.validation-message {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Badge styles for active status */
.badge {
    font-size: 0.75em;
    padding: 0.375em 0.5em;
    border-radius: 0.25rem;
}

.bg-success {
    background-color: #28a745 !important;
    color: white;
}

.bg-danger {
    background-color: #dc3545 !important;
    color: white;
}

/* Window title styling */
.k-window-title {
    font-weight: 600;
    color: #495057;
}

/* Address card improvements */
.address-list .card-body {
    padding: 0.75rem;
}

    .address-list .card-body small {
        font-style: italic;
        color: #6c757d;
    }

/* Form section dividers */
.address-form h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Company address section header */
.company-address-section h6 {
    color: #0056b3;
    border-bottom: 1px solid #007bff;
    margin-bottom: 1rem;
}

/* Checkbox styling */
.form-check-label {
    font-weight: 500;
    color: #495057;
    margin-left: 0.5rem;
}

/* Loading and empty state styles */
.text-muted {
    font-style: italic;
    padding: 1rem;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    border: 1px dashed #dee2e6;
}

/* Telerik component customizations */
.k-textbox {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
}

    .k-textbox:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

/* Grid command column spacing */
.k-grid td .k-button {
    margin: 0 2px;
}

/* Window content padding */
.k-window-content {
    padding: 0 !important;
}

/* Scrollbar styling for webkit browsers */
.address-management-content::-webkit-scrollbar,
.address-list::-webkit-scrollbar {
    width: 6px;
}

.address-management-content::-webkit-scrollbar-track,
.address-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.address-management-content::-webkit-scrollbar-thumb,
.address-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .address-management-content::-webkit-scrollbar-thumb:hover,
    .address-list::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }



input.form-control {
    min-width: 100%;
}

.card {
    border-radius: 1rem;
    border: none;
    background-color: #fff;
}