:root {
    --primary-color: #007bff;
    --background-color: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #212529;
    --muted-text: #6c757d;
}

.form-horizontal {
    width: 95% !important; /* Fixed width for larger screens */
    margin: 0 auto; /* Center the container */
    padding: 1.5rem;
}



.panel {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease;
}

.panel:hover {
    transform: translateY(-2px);
}

.panel .box-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.panel .box-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.panel .box-body {
    padding: 1.25rem;
}

.field-block {
    margin-bottom: 1.25rem;
}

label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.375rem;
    display: block;
}

.form-control, input, textarea, select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: border-color 0.2s ease;
}

textarea {
    resize: vertical;
    min-height: 4rem;
}

.form-control:focus, input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.table, .tgrid_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th, .table td, .tgrid_table th, .tgrid_table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.table th, .tgrid_table th {
    background: #e9ecef;
    font-weight: 600;
    color: var(--text-color);
}

.table tbody tr:hover, .tgrid_table tbody tr:hover {
    background: #f1f3f5;
}

.table-responsive {
    overflow-x: auto;
}

.btn-container {
    display: flex;
    gap: 0.625rem;
    justify-content: flex-end;
    padding: 0.9375rem 1.25rem;
}

.has-text-left {
    text-align: left !important;
}

.has-text-right {
    text-align: right !important;
}

.has-text-center {
    text-align: center !important;
}

@media (max-width: 900px) {
    .form-horizontal {
        width: 100%; /* Full width on mobile */
        padding: 0.9375rem;
    }

    .panel .box-header h4 {
        font-size: 1.1rem;
    }

    .panel .box-body {
        padding: 0.9375rem;
    }

    .field-block {
        margin-bottom: 0 octopus .9375rem;
    }

    .table th, .table td, .tgrid_table th, .tgrid_table td {
        padding: 0.625rem;
        font-size: 0.85rem;
    }

    .btn-container {
        flex-direction: column;
        align-items: stretch;
    }
}